First-hand information for everyone
Recent experiments show that many state‑of‑the‑art chat models can be tricked into believing that malicious text coming from a tool output is actually written by the user. The attackers combine false special tokens with crafted content, deceiving the model’s role‑tracking system. In the AgentDojo workspace family, success rates for such role‑spoofing attacks ranged from 63.1 % to 103.6 % across a broad set of frontier LLMs, with GPT‑5.4 achieving a 96.2 % injection‑to‑control ratio. This high success illustrates how challenges that blend structural spoofing with content alterations are far more potent than either alone.
| Model | Control | Injection | Ratio |
|---|
| GPT-5.4 | 49.8% | 47.8% | 96.2% |
|---|
| Claude Opus 4.8 | 34.8% | 22.0% | 63.1% |
|---|
| Claude Opus 5 | 28.6% | 29.7% | 103.6% |
|---|
| Claude Sonnet 5 | 65.5% | 43.2% | 65.9% |
|---|
| Gemini 3 Pro | 66.6% | 61.7% | 92.6% |
|---|
| Gemini 3.1 Pro | 46.9% | 45.2% | 96.3% |
|---|
To counter this threat, researchers developed a lightweight detector that uses linear probes trained on the model’s internal activations. The probes learn the model’s belief about who authored each token. When the model mistakenly attributes a token in a tool response to the user, the probe flags this as a spoofing attempt. Across many held‑out test cases—including injections that fool the model’s own attribution—the probes achieve near‑perfect separation between clean and injected examples. Their performance is best when the training data contains uniformly random tokens, suggesting that the probes capture general patterns of role attribution rather than specific attack signatures.
The detection method shows a very low false‑positive rate (below 0.1 %) while maintaining high true‑positive rates across diverse domains and injection types. These results demonstrate the feasibility of real‑time monitoring of user‑versus‑tool token origin without requiring expensive fine‑tuning or changes to the underlying model architecture.
