AIセキュリティポータル K Program

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

Share
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 $τ$-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.
HTTP Content Scanning Systems Full-Width/Half-Width Unicode Encoding Bypass
CERT/CC
Published: 2007
Composition Kills: A Case Study of Email Sender Authentication
Jianjun Chen, Vern Paxson, Jian Jiang
Published: 2020
CVE-2017-12635: Apache CouchDB
Published: 2017
h3 Has a Server-Sent Events Injection via Unsanitized Newlines in Event Stream Fields
Published: 2026
MCP Python SDK: HTTP Transports Serve Session Requests Without Verifying the Authenticated Principal
Published: 2026
jackson-core: Async Parser maxNumberLength Bypass via Chunked Digit Accumulation (Incomplete Fix for CVE-2026-18401 / GHSA-72hv-8253-57qq)
Published: 2026
Agentdojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
E. Debenedetti, J. Zhang, M. Balunovic, L. Beurer-Kellner, M. Fischer, F. Tramèr
Published: 2024
Envoy AI Proxy - MCP Message Smuggling Vulnerability
Doyensec
Published: 2026
ECMAScript 2026 Language Specification
Ecma International
Published: 2026
The homograph attack
E. Gabrilovich, A. Gontmakher
Published: 2002
Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, Mario Fritz
Published: 2.24.2023
Approve What, Exactly? Effect Binding and Trusted Rendering for Agent Step-Up Authorization
Sai Varun Kodathala, Prashanth Pollishetty, Jaylen Cargill
Published: 10.15.2026
Improper Handling of Null Unicode Character When Parsing JSON in github.com/modelcontextprotocol/go-sdk
Francesco Lacerenza
Published: 2026
MCP Go SDK Vulnerable to Improper Handling of Case Sensitivity
Francesco Lacerenza
Published: 2026
HTTP Request Smuggling
Chaim Linhart, Amit Klein, Ronen Heled, Steve Orrin
Published: 2005
Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain
Hanzhi Liu, Chaofan Shou, Hongbo Wen, Yanju Chen, Ryan Jingyang Fang, Yu Feng
Published: 4.10.2026
Formalizing and Benchmarking Prompt Injection Attacks and Defenses
Y. Liu, Y. Jia, R. Geng, J. Jia, N. Z. Gong
Published: 2024
Null Prefix Attacks Against SSL/TLS Certificates
Moxie Marlinspike
Published: 2009
The berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models
Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, Joseph E. Gonzalez
Published: 2025
Prompt Injection Attack to Tool Selection in LLM Agents
J. Shi, Z. Yuan, G. Tie, P. Zhou, N. Z. Gong, L. Sun
Published: 2026
On Breaking SAML: Be Whoever You Want to Be
Juraj Somorovsky, Andreas Mayer, Jörg Schwenk, Marco Kampmann, Meiko Jensen
Published: 2012
Cookie Crumbles: Breaking and Fixing Web Session Integrity
Marco Squarcina, Pedro Adão, Lorenzo Veronese, Matteo Maffei
Published: 2023
Approval Laundering: Systematizing Approval--Execution Binding Failures in AI Coding-Agent Harnesses
Yang Wang
Published: 9.30.2026
MCPTox: A Benchmark for Tool Poisoning on Real-World MCP Servers
Wang, Z., Gao, Y., Wang, Y., Liu, S., Sun, H., Cheng, H., Shi, G., Du, H., Li, X.
Published: 2026
Share