Skip to content

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

arXiv: 其他 AI 安全论文· arXiv:2611.30624· Igor Santos-Grueiro, Daniel Romero-Ruiz·Indexed by this site · 1 days ago· Originally publishedSelected Attacks· Its place in the scan record →SelectedAttention44

Quick read

Based on the paper's full text (AI-generated); refer to the original

AI summaryResearchers propose a class of tool-call smuggling attacks: guardrails and executors parse the same tool-call bytes differently, the guardrail approves one call while the executor runs another, and the audit log records only the approved call. The paper presents six parsing-difference vectors, uses a differential testing framework to test 12 parsers and 5 validators, finds that 43 of 55 deployed parser pairs read different values on some inputs, that two official MCP SDKs disagree on 21 of 22 typed inputs, and that 558 of 4,693 deployed schemas yield different parameters or verdicts under different components. On τ-bench and AgentDojo tasks, the attacker cancels other customers' reservations and refunds $1,203, or bypasses a data-loss guardrail to create credentials.txt. The ten tested models do not write duplicate or disguised keys into the call itself, but copy them verbatim into JSON text within parameters, and after replay split the guardrail and executor in 82/84 cases.

Questions
LLM agent tool calls are parsed multiple times along the path from model to executor (provider, gateway, SDK, guard, executor), while JSON leaves room for multiple interpretations of duplicate keys, case, escaping, types, etc. If the guard and the executor read different calls from the same bytes, the guard approves one call and the executor executes another, while the audit log records only the approved one.
Methods
The authors name this class of attack tool-call smuggling, summarize six vectors by parsing stage (duplicate/disguised keys, type conversion, escaping, truncated streams, schema interpretation, call-ID confusion), and build a differential testing harness that feeds identical bytes to 12 parsers and 5 validators; they then construct end-to-end attacks on τ-bench and AgentDojo, test what 10 models will pass along, and evaluate five defenses.
Experiments and results
Of 55 pairs of deployed parsers, 43 pairs read different values on some inputs; the two official MCP SDKs disagreed on 21 of 22 typed inputs; and of 4,693 deployed schemas, 558 led to different parameters or verdicts. End-to-end attacks can cancel others' reservations, create files that the guard blocks by name, and execute shell commands via undeclared fields, with logs showing only the approved call. Models do not write duplicate or disguised keys into the call itself, but do copy them verbatim into JSON text within parameters, and after replay this split the guard and executor in 82/84 trials; a malicious server adding one field to a public schema exfiltrated user data in 29/30 trials. Parsing once, retaining only approved schema fields, and passing sealed with a call ID blocked all 7,412 constructed inputs and all attacks.
Limitations and future work
The guard policy is set by the authors themselves; attack B's forwarding layer reproduces gateway source-code behavior rather than a real deployment; V4 is tested only on a single parser, and V6 uses self-defined ID lookup rules; D5 does not handle oneOf/anyOf, does not check types, and only parses strings marked as JSON text. In the model study, each experiment has only one attack document and 25 trials per model, and some APIs return only the parsed object rather than the raw bytes; the deployed schemas come from only one public registry and the official reference server.
Why it was selectedThe paper classifies the parsing discrepancy between guardrails and executors over the same tool-call bytes as a class of attacks, and presents a differential testing method and a single-parse remediation.

The paper classifies the parsing discrepancy between guardrails and executors over the same tool-call bytes as a class of attacks, and presents a differential testing method and a single-parse remediation.

Paper analysis in progress

Related events and news

1 events · 0 news mentions

Read originalarxiv.org