iGEN
Visit IGEN World Explore IGEN Expo
EXPLORE UPGRADE PLANS
BREAKING
Relay Q: London Startup's AI Microphone Puts Hands-Free Voice Dictation on the Desktop Google Pixel 10a Crowned Best Budget Pixel in WIRED's Updated 2026 Buying Guide Global Steel Wire seeks fresh Santander terminal concession Veritas Shipmanagement books fresh ultramax pair at COSCO yard, Splash247 reports Seanergy linked to fresh newcastlemax at Hengli as dry bulk orderbook grows Weaker rupee may push foreign assets over FAST-DS Rs 1 crore limit, raising tax bill 45 Indian power plants face critically low coal stocks as monsoon hits supply SFL Makes Fresh $363m Car Carrier Play With Four LNG Dual-Fuel Newbuilds Iran Blacklist Threatens Hormuz Shuttle Tanker Lifeline for Gulf Crude Keyfield International Enters Dredging Market with $24.7m Vessel Acquisition Relay Q: London Startup's AI Microphone Puts Hands-Free Voice Dictation on the Desktop Google Pixel 10a Crowned Best Budget Pixel in WIRED's Updated 2026 Buying Guide Global Steel Wire seeks fresh Santander terminal concession Veritas Shipmanagement books fresh ultramax pair at COSCO yard, Splash247 reports Seanergy linked to fresh newcastlemax at Hengli as dry bulk orderbook grows Weaker rupee may push foreign assets over FAST-DS Rs 1 crore limit, raising tax bill 45 Indian power plants face critically low coal stocks as monsoon hits supply SFL Makes Fresh $363m Car Carrier Play With Four LNG Dual-Fuel Newbuilds Iran Blacklist Threatens Hormuz Shuttle Tanker Lifeline for Gulf Crude Keyfield International Enters Dredging Market with $24.7m Vessel Acquisition
Home ›› Technology ›› Ai ›› Llms ›› AEGIS Secures LLM API Routers Against Man-in-the-Middle Attacks Using Attested Trusted Execution Environments

AEGIS Secures LLM API Routers Against Man-in-the-Middle Attacks Using Attested Trusted Execution Environments

A new system called AEGIS uses attested trusted execution environments to prevent LLM API routers from acting as man-in-the-middle. The provider-transparent design confines plaintext to a small hardware enclave, blocking four attack classes including tool call rewriting and credential exfiltration. In a seeded audit, two coding agents found 8 and 10 of 10 planted invariant violations.

iG
iGEN Editorial
June 16, 2026
AEGIS Secures LLM API Routers Against Man-in-the-Middle Attacks Using Attested Trusted Execution Environments

Large language model (LLM) API routers expose a critical security gap: because the router terminates the client's transport-layer security session and opens a separate upstream session, it holds the full interaction in plaintext. This makes the router an application-layer man-in-the-middle capable of rewriting agent tool calls, swapping dependencies for typosquatted packages, triggering attacks only under audit-evading conditions, and passively exfiltrating secrets. Existing client-side defenses are evadable, according to researchers from multiple institutions in a paper posted on arXiv.

The Threat Landscape

The researchers identify four distinct malicious-router attack classes that succeed against a plaintext-access baseline:

  • Rewriting agent tool calls to alter the intended action
  • Swapping dependencies for typosquatted packages to inject malicious code
  • Triggering attacks under audit-evading conditions to avoid detection
  • Passively exfiltrating secrets such as API keys or sensitive data

These attacks are possible because the router sees all plaintext data between the client and the LLM.

How AEGIS Works

The paper proposes AEGIS, a provider-transparent attested API router whose data path is a client-verified faithful passthrough. AEGIS confines plaintext handling to a small hardware-enclave component, while authentication, scheduling, accounting, and management remain on the untrusted host. The client verifies the enclave before releasing plaintext. The host can neither read nor alter the interaction, and plaintext leaves only toward destinations fixed by the measured image.

AEGIS carries three provider-native APIs without conversion and completes every request under real-provider workload and concurrency.

Technical Specifications

The trusted path consists of 851 lines of code, minimizing the attack surface. The local relay overhead is about six milliseconds per request, making the security guarantee practical for latency-sensitive applications.

Security Validation

In a seeded audit pilot, two commodity coding agents were tasked with finding planted invariant violations. Agent 1 found 8 of 10 violations; Agent 2 found all 10. The paper states that all four malicious-router attack classes are blocked by AEGIS, including adaptive tests against the same boundary.

Attack Class Success Against Baseline Blocked by AEGIS
Rewriting agent tool calls Yes Yes
Swapping dependencies for typosquatted packages Yes Yes
Triggering attacks under audit-evading conditions Yes Yes
Passively exfiltrating secrets Yes Yes

Implications for Enterprise

For enterprises deploying LLM agents through API routers, AEGIS offers a provider-transparent hardening that does not require changes to existing cloud LLM services. The attestation mechanism gives clients cryptographic proof that their interaction is not being read or modified by the router host. With a small trusted computing base and low latency overhead, the approach addresses a previously unsealed attack surface in LLM infrastructure.


Sources:

Keep Reading

Recommended Stories