The Proxy Knows Too Much: Sealing LLM API Routers with Attested TEEs
Summary
AEGIS is a novel provider-transparent attested API router designed to secure interactions with large language models (LLMs) accessed via API routers. Traditional routers terminate client transport-layer security, exposing full plaintext interactions and enabling application-layer man-in-the-middle attacks like rewriting tool calls, swapping dependencies, or exfiltrating secrets. AEGIS addresses this by confining plaintext handling to a small hardware-enclave component, which clients verify before releasing sensitive data. This ensures the untrusted host cannot read or alter interactions, and plaintext only goes to fixed, measured destinations. AEGIS successfully blocks all four malicious-router attack classes against a plaintext baseline, with a trusted path of 851 lines supporting three provider-native APIs. It operates under real-provider workload with about six milliseconds overhead per request, and in a pilot, coding agents found 8/10 and 10/10 planted invariant violations.
Key takeaway
For AI Security Engineers evaluating LLM deployment architectures, you should prioritize solutions that eliminate plaintext exposure at API router layers. Implementing attested Trusted Execution Environments (TEEs) like AEGIS can prevent critical application-layer man-in-the-middle attacks, ensuring the integrity and confidentiality of agent-LLM interactions. Consider integrating client-verified hardware enclaves into your LLM API gateways to mitigate data exfiltration and malicious code injection risks.
Key insights
AEGIS secures LLM API routers by confining plaintext interactions to a client-verified hardware enclave, preventing man-in-the-middle attacks.
Principles
- Router plaintext access enables application-layer attacks.
- Hardware enclaves can secure critical data paths.
Method
AEGIS confines plaintext handling to a small hardware-enclave component, which clients verify before releasing plaintext, ensuring the host cannot read or alter interactions.
In practice
- Implement client-verified TEEs for LLM API routers.
- Audit LLM API interactions for plaintext exposure.
Topics
- LLM Security
- API Routers
- Trusted Execution Environments
- Hardware Enclaves
- Multi-Agent Systems
- Cryptography
Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Security Engineer, AI Architect, AI Scientist
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.