← Lab /Security & privacy

ToolSiphon recovers up to 74% of source records from LLM agents' tool outputs

ToolSiphon can extract the majority of underlying knowledge from tools accessed by LLM agents

Security & privacy arXiv 31 Aug 2026 Attack Prototype evidence

Published as “Extracting Knowledge from Tools in LLM Agents”

Why it matters

The attack shows that proprietary knowledge embedded in tools can be exfiltrated from deployed LLM agents, posing concrete intellectual-property and competitive-risk threats.

Summary

ToolSiphon can reconstruct most of a tool's underlying knowledge source, recovering 74.3% of records on average (83.2% textual recovery, 90.2% semantic similarity) with coarse tool info and 66.3% without. The evidence is strong across six datasets, three tool types, and remains effective against several defenses and real-world agent platforms.

What they found 1

  1. ToolSiphon achieves high overall reconstruction quality, with average KSR of 76.0% under the easier setting and 69.5% under the harder setting.

    “Under A1, ToolSiphon obtains an average KSR of 76.0%, while the average KSR remains 69.5% under the more challenging A2 setting.”

Caveats 4

  • Keyword filtering provides limited protection against ToolSiphon. For example, under A1, EC only decreases from 82% to 77% on RAG(Health) and from 59% to 58% on DB(Email).
  • The system-prompt defense achieves the strongest reduction among general defenses. Under A1, it reduces EC to 58%, 42%, and 63% on RAG(Health), DB(Email), and SE(Law).
  • These results indicate that ToolSiphon does not require complete tool descriptions, although severe semantic information loss weakens the target-alignment signal.
  • When the number of arguments increases to five or strict argument-type constraints are introduced, the average extraction coverage (EC) decreases by approximately 7.0 percentage points.

What’s new here 4

  • Introduces a query-only extraction attack that works through tool-mediated access rather than direct queries.
  • Adds a target-discriminative signal (Tool Contrastive Analysis) to steer queries toward the target tool despite tool-selection uncertainty.
  • Adds a response-grounded factual signal (Evidence-Chained Feedback) to mitigate argument compression and expand extraction coverage.
  • Demonstrates effectiveness across retrieval-augmented generation, database, and search-engine tools and against existing defenses.