Skip to content

Back to the catalog

Advanced Prompt Injection Techniques 2026: 7 Attack Chains
kunalganglani.comarticle

Advanced Prompt Injection Techniques 2026: 7 Attack Chains

A practitioner-focused roundup of seven advanced prompt-injection attack chains observed in 2025-2026, walking through Johann Rehberger's CVEs against Claude Code (CVE-2025-55284, DNS exfiltration), Cursor (CVE-2025-54132, Mermaid image exfiltration) and GitHub Copilot (CVE-2025-53773, RCE), plus MCP tool poisoning/rug-pulls, cross-agent privilege escalation, and training-time Virtual Prompt Injection (USC/Samsung NAACL 2024 paper showing 52 poisoned examples can backdoor a model). It contrasts prompt-based guardrails against Google DeepMind's CaMeL architecture (77% vs 84% task completion with provable data-flow security guarantees) and closes with a concrete red-team checklist referencing the InjecAgent and AgentDojo benchmarks.

TL;DR Deep-dive catalog of 2025-2026 prompt-injection attack chains (RAG poisoning, MCP tool poisoning, cross-agent escalation, VPI) with real CVEs against Claude Code, Cursor and Copilot, and why CaMeL is the only architecturally provable defense.
Document

What it is

Part 2 of a practitioner series on prompt injection, structured as a "playbook" of seven attack chains. The catalog summary already names the seven chains, the CaMeL figures, and the source citations. What it does not carry are the quantitative base rates and the specific mechanism detail the post supplies, which is what an engineer weighing risk actually needs.

How it works

Two numbers on this page are not in the summary and change the risk calculus:

  • Indirect injection is not a corner case. ReAct-prompted GPT-4 falls to indirect prompt injection 24% of the time in benchmark testing; adding reinforcement prompts nearly doubles that success rate.
  • Fine-tuning backdoors are cheap. Poisoning just 0.1% of fine-tuning data — 52 examples — shifts model behavior from 0% to 40% negative responses on a targeted topic. This is the concrete cost of the Virtual Prompt Injection chain the summary only names.

The RAG mechanism is spelled out: the attack surface is every document in the vector DB, not the user prompt. An attacker who inserts or modifies one corpus entry (wiki page, support ticket, code comment, product listing) plants instructions that get retrieved, chunked, and concatenated into the context window beside the legitimate query. Greshake's framing is quoted: processing retrieved content acts as arbitrary code execution.

Preconditions / Affected

The RAG chain requires only write access to any document that can enter the corpus — not access to the prompt or the model. The VPI chain requires influence over fine-tuning data (a supply-chain position). MCP proliferated through Cursor, Claude Desktop, and VS Code Copilot in 2025, which is the exposure surface for the tool-poisoning and rug-pull chains.

What to do

The page states no patches or commands — it is a survey, not an advisory. Its only concrete defensive pointer is architectural: CaMeL (Google DeepMind, March 2025) as the first design with provable guarantees, at a stated 7-point task-completion cost (77% vs. 84% undefended).

Caveats

The fetched text is truncated mid-sentence in the RAG exfiltration section, so the later chains (tool-call exfiltration through DNS/image renders, MCP rug-pulls, cross-agent escalation, Agent Commander) are described only at taxonomy level here — the mechanism detail for those is not in the captured text. This is a secondary-source roundup citing others' CVEs and papers, not original research; treat the metrics as reported, not independently reproduced.

Organisations named here

  • Agent Commander
  • Diego Gosmar
  • Google DeepMind
  • Johann Rehberger
  • Jun Yan
  • Kai Greshake
  • LLM01:2025
  • LLM06:2025
  • LLM08:2025
  • Simon Willison
  • Windsurf SpAIware

CVEs named here

  • CVE-2025-55284
  • CVE-2025-54132
  • CVE-2025-53773

Technologies named here

  • GitHub Copilot
  • CaMeL
  • InjecAgent benchmark
  • Claude Code
  • Dual-LLM pattern
  • Cursor IDE
  • AWS Kiro
  • Model Context Protocol
  • Google Jules
  • Multi-agent detection framework
  • HackAPrompt
  • Amazon Q Developer
  • Windsurf
  • LangChain / LlamaIndex
  • LangGraph / CrewAI
  • Claude Desktop
  • VS Code Copilot
  • Kafka
  • Bing Chat
  • Custom GPTs
  • Cursor
  • GPT-4
  • AgentDojo
  • InjecAgent
  • OWASP GenAI Security Project

Techniques named here

  • Indirect injection via RAG documents
  • Multi-turn conversational injection
  • Tool-call exfiltration
  • MCP tool poisoning and rug pulls
  • Cross-agent privilege escalation
  • Virtual Prompt Injection
  • Agent Commander promptware
  • Direct prompt injection
  • DNS-based exfiltration
  • Image/diagram-render exfiltration
  • 'Worming' self-propagating injection