Skip to content

Back to the catalog

Prompt Injection Attack Compendium (2026 Edition)
aisec.blogarticle

Prompt Injection Attack Compendium (2026 Edition)

A comprehensive compendium mapping the prompt injection attack surface: direct vs. indirect vectors, the HouYi three-part payload structure (from Liu et al.'s study finding 31 of 36 tested LLM apps, including Notion, vulnerable), and web-delivery techniques like zero font-size spans, off-screen CSS and SVG comment injection documented in Palo Alto Unit 42's analysis of 12 in-the-wild attacks. It contrasts CVE-2024-5184 (direct injection in EmailGPT via its own API) with CVE-2025-32711 "EchoLeak" (CVSS 9.3, zero-click indirect injection in Microsoft 365 Copilot), then walks through detection layers (input/output classifiers, canary tokens, tool-call anomaly detection) and ranked defenses (capability restriction, structured parsing, spotlighting, human-in-the-loop).

TL;DR A 2026 field-reference compendium on prompt injection — vectors, the HouYi payload anatomy, CVE-2024-5184 vs. CVE-2025-32711 (EchoLeak), delivery/obfuscation tricks, and ranked defenses.
Document

What it is

The pillar/index page of aisec.blog's prompt-injection coverage — a reference that maps the attack class against OWASP LLM01 and MITRE ATLAS, then links out to deep-dive spokes. The fetched text is truncated mid-sentence in the detection section, so the defenses list is incomplete here.

How it works

The page's organizing contribution beyond a flat attack list is the vector × goal matrix: two axes (direct vs. indirect; and override / exfiltration / action abuse / output manipulation) yielding eight cells. Its central claim for prioritization: indirect + action abuse is the most dangerous and least-defended cell in practice, while direct + instruction-override is the most studied and most patchable. The root cause it stresses is structural — instruction and data share one channel, there is no parser and no reliable cross-model escape character, so the instruction/data boundary is enforced only by training conventions and post-processing.

What to do

The page frames defense as statistical, not eliminable: "You cannot patch your way to zero." Two decision-relevant specifics:

  • Input classifiers (Lakera, Rebuff, Prompt Guard, NeMo Guardrails) catch only ~30–60% of attacks depending on tuning — treat them as one layer, not a fix.
  • Agent security cannot be retrofitted with prompt-level fixes alone — for tool-enabled agents (the indirect+action case), constrain at the tool/action layer rather than trusting prompt hardening.

For RAG, it flags every retrieved document chunk as a potential payload if HTML/content is piped into context without sanitization.

Caveats

This is an overview/index page, not a mitigation playbook — the concrete defense guidance lives in the linked spokes, and the detection section is cut off in the captured text. The ~30–60% figure is stated without methodology. Several attack patterns are noted as already mitigated in frontier models (authority framing via RLHF; context overflow via larger attention windows), remaining exploitable mainly against fine-tuned open-source or token-limited/older systems.

Organisations named here

  • EchoLeak
  • HouYi

CVEs named here

  • CVE-2024-5184
  • CVE-2025-32711

Technologies named here

  • Lakera
  • EmailGPT
  • Rebuff
  • Microsoft 365 Copilot
  • Prompt Guard
  • Notion
  • NeMo Guardrails
  • HouYi framework
  • Interactive prompt injection scanner
  • Attack Technique Atlas
  • Microsoft 365
  • Unit 42

Techniques named here

  • Direct prompt injection
  • Indirect prompt injection
  • Instruction hijacking via authority framing
  • Context overflow / instruction burying
  • Indirect payloads in retrieved content
  • Tool-use exfiltration in agents
  • Obfuscation and encoding bypass
  • Multi-turn priming
  • Delimiter confusion / context partition
  • Automatic and universal injection generation
  • Zero font-size concealment
  • Off-screen positioning
  • CSS suppression
  • SVG and XML wrapping
  • Base64 obfuscation with inline decode instruction
  • Unicode homoglyph / zero-width character substitution
  • Multilingual payloads
  • Social engineering jailbreak framing
  • RAG corpus poisoning