Browser Agent Security
Opus 5 may curb browser hijacks
AI agents that operate a browser on your behalf face a real risk: getting hijacked by hidden instructions planted on a malicious page. According to Anthropic's Claude Opus 5 system card, the success rate of this "browser-based prompt injection" attack has dropped sharply from Opus 4.8's 31.5%.
Why browser-driving agents
are an easy target
An agent reads more than just your instructions
Browser automation agents like Claude Cowork read web pages, click through them, and fill in forms on a user's behalf. That capability is also the vulnerability: an agent reading a page can't cleanly distinguish the user's own instruction from any other text on that page. An attacker can hide a command like "change this setting" or "send this data elsewhere" in white-on-white text or a hidden element, and the agent may mistake it for a legitimate instruction and act on it. This is known as an indirect prompt injection attack.
In the Opus 4.8 system card (published May 28, 2026), Anthropic disclosed that the browser agent's hijack success rate was 31.5% with no safeguards applied. That means the agent followed a page's hidden instruction nearly one time in three — a remarkably concrete number for a frontier lab to publish about its own model's weaknesses. Using that figure as a baseline, Anthropic measured how much the newly released Claude Opus 5 (July 24, 2026) improved, using the same methodology.
Hijack success rate in browser environments
Measured across 129 Claude Cowork browser test environments
Comparing the models alone, the hijack success rate fell from 31.5% for Opus 4.8 to 3.70% for Opus 5, and with the product-level "Auto Mode" safeguard enabled, it reached 0% across all 129 test environments, according to Anthropic. On Gray Swan's indirect prompt injection benchmark, attacker success within 15 attempts also dropped, from 5.5% for Opus 4.8 to 2.0% for Opus 5, and in general computer-use agent settings beyond the browser, attack success fell from 7.14% to 0.54% with extended thinking enabled and from 6.21% to 0.39% without it. Multiple metrics moving in the same direction is a stronger signal than any single benchmark improving by chance.
Why this number matters right now
Through 2026, browser automation agents like Claude Cowork have started seeing real production use for routine tasks such as expense processing, competitive research, and form filling. Prompt injection used to be discussed mostly as a theoretical risk, but the fact that Anthropic devotes a dedicated research post to defending against prompt injection in browser use reflects how urgently priorities have shifted now that agents routinely touch money, credentials, and internal data on the open web. A disclosure tied to a concrete figure like 31.5% is also becoming one of the few common yardsticks the industry can use to compare how different labs are handling this risk.
One distinction worth keeping in mind: the 0% figure only holds with Auto Mode, a product-level safeguard, turned on, while 3.70% reflects the model's own resistance with no safeguards applied. Both numbers improving suggests Anthropic isn't simply trusting a smarter model to handle everything — it's raising the bar on both the model itself and the layered, product-side defenses around it. A design that doesn't rely on a single line of defense is easier to trust against attack patterns nobody has seen yet.
Engineers: more to work with for the rollout decision
A debate that used to end with a flat "too risky, skip it" now has concrete numbers to weigh: 31.5% → 3.70% (no safeguards) → 0% (Auto Mode). Use it to decide whether to greenlight an internal PoC and where to draw the line on what tasks get delegated to the agent.
PMs: build it into the rollout plan
Rather than a full rollout, this supports a staged plan: require Auto Mode, restrict browsing to an allowlist of sites, and keep a human in the loop for payment or send actions. Don't take "0% hijack rate" at face value — build a step into the plan to re-verify it against your own real-world data.
Everyone: guardrails to keep, regardless
Pages that handle sensitive data or trigger outbound payments still shouldn't be left entirely to the agent, Auto Mode or not, and logging that supports after-the-fact review remains necessary operational practice.
Why this isn't "solved"
The headline says "may curb," not "solved," for a reason. First, these figures come from Anthropic's own test environment; real attackers have financial incentive to keep probing for novel techniques, so a 0% score in-house doesn't guarantee the same result in production. Second, that 0% only holds with Auto Mode turned on — the model alone, with no safeguards, still gets hijacked 3.70% of the time, so custom-built agent stacks that don't use Auto Mode may not benefit from this protection. Third, figures like Gray Swan's 2.0% and the 0.39–0.54% attack success rates in non-browser computer-use settings show that "reduced" is a more accurate word than "eliminated" across several of these metrics.
A recurring lesson from security research is that publishing a defense can also draw attention from attackers. The 31.5% figure itself may have signaled that browser agents are a promising target, and more sophisticated indirect prompt injection techniques are a realistic possibility going forward. Companies deploying these agents should treat this improvement not as a reason to stop worrying, but as grounds for moving to the next stage of rollout with somewhat more confidence than before.
The number reflects "less dangerous than before,"
not "safe."