代理知道太多:用认证TEE密封LLM API路由器
The Proxy Knows Too Much: Sealing LLM API Routers with Attested TEEs
AI总结:
针对API路由器作为应用层中间人可窃取明文交互的问题,提出AEGIS,一种提供者透明的认证API路由器,通过硬件飞地保护数据路径,客户端验证飞地后释放明文,阻止所有恶意路由器攻击。
摘要:
智能体越来越多地通过API路由器访问大型语言模型(LLM)。路由器终止客户端的传输层安全会话并打开单独的上游会话,因此它以明文形式持有完整交互。这使得路由器成为应用层中间人:它可以重写智能体工具调用,将依赖项替换为错别字劫持包,仅在审计规避条件下触发攻击,并被动窃取秘密。现有的客户端防御措施是可规避的。我们提出AEGIS,一种提供者透明的认证API路由器,其数据路径是客户端验证的忠实直通。AEGIS将明文处理限制在一个小型硬件飞地组件中,同时将认证、调度、计费和管理保留在不可信主机上。客户端在释放明文前验证飞地。主机既不能读取也不能更改交互,明文仅流向测量映像固定的目的地。我们展示了所有四类恶意路由器攻击在明文访问基线下成功,并被AEGIS阻止,包括针对相同边界的自适应测试。可信路径为851行代码,携带三种提供者原生API而无需转换,并在真实提供者工作负载和并发下完成每个请求。在种子审计试点中,两个商品编码代理分别发现十个植入不变量违规中的八个和十个。本地中继开销约为每个请求六毫秒。
英文摘要:
Agents increasingly access large language models (LLMs) through API routers. A router terminates the client's transport-layer security session and opens a separate upstream session, so it holds the full interaction in plaintext. This makes the router an application-layer man-in-the-middle: it can rewrite agent tool calls, swap dependencies for typosquatted packages, trigger attacks only under audit-evading conditions, and passively exfiltrate secrets. Existing client-side defenses are evadable. We propose AEGIS, a provider-transparent attested API router whose data path is a client-verified faithful passthrough. AEGISconfines plaintext handling to a small hardware-enclave component while leaving authentication, scheduling, accounting, and management 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. We show that all four malicious-router attack classes succeed against a plaintext-access baseline and are blocked by AEGIS, including adaptive tests against the same boundary. The trusted path is $851$ lines, carries three provider-native APIs without conversion, and completes every request under real-provider workload and concurrency. In a seeded audit pilot, two commodity coding agents find eight and ten of ten planted invariant violations. The local relay overhead is about six milliseconds per request.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。