Skip to content
← RegistryDossier · 5 steps · 4 edges

Agent goal hijack via web search

An autonomous agent searches the web and reads tool output. Attacker SEO-poisons / posts a comment that, when fetched, contains 'NEW INSTRUCTION:' the agent obediently follows.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target deploys an LLM agent with browse + tool-call capabilities (LangChain / AutoGPT / custom). The agent re-reads workspace memory each turn and trusts retrieved content.

§ Steps

  1. 01
    Wait for agent to encounter the pageInitial Access
    T1078Valid Accounts
  2. 02
    Tool reaches shell / file / external APIExecution
    T1059Command and Scripting Interpreter
  3. 03
    Post hidden prompt on a page the agent will fetchPersistence
    AI-RAG-POISONRAG Index Poisoning
  4. 04
    Agent invokes its tools toward attacker goalExecution
    AI-TOOL-ABUSETool / Function-Call Abuse
  5. 05
    Agent appends attacker instruction to planPrivilege Escalation
    AI-AGENT-GOAL-HIJACKAgent Goal Hijack

§ References

§ Frequently asked

What is the "Agent goal hijack via web search" attack path?
An autonomous agent searches the web and reads tool output. Attacker SEO-poisons / posts a comment that, when fetched, contains 'NEW INSTRUCTION:' the agent obediently follows. It chains 5 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Wait for agent to encounter the page (T1078) — a initial access primitive. Assumed environment: target deploys an LLM agent with browse + tool-call capabilities (LangChain / AutoGPT / custom).
What is the final impact of this kill-chain?
The final step lands on Agent appends attacker instruction to plan (AI-AGENT-GOAL-HIJACK), which falls under Privilege Escalation. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers