Security and access

When a web page tells your agent what to do

Anything an agent reads can carry instructions. Narrow permissions limit what those instructions can do.

By the duyan team · Updated · 3 min read

Security and access

In short

  • Text an agent reads can carry instructions, and the agent may follow them.
  • This is called prompt injection, and OWASP ranks it first among risks for AI apps.
  • No model or filter stops it every time.
  • Limit what an agent can do after it reads outside text.
  • Make sending, paying and deleting wait for a person.

What prompt injection is

Prompt injection means outside text steering what an agent does. The agent may follow that text as if you had asked.

The text can sit in a web page, an email or a PDF. People may not see it at all, such as white text on a white page.

How it works in practice

A language model sees your instructions and the material it works on as one block of text. The UK’s National Cyber Security Centre (NCSC) says nothing in the model keeps the two apart.

Say an agent summarises supplier emails for you. One email contains a line telling it to send the last 10 invoices to a new address.

A careful model will usually ignore that line. If it doesn’t, the outcome depends on what the agent is allowed to do.

How common it is, and whether it can be fixed

OWASP puts prompt injection first in its 2025 list of risks for apps built on language models. It says it is unclear whether any method prevents it every time.

The NCSC went further in December 2025. It said prompt injection may never be fully stopped, unlike an older web attack called SQL injection.

Models are improving. In browser tests Anthropic published in November 2025, Claude Opus 4.5 with safeguards was fooled by 1.4% of attacks.

Anthropic still called that rate a meaningful risk.

What it means for you

You can’t check every page or email an agent reads. You can limit what the agent can do after reading it.

An agent with no permission to send email can’t send your invoices anywhere, whatever a message says.

The NCSC points to a similar rule. Once a model reads someone’s text, it should hold only that person’s rights.

So keep agents that read outside text away from sending, paying and deleting. Where they must do those things, a person approves each one.

Common mix⁠-⁠ups

  • Jailbreaks. A jailbreak is a user trying to talk a model past its rules. OWASP counts it as one kind of prompt injection. For an owner, the useful question is who wrote the text.
  • “Our instructions tell it to ignore that.” Telling the model to disregard orders in documents helps. OWASP lists it as one defence among several, with no guarantee.
  • Web pages only. Any outside text counts, including emails, files, calendar invites and the descriptions that connected tools send. The MCP standard says tool descriptions should be treated as untrusted unless the server is trusted.

What to ask or check

  • What does the agent read that someone outside your business wrote?
  • What can it do straight after reading it?
  • Can it send data out, such as by email or by loading a web link? OWASP describes an attack that leaks a conversation through an image link.
  • Which actions wait for a person’s approval?
  • Who looks at the record of what the agent did?

Want someone to check yours?

We review software, automations and agents that you or someone else built, and list what we’d fix first. About a week, $1,200 fixed, and you keep the written findings either way.

Sources

  1. OWASP Gen AI Security Project, “LLM01:2025 Prompt Injection”, genai.owasp.org (accessed 5 November 2026)
  2. National Cyber Security Centre (UK), “Prompt injection is not SQL injection (it may be worse)” (8 December 2025), ncsc.gov.uk (accessed 5 November 2026)
  3. Anthropic, “Mitigating prompt injections in browser use” (24 November 2025), anthropic.com (accessed 5 November 2026)
  4. OWASP Gen AI Security Project, “LLM06:2025 Excessive Agency”, genai.owasp.org (accessed 5 November 2026)
  5. Model Context Protocol, “Specification” (version 2026-07-28), Security and Trust & Safety, modelcontextprotocol.io (accessed 5 November 2026)

Bring your hardest question

Ask us about keys, access, where your data goes or who can switch it off.

Read⁠-⁠only by default. Your keys stay yours.