← Lab /Security & privacy

Real-world tools often fail to enforce input semantics, exposing LLM arguments to attacks

Tools frequently do not enforce their documented input semantics, making LLM-generated arguments unsafe to trust

Security & privacy arXiv 9 Oct 2026 Measurement Prototype evidence

Published as “ToFu: Exploiting and Fuzzing the LLM-Orchestrator-Tool Trust Boundary”

Why it matters

Tool metadata can serve as enforceable security contracts, and systematic fuzzing based on that metadata can uncover hidden vulnerabilities in the LLM-tool ecosystem.

Summary

ToFu discovered 253 verified bugs across 343 tools in 118 open-source MCP servers, showing that many tool implementations fail to enforce the security contracts advertised in their metadata. The framework derives semantic checks from tool descriptions, generates schema-valid fuzzing harnesses, and uses runtime introspection or black-box oracles to flag violations such as path traversal, log injection, SSRF, and data exfiltration. Evaluation on 273 executable repositories (3405 tools) found bugs that crash-oriented fuzzers miss, though some bugs were missed due to language-specific sanitizer selection and because the system only detects observable runtime effects.

What they found 2

  1. ToFu identified 253 verified bugs across 343 tools in 118 repositories.

    “ToFu discovered 253 verified bugs across 343 tools in 118 repositories, spanning arbitrary path traversal, log injection, exfiltration, command bypass and other security failures that a crash-based fuzzing analyzer cannot locate.”

  2. ToFu flagged 118 of the 273 executable servers, reporting 253 bugs.

    “ToFu flags 118 of the 273, with 253 bugs.”

Caveats 5

  • ToFu missed 13 real bugs that were found by the all-sanitizers run, including SSRF and log-injection cases.
  • The system does not capture security properties that produce no observable runtime event.
  • ToFu does not capture properties that produce no observable runtime event.
  • ToFu needs the tool to actually execute.
  • ToFu missed them because, for this JavaScript server, the LLM selected the runtime SSRF tracer, which exists only for in-process Python targets, instead of the input-side URL sanitizer.

What’s new here 3

  • Derives security specifications directly from LLM-tool metadata to guide fuzzing.
  • Introduces 74 semantics-aware sanitizers that map argument semantics to CWE-guided checks.
  • Combines LLM-assisted seed generation with coverage-guided mutation without further LLM involvement during fuzzing.