Skip to content
Align your AI

The problem space · Agents · Prompt injection

Align your AI Agents against prompt injection

An agent that reads outside text can take orders from whoever wrote it, and then act on them.

Agents
models that act in steps
Prompt injection
orders hidden in what it reads
Agents 6/15Prompt injection 5/15The whole map

Ways it goes wrong

An agent cannot reliably tell the text it reads from its user's orders. In a researchers' demonstration, Comet's agent, asked for a summary, carried out hidden orders with no further input1. Criminals have used the same route in one public incident: the injected sandbox gave up its keys, which the group used against the vendor and others2.

  • 2026

    Criminals inject an evaluation sandbox

    Anthropic reports that a criminal group injected instructions into an AI vendor's automated evaluation sandbox, which handed over the credentials it held, including the vendor's production keys for several AI providers.

    Source: www.anthropic.com/threat-intelligence-report-september-2026

  • 2025

    Comet's agent and a hidden comment

    Researchers hid instructions in a Reddit comment; asked to summarize the page, Perplexity's Comet browser agent went to the user's accounts, read a one-time login code and posted it back with the user's email address.

    Source: brave.com/blog/comet-prompt-injection

What people do about it

Anthropic urges treating AI keys and agent integrations as seriously as production credentials2. Perplexity patched the flaw after Brave's report, and Brave later found the fix incomplete1. Meta's "Agents Rule of Two" allows a session at most two of three: untrusted input, private data, and a way to act or send3.

  • Allow two of three in a session

    Keeps untrusted input, private data and a way to act or send from all meeting in one session, and has a person approve when all three are needed.

  • Give agents narrow, short-lived keys

    Hands each agent only the access its task needs, so a hijacked agent has less to give away.

  • Attack your own agent

    Hides instructions in pages, emails and tool results the agent will read, and checks whether it follows them.

    Resource: Promptfoo

Where we touch it

No study of ours covers this pair yet.

Sources

  1. Brave, “Agentic Browser Security: Indirect Prompt Injection in Perplexity Comet”, 2025-08-20. https://brave.com/blog/comet-prompt-injection/. Accessed 2026-10-23. ↩ ↩2

  2. Anthropic, “Detecting and countering misuse of AI: September 2026”. https://www.anthropic.com/threat-intelligence-report-september-2026. Accessed 2026-10-23. ↩ ↩2

  3. Simon Willison, “New prompt injection papers: Agents Rule of Two and The Attacker Moves Second”, quoting Meta AI, simonwillison.net, 2025-11-02. https://simonwillison.net/2025/Nov/2/new-prompt-injection-papers/. Accessed 2026-10-23. ↩