Chiosa
AI Security & Safety

Security bugs can hide inside valid LLM tool calls

ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust Boundary · arXiv:2610.13651

3 min
Updated
Eight small line charts on a logarithmic time axis. Five tools rise in steps after one minute, such as fantasy-pl-mcp compare\_players from 187 to 495 covered edges; three stay flat after the first…
Coverage over time for the eight servers with 24 hour budget. Labels give coverage at 60 s and at the end.Figure 2 · ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust Boundary · Md Nazmul Islam Ananto et al. · CC BY 4.0

In plain words

Tools used by language-model agents have instructions saying what each input means, such as “a file inside this folder.” But a bad input can still fit the required format, and the tool may carry it out without crashing.

ToFu is a testing system that reads those instructions, creates matching attack-like inputs, and checks what the tool actually does. In its test collection, reviewers confirmed 253 bugs across 118 of 273 reachable servers, including cases where the tool reported success.

The research

When a language model passes a tool call through an orchestrator, what can the tool safely assume about the arguments? A call may obey the schema while an attacker controls its contents, and the tool may return normally after violating its documented security meaning. The paper asks whether testing the tool’s semantics can expose this hidden risk.

ToFu turns tool documentation into executable semantic checks and schema-valid fuzzing tests, then uses observed effects and outputs to find silent security violations.

The framework maps each argument’s documented meaning to registered security checks, mutates arguments while preserving the tool’s schema, and judges runtime effects or whether a flagged input was safely rejected.

This tests the contract at the implementation boundary, rather than asking only whether the process crashes.

Across 273 reachable servers, ToFu produced 508 candidates; manual review and deduplication left 253 verified bugs affecting 343 tools in 118 servers.

Because 182 candidates involved successful execution despite a violated semantic constraint, the findings support the paper’s conclusion that valid formatting and normal completion do not establish safe handling; tool metadata needs enforcement at the implementation boundary.

ToFu needs observable runtime evidence and executable tools. It can miss properties with no observable event, servers that fail before their logic runs, and multi-agent, third-party-component, or stateful call-sequence behavior.

What the evidence shows

  • The trust boundary

    In the paper’s Repeat-After-Me test, an attacker supplies the tool name and arguments in text and asks the model to repeat them. All six evaluated orchestration layers dispatched the repeated request, so matching the call format did not show that its arguments were trustworthy.

  • From descriptions to checks

    ToFu is a tool-aware fuzzing framework for testing whether registered tools enforce the security meaning in their metadata. It normalizes descriptions and schemas, maps arguments such as paths, URLs, and commands to registered checks, and generates inputs that remain valid for the tool’s interface.

    The language model helps choose and specialize an existing check, but the check’s oracle, not the model, decides whether behavior violates the contract.

  • Finding silent violations

    That distinction matters because a semantic security bug can complete normally. ToFu observes sensitive operations when the tool is instrumented, or checks its output and success behavior when it is opaque.

    Among 508 candidates, 182 violated a semantic security constraint even though the tool reported successful execution; these cases would look normal to a crash-only test.

  • What the corpus revealed

    Evaluation used 273 reachable servers containing 3,405 extracted tools, but the server count was the denominator for the head-to-head comparison. Manual review and deduplication reduced 508 candidates to 253 verified bugs affecting 343 tools across 118 servers.

    A 60-second run per reachable tool found 231 of those 253; 22 appeared only in a deeper campaign on 34 servers.

  • Comparisons and controls

    On the same 273 servers, ToFu flagged 118; other analyzers flagged between 46 and 119, but their procedures measured different properties, so the paper gives no single leaderboard. Component controls also changed the candidate totals: the full configuration averaged 430, versus 293 without both LLM stages and 244 with no initial seeds. Oracle controls show runtime tracing and outcome checks contributed different evidence.

Deep

Next paperNOMOS makes written policies safer for tool-using agents