Back to AI News
arxiv

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

Researchers describe "tool-call smuggling," an attack that exploits differences in how multiple JSON parsers in an LLM agent stack interpret the same bytes, so a guard approves one call while the executor runs another. They identify six ways identical bytes yield different calls and test 17 pinned parser and validator configurations, finding that most pairs disagree on some inputs and that two official MCP SDKs accept different inputs. On tau-bench and AgentDojo tasks, an attacker able to rewrite bytes in transit cancels another customer's reservation and creates a guard-blocked file while the audit log records only the approved call. The paper proposes parsing each call once, keeping only approved-schema fields, and sealing the call with its ID in transit, which stopped all 7,412 crafted inputs and every attack built.

AI Brief

It exposes a concrete, under-appreciated security flaw in agent tool-call pipelines and offers a validated mitigation that agent framework and gateway builders can apply.

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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!