Metraipolis › archive › dc_e2e1d76373a8
CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering — arXiv:2609.36570
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.36570
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T16:26:07.003Z
- SHA-256 of the archived text
8825891f943f0d96d543e708e0eb4bf094da0d6a30f0b46ab9caf6edf9a4c5aa- Stable URL of this page
https://metraipolis.com/documento/dc_e2e1d76373a8
How to cite
CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering — arXiv:2609.36570 — arXiv (en), https://arxiv.org/abs/2609.36570 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e2e1d76373a8 (Metraipolis archive dc_e2e1d76373a8, sha256 8825891f943f0d96d543e708e0eb4bf094da0d6a30f0b46ab9caf6edf9a4c5aa)
BibTeX
@misc{dce2e1d76373a8,
title = {CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering — arXiv:2609.36570},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.36570},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e2e1d76373a8; sha256 8825891f943f0d96d543e708e0eb4bf094da0d6a30f0b46ab9caf6edf9a4c5aa},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.36570. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Indirect prompt injection makes an LLM agent treat untrusted retrieved text as instructions. We present CounterSteer, an inference-time defense that suppresses this behavior inside the model. Per model, a five-step recipe fits a residual-stream direction from paired episodes differing only in whether an embedded instruction is followed, and retains it only if it passes pre-specified causal and capability gates. At deployment, the direction is subtracted from every tool-result token during prefill. The edit is always on--there is no detection decision to evade--and requires no fine-tuning, auxiliary model, or added tokens, only white-box serving and tool-result span boundaries. Across five open-weights models (8B-106B, five vendor lineages), held-out attack success falls from 0.21-1.00 undefended to 0.00-0.17 defended, and AgentDojo compromise rate from 0.10-0.49 to 0.006-0.079, at 93-100% typography-normalized benign utility, with larger task-dependent costs when reasoning over steered content. A benchmark-level adaptive attacker reaching 0.67-0.73 undefended is held to roughly a quarter of that on the two most deeply evaluated models. Among the defenses we measured on capable models, those achieving lower compromise rates either lost 22-89% of benign utility or fine-tuned the served weights. White-box gradient attacks through the deployed vector compromise at most 2 of 52 episodes, and none of 2,052 replayed human red-team attacks succeeds. CounterSteer largely neutralizes instructional takeover: a black-box framing search cracks 3 of 18 development samples. Parameter manipulation--attacker-chosen arguments in otherwise legitimate calls--is only partially resisted (13 of 18); the decision becomes linearly readable at argument emission but not at the examined pre-generation sites, and is not removed by the tested prefill- or decode-time steering, motivating argument-provenance controls. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-30 in cs.AI). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.36570 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T15:54:53.864Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-30?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).