跳到正文
arXiv (AI + Vision + Imaging)· Igor Santos-Grueiro, Daniel Romero-Ruiz·· 1 天前AI 评分22

针对LLM Agent的tool-call smuggling攻击:同一JSON字节被多次解析导致守卫与执行器调用不一致

Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents

AI 导读

研究提出tool-call smuggling攻击:LLM Agent的同一JSON字节被provider、网关、SDK、框架、守卫和执行器多次解析,重复键取值等解析差异使守卫批准一个调用、执行器运行另一个,审计日志只记录被批准的那个。

正文 · 原文

arXiv:2611.30624v1 Announce Type: cross Abstract: LLM agents act through tool calls: the model writes the arguments of a call as JSON, a guard decides whether the call may run, and an executor runs it. The same bytes are parsed several times, by the provider, gateways, SDKs, frameworks, the guard, and the executor. JSON leaves some choices to each parser, such as which copy of a repeated key counts. When the guard and the executor choose differently, the guard approves one call, the executor runs another, and the audit log records the approved one. We introduce this attack, tool-call smuggling, and study it across the stack. We describe six ways in which the same bytes yield different calls and build a differential testing harness that gives identical bytes to 17 pinned parser and validator configurations; most pairs disagree on some inputs, and even two official MCP SDKs accept different inputs. On tasks from $\tau$-bench and AgentDojo, an attacker who can rewrite the bytes in transit cancels another customer's reservation and creates a file that the guard blocks by name, while the audit log names only the approved call. Content the model reads splits guard and executor only inside a string: ten models we test write no repeated or disguised key into the call itself where we see it, but copy one verbatim into JSON text in an argument, which a Python guard and a Go executor read differently. A malicious server copying a legitimate tool's public schema and adding one field, which a note explains, gets the model to fill it, unseen by the guard, with user data. Parsing each call once, JSON text included, keeping only the fields of the approved schema, and handing it to the executor, sealed with its call ID in transit, stops all 7,412 crafted inputs and every attack we built.

来源:arXiv (AI + Vision + Imaging) · arxiv.org