TL;DR
As autonomous AI agents increasingly collaborate to execute complex tasks, they require secure governance frameworks to ensure they follow user policies and remain accountable. However, upcoming quantum computing advancements threaten to break the classical public-key cryptography these systems rely on. MAGIQ is the first post-quantum secure governance framework for multi-agent AI systems, utilizing highly efficient quantum-resistant primitives to provide provably secure policy enforcement and message attribution with negligible real-world latency.
What Problem Does This Paper Address?
Multi-agent AI frameworks (like AutoGen or MetaGPT) allow autonomous agents to plan and execute multi-step tasks collaboratively. However, this autonomy introduces severe security risks: agents can go rogue, execute malicious actions, or become vectors for Denial-of-Service (DoS) attacks. To mitigate this, users need a way to enforce strict communication policies—such as restricting who an agent can talk to and setting strict interaction "budgets."
While state-of-the-art governance systems like SAGA handle some of these issues, they rely on classical public-key cryptography (like RSA and ECC). According to NIST guidelines, these algorithms must be deprecated by 2030 and fully retired by 2035 due to the threat of quantum computers running Shor’s algorithm. Simply swapping classical primitives for post-quantum counterparts in existing architectures introduces massive computational and communication overhead without providing formal security guarantees for policy enforcement. MAGIQ bridges this gap by designing a post-quantum governance system from the ground up with provable security.
Methods
MAGIQ introduces two application-level communication abstractions to capture agent interactions:
- A-sessions: One-to-one communication channels between two agents.
- C-sessions: One-to-many composed sessions managed by an orchestrator agent.
The fundamental unit of communication is a task-msg, which encapsulates intent, payload, context, and agent identity.
To enforce interaction budgets without incurring the heavy computational cost of signing every single message with post-quantum signatures, MAGIQ elegantly adapts digitally signed hash chains. An agent generates a hash chain where the root is signed by the user. For every message sent, the agent reveals the next pre-image in the chain. The receiver can instantly verify that the message is within budget by hashing the token and checking it against the previous state.
For one-to-many C-sessions, MAGIQ uses Merkle trees to aggregate the roots of multiple hash chains. This allows an orchestrator to authenticate an entire multi-agent workflow with a single user signature, drastically cutting down cryptographic overhead.
For underlying security, MAGIQ utilizes stateful hash-based signatures (XMSS) for long-term identity keys and post-quantum mutually authenticated TLS (PQ-mTLS) featuring ML-KEM for key exchange and ML-DSA for certificates. The entire architecture is formally modeled and proven secure using Canetti’s Universal Composability (UC) framework.
Datasets
As a cryptographic and architectural governance framework, this paper does not introduce or train on machine learning datasets. For empirical evaluation, the authors benchmarked MAGIQ using three standard agentic workflows derived from prior literature: Calendar, Email, and Writing. These tasks were executed using the AutoGen framework across various LLM backends, including GPT-4, GPT-5, and Qwen models.
Key Insights and Ideas
- Decoupling Transport from Semantics: Network-level security (like PQ-TLS) is insufficient for AI governance because it doesn't understand what the agents are doing. MAGIQ successfully decouples transport security from application-level task semantics (task-msg).
- Lightweight Cryptographic Counting: Using hash chains as a mechanism for counting message budgets is a major efficiency win. It replaces expensive public-key signature verifications on a per-message basis with ultra-fast cryptographic hash evaluations.
- The Latency Illusion: Although post-quantum cryptographic keys and signatures are significantly larger than classical ones, MAGIQ demonstrates that in real-world deployments, this overhead is completely dwarfed by geographic network latency and LLM inference times.
Key Results
The authors evaluated MAGIQ against the classical SAGA baseline on modern hardware (including NVIDIA H100 and RTX 4090 GPUs):
- Micro-benchmarks: Per-session recurring cryptographic costs remained uniformly under 5 ms across all operations. Remarkably, data transfer overhead during interactions dropped to just 0.03 ms in MAGIQ compared to 1.44 ms in SAGA.
- End-to-End Task Overhead: MAGIQ introduced a modest 1.07× increase in protocol overhead compared to classical cryptography. However, this overhead constitutes less than 2% of the total execution time, which is overwhelmingly dominated by LLM inference.
- Bandwidth Trade-off: Due to the large size of post-quantum certificates and signatures, session establishment bandwidth increased from 2.12 KB (SAGA) to 88.65 KB (MAGIQ). However, per-request data transfer remained highly efficient at 0.56 KB.
Limitations and Future Work
- Setup Costs: Due to the pre-computation of the XMSS key tree, user and agent registration takes roughly 36 seconds. While this is a one-time cost paid at deployment, it represents a noticeable initial delay.
- Static vs. Dynamic Workflows: The primary implementation focuses on static workflows where the orchestrator knows the target agents in advance. While the authors outline a dynamic workflow solution using One-Time Signatures (OTS), its full empirical evaluation is left for future work.
- Forward Security Formalization: While the protocol inherently supports forward security for A-sessions, fully integrating and proving this property within the formal UC security model remains an open objective.
Summary updated