Tech News

Prompt Injection Explained: How a Web Page Can Trick Your AI Browser (and the Vendor Defences)

Prompt injection explained: how hidden instructions in a web page, email or document can trick your AI browser, and the defences Google, Anthropic and Perplexity ship — checker models, classifiers, site blocks and confirmations.

Share f 𝕏 WA
Illustration for: Prompt Injection Explained: How a Web Page Can Trick Your AI Browser (and the Vendor Defences)

A web page your AI browser reads can tell it to ignore you — and vendors now design defences around that uncomfortable fact.

Key points

  • Prompt injection hides instructions in pages, emails or documents an AI agent reads but you may never see.
  • Google, Anthropic and Perplexity answer with layered defences: checker models, classifiers, site limits and confirmation.
  • No defence is complete — OWASP says there is no fool-proof prevention, so monitoring still matters most.

You asked your assistant to summarise a page, and it did something extra you never requested. That is the fear behind this explainer, the security chapter of our pillar guide to agentic browsing and AI assistants on the web: prompt injection.

A web page can give your assistant orders you never wrote

The instruction comes from the page, not from you.

Prompt injection hides malicious instructions in content an AI tool reads, aiming to make it do something unintended. Google puts it plainly: the instructions might be hidden from you but visible to the agent, inside a website, email or document. Anthropic calls these attacks the biggest risk facing browser-using AI tools. A seemingly innocent to-do list, it warns, might contain invisible text telling the assistant to retrieve bank statements and share them — read by the assistant as a legitimate request from you.

Over-the-shoulder view of a person reading a web page on a laptop, a magnifying glass resting flat on the desk beside it
Illustration (AI-generated)

Direct and indirect injection are not the same attack

One is typed at the model; the other is planted for it to find.

OWASP, which ranks prompt injection first in its LLM Top 10 as LLM01, splits the attack in two. Direct injections happen when a user’s own prompt alters the model’s behaviour. Indirect injections happen when the model accepts input from external sources an attacker can control, such as websites or files. For AI browsers, the indirect kind is dangerous. Google calls it the primary new threat facing all agentic browsers, appearing in malicious sites, iframes, or user reviews. You never typed the order. You opened that page.

The damage is an action, not just a wrong answer

A chatbot can mislead you; a browsing agent can act, signed in as you.

A tricked chatbot gives a bad answer. A tricked browsing agent can move. Google lists what a hidden instruction could tell an agent to do: post private information from your emails or documents publicly, send your emails to an external service without you knowing, or expose insights from your connected apps. Its security team adds the two outcomes it designs against most: financial transactions and exfiltrating sensitive data. OWASP’s list runs the same way — disclosure, unauthorised access, manipulated decision-making. The stakes rise because auto browse reaches the same sites you do, including signed-in sites.

Google answers with a second model that never reads the page

A checker that never sees the poisoned page cannot be poisoned by it.

Google’s Chrome defence is layered. Its centrepiece is the User Alignment Critic: a separate Gemini model that runs after planning and checks each proposed action against your stated goal. If the action does not serve that goal, the critic vetoes it and the planner must reformulate or hand control back to you. Crucially, the critic sees only metadata about the action, never unfiltered web content, so it cannot be poisoned from the web. Around it sit Agent Origin Sets, limiting the agent to task-relevant origins; a classifier checking every page for injection; a work log you can pause, stop or take over; and confirmations before sensitive sites, Password Manager sign-ins, purchases and messages. Google also runs automated red-teaming with malicious test sites. Our walkthrough of how to use Gemini in Chrome and auto browse shows these pauses in use.

Split desk view: a hand pressing a key on a laptop beside a printed checklist and a closed notebook lying flat on the desk
Illustration (AI-generated)

Anthropic answers with classifiers, blocked sites and your approval

One classifier screens content; another checks every action first.

Anthropic describes two safety classifiers for Claude in Chrome. One checks incoming content for injection attempts; another checks every action before it runs, and flagged actions are blocked or paused for your approval. Anthropic also blocks sensitive, high-risk sites and asks permission before financial sites. Its guidance is blunt: avoid sensitive sites, be mindful of what is visible on screen — the assistant screenshots its tabs, and whatever is visible becomes part of the conversation — and consider a separate profile without sensitive accounts. Admins can add an allowlist. Anthropic reports its current configuration reduces attack success rates to less than 0.08% in internal testing, and still reminds you that you remain responsible for actions taken on your behalf.

Comet answers with site blocks and approval for connected services

The strongest Comet control works before any page speaks to the assistant.

Perplexity takes a controls-first route for Comet. In Settings, under Privacy and security, you can allow or prohibit the assistant’s access to your history, navigation and site interaction, and block tasks on specific websites so Comet never uses those pages for actions or context — Perplexity’s example is your bank. Perplexity says browsing data stays on your device by default, Comet sends only minimal context when needed, it always asks approval before using a service such as Gmail, and it never has access to passwords or payment data. You can pause access anytime; Incognito prevents indexing. Our guide to how to use Perplexity Comet step by step shows those settings.

No vendor can promise a complete fix, and OWASP says so plainly

The weakness sits in how models read, not in one vendor’s code.

Here is the honest limit. OWASP states that prompt injection is possible because of the nature of generative AI: models do not cleanly segregate instructions from external data, and it is unclear whether fool-proof prevention exists. Google admits the same — safeguards reduce risk but do not guarantee protection, and monitoring is the most important protection. OWASP’s mitigations will sound familiar, because vendors have built them: constrain the model, filter inputs and outputs, enforce least-privilege access, segregate external content, require human approval for high-risk actions, and test adversarially. Layers, not a cure.

What this means

Your assistant reads the web like a trusting intern — with your keys in its pocket.

It helps to sit with why this feels unsettling, because the feeling points at something real. A web page could always show you things, even try to scam you — but it could not give your own software orders in your own voice. Prompt injection breaks that quiet rule. The page now also talks, in language your assistant cannot reliably separate from yours, to the helper you sent to read it. If you have ever pasted a long document into a chatbot and watched it follow an instruction buried in the middle, you have felt a small, harmless version of this confusion.

In our view, the right response is neither fear nor shrugging. Fear means giving up tools that save time on dull, multi-tab chores. Shrugging means handing them your signed-in life and looking away. The vendors, to their credit, are not shrugging: a second model that never reads the page, classifiers on content and actions, blocked banks, origin limits and confirmation pauses are serious engineering. But notice where every defence ends. It ends with you — your approval, your blocked-sites list, your separate profile, your eyes on the work log.

So treat an AI browser like a capable new colleague in their first week. Give it public, low-stakes jobs first: comparisons, summaries, research you will check anyway. Keep banking, health and regulated pages away from it, as Anthropic advises. Block the sites that matter before you need to, as Perplexity suggests, and read confirmation prompts instead of clicking through them — that pause is the moment the system hands the decision back to a human. The technology will keep improving, but supervised trust is a habit to build now, and it will still be right when the tools feel effortless and the warnings start to feel like background noise you are tempted to ignore.

Bottom line

Final say stays yours.

Prompt injection is a page whispering orders to your assistant, and indirect injection is the version AI browsers must survive. Use each vendor’s defences, start on low-stakes tasks, and never let an agent work unsupervised where money, messages or private documents are within reach.

Frequently Asked Questions

Is prompt injection the same as jailbreaking?

No. OWASP describes the two as related but distinct: prompt injection manipulates a model’s responses through crafted inputs to alter its behaviour, while jailbreaking is a form of prompt injection where the attacker’s inputs make the model disregard its safety protocols entirely.

Can an image hide a prompt injection?

Yes. OWASP warns that multimodal AI, which processes several data types at once, creates unique injection risks, because attackers can hide instructions inside images that accompany otherwise benign text, and those cross-modal attacks can be difficult to detect with current techniques.

Am I responsible if my AI browser follows a hidden instruction?

Yes. Google states that you are responsible for Gemini’s actions during a task, including mistakes and unexpected results such as purchases, and Anthropic likewise states that you remain responsible at all times for all browser actions its assistant performs on your behalf.

Sources

{
“@context”: “https://schema.org”,
“@type”: “FAQPage”,
“mainEntity”: [
{
“@type”: “Question”,
“name”: “Is prompt injection the same as jailbreaking?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “No. OWASP describes the two as related but distinct: prompt injection manipulates a model’s responses through crafted inputs to alter its behaviour, while jailbreaking is a form of prompt injection where the attacker’s inputs make the model disregard its safety protocols entirely.”
}
},
{
“@type”: “Question”,
“name”: “Can an image hide a prompt injection?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Yes. OWASP warns that multimodal AI, which processes several data types at once, creates unique injection risks, because attackers can hide instructions inside images that accompany otherwise benign text, and those cross-modal attacks can be difficult to detect with current techniques.”
}
},
{
“@type”: “Question”,
“name”: “Am I responsible if my AI browser follows a hidden instruction?”,
“acceptedAnswer”: {
“@type”: “Answer”,
“text”: “Yes. Google states that you are responsible for Gemini’s actions during a task, including mistakes and unexpected results such as purchases, and Anthropic likewise states that you remain responsible at all times for all browser actions its assistant performs on your behalf.”
}
}
]
}

Ashbeel Azhar

Founder & Editor — Titans Infos

Ashbeel Azhar is the Founder and Editor of Titans Infos. He leads the site's coverage of artificial intelligence, consumer technology, privacy & security and tech business, and is responsible for its editorial standards, including fact-checking, sourcing and corrections.