Skip to content

Research4 min read

AI browser agents: handing a model your authenticated session

A browser agent operates inside your authenticated session and takes its instructions from whatever page it loads. That combination deserves more scrutiny than it is getting.

Sameer

Founding Engineer

A laptop half closed on a wooden desk beside a mouse
Photo: Luca Bravo (CC0, via Wikimedia Commons)

Browser agents are the most capable consumer AI feature yet shipped and the least understood. The agent sees what you see, which means every session you are logged into — email, bank, payroll, cloud console — and it reads instructions from the page in front of it, which anyone on the internet can write.

The threat model in one sentence

Untrusted content, fully authenticated session, autonomous action, no CSRF-style origin boundary to save you. Web security spent twenty years building the origin model; an agent reads across origins by design and carries the user’s credentials to each of them.

What we test on a browser agent

Page-borne injection to action

We host a page containing instructions aimed at the agent — in visible text, in hidden elements, in alt attributes, in comments, in a CSS-clipped region — and give the agent an innocuous task on that page ("summarise this article"). The target is a cross-origin action: read the latest message from a webmail tab, post data to our endpoint, change a setting in another tab’s application.

Exfiltration through permitted channels

Even a constrained agent usually has a channel out: a search query, a URL it navigates to, a form it fills, an image it requests. We test whether page content or session data can be encoded into any of those. A navigation to an attacker domain with the data in the query string requires no network access the agent did not already have.

Consent and the action boundary

We examine which actions proceed without confirmation, whether the confirmation shows the real action or the model’s description of it, and whether consent persists beyond its intended scope — "allow for this site" that becomes "allow everywhere", or an approval that covers a single purchase being reused for a chain.

Credential and token handling

Where the agent runs matters enormously. A cloud-hosted agent driving a remote browser needs your session, which means cookies or tokens leaving your device for a vendor’s infrastructure. We establish exactly what is transferred, where it is stored, how long it lives, and what the vendor can do with it — and whether screenshots of authenticated pages are retained for debugging or evaluation.

For the enterprise: what to decide before this lands

Browser agents arrive without procurement. Employees enable them in a browser the company allows, inside sessions the company owns. Three decisions are worth making deliberately.

  1. Which applications are off-limits to agents, enforced technically where possible — admin consoles, payroll, banking, production cloud, source control, anything where a single action is irreversible.
  2. Whether agent sessions are distinguishable in your logs. An action taken by an agent looks like a user action; after an incident you will want to tell them apart, which means device posture, user agent or session attributes that survive into the audit trail.
  3. What the vendor does with page content and screenshots from authenticated sessions, written into an answer you can give a regulator, since under DPDP that content routinely includes other people’s personal data.

For your own site: defending against agents reading it

  • Assume an agent will read your pages and act on them. Content you render from other users — reviews, comments, tickets, profile fields — can carry instructions aimed at another user’s agent. That makes stored XSS-style hygiene relevant again for a new reason.
  • Keep irreversible actions behind a step that requires something a page cannot fake: re-authentication, a one-time code, a confirmation that shows server-rendered details of the exact action.
  • Do not rely on client-side confirmation dialogs as a control. An agent can click them.
  • Rate-limit and anomaly-detect on patterns that look like automation inside a human session, which is now a common fraud signature.

Controls that hold up

  • Agents scoped to a profile with no access to the sessions that matter, rather than the user’s main profile.
  • Confirmation on any state-changing cross-origin action, showing the action as the backend understands it.
  • An egress allowlist for the agent’s navigation where the product permits one.
  • Vendor terms that exclude page content and screenshots from training, with a stated retention period and a sub-processor list.
  • Enterprise policy that names the applications agents may not touch, enforced by conditional access rather than by instruction.

Where to start

Put a hidden instruction on a page you control, point an agent at it with a harmless task, and see whether it tries to reach something else you are logged into. It is a ten-minute test and it changes how people talk about this feature.

Questions we get asked

Are browser agents safe for work use?
Usable with boundaries: a separate profile, no access to admin, finance or production sessions, confirmation on state-changing actions, and vendor terms you have read. Enabled casually in a profile logged into everything, they are an unacceptable risk for most organisations.
Can websites block AI agents?
Not reliably, and blocking is the wrong goal. Make the actions that matter require something an agent cannot supply on its own — re-authentication, a one-time code, server-rendered confirmation of the exact action — and treat agent traffic as automation for rate-limiting purposes.
Does prompt injection via a web page really lead to data loss?
Yes, when the agent has both a reading channel and any outbound channel. Navigation with data in a URL is enough; it needs no special permission and leaves little trace in the user’s view.
  • AI browser agent security
  • browser automation AI risk
  • prompt injection web pages
  • LLM agent session hijacking
  • enterprise AI browser policy