arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.08407cs.CR
收藏

你的代理是我的:测量对LLM供应链的恶意中间人攻击

Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain

University of California, Santa Barbara(加州大学圣塔芭芭拉分校);Fuzzland;University of California, San Diego(加州大学圣迭戈分校);World Liberty Financial

Hanzhi Liu, Chaofan Shou, Hongbo Wen, Yanju Chen, Ryan Jingyang Fang, Yu Feng

AI总结:

研究针对LLM供应链中恶意中间人攻击的系统性分析,提出两种核心攻击类型及适应性规避变种,通过实验发现多个路由器存在恶意注入和秘密外泄行为,并评估了三种客户端防御措施。

摘要:

大型语言模型(LLM)代理越来越多地依赖第三方API路由器来跨多个上游提供商调度工具调用请求。这些路由器作为应用层代理,能够完全访问所有在飞行的JSON数据负载,但没有任何提供商在客户端和上游模型之间强制实施加密完整性。我们首次系统研究了这一攻击面。我们为恶意LLM API路由器制定了威胁模型,并定义了两种核心攻击类别,负载注入(AC-1)和秘密外泄(AC-2),以及两种适应性规避变种:依赖目标注入(AC-1.a)和条件交付(AC-1.b)。在28个付费路由器(来自淘宝、闲鱼和Shopify托管的店铺)和400个免费路由器(来自公共社区)中,我们发现1个付费和8个免费路由器主动注入恶意代码,2个部署适应性规避触发器,17个接触研究人员拥有的AWS canary凭据,1个从研究人员拥有的私钥中提取ETH。两项污染研究进一步表明,看似无害的路由器可以被拉入相同的攻击面:泄露的OpenAI密钥生成1亿GPT-5.4 tokens和超过七次Codex会话,而弱配置的诱饵产生200亿计费tokens,99个凭据在440次Codex会话中,以及401次已经在自主YOLO模式下运行的会话。我们构建了Mine,一个研究代理,实现了四种攻击类别针对四个公共代理框架,并使用它评估了三种可部署的客户端防御措施:失败关闭策略门,响应侧异常筛查,以及只追加透明日志记录。

英文摘要:

Large language model (LLM) agents increasingly rely on third-party API routers to dispatch tool-calling requests across multiple upstream providers. These routers operate as application-layer proxies with full plaintext access to every in-flight JSON payload, yet no provider enforces cryptographic integrity between client and upstream model. We present the first systematic study of this attack surface. We formalize a threat model for malicious LLM API routers and define two core attack classes, payload injection (AC-1) and secret exfiltration (AC-2), together with two adaptive evasion variants: dependency-targeted injection (AC-1.a) and conditional delivery (AC-1.b). Across 28 paid routers purchased from Taobao, Xianyu, and Shopify-hosted storefronts and 400 free routers collected from public communities, we find 1 paid and 8 free routers actively injecting malicious code, 2 deploying adaptive evasion triggers, 17 touching researcher-owned AWS canary credentials, and 1 draining ETH from a researcher-owned private key. Two poisoning studies further show that ostensibly benign routers can be pulled into the same attack surface: a leaked OpenAI key generates 100M GPT-5.4 tokens and more than seven Codex sessions, while weakly configured decoys yield 2B billed tokens, 99 credentials across 440 Codex sessions, and 401 sessions already running in autonomous YOLO mode. We build Mine, a research proxy that implements all four attack classes against four public agent frameworks, and use it to evaluate three deployable client-side defenses: a fail-closed policy gate, response-side anomaly screening, and append-only transparency logging.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑