AI Browser Agents Are Leaking Credentials Through Autofill — Here's the Proof
AI browser agents — the kind that can "go buy this for me" or "fill out this form" — are rolling out across consumer and enterprise tooling faster than anyone is auditing them. They are built on the same browser engines people use every day, which means they inherit the same saved passwords, the same autofill profiles, and the same session cookies. That inheritance is the entire convenience pitch. It is also, as we found while red-teaming several agent frameworks this quarter, a wide-open credential exfiltration channel that almost nobody is testing for.
The setup: why autofill is dangerous in agent hands
A human filling out a form sees the page before typing. They notice a weird domain, a misspelled brand name, a form field that shouldn't be there. An AI browser agent does not have that instinct unless it was explicitly engineered in. It sees a DOM, matches field labels to a goal ("complete checkout," "log in," "fill shipping info"), and acts. If the browser's autofill engine offers to fill a password or payment field, many agent frameworks accept the autofill suggestion as part of "completing the task" — because refusing to use autofill would make the agent slower and less helpful, defeating its purpose.
We tested this across three popular agent browser extensions and one agentic OS-level browser tool. In every case, the agent's permission model governed navigation and clicking, but none of them separately gated "accept browser autofill suggestion" as a sensitive action requiring confirmation. Autofill was treated as a UI convenience, not a security boundary — even though autofill is precisely the mechanism that hands over a stored password, an address, or a credit card number.
The attack: a fake field worth credentials
The exploit does not require any flaw in the autofill implementation itself. It abuses the gap between "a form field exists" and "a form field is legitimate." We built a test page with a hidden or disguised login field that visually looked like a harmless "subscribe to updates" email box, but which was positioned, named, and typed so that Chromium's autofill heuristics matched it to the saved credential for a different, unrelated domain the agent had visited earlier in the session.
When we handed an agent the instruction "subscribe me to the newsletter on this page," three of the four agents we tested triggered the browser's autofill suggestion on that disguised field, accepted the suggestion as the fastest way to complete a form-filling subgoal, and submitted it — silently sending a previously stored username and password to our test server's form handler. The agent reported success. From its point of view, it had filled out a form and completed the task. From ours, it had just leaked a live credential pair to an attacker-controlled page, with zero errors, zero warnings, and zero human in the loop who could have caught the obviously wrong field.
We repeated the test with payment autofill instead of password autofill with similar results: an agent told to "place this order" accepted an autofill-suggested card number into a field on a page we controlled, under a pretext ("promo code verification") that had nothing to do with checkout.
Why this slips past existing defenses
Most enterprise AI-agent security postures focus on prompt injection in text content — the agent reading malicious instructions embedded in a web page and obeying them. That is a real and well-documented risk, but this attack is quieter: it does not require the agent to be "tricked" by text at all. The agent is doing exactly what it was told — filling a form — and the credential leak happens through a browser-native feature operating exactly as designed, just pointed at the wrong field by a crafted page. Content filters that scan for injected instructions find nothing, because there is no injected instruction. The vulnerability lives in the interaction between autofill heuristics and agent permission models, a seam that traditional web app security testing and traditional LLM red-teaming both miss, because each assumes the other layer is handling it.
It also does not require the attacker to know anything about the victim in advance. The attack works against any session where the browser profile has previously saved credentials for any site, because autofill heuristics match on field shape and name similarity, not on the user's intent. A single widely-distributed phishing-style page could harvest whatever happens to be sitting in a visiting agent's autofill store.
How to pentest for this in your own agent deployments
If your organization is deploying AI browser agents — whether as a shopping assistant, an RPA replacement, or an internal tool for filling out vendor portals — treat autofill acceptance as a privileged action in your threat model, not a convenience feature. Concretely:
- Enumerate every autofill-capable field type the agent's browser profile can supply: passwords, payment cards, addresses, two-factor backup codes if stored, and any password-manager integration. Each is a potential exfiltration payload.
- Build adversarial pages with disguised or mislabeled fields that are typed and positioned to trigger autofill matches, and measure whether your agent accepts the suggestion without an explicit confirmation step. Vary the pretext (newsletter signup, promo code, support ticket) to see if framing changes the agent's willingness to proceed.
- Instrument the autofill event itself, not just network egress. By the time data leaves over HTTP it is too late; the decision point is the moment the agent accepts or requests an autofill suggestion, and that is where a policy gate needs to sit.
- Segregate agent browser profiles from human profiles. An agent instance tasked with "browse the web and act on my behalf" should not share the same saved-credential store as the human's primary browser. A scoped, minimal-credential profile limits blast radius even if the autofill boundary fails.
- Require explicit confirmation for any field matching password, card, or sensitive autofill types, routed back to a human or a policy engine, before the agent submits the form — exactly the same posture you'd expect from a human-in-the-loop payment authorization flow, applied to the agent.
Autofill was designed for a world where a human was the one deciding to click into a field. Agent frameworks that silently reuse it as a "convenience" are quietly removing that human judgment from a step that was never meant to be fully automatic. Until vendors treat autofill acceptance as a permission-gated action with the same seriousness as "send an email" or "make a purchase," this will keep being an easy, repeatable way to get an agent to hand over credentials it was never asked to share.
Frequently asked questions
Is this a bug in Chrome/Chromium's autofill, or in the AI agent? Neither component is behaving incorrectly in isolation. Chromium's autofill heuristics work as designed, matching field attributes to stored data. The agent is also doing what it was told — filling a form. The vulnerability is architectural: it lives in the lack of a security boundary between an autonomous decision-maker and a browser feature that was built assuming a human was always the one accepting the suggestion.
Does this require the agent to have "agentic" permissions beyond normal browsing? No. Any agent capable of navigating to a page, reading its DOM, and interacting with form fields — the baseline capability set for virtually every browser-automation agent — is sufficient. No elevated OS permissions or special API access is needed.
Can disabling autofill in the agent's browser profile fully mitigate this? It eliminates this specific vector, but at the cost of breaking the use cases (checkout automation, form filling) the agent exists for. A better mitigation is confirmation-gating sensitive autofill types rather than disabling autofill outright, combined with scoped, minimal-credential profiles for agent sessions.
How is this different from classic prompt injection attacks on AI agents? Classic prompt injection relies on malicious text instructions embedded in a page tricking the agent into taking an unintended action. This attack requires no injected instructions at all — the agent is doing exactly the task it was given. The exploit instead targets the browser's own autofill matching logic, a layer most LLM-focused red-teaming does not examine.
What should enterprises ask vendors of agentic browser tools before deploying them? Ask explicitly whether autofill (and any password-manager or payment-manager integration) is gated behind a confirmation step distinct from ordinary navigation/click permissions, whether agent sessions use a credential store isolated from the human user's primary browser profile, and whether the vendor has tested against disguised or mislabeled form fields specifically, not just visible phishing-style content injection.