Skip to content

Advisory4 min read

Hidden instructions on web pages: how browser agents get hijacked

Attackers hide instructions in images, meeting invites and even puzzle games, and browser agents follow them. Four real attacks from the past year, why the fixes keep falling short, and what to change this week.

Sameer

Founding Engineer

Woman in an office looking closely at her laptop screen

In June, LayerX got six AI browsers to hand over login credentials by turning the attack into a puzzle game. The page rewarded wrong answers, such as insisting that 2 + 2 = 5, until the agent was playing by the game's rules instead of its own. The last step of the puzzle asked for the user's credentials, and according to The Hacker News' report, none of the six agents flagged it. In the test, the agent went to the victim's work GitHub repository and passed on the SSH credentials stored there.

LayerX called it BioShocking. It is one of a run of attacks over the past year that share a method: put instructions somewhere the agent will read them and the person using it will not.

Where the instructions hide

In an image. Brave's researchers hid text in a screenshot as faint light blue on a yellow background, effectively invisible to a person. When a user asked Perplexity Comet a question about the screenshot, the text was extracted and passed to the model as if it were part of the request.

In plain sight. In the same research, Brave found that the Fellou browser treated visible page content as trusted. The user only had to ask the assistant to open the attacker's page. No summary request was needed for the page text to change what the agent did.

In a meeting invite. Zenity Labs built a calendar invite that it describes as "indistinguishable from a real meeting request." The user asked the agent to accept it. Instructions inside the invite sent the agent to an attacker's site for a second set of instructions.

In a game. BioShocking's instructions were dressed up as content and game rules, which is harder to filter than a line that says "ignore previous instructions."

Brave's explanation of the root cause covers all four: "a failure to maintain clear boundaries between trusted user input and untrusted Web content" when the browser builds the prompt for the model. Whatever the agent reads goes into the same channel as what you asked it to do.

Open laptop with a blank white screen next to a cup of coffee

What the agent did with them

The Zenity chain shows how far one hidden instruction can go. After the invite redirected Comet, the agent opened files on the local machine and sent them to the attacker "as an ordinary page load." It then used the unlocked 1Password extension in the same browser, which Zenity says led to taking over the whole vault and locking the user out. No clicks were needed beyond the original request to accept the invite, and from the user's side the task "appears to complete normally."

Someone who asked an agent to accept a meeting, and saw the meeting accepted, has no reason to look further. Nothing on screen gave the attack away.

Why the fixes keep falling short

Vendors have patched each route as it was reported, and researchers keep finding the next one. Perplexity put a hard boundary around file system access after Zenity's report. Zenity got around it with view-source:file:// addresses, then again by adding #.pdf or #.html to the address. Google and Microsoft blocked agents from opening localhost pages, and Zenity says those blocks were "quickly bypassed" too.

BioShocking's results were mixed in the same way. LayerX reported it to the vendors between October 2025 and January 2026. OpenAI fixed it in ChatGPT Atlas. Anthropic tried to patch the Claude extension, but in LayerX's words "the fix did not hold." Perplexity closed the report without acting on it, and Fellou, Genspark and Sigma did not respond.

Zenity's summary: "as long as the agent follows untrusted instructions, there is almost always another way to the same destination."

What to do this week

  1. Give the agent its own browser profile. Anthropic's guidance for Claude in Chrome is a profile without access to banking, healthcare or government accounts. If the agent cannot reach an account, a hidden instruction cannot reach it either.
  2. Keep it away from inbound content while it is logged in. Calendar invites, email from strangers, shared documents and comment sections are all text someone else wrote. Read those yourself, or let the agent work on them in a profile that is signed in to nothing important.
  3. Use logged-out mode for research. OpenAI advises using logged-out mode in Atlas when a task does not need you to sign in, such as researching a trip.
  4. Lock the password manager while an agent works. The 1Password step in the Zenity chain only worked because the extension was unlocked in the same browser.
  5. Learn the warning signs. Anthropic tells users to stop a task straight away if Claude starts talking about something unrelated, visits sites you did not expect, or asks for sensitive information.

What a test should check

When KalkiShield tests an AI browser deployment, we plant instructions in the places your agent actually reads: invites, emails, shared files and pages on sites your team uses, not only on a test page. The question is what the agent can reach from there, and whether anyone would notice. For the threat model behind this, see our earlier piece on browser agents working inside your logged-in session.

Questions we get asked

What is a hidden prompt injection on a web page?
It is an instruction for an AI agent placed where the agent will read it and the person will not, such as faint text in an image, a calendar invite or the rules of a game on a page. The agent treats it as part of its task.
Can a calendar invite hijack an AI browser?
Zenity Labs showed it with Perplexity Comet. A user asked the agent to accept an invite, and hidden instructions sent it on to read local files and reach the user's 1Password vault. Perplexity added a boundary around file access, which Zenity then bypassed twice.
Which AI browsers were affected by BioShocking?
LayerX tested ChatGPT Atlas, Perplexity Comet, the Claude browser extension, Fellou, Genspark and Sigma, and all six exposed credentials. OpenAI fixed it. LayerX says Anthropic's fix did not hold and Perplexity closed the report without acting.
How do I protect my team from hidden instructions?
Run the agent in a separate profile without banking or admin logins, keep it away from email and invites from strangers while it is logged in, and lock your password manager while it works.
  • hidden webpage instructions
  • indirect prompt injection
  • AI browser hijacking
  • PleaseFix
  • BioShocking