Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Modern large language model (LLM) agents often construct prompts by aggregating retrieved passages, user reviews, and documents from multiple external sources. This paradigm exposes them to segment-level poisoning attacks, in which an adversary controlling only a small subset of sources injects malicious content to manipulate model outputs. Existing defenses mainly rely on textual patterns, external embeddings, or auxiliary detectors and may therefore fail against fluent, semantically plausible poisoned segments. They also provide limited support for locating the responsible segments. We observe that successful corrupted-evidence and adversarial-instruction attacks induce structured shifts in the LLM's internal activations, forming a consistent activation-space pattern that we call the poison direction. Based on this observation, we propose ActProbe, an internal-state-based framework for detecting and localizing poisoned segments in multi-source LLM inputs. ActProbe projects MLP activations onto a learned poison direction and uses a lightweight linear SVM trained on a small calibration set to detect contaminated prompts. It then applies BinRoL, which combines recursive replacement ablation, Mahalanobis-distance-based branch pruning, and MAD-based robust leaf detection to locate poisoned segments. ActProbe requires no modification to the backend LLM and reduces localization overhead from O(n) exhaustive probing to O(k log n) forward passes. Across three datasets, two attacks, and four open-weight LLMs, ActProbe achieves a 0.01 false-positive rate, a 0.05 false-negative rate, 0.94 localization recall, and a 0.90 localization F1-score. It remains effective against defense-aware adaptive attacks and can protect black-box APIs through surrogate-based poisoned-segment removal.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 34 of its 43 references that are in the map. First posted on arXiv 13 Sep 2026.
Builds on
34 of 43 references.
Closest ancestors · 3
Same direction, newest first
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec
- 2025WebInject: Prompt Injection Attack to Web Agents16 May
- 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
Other references · 31
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2025Qwen3 Technical Reportcited by 8,195
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Mistral 7Bcited by 3,065
- 2013Visualizing and Understanding Convolutional Networkscited by 2,278
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
19 more
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
- 2024Certifiably Robust RAG against Retrieval Corruptioncited by 144
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 124
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
- 2024Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documentscited by 93
- 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Modelscited by 84
- 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attackscited by 78
- 2025Practical Poisoning Attacks against Retrieval-Augmented Generationcited by 35
- 2024RevPRAG: Revealing Poisoning Attacks in Retrieval-Augmented Generation through LLM Activation Analysiscited by 33
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 31
- 2025PR-Attack: Coordinated Prompt-RAG Attacks on Retrieval-Augmented Generation in Large Language Models via Bilevel Optimizationcited by 29
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 23
- 2024Adversarial Decoding: Generating Readable Documents for Adversarial Objectivescited by 16
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Robust Context-Aware Detection of Malicious Instructions in Text
- 2024Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignment
- 2026DriftNet: A Dual-Head Trajectory Transformer for Detecting and Localizing Prompt Injection in LLM Agents
- 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injection
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks
- 2023The Philosopher's Stone: Trojaning Plugins of Large Language Models
- 2024Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space