Join our Newsletter — 33% off our NHI Course
Home› Guides› Browser and Computer-Use Agent Security Guide
Guide Agent Threats & Attacks

Browser and Computer-Use Agent Security Guide

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 24 November 2026 10 min read
On this page

Browser agents and computer-use agents do not call APIs with their own credentials. They drive a real browser or desktop, clicking, typing and reading the screen like a person. That means they often operate inside a user's signed-in sessions, with the user's cookies, saved passwords and access to every site and app the user can reach. It makes them useful for tasks without APIs, and it creates a distinctive identity problem: to every website, the agent is indistinguishable from the user. This guide explains the identity and security risks of browser and computer-use agents and the controls that reduce them.

Key takeaways

  • Browser and computer-use agents typically inherit the user's sessions, so their effective access is everything the user is signed in to.
  • They read untrusted web content constantly, which makes indirect prompt injection the main threat.
  • Websites cannot distinguish the agent from the user, so attribution and least privilege are hard.
  • Reduce risk with separate browser profiles or environments, site allowlists, confirmation for sensitive actions and no access to credential stores by default.

How these agents work

  • Browser agents control a browser via extensions or automation, reading page content and interacting with forms and links.
  • Computer-use agents take screenshots of a desktop and issue mouse and keyboard actions, working with any application.
  • They may run on the user's own machine and browser, in a separate managed browser, or in a cloud-hosted virtual environment.

The identity problem

SetupEffective accessRisk
Agent in the user's main browser profileEvery site the user is signed in to, saved passwords and autofillHighest: one injected instruction can act across email, banking, admin consoles
Agent in a separate browser profileOnly sites signed in within that profileLower: access limited to deliberate sign-ins
Agent in an isolated cloud environmentOnly what is signed in there, often per taskLowest: ephemeral and contained, but credentials must be provided carefully

In all cases, websites see the user's session. Actions are logged as the user, and the site's own controls cannot apply different rules to the agent.

Threats

  • Indirect prompt injection: hidden text on a web page, in an email or in a document instructs the agent to take actions, such as sending data, changing settings or making purchases (OWASP ASI01).
  • Cross-site actions: content read on one site leads the agent to act on another where the user is signed in.
  • Credential exposure: agents typing passwords, reading password managers or capturing screens containing secrets.
  • Phishing the agent: look-alike sites that the agent does not recognise as fake.
  • Screen capture of sensitive data: screenshots sent to a model provider may contain personal or confidential information.
  • Irreversible actions: purchases, transfers, deletions and messages sent in the user's name.

Worked scenario: an invoice with hidden instructions

A finance analyst asks a browser agent to summarise supplier invoices that arrive in a shared mailbox. One invoice page carries text in white on a white background, telling the assistant to open the payment portal and add a new beneficiary. The agent cannot tell this text from the analyst's own request, because both arrive as content in the same context.

If the agent runs in the analyst's everyday profile, the portal is already signed in. The change is made with the analyst's session, and the portal's audit trail shows the analyst. Nothing in the portal can tell that a person did not choose it.

Now repeat the scenario with layered controls. In a dedicated profile the payment portal is not signed in. If it were, the site allowlist would not include it. If the allowlist were too broad, a confirmation gate on any change to payment details would stop the action and show the analyst what the agent was about to do. If the analyst approved without reading, the portal's step-up authentication would still challenge the session. Each control breaks a different link in the chain, so no single control has to be perfect.

Controls

Isolation

  • Run agents in a dedicated browser profile or isolated environment, not the user's everyday profile.
  • Sign in only to the sites needed for the task, and sign out afterwards.
  • Do not give agents access to password managers or saved credentials by default.

Scope

  • Allowlist sites the agent may visit and act on; block sensitive categories such as banking and admin consoles unless explicitly required.
  • Limit file system and clipboard access for computer-use agents.

Confirmation

  • Require user confirmation for purchases, payments, sending messages, changing account settings, sharing files and submitting forms with personal data.
  • Pause and ask when the agent encounters sign-in pages, CAPTCHAs or permission prompts, rather than proceeding.

Visibility

  • Keep an action log of sites visited and actions taken, with screenshots where appropriate and privacy allows.
  • Let users watch and stop the agent at any time.

Enterprise policy

  • Decide which browser and computer-use agents are approved, and in which configurations.
  • Manage agent extensions through browser management.
  • Prefer API-based agents with their own scoped identity where an API exists. See the Agentic AI Identity Guide.

Implementation steps

  1. Inventory current use. Find which agents and agent extensions are already in use, using browser management reports, extension inventories, proxy logs and endpoint telemetry. Expect to find use that nobody approved.
  2. Classify use cases. Separate read-only research, form filling, and anything that moves money, changes settings or sends messages. The sensitivity of the data and of the actions decides the environment.
  3. Choose an environment per class. Use an isolated cloud environment for the riskiest approved tasks, a separate managed profile for moderate ones, and no agent at all for payments and administrative consoles until the controls are proven.
  4. Build a baseline profile. Disable password manager integration and profile sync, restrict extensions to an approved list, clear sessions on exit and apply the same update policy as the main browser.
  5. Write allowlists per use case. Deny by default, and keep identity providers, finance systems and admin consoles off the list unless a named owner accepts the risk.
  6. Configure and test confirmation gates. Use a test page with benign hidden instructions to check that the agent stops and asks. Repeat the test after every agent or model update.
  7. Send logs somewhere central. Record the agent, the user, the sites and the actions, and agree a retention period that respects privacy rules.
  8. Pilot, review and widen. Start with a small group, read the logs weekly and adjust allowlists before adding users.

Choosing an environment by task

Task typeSuggested environmentMinimum controls
Public web research with no sign-inSeparate managed profile or cloud browserNo saved credentials, site blocklist for sensitive categories, action log
Signed-in work in a single business applicationIsolated cloud environment or dedicated profileTask-specific sign-in, allowlist limited to that application, confirmation for changes
Work that crosses several applicationsIsolated environment with sessions created per taskPer-task credentials, strict allowlist, step-up authentication on the sites involved
Payments, identity provider and administrative consolesNo agent until controls are provenUse an API-based agent with its own scoped identity instead

Review the table whenever a new agent capability appears. A feature that lets the agent act in the background, or on a schedule, moves a task into a higher class because nobody is watching the screen.

Roles and ownership

RoleResponsibility
Security architectureApproves agent products and configurations, and sets the isolation standard
Identity and access managementOwns how agent sessions and any delegated credentials are issued, scoped and revoked
Endpoint and browser managementEnforces profile baselines, extension policy and updates
Business owner of the taskDefines the allowed sites and actions, and accepts residual risk
Privacy and data protectionReviews what screenshots and page content are sent to the model provider
Security operationsMonitors agent activity and runs the response playbook

For website and application owners

  • Expect agent traffic; consider how you will identify and authorise legitimate agents acting for users. Emerging approaches include signed agent requests and delegated agent credentials. See the Agent Identity Standards Tracker.
  • Require step-up authentication for sensitive actions, which also protects against misdirected agents.

Detection and response

Because websites record agent actions as the user, detection has to combine signals from the endpoint, the browser and the sites involved.

  • Unexpected navigation: visits to sites outside the allowlist, or a sequence of unrelated sites in one task.
  • Sensitive changes after external reading: new payees, forwarding rules or permission grants shortly after the agent opened an email or a web page from outside the organisation.
  • Interaction patterns: input and navigation at a speed or regularity that a person would not produce.
  • Configuration drift: new extensions, disabled profile restrictions or password manager access appearing in an agent profile.

When something looks wrong, revoke the sessions in the agent profile first, then rotate any credential that was signed in there, review the action log to establish what was done, and tell the owners of the affected sites so they can review their own audit trails. Practise this as a playbook, because the first time should not be a live incident.

Common failure patterns

  • Approving a product, not a configuration: the same agent is safe in an isolated profile and unsafe in the main one.
  • A temporary pilot in the everyday profile that becomes permanent.
  • Broad allowlists: webmail, file sharing and social sites are the places where injected content arrives, so allowing them freely defeats the list.
  • Confirmation fatigue: prompts for every click teach users to approve without reading. Reserve confirmation for consequential actions and make the prompt say exactly what will happen.
  • Sharing the password manager with the agent to save the user typing.
  • Treating the agent's own consent prompt as the security boundary, when the prompt itself can be influenced by page content.
  • Logs that record only the user, so investigators cannot separate what the person did from what the agent did.
  • Sessions left open after the task finishes.

Metrics

  • Share of agent use running in approved configurations.
  • Number of unapproved agent extensions detected and time taken to remove them.
  • Share of sensitive actions that required confirmation or step-up authentication.
  • Time taken to revoke every session in an agent profile.
  • Share of logged actions that can be attributed to a specific agent, user and task.
  • Open allowlist exceptions and how many have an accepted owner and review date.

Mapping to frameworks

The controls in this guide map to the functions of the NIST Cybersecurity Framework 2.0. Govern covers the policy that approves agents and configurations. Identify covers the inventory of agents, profiles and sites. Protect covers isolation, allowlists, confirmation and step-up authentication. Detect covers action logging and monitoring. Respond covers session revocation and credential rotation.

Against the OWASP lists referenced below, indirect prompt injection corresponds to ASI01 and LLM01, and the damage an agent can do with broad access corresponds to excessive agency (LLM06). Narrowing what the agent can reach and requiring confirmation for consequential actions reduces that exposure whether or not an injection succeeds.

Practitioner checklist

  • Approve browser and computer-use agents and their configurations.
  • Isolate agents from users' main browser profiles and credential stores.
  • Allowlist sites and block sensitive categories by default.
  • Require confirmation for purchases, messages, settings changes and data sharing.
  • Log agent actions and let users stop them.
  • Prefer API-based agents with scoped identities where possible.

Standards and references

Related NHI Mgmt Group resources: Agentic AI Security Guide · How to Prevent Prompt Injection in AI Agents · Agentic Commerce Identity Guide · AI Agent Authorisation Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.