Prompt Injection Risks in AI Browsers
Understand how hidden instructions in web content can mislead browser assistants, and how to limit the damage.
Key takeaways
- Language models can't reliably separate your instructions from instructions hidden in the content they read.
- The danger grows with the assistant's reach: access to signed-in accounts and the ability to act matter most.
- Warning signs include unrelated requests, unexpected navigation and answers that push you to click or share something.
- Limit access, require approval for consequential steps, and keep sensitive accounts out of agent sessions.
Prompt injection happens when text that an AI system reads, such as part of a web page, an email or a document, is treated as an instruction to follow. In an AI browser, that can mean a page nudges the assistant to ignore what you asked, reveal information, or take an action you never intended.
You can't fully eliminate the risk by being careful, because the weakness lies in how current language models work. You can, however, sharply reduce what an attacker would gain if it happens.
Why this happens
A conventional program keeps instructions and data in separate lanes. A web page's text can't tell your calculator to send an email. A language model, by contrast, receives one long stream of words: the product's rules, your request and the page you asked about. It's trained to respond helpfully to instructions wherever they appear.
Developers add rules telling the model to treat page content as information only, and many products add filters that look for suspicious requests. These help, but none is known to be reliable in every case. Prompt injection explained covers the general problem beyond browsers.
Direct and indirect injection
Direct injection is when a user types instructions to push a system past its rules. Indirect injection is when the instructions arrive in content the system reads on someone's behalf. The second is the main concern for browsers, because you may never see the text.
Instructions can sit in places you wouldn't notice: very small or same-colored text, comments in the page code, image descriptions, a user review, a shared document or an email in your inbox. A trustworthy site can carry hostile content if it lets other people post to it. The details of how to craft such text aren't needed to defend yourself, and this article doesn't go into them.
How it differs from older web attacks
Classic web attacks usually exploit a bug: a site fails to check input, or a browser mishandles memory. The fix is a patch. Prompt injection exploits a system doing something close to what it was built to do, which is reading text and acting on what it says. There may be no single faulty line of code to correct.
It also resembles social engineering more than hacking. A phishing email tries to persuade a person; an injected instruction tries to persuade a model. The model has no instinct for suspicion, and it processes pages far faster than you can watch.
That comparison suggests the right defense. You wouldn't give a new temporary assistant your bank login and let them act on whatever a stranger's note said. Treat the browser assistant the same way: limited access, clear tasks and a check before anything consequential.
What's at stake
The harm depends on what the assistant can do.
A useful way to think about it: trouble becomes serious when three things coincide. The assistant reads content from untrusted sources, it can access private information, and it can send information out or take actions. Removing any one of those greatly reduces the possible damage.
Traditional browser protections, such as the rule that keeps one site's scripts from reading another site's data, don't automatically cover an assistant that reads across tabs and acts as you. Designers have to add equivalent limits deliberately, and how well they do varies.
What it can look like
Most attempts won't announce themselves. Be alert to these:
- the summary suddenly mentions your account, a payment or a login
- the assistant recommends visiting an unfamiliar link
- it asks for a password, code or personal detail to "continue"
- during a task, it navigates somewhere unrelated to your goal
- its reply contradicts what you can see on the page
- it tries to open mail, files or settings you didn't mention
- it announces an urgent security problem found "on the page"
Any of these is a reason to stop the task, close the session and check the affected accounts. A hostile page isn't the only explanation, since models make ordinary mistakes too, but you don't need to know which it was before stopping.
A hypothetical scenario
Say you ask your assistant to collect return policies from several unfamiliar shops while you stay signed in to your email in the same profile. One shop's page contains text meant for software, not shoppers.
In the worst design, the assistant follows it and goes looking in your inbox. In a better one, it can read shop pages but has no route to your mail, or it stops and asks before opening anything outside the shopping task. In the first case you depend entirely on the model resisting. In the second, the structure protects you even if the model is fooled.
You control part of that structure. Running the research in a profile with no mail signed in removes the target, whatever the page says.
How to reduce the risk
Narrow what the assistant can reach
Use a separate profile for agent work, signed in to as few accounts as possible. Keep banking, primary email, password manager and work systems out of it. A separate profile, as described in keeping profiles apart, is one of the most effective steps available to ordinary users.
Require your approval
Choose settings that pause before sending messages, purchasing, submitting forms, downloading or changing settings. Read the confirmation carefully: the recipient, the amount, the address. Approving without reading defeats the purpose.
Limit the task and the sources
Tell the assistant which sites to use. Prefer official sources over open forums and unknown pages when the assistant has any power to act. Summaries of untrusted pages are lower risk if the assistant can do nothing but answer.
Turn off what you don't use
If you never want the assistant to act, disable agent features. Disable automatic reading of pages if you can. What assistants can see helps you find the switches.
Keep the usual protections
Update the browser, because vendors ship defenses over time. Use two-factor authentication on important accounts. Check sent folders and order histories after unattended tasks.
If you suspect it happened
- Stop the task and close the assistant session.
- Look through sent mail, recent orders, account settings, forwarding rules and connected apps.
- Change passwords for any account the assistant could reach, from a normal browser session.
- Sign out other sessions in those accounts.
- Contact your bank or card issuer about unfamiliar charges.
- Report the page to the browser or assistant provider using their feedback tool, with the address and time.
Don't paste the suspicious page text into another assistant to analyze it, since that exposes the second system to the same content.
For people who run websites
If your site accepts posts, reviews or uploads, remember that visitors' assistants may read them. Moderate content, strip hidden text where possible and be wary of any AI feature on your own site that reads user content while holding access to private data. Builders should treat model output as untrusted, check permissions in ordinary code rather than in the prompt, and keep a person in the loop for sensitive actions.
Questions to ask about a product
Before trusting an assistant with more than summaries, look for answers in its documentation:
- Which actions require your confirmation, and can you require it for more?
- Can you restrict the sites the assistant may visit or act on?
- Does it keep signed-in and untrusted content separate?
- Is there a log of what it read and did?
- Can you stop a task instantly, and can you review stored data afterward?
- How does the maker accept and respond to security reports?
Vague answers aren't proof of a weak product, but they're a reason to grant less. Defaults change with updates, so check again when a release adds new abilities.
Why better models alone may not solve it
Training can make a model more resistant, and layered filtering catches many attempts. Since attackers can rephrase endlessly, researchers generally don't treat these as guarantees. Architectural limits, such as restricting which actions are possible after untrusted content has been read, are more dependable, because they don't rely on the model noticing the trick.
That's also a fair test for a product: ask what happens if the model is fooled. A good design limits the consequences regardless.
Common questions
Can antivirus software catch it?
Not reliably. The payload is ordinary text, not a program. Security tools may block known malicious sites, which helps but isn't a defense against the technique itself.
Is it safe if I only ask for summaries?
Safer. The main risk becomes a misleading answer or a suggested link. Treat links and requests in answers with the same caution as in any email, and see checking AI output.
Will this be fixed?
It's an active area of research. Expect improvements, but plan as though an assistant could be misled, and keep its access small.