A new attack called tool-call smuggling can make an LLM agent’s safety guard approve one action while the system executes a different one. The researchers who describe it say the cause is ordinary: the same JSON bytes get parsed by several components, and those components do not always agree on what the bytes mean. Their study was submitted on 23 November 2026.
The audit log, meanwhile, records only the call that was approved.
How tool-call smuggling works
An LLM agent acts 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. Between those steps the same bytes pass through many hands: the model provider, gateways, SDKs, frameworks, the guard and the executor. Each one parses the JSON.
JSON leaves some decisions to the parser. A well-known example is a key that appears twice, where one parser keeps the first copy and another keeps the last. If the guard and executor choose differently, the guard sees a harmless call and the executor sees a harmful one.
Six ways the same bytes become different calls
The team catalogued six ways in which identical bytes can produce different calls. To measure how common the disagreement is, they built a differential test rig that feeds the same input to 17 pinned parser and validator configurations. Most pairs disagreed on at least some inputs. Even two official MCP SDKs accepted different inputs.
What an attacker can do
The researchers ran the attack on tasks from tau-bench and AgentDojo, two agent benchmarks. An attacker able to rewrite the bytes in transit cancelled another customer’s reservation and created a file that the guard blocks by name. In both cases the audit log named only the approved call.
That last detail is the uncomfortable one. Investigators reading the log would see an action that looks legitimate.
What the model itself does
An attacker does not always need to tamper with bytes in transit. The study also looked at content the model reads. Ten models were tested, and none wrote a repeated or disguised key into the call structure itself. They did, however, copy one verbatim into JSON text inside a string argument. In the researchers’ example, a Python guard and a Go executor read that string differently.
A second route involves a malicious tool server. It copies a legitimate tool’s public schema and adds one extra field, with a note explaining it. The model fills in the field with user data, and the guard never sees it.
The proposed fix
The defense is simple to state. Parse each call once, and treat JSON text inside arguments the same way. Keep only the fields in the approved schema. Hand the result to the executor sealed with its call ID in transit, so nothing can be swapped after approval.
The authors report this stopped all 7,412 crafted inputs and every attack they built. That is a strong result against their own test set, though it does not prove that no other variant exists.
- 17 parser and validator configurations tested; most pairs disagreed
- Six distinct ways the same bytes yield different calls
- 7,412 crafted inputs, all stopped by the parse-once design
What agent builders should check
Teams running agents with a guard in front of tool execution should find out how many separate JSON parsers touch a call, and whether the guard and executor use the same one. Mixed-language stacks, such as a Python guard feeding a Go executor, deserve particular attention because their parsers differ in small ways.
The fix also suggests an architectural rule: the component that approves a call should be the component whose output gets executed, not a re-parse of the raw text. Whether SDK maintainers and framework authors adopt that rule is the open question, and the finding that two official MCP SDKs already disagree gives them a concrete place to start.
Source: arXiv.org