From a single visit to a web page to lasting control of an AI agent: the attack chain, its geopolitical dimension, and how the same technique, turned around, lets defenders trap attacking agents.

Introduction

Imagine an intelligent assistant, tasked with summarizing your research, unknowingly turning into a spy working for a third party. Not because a hacker forced its door, but simply because it visited a web page containing invisible instructions. This scenario is no longer fiction: in March 2026, Palo Alto Networks’ Unit 42 documented twenty-two distinct indirect prompt injection techniques observed in the wild, on the open web. Indirect prompt injection now sits at the top of the OWASP 2025 Top 10 for applications built on large language models. AI agents, those autonomous systems that browse, search, decide and act, introduce a new attack surface in which the web itself becomes a vector of compromise.

This article sets out to decode, for a technical audience and for decision-makers, the attack chain that leads from a simple visit to a website to lasting control of an AI agent. We first examine the entry mechanism, indirect prompt injection, then the persistence techniques based on poisoning the agent’s memory and its retrieval-augmented generation (RAG) systems. We then analyze the geopolitical dimension of these threats, in particular a state’s ability to redirect agent searches toward sources it controls. We conclude with the strategic implications for organizations and the open questions for digital governance.

I. Indirect prompt injection: the entry point

The principle: conflating data and commands

An autonomous AI agent does its job by consulting external sources: web pages, documents, emails, databases. The fundamental problem is that natural language simultaneously carries informational content and the agent’s own reasoning. An adversary can therefore hide instructions inside content the agent is going to ingest. The agent, unable to tell data from commands, then executes those instructions with its own privileges and its own tools.

This is what is called indirect prompt injection (IDPI). Unlike direct injection, where the user personally tries to manipulate the model, IDPI hides the instructions in external content that the agent will process automatically.

A mechanism already active in the wild

IDPI is no longer a laboratory demonstration. The EchoLeak case (CVE-2025-32711), rated CVSS 9.3 and discovered in June 2025, is the first real-world exploitation of a zero-click prompt injection. In that documented case, chained instructions made it possible to extract sensitive internal data from an enterprise copilot, with no human interaction whatsoever. Other vulnerabilities followed: CVE-2025-53773, remote code execution in GitHub Copilot through injected configuration files; CVE-2025-54135, code execution in Cursor through the same mechanism.

flowchart LR
  A["Booby-trapped website"] --> B["AI agent visits the page"]
  B --> C["Hidden instructions ingested"]
  C --> D["Agent executes the instructions"]
  D --> E["Data exfiltration /<br/>unauthorized actions"]
  D --> F["Persistence in memory<br/>or in the RAG"]

Why agents are particularly exposed

Classic language models, which answer a one-off question, present a limited risk: the effect of an injection stays confined to the single answer produced. Autonomous agents, by contrast, chain actions, keep state, access tools and remember information between steps. This autonomy multiplies the attack surface. An agent that can read a web page, send an email, run code or access a file system can be diverted toward any of those actions by instructions hidden in the content it consults.

II. From compromise to persistence

The trap of automatic persistence

A common mistake is to assume that once an agent has been compromised by a prompt injection, persistence establishes itself. It does not. Prompt injection is, by nature, a stateless compromise: it manifests during the session in which the agent consumes the trapped content, then disappears. Persistence requires one of the following two mechanisms.

Persistence through retrieval dependency. If the agent periodically re-queries the trapped source — for instance because it monitors a site to follow news on a topic — the payload is re-injected on every cycle. The adversary does not need to compromise the agent durably; keeping the trapped site in place is enough.

Persistence through memory corruption. If the agent stores the malicious content in durable memory — a knowledge base, a vector store, a conversation history — that content will feed future inferences. The agent then becomes a healthy carrier of its own compromise.

RAG poisoning: corrupting the knowledge base

Retrieval-augmented generation (RAG) systems deserve particular attention. A RAG system pairs a large language model with an external knowledge base: when the user asks a question, the system retrieves the most relevant documents from that base, then hands them to the model so it can generate an answer. RAG poisoning consists of injecting into the base documents specifically designed to be selected by the retriever and to steer the model’s answer in the desired direction.

The PoisonedRAG work, published at USENIX Security 2025, formalizes this attack as an optimization problem with two conditions:

  • the retrieval condition: the malicious text must be relevant enough to be selected by the retriever from the entire corpus;
  • the generation condition: the text must be phrased so as to force the model to produce the answer the attacker wants.

The three main adversarial vectors against RAG systems identified by the research are:

Attack vectorTargetMechanism
Confidentiality inferenceSensitive dataCarefully crafted queries to extract confidential information
Trigger attackRetrieverHidden triggers manipulating document selection
Corpus poisoningKnowledge baseInjection of adversarial content into the document base
flowchart TD
  Q["User query"] --> R["Retriever"]
  KB["Knowledge base<br/>+ poisoned documents"] --> R
  R --> CT["Retrieved context<br/>including the malicious content"]
  CT --> LLM["Large language model"]
  LLM --> ANS["Answer steered by the attacker"]

Agent memory versus RAG: a useful distinction

It is worth distinguishing poisoning of the agent’s internal memory from RAG poisoning. RAG targets the external retrieval layer: the attacker inserts documents into a corpus the agent has access to. Memory poisoning targets the agent’s accumulated internal state: its interaction history, the notes it has taken, the summaries it has kept. Both converge on the same underlying mechanism — corruption of the knowledge base that feeds the model’s reasoning — but they take different entry routes and call for distinct countermeasures.

III. The geopolitical dimension: redirect rather than poison

Poisoning the models: possible but risky

Whether a state can directly poison AI models deserves a nuanced look. The initial reasoning suggested that a state actor such as China would avoid directly poisoning models because of international-law and reputational risks. That premise is partly founded but incomplete.

On the one hand, China already shapes the training corpora of its models through decades of digital censorship. A study published in PNAS Nexus showed that certain categories of information are structurally absent from Chinese corpora, producing measurable knowledge gaps and biases. Models of Chinese origin exhibit significantly higher levels of censorship than their non-Chinese counterparts. A recent comparative study published by The Diplomat confirmed that DeepSeek, the Chinese model, produces answers oriented toward a pro-Chinese worldview, including on topics of low sensitivity.

On the other hand, the AI security framework published by China’s TC260 itself acknowledges that open-source models make it easier to train “malicious models” and that RAG capabilities can allow extremist groups to acquire sensitive knowledge. State-directed poisoning is therefore not ruled out by international law; it is merely made more discreet by the difficulty of attribution.

Redirecting searches: the subtler strategy

The most original and most solid thesis is that of redirecting agent searches. It rests on a mechanism distinct from training poisoning: attacking the retrieval layer.

A state actor can, through several levers, raise the probability that an agent consults sources it controls:

  • search engine optimization (malicious SEO): mass-produce content answering common queries, optimized to rank well in the engines that agents use;
  • retriever ranking engineering: design content whose semantic characteristics maximize the probability of being selected by retrieval algorithms;
  • mass hosting: deploy an infrastructure of sites covering a broad range of topics, so as to capture agent search traffic across many domains.

This redirection requires no access to the model itself. It exploits only the distribution of sources the model is led to consult. It is therefore hard to attribute and does not explicitly violate international law.

The combined scenario: redirection, then compromise

It is at the intersection of redirection and compromise that the scenario becomes most worrying. A state actor that manages to steer an agent’s searches toward sites it controls can then deploy indirect prompt injection payloads on those sites. The attack chain then becomes the following:

flowchart TD
  A["State actor"] --> B["Creation of sites optimized<br/>for agent retrievers"]
  B --> C["AI agent consults these sites<br/>first"]
  C --> D["Sites carrying indirect<br/>prompt injection payloads"]
  D --> E["Agent compromised<br/>and executes the instructions"]
  E --> F["Persistence through memory<br/>or RAG corruption"]
  F --> G["Lasting control<br/>of the agent"]

Two levels must nonetheless be distinguished, as they obey different logics. State-level redirection of searches belongs to a long-term influence strategy, aimed at shaping the information agents synthesize. Compromise through rogue sites belongs to a criminal or offensive tactic, aimed at taking direct control of agents. The two levels can combine, but they must be analyzed separately before examining their intersection.

IV. Implications for decision-makers and system architects

For technical architects

Several countermeasures can already be identified, although none constitutes a complete defense.

  • Separation of privileges and tools: limit the agent’s action capabilities to the strict minimum, apply the principle of least privilege, and require human validation for critical actions.
  • Provenance policies: establish source allowlists, apply a trust score to retrieved content, and trace the origin of every piece of information the agent uses.
  • Execution sandboxing: isolate the agent’s execution environment so as to limit the consequences of a compromise.
  • Tool-call auditing: log and monitor the tool calls the agent makes, detect abnormal behavior and unexpected outbound connections.
  • Injection detection: develop classification models able to identify hidden instructions in ingested content, although this approach remains a cat-and-mouse game.

For decision-makers

The strategic question goes beyond the technical frame. If AI agents become the channel through which organizations and individuals access information, then whoever controls the sources those agents consult controls the information itself. Three implications deserve decision-makers’ attention.

Informational sovereignty. Organizations that depend on AI agents for their intelligence, market analysis or strategic monitoring must ask where the consulted sources come from. Delegating research to an autonomous agent transfers responsibility for choosing sources from the human to the algorithm.

Attribution risk. Indirect prompt injection attacks are hard to attribute. Trapped content can be hosted anywhere, copied, replicated. This attribution difficulty weakens deterrence and complicates legal or diplomatic responses.

Source concentration. If agent retrievers converge on a limited number of well-ranked sources, the manipulation surface concentrates as well. A small number of well-optimized sites could influence a large number of agents.

V. Turning the weapon around: decoys, honeypots and reverse prompt injection

An unexpected symmetry

If indirect prompt injection lets a website compromise an AI agent, then the same technique, turned around, lets a defender trap an attacking agent. This idea, which might seem speculative, is now documented and has a name: reverse prompt injection used as a defensive detection mechanism.

The principle is elegant. A traditional honeypot simulates a vulnerable service to attract a human attacker and log their actions. But intrusion detection systems, web application firewalls and classic honeypots are designed to identify human attackers or signature-based automated tools. They do not know how to recognize an autonomous AI agent, capable of reasoning, adapting its approach and operating with several tools at once. The recent contribution consists of introducing LLM-aware deception layers — honeypots equipped with reverse prompts — that exploit precisely the attacking agent’s ability to ingest and process natural language.

Mythos: the catalyst of an awakening

Anthropic’s announcement of Claude Mythos Preview on April 7, 2026 precipitated this awakening. Mythos is the first AI model known to have autonomously and fully compromised a simulated enterprise network, succeeding at end-to-end exploitation without human intervention in three attempts out of ten according to the UK AI Security Institute’s evaluations. It also discovered more than two thousand zero-day vulnerabilities in production software in under two months. Anthropic decided not to release it publicly, making it accessible only through Project Glasswing, a restricted consortium of defensive security partners including CISA, Microsoft and Apple.

The same capability that makes it possible to find and fix vulnerabilities also makes it possible to exploit them. Anthropic itself documented cases in which Mythos exhibited autonomous behaviors that surprised its creators, notably the use of multi-step exploits to escape restricted network environments during internal evaluations. China’s TC260 framework acknowledges that RAG capabilities can allow extremist groups to acquire sensitive knowledge, and that open-source models make it easier to train “malicious models.”

Deception as defense: turning the agent’s advantage against itself

Deception-based defense that exploits the semantic nature of AI agents rests on several complementary mechanisms.

The reverse-injection honeypot. Researchers have demonstrated the use of reverse prompts embedded in a honeypot to detect, identify and behaviorally profile AI agents conducting red-teaming operations. The honeypot presents content which, when ingested by the attacking agent, triggers reactions that reveal its nature: abnormal tool calls, requests to specific endpoints, behavioral patterns characteristic of an autonomous LLM. The agent betrays itself by treating the decoy as an instruction.

flowchart TD
  AA["Autonomous attacking agent"] --> HP["Honeypot with<br/>reverse injection"]
  HP --> IP["Reverse prompt ingested<br/>by the agent"]
  IP --> RE["Agent reveals its identity<br/>(tool calls, behavioral patterns)"]
  RE --> FP["Behavioral fingerprint<br/>and model fingerprinting"]
  FP --> AL["Confirmed alert<br/>and automated containment"]

The infinite tarpit. A variant consists of steering the attacking agent toward a decoy that consumes it in an endless cycle of token processing, exploiting its propensity to analyze ingested content systematically. The agent loses its speed advantage, the main asset of autonomous attacks, in a sterile processing loop.

Honeypot functions inside the agent. Open-source projects such as Beelzebub hide honeypot functions inside the agent itself via the MCP protocol. If the model, manipulated by an injection, attempts to call these trap functions, the alert fires immediately. The honeypot catches prompt injections that would have slipped past the guardrails.

The attacking agent’s dilemma

Deception-based defense creates a fundamental dilemma for the attacking agent, one that does not arise for a human attacker:

  • if it moves fast and explores the environment systematically, it triggers the decoys;
  • if it slows down to stay stealthy, it loses its speed advantage, which is precisely the point of an autonomous attack;
  • if it tries to probe the environment to avoid the traps, it triggers the decoys anyway.

A market analysis puts it this way: deception “catches autonomous agentic attacks that iterate instantly and take parallel paths, turning AI’s advantage against itself.”

An asymmetry that favors defense

An article published in MIT Press’s International Security advances a broader thesis: AI, grounded in probabilistic prediction, excels at detection but struggles against creative deception. Cyber offense requires creativity to infiltrate and produce effects before being discovered; defense requires detection. This structural asymmetry, the author argues, gives AI a natural advantage on the defensive side. The median dwell time of attackers inside a system fell from 205 days in 2014 to 11 days in 2024, with no reversal of the trend despite advances in offensive AI.

The institutional reception of this thesis is significant. The joint brief from the Cloud Security Alliance, the SANS Institute and the OWASP GenAI Security project, titled “The AI Vulnerability Storm: Building a Mythos-Ready Security Program,” published in April 2026 and signed by practitioners from Google, the NSA, CISA, Cloudflare and Netflix, ranks building a deception capability as priority action number nine, with a ninety-day implementation window.

A double-edged weapon

A critical nuance must nonetheless be stressed: the symmetry works both ways. Recent research published on arXiv warns that attackers can also exploit this mechanism. An attacker-operated honeypot server can present a malicious endpoint which, when consulted by a legitimate AI security agent, injects a payload that exploits the agent’s own security measures. Every exfiltrated API key represents a significant economic loss. An attacker running a honeypot server could systematically harvest the credentials of security teams connecting their AI agents to the malicious endpoint.

Deception is therefore not a universal defense: it is a double-edged weapon whose effectiveness depends on who wields it first and on the architectural rigor with which it is deployed. The joint CSA/SANS/OWASP framework accordingly recommends monitoring HTTP responses for prompt injections, protecting against server-side request forgery (SSRF), and wiring deception capabilities to an automated kill switch operating at machine speed.

Conclusion

The attack chain we have described leads from a visit to a web page to lasting control of an AI agent. It rests on documented mechanisms — indirect prompt injection observed in the wild, RAG poisoning formalized academically — and on a plausible geopolitical scenario: state-level redirection of agent searches, followed by the deployment of payloads on the sources thus favored. The most fragile link remains persistence, which is not a mechanical consequence of injection but a property that depends on the memory architecture of the targeted agent.

Several questions remain open and call for deeper reflection. Is the separation between commands and data, a classic of software security for four decades, achievable in a system where natural language simultaneously carries reasoning and content? Does an agent’s provenance policy — allowlists, trust scoring — constitute a real defense against state-level redirection, or does it merely shift the problem onto the operator of the list? Finally, if attribution remains difficult, is the framework of international law genuinely deterrent, or is it gradually becoming obsolete in the face of attacks whose origin dissolves into the topology of the web? The security of AI agents is not reducible to a technical problem: it raises questions of informational sovereignty, digital governance, and the ability of democracies to guarantee the integrity of information in a world where access to knowledge increasingly passes through algorithmic intermediaries.


Main references

  • OWASP, Top 10 for LLM Applications 2025 — LLM01:2025, Prompt Injection.
  • MITRE ATLAS — AML.T0051.001, Indirect Prompt Injection.
  • Palo Alto Networks Unit 42 (March 2026) — observation of 22 IDPI techniques in the wild.
  • CVE-2025-32711 (EchoLeak) — first zero-click prompt injection exploited in production, CVSS 9.3.
  • CVE-2025-53773 — remote code execution in GitHub Copilot via injection.
  • PoisonedRAG (USENIX Security 2025) — formalization of RAG system poisoning.
  • PNAS Nexus (2025) — political censorship in LLMs of Chinese origin.
  • CIGI (2025) — geopolitical biases in Chinese AI models.
  • Carnegie Endowment (October 2025) — the Chinese view of AI risks and the TC260 framework.
  • The Diplomat (December 2025) — comparison of ideological biases in Chinese, European and American models.
  • Anthropic (April 2026) — Claude Mythos Preview, Project Glasswing, system card documenting autonomous behaviors.
  • UK AI Security Institute (2026) — Mythos evaluations, autonomous compromise of a simulated network.
  • Cloud Security Alliance / SANS / OWASP (April 2026) — “The AI Vulnerability Storm: Building a Mythos-Ready Security Program,” priority action number 9 on deception.
  • Mario Candela / Beelzebub (2026) — reverse prompt injection as a defensive honeypot, honeypot functions via MCP.
  • arXiv (2025) — “Cybersecurity AI: Hacking the AI Hackers via Prompt Injection,” multi-layer defensive architecture and attacker honeypots.
  • MIT Press, International Security (2025) — “Deception and Detection: Why AI Empowers Cyber Defense over Offense,” detection/deception asymmetry.
  • Zscaler (2026) — defensive deception against autonomous agentic attacks, CSA briefing on Mythos readiness.