Pith. sign in

REVIEW 43 cited by

Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2312.14197 v4 pith:FQHN2T7K submitted 2023-12-21 cs.CL cs.AI

Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models

classification cs.CL cs.AI
keywords attackscontentdefenseexternalindirectinjectioninstructionsllms
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

The integration of large language models with external content has enabled applications such as Microsoft Copilot but also introduced vulnerabilities to indirect prompt injection attacks. In these attacks, malicious instructions embedded within external content can manipulate LLM outputs, causing deviations from user expectations. To address this critical yet under-explored issue, we introduce the first benchmark for indirect prompt injection attacks, named BIPIA, to assess the risk of such vulnerabilities. Using BIPIA, we evaluate existing LLMs and find them universally vulnerable. Our analysis identifies two key factors contributing to their success: LLMs' inability to distinguish between informational context and actionable instructions, and their lack of awareness in avoiding the execution of instructions within external content. Based on these findings, we propose two novel defense mechanisms-boundary awareness and explicit reminder-to address these vulnerabilities in both black-box and white-box settings. Extensive experiments demonstrate that our black-box defense provides substantial mitigation, while our white-box defense reduces the attack success rate to near-zero levels, all while preserving the output quality of LLMs. We hope this work inspires further research into securing LLM applications and fostering their safe and reliable use.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 43 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Ghost in the Agent: Redefining Information Flow Tracking for LLM Agents

    cs.CR 2026-04 unverdicted novelty 8.0

    NeuroTaint is the first taint tracking framework for LLM agents that uses offline auditing of semantic, causal, and persistent context to detect flows from untrusted sources to privileged sinks.

  2. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents

    cs.CR 2024-06 unverdicted novelty 8.0

    AgentDojo introduces an extensible evaluation framework populated with realistic agent tasks and security test cases to measure prompt injection robustness in tool-using LLM agents.

  3. DualView: Preventing Indirect Prompt Injection in Personal AI Agents

    cs.CR 2026-07 conditional novelty 7.0

    DualView extends Dual-LLM symbol isolation into the shared user environment via dual Agent/Human views, blocking both immediate and stored IPI at 0% ASR while preserving near-baseline utility.

  4. Evaluating Prompting-Based Defenses Against Domain-Camouflaged Injection Attacks

    cs.CR 2026-06 unverdicted novelty 7.0

    Paraphrasing retrieved content is the most effective of five tested prompting defenses against domain-camouflaged injection attacks, cutting success rates 55-84% across three models while financial domains retain the ...

  5. Brain-Prompt Injection: A Route-Safety Audit for BCI-LLM Agents

    cs.CR 2026-06 unverdicted novelty 7.0

    Introduces brain-prompt injection attacks on BCI-to-LLM agent pipelines and defines a Route-Safety Audit Contract with separation theorem, C3 decomposition, and split-conformal calibration to bound false-accept rates ...

  6. Discourse-Role Labels as Presentation-Time Variables for Context Use in Language Models

    cs.CL 2026-06 unverdicted novelty 7.0

    Discourse-role labels on identical misleading context cause 56-84 percentage point shifts in LLMs adopting the injected wrong answer.

  7. Gate AI: LLM Security Benchmark Evaluation Methodology and Results

    cs.LG 2026-06 unverdicted novelty 7.0

    Introduces a cross-validation-based evaluation methodology for LLM security detectors using a global threshold and group-fold leakage checks to avoid per-dataset tuning.

  8. Information Discernment in Large Language Models

    cs.AI 2026-05 conditional novelty 7.0

    LLMs update their stated numeric beliefs almost regardless of source reliability or whether a claim moves them closer to the truth, performing near chance on both dimensions.

  9. Hallucination as Exploit: Evidence-Carrying Multimodal Agents

    cs.AI 2026-05 unverdicted novelty 7.0

    Evidence-carrying multimodal agents decompose tool calls into predicates verified by constrained DOM/OCR/AX checkers to block hallucination-enabled unsafe actions.

  10. IPI-proxy: An Intercepting Proxy for Red-Teaming Web-Browsing AI Agents Against Indirect Prompt Injection

    cs.CR 2026-05 unverdicted novelty 7.0

    IPI-proxy is a toolkit using an intercepting proxy to inject indirect prompt injection attacks into live web pages for testing AI browsing agents against hidden instructions.

  11. Perturbation Dose Responses in Recursive LLM Loops: Raw Switching, Stochastic Floors, and Persistent Escape under Append, Replace, and Dialog Updates

    cs.AI 2026-05 unverdicted novelty 7.0

    In 30-step recursive LLM loops, append-mode persistent escape from source basins reaches 50% near 400 tokens under full history but plateaus below 50% under tail-clip memory policy, while replace-mode switching largel...

  12. Many-Tier Instruction Hierarchy in LLM Agents

    cs.CL 2026-04 unverdicted novelty 7.0

    ManyIH and ManyIH-Bench address instruction conflicts in LLM agents with up to 12 privilege levels across 853 tasks, revealing frontier models achieve only ~40% accuracy.

  13. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents

    cs.CR 2024-10 unverdicted novelty 7.0

    ASB is a new benchmark that tests 10 prompt injection attacks, memory poisoning, a novel Plan-of-Thought backdoor attack, and 11 defenses on LLM agents across 13 models, finding attack success rates up to 84.3% and li...

  14. LLM Agents can Autonomously Exploit One-day Vulnerabilities

    cs.CR 2024-04 unverdicted novelty 7.0

    GPT-4 LLM agents autonomously exploit 87% of tested one-day vulnerabilities when given CVE descriptions, far outperforming other models and tools.

  15. MNC: Scope-Bound Semantic Declassification for Private LLM-Agent Communication

    cs.CR 2026-08 conditional novelty 6.0

    MNC binds LLM-agent disclosures to recipient, purpose, lifetime, logging, memory, and forwarding scopes, and its monitor enforces them, cutting excess inference leakage from internal agent channels.

  16. Beyond Aggregate Risk: Role-Stratified Conformal Risk Control for LLM Tool Calls

    cs.LG 2026-07 conditional novelty 6.0

    Role-stratified per-field conformal risk control certifies LLM tool-call arguments by semantic role, avoiding aggregate dilution of rare high-risk field failures.

  17. ContainmentBench: Trace-Based Evaluation of Post-Injection Containment in Tool-Using LLM Agents

    cs.CR 2026-07 accept novelty 6.0

    Terminal policy labels are insufficient: two containment policies with identical zero-harm endpoints still differ in 73.5% of trajectories and in authorized-work completion.

  18. Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense

    cs.CR 2026-06 unverdicted novelty 6.0

    Prompt injection defenses create a security-fidelity tradeoff with no model or defense achieving both high security and high fidelity on the SecFid benchmark across 1,168 examples.

  19. Confidently Wrong: Severity-Aware Calibration of Prompt-Injection Detectors under Attack Shift

    cs.CR 2026-06 unverdicted novelty 6.0

    Prompt-injection detectors miss attacks with near-certainty (severity 0.99-1.00) under shifts; standard pooled calibration error fails to detect miscalibration on the attacks themselves.

  20. PARSE: Provenance-Aware Retrieval Sanitization for Professional Domain LLM Agents

    cs.CR 2026-06 conditional novelty 6.0

    On a 122-task real-document benchmark, PARSE reduces prompt-injection attack success from 25.4% to 15.6% at 86.9% utility, while paraphrasing shows no significant reduction.

  21. PARSE: Provenance-Aware Retrieval Sanitization for Professional Domain LLM Agents

    cs.CR 2026-06 unverdicted novelty 6.0

    PARSE reduces prompt injection success rate from 25.4% to 15.6% on a 122-task real-document benchmark across five professional domains while retaining 86.9% utility, unlike paraphrasing which shows no benefit.

  22. Game-Theoretic Multi-Agent Control for Robust Contextual Reasoning in LLMs

    cs.CR 2026-06 unverdicted novelty 6.0

    GT-MCP coordinates three LLM agents via a trust function and rollback to bound contextual drift and block adversarial injections in multi-turn interactions.

  23. MIRAGE: A Polarity-Flipping Encoding Subspace in LLM Agents

    cs.CL 2026-06 unverdicted novelty 6.0

    A shared polarity-flipping encoding subspace in LLM residual streams supports covert encoding and enables real-time detection of agentic data exfiltration via internal probes.

  24. Semantic Quorum Assurance: Collective Certification for Non-Deterministic AI Infrastructure

    cs.LG 2026-06 unverdicted novelty 6.0

    Semantic Quorum Assurance routes AI infrastructure proposals to diverse sandboxed validators and applies risk-adaptive quorums to cut unsafe approvals from 18.5% to 0.3% on 500 scenarios.

  25. Caught in the Act(ivation): Toward Pre-Output and Multi-Turn Detection of Credential Exfiltration by LLM Agents

    cs.CR 2026-06 unverdicted novelty 6.0

    Activation probes, calibrated honeytokens, and multi-turn leakage accounting detect credential exfiltration attempts in LLM agents with high accuracy in controlled open-model tests.

  26. From Prompt Injection to Persistent Control: Defending Agentic Harness Against Trojan Backdoors

    cs.CR 2026-05 unverdicted novelty 6.0

    Introduces ClawTrojan benchmark achieving 95.5% ASR for multi-step trojan attacks in agentic harnesses and DASGuard defense that sanitizes control content from untrusted sources.

  27. Chain-of-Models: Cross-Model Auditing for Bias-Robust LLM Judges

    cs.CL 2026-05 conditional novelty 6.0

    Per-bias selection of a cross-family LLM auditor lifts biased-judgment accuracy from 0.805/0.824 baselines to 0.884.

  28. Hallucination as Exploit: Evidence-Carrying Multimodal Agents

    cs.AI 2026-05 unverdicted novelty 6.0

    Evidence-carrying multimodal agents decompose tool calls into predicates, obtain certificates from DOM/OCR/AX verifiers, and use a deterministic gate to authorize actions only when certificates support them, achieving...

  29. An Empirical Study of Privacy Leakage Chains via Prompt Injection in Black-Box Chatbot Environments

    cs.CR 2026-05 unverdicted novelty 6.0

    Empirical demonstration that prompt injection combined with web-tool use creates a feasible privacy-leakage chain in deployed black-box chatbot agents.

  30. Web Agents Should Adopt the Plan-Then-Execute Paradigm

    cs.CR 2026-05 unverdicted novelty 6.0

    Web agents should default to planning a complete task program before observing live web content to reduce prompt injection exposure, since WebArena tasks are compatible and 80% need no runtime LLM calls.

  31. Evaluation of Prompt Injection Defenses in Large Language Models

    cs.CR 2026-04 unverdicted novelty 6.0

    Output filtering implemented in application code is the only defense that survived an adaptive prompt-injection attacker across 15,000 attacks; model-based defenses all broke.

  32. An AI Agent Execution Environment to Safeguard User Data

    cs.CR 2026-04 unverdicted novelty 6.0

    GAAP guarantees confidentiality of private user data for AI agents by enforcing user-specified permissions deterministically through persistent information flow tracking, without trusting the agent or requiring attack...

  33. Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction

    cs.CR 2025-04 unverdicted novelty 6.0

    The method prompts LLMs to output both answers and references to the executed instructions, then filters out any answers not linked to the original input instructions, reducing attack success rates to zero in tested s...

  34. The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions

    cs.CR 2024-04 unverdicted novelty 6.0

    Training LLMs on data that enforces priority levels for instructions makes models robust to prompt injection attacks, including unseen ones, with little loss on standard tasks.

  35. Defending Against Indirect Prompt Injection Attacks With Spotlighting

    cs.CR 2024-03 unverdicted novelty 6.0

    Spotlighting prompt transformations cut indirect prompt injection success rates from >50% to <2% on GPT models while preserving task performance.

  36. Beyond Aggregate Risk: Role-Stratified Conformal Risk Control for LLM Tool Calls

    cs.LG 2026-07 conditional novelty 5.0

    Role-stratified per-field conformal risk control gives each semantic argument role its own threshold and risk budget, so rare high-risk fields in LLM tool calls are certified individually rather than averaged away.

  37. A Layered Security Framework Against Prompt Injection in RAG-Based Chatbots

    cs.CR 2026-06 unverdicted novelty 5.0

    A three-layer framework combining input filtering, provenance hierarchy, and output auditing reduces prompt injection attack success rate in RAG chatbots from 71.4% to 11.3% on 5,080 samples across three models.

  38. Designing Intelligent Enterprise Agents: A Capability-Aligned Multi-Agent Architecture

    cs.MA 2026-05 unverdicted novelty 5.0

    CEAD architecture for intelligent enterprise agents achieves 70.6% safe success rate on 10,000 tasks by making agent design the primary abstraction rather than governance.

  39. Structured Security Auditing and Robustness Enhancement for Untrusted Agent Skills

    cs.CR 2026-04 unverdicted novelty 5.0

    SkillGuard-Robust formulates pre-load auditing of untrusted Agent Skills as a three-way classification task and achieves 97.30% exact match and 98.33% malicious-risk recall on held-out benchmarks.

  40. Evaluation of Prompt Injection Defenses in Large Language Models

    cs.CR 2026-04 unverdicted novelty 5.0

    Only output filtering with hardcoded rules in application code prevented prompt injection leaks in LLMs, as all model-based defenses were defeated by an adaptive attacker.

  41. When Benchmarks Lie: Evaluating Malicious Prompt Classifiers Under True Distribution Shift

    cs.LG 2026-02 conditional novelty 5.0

    Standard train/test evaluation overstates prompt-attack classifier generalization by 8+ AUC points; leave-one-dataset-out reveals dataset shortcuts that CV hides.

  42. MIPIAD: Multilingual Indirect Prompt Injection Attack Defense with Qwen -- TF-IDF Hybrid and Meta-Ensemble Learning

    cs.CL 2026-05 unverdicted novelty 4.0

    MIPIAD reports a hybrid Qwen-TF-IDF ensemble defense that reaches F1 0.9205 and reduces the English-Bangla performance gap on a 1.43-million-sample synthetic benchmark derived from BIPIA templates.

  43. Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety

    cs.CR 2025-02 unverdicted novelty 2.0

    A comprehensive survey that taxonomizes safety threats to large models and agents, reviews defenses and benchmarks, and outlines open challenges.