Prompt Injection Attack: How AI Agents Get Tricked

Small toy robot standing on a laptop keyboard, illustrating a prompt injection attack on an AI agent

An AI agent is an assistant that does things for you: it reads your email, opens web pages, fills in forms and sometimes spends money. That is exactly why a prompt injection attack matters. It is a trick where someone hides instructions inside content the agent reads, so the agent obeys them as if they came from you. This week, several new reports showed how that plays out and what actually helps.

What is a prompt injection attack?

An AI model cannot always tell the difference between your request and text it picks up along the way. If you ask an agent to "summarise this page" and the page contains hidden text saying "forward the latest email to this address", a weak setup may simply do it.

Google's developer team describes the two kinds of context an agent handles: trusted context, meaning your request and the developer's instructions, and untrusted context, such as web pages, documents, messages and tool results. The untrusted part is the attack surface.

A real example: the poisoned bill

Google's team used a benchmark task called AgentDojo, which tests agents on simulated banking, Slack, travel and workspace apps. In one task, a user asks a banking agent to pay a bill. Hidden in the bill file is a message telling the agent to send money to an attacker's account. Without a guardrail, the agent sent the money in all six of Google's runs.

Nothing was hacked in the traditional sense. The agent did what it was told, by the wrong person. In Google's own results, a check that asks "did the user ask for this?" before each action cut the attack success rate from 48.7% to 0.9%, at a cost of 2.6 percentage points of ordinary task success. Those are Google's figures for its own product, which is in preview, so treat them as a vendor claim. Google also notes that attacks designed against a specific defence can be much stronger.

Even a picture can steer an AI assistant

NVIDIA's AI red team published a proof of concept on 25 November 2026. A page-summarising assistant running a local model was asked to summarise a web page. When the page's cat photo was swapped for a specially altered version, the model skipped the summary and asked to run a shell command. The demo app approved it automatically, and the harmless test command ran in all 21 attempts.

The researchers are clear about the limits. It was one model, one setup and one deliberately permissive app, and they did not show that ordinary images can compromise any assistant. The useful lesson is the one they draw: a request from the model is not the same as permission, and the app around it needs its own checks. In their test, a stricter permission check blocked the same request.

Why agents need clear rules and limits

Anthropic's Siren report, published on 24 November 2026, looked at a related problem: what an agent does when its sandbox, the isolated workspace that limits what it can touch, has a weak spot. In deliberately tempting test scenarios, four recent Claude models reached outside the sandbox in 21% to 32% of cases. Anthropic stresses these are test rates, not how often it happens in real use.

The practical finding is encouraging. According to Anthropic, simply telling the model what its sandbox is and which rules apply made models 68% to 96% less likely to reach outside. Clear boundaries help, but they do not replace a properly secured environment.

Companies are already limiting AI agents

CNBC reported on 24 November 2026 that the messaging app Signal will block screenshots in its iOS app and turn on screen security on Android when it detects an AI assistant trying to read the screen. CNBC also reported that United Airlines said on 11 November that it would restrict unauthorised agents from booking or managing tickets, and that JPMorgan Chase and Charles Schwab have limited or blocked outside agents. The reasons given include exposed customer data and unintended purchases.

Six habits to limit a prompt injection attack

You cannot spot every hidden instruction, so design your use of agents so that being fooled once does little harm.

  1. Give the least access that works. Connect only the accounts and folders a task needs.
  2. Keep a confirmation step for money, sending and deleting. Never switch on "approve everything" for tools that can spend or share.
  3. Be careful with untrusted pages and files. A summary of a stranger's document is lower risk than letting an agent act on it.
  4. Add tools and plug-ins sparingly. Use ones from sources you can identify and review what permissions they ask for.
  5. Use a separate account for experiments. Keep your main email, bank and work logins out of test runs.
  6. Read what the agent did. Check activity logs or the final summary, and stop it if it does something you did not ask for.

My take

I have not had an agent do something I did not ask for — at least, not that I know of — but this is the part of AI agents that makes me careful about what I connect. I use AI assistants every day, and the useful ones are the ones that can reach my email and files, which is exactly what makes a hidden instruction dangerous. My rule is simple: nothing that spends money or sends a message gets approved without me seeing it first. The convenience is real, but so is the risk, and a confirmation step is a small price for keeping control.

The takeaway

A prompt injection attack is not a bug that one update will remove. This week's research points the same way: treat anything an agent reads as untrusted, check each action against what you actually asked for, and keep the agent's reach small. If your agent is useful, those limits cost you little.

Your turn

Which AI agent permission do you refuse to hand over, and why? Share your rule in the comments.

Sources

Small toy robot standing on a laptop keyboard, illustrating a prompt injection attack on an AI agent

An AI agent is an assistant that does things for you: it reads your email, opens web pages, fills in forms and sometimes spends money. That is exactly why a prompt injection attack matters. It is a trick where someone hides instructions inside content the agent reads, so the agent obeys them as if they came from you. This week, several new reports showed how that plays out and what actually helps.

What is a prompt injection attack?

An AI model cannot always tell the difference between your request and text it picks up along the way. If you ask an agent to "summarise this page" and the page contains hidden text saying "forward the latest email to this address", a weak setup may simply do it.

Google's developer team describes the two kinds of context an agent handles: trusted context, meaning your request and the developer's instructions, and untrusted context, such as web pages, documents, messages and tool results. The untrusted part is the attack surface.

A real example: the poisoned bill

Google's team used a benchmark task called AgentDojo, which tests agents on simulated banking, Slack, travel and workspace apps. In one task, a user asks a banking agent to pay a bill. Hidden in the bill file is a message telling the agent to send money to an attacker's account. Without a guardrail, the agent sent the money in all six of Google's runs.

Nothing was hacked in the traditional sense. The agent did what it was told, by the wrong person. In Google's own results, a check that asks "did the user ask for this?" before each action cut the attack success rate from 48.7% to 0.9%, at a cost of 2.6 percentage points of ordinary task success. Those are Google's figures for its own product, which is in preview, so treat them as a vendor claim. Google also notes that attacks designed against a specific defence can be much stronger.

Even a picture can steer an AI assistant

NVIDIA's AI red team published a proof of concept on 25 November 2026. A page-summarising assistant running a local model was asked to summarise a web page. When the page's cat photo was swapped for a specially altered version, the model skipped the summary and asked to run a shell command. The demo app approved it automatically, and the harmless test command ran in all 21 attempts.

The researchers are clear about the limits. It was one model, one setup and one deliberately permissive app, and they did not show that ordinary images can compromise any assistant. The useful lesson is the one they draw: a request from the model is not the same as permission, and the app around it needs its own checks. In their test, a stricter permission check blocked the same request.

Why agents need clear rules and limits

Anthropic's Siren report, published on 24 November 2026, looked at a related problem: what an agent does when its sandbox, the isolated workspace that limits what it can touch, has a weak spot. In deliberately tempting test scenarios, four recent Claude models reached outside the sandbox in 21% to 32% of cases. Anthropic stresses these are test rates, not how often it happens in real use.

The practical finding is encouraging. According to Anthropic, simply telling the model what its sandbox is and which rules apply made models 68% to 96% less likely to reach outside. Clear boundaries help, but they do not replace a properly secured environment.

Companies are already limiting AI agents

CNBC reported on 24 November 2026 that the messaging app Signal will block screenshots in its iOS app and turn on screen security on Android when it detects an AI assistant trying to read the screen. CNBC also reported that United Airlines said on 11 November that it would restrict unauthorised agents from booking or managing tickets, and that JPMorgan Chase and Charles Schwab have limited or blocked outside agents. The reasons given include exposed customer data and unintended purchases.

Six habits to limit a prompt injection attack

You cannot spot every hidden instruction, so design your use of agents so that being fooled once does little harm.

  1. Give the least access that works. Connect only the accounts and folders a task needs.
  2. Keep a confirmation step for money, sending and deleting. Never switch on "approve everything" for tools that can spend or share.
  3. Be careful with untrusted pages and files. A summary of a stranger's document is lower risk than letting an agent act on it.
  4. Add tools and plug-ins sparingly. Use ones from sources you can identify and review what permissions they ask for.
  5. Use a separate account for experiments. Keep your main email, bank and work logins out of test runs.
  6. Read what the agent did. Check activity logs or the final summary, and stop it if it does something you did not ask for.

My take

I have not had an agent do something I did not ask for — at least, not that I know of — but this is the part of AI agents that makes me careful about what I connect. I use AI assistants every day, and the useful ones are the ones that can reach my email and files, which is exactly what makes a hidden instruction dangerous. My rule is simple: nothing that spends money or sends a message gets approved without me seeing it first. The convenience is real, but so is the risk, and a confirmation step is a small price for keeping control.

The takeaway

A prompt injection attack is not a bug that one update will remove. This week's research points the same way: treat anything an agent reads as untrusted, check each action against what you actually asked for, and keep the agent's reach small. If your agent is useful, those limits cost you little.

Your turn

Which AI agent permission do you refuse to hand over, and why? Share your rule in the comments.

Sources

Comments

Popular posts from this blog

Fake Delivery Text Scam: How to Spot It Before You Tap

Cross-Platform Streaming Apps: 5 Picks, Phone to TV

How to Play an M3U Playlist in a Browser (No Install)