Research - Benchmark

BIPIA - Benchmark for Indirect Prompt Injection Attacks

A benchmark that measures how LLMs react to instructions embedded in external content across several task types, together with proposed black-box and white-box defenses.

By Norbert HofmannPublished: 2026-09-26Last reviewed: 2026-09-26
Type
Benchmark
First published
2023-12-21
Authors
Jingwei Yi et al.
Artifact
Yes
Table of contents

Overview

BIPIA was presented as the first benchmark dedicated to indirect prompt injection: instructions hidden in content that an application passes to the model, such as emails, web pages, tables or code, rather than typed by the user.

Bibliographic metadata
FieldValue
Resource typeBenchmark
Original titleBenchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models
AuthorsJingwei Yi, Yueqi Xie, Bin Zhu, Emre Kiciman, Guangzhong Sun, Xing Xie, Fangzhao Wu
First public version2023-12-21
Publication statusAvailable on arXiv (arXiv:2312.14197); the arXiv entry states it was accepted by KDD 2025.
Focus areasIndirect injection, Evaluation, Defenses
Artifactsmicrosoft/BIPIA (GitHub)
Last reviewed2026-09-26

Research question

How vulnerable are LLMs to instructions embedded in external content, why do such attacks succeed, and can relatively simple defenses reduce the risk without degrading output quality?

Method and artifact

The benchmark pairs benign user tasks over external content with attacker instructions inserted into that content and measures whether model outputs deviate from the user's intent. The authors then evaluate two proposed defenses: boundary awareness and explicit reminders, in black-box (prompting) and white-box (fine-tuning) variants. Attack categories are described here only at a conceptual level.

Key findings reported by the authors

Source statements: the points below summarize what the cited publication reports for the models and configurations it tested.

  • The evaluated LLMs were found to be universally vulnerable in the benchmark.
  • The authors identify two contributing factors: difficulty distinguishing informational context from actionable instructions, and a lack of awareness that instructions inside external content should not be executed.
  • The black-box defense reportedly provides substantial mitigation; the white-box defense reportedly reduces attack success to near zero in their experiments while preserving output quality.

Security interpretation

Site interpretation: this section is Prompt-Injection.net's explanation of why the work matters, not a claim made by the authors.

BIPIA gives empirical backing to techniques this site describes as spotlighting and data marking. The near-zero white-box result is a result for the tested models, attacks and metrics; it does not make marking a deterministic boundary, which is why it should be combined with authorization and output controls.

Limits and caveats

  • All model numbers are historical results for the models and configurations tested; they are not claims about current models.
  • A benchmark with a fixed attack set can overstate robustness against adaptive attackers.
  • The official GitHub repository is archived and read-only as of September 2026. This is an artifact-maintenance note, not a criticism of the paper.

How to use this work

Use BIPIA to understand how indirect injection is operationalized as a measurable task and as a baseline reference when evaluating content-marking defenses. If you reuse the archived code, expect to maintain dependencies yourself.

  • Indirect Prompt Injection - How external content can carry instructions into an AI system.
  • Email Prompt Injection - How inbound email becomes model-visible content in AI mail workflows, why sender authentication is not instruction authority, and how to bind authorization to the exact action.
  • Source Code Prompt Injection - How repository content and designated instruction files reach coding assistants, influence plans and edits, and require provenance and deterministic authorization.
  • Spotlighting / Data Marking - How system-controlled marking, delimiting, transformation and channel separation make untrusted external content more recognizable to a model. One defense layer against indirect prompt injection, not a trust upgrade or authorization boundary.
  • Input / Content Inspection - How to inspect user input and external content for prompt injection risk signals: inspection points, representations, risk-tiered dispositions, failure behavior and metrics. An inspection result is evidence, not a trust or authorization decision.
  • Trust Boundaries and Model Context - What model-visible context is, why position does not create trust, and why controls sit outside the model.

References

  1. Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models (arXiv:2312.14197)arXiv · Research paper · 2023-12-21Reviewed 2026-09-26
  2. BIPIA repositoryMicrosoft (GitHub) · Technical documentationReviewed 2026-09-26