Google built a fake internet to test Chrome agents

Google built a fake internet to test Chrome agents

Google's Chrome security team has published details of an internal test environment called Mirror Dimension. It is a synthetic network walled off from the real internet, containing thousands of simulated websites, and it exists to check whether the AI agents inside Chrome can be steered off course by malicious web pages. The write-up is credited to Aaron Selya and Charles Qian, two software engineers on Chrome AI Security.

“To validate and strengthen those protections, Chrome created a ‘mirror dimension’, a synthetic version of the web to test agents safely.”

Real sites can't be tested, and fake pages don't fool anyone

According to Google, evaluating an agent that can operate a browser means running thousands of read and write actions across hundreds of websites. On the live internet, an agent could trigger real-world actions nobody intended, and real sites change daily, so the same test run today and next week produces results that cannot be compared.

Swapping in a handful of crude test pages doesn't work either. Google calls the problem eval awareness: when a model suspects it is being tested, it behaves differently from usual. The simulated sites therefore have to be isolated from the outside web and still convincing enough to pass as real.

Requests are caught locally

The agent runs in headless Chrome inside a gVisor sandbox and still visits real URLs. Its network requests are redirected to a local intercepting proxy, which returns the simulated pages Google generated. The proxy issues TLS leaf certificates on the fly, chained to a custom root CA preinstalled in the sandboxed Chrome. Google stresses that on real users' devices an outside attacker cannot install such a root certificate without administrator rights, while the sandbox is entirely under Google's control. Every test can restart from a clean initial state.

The simulated sites are themselves built by agents, split into three roles:

  • A research agent defines the requirements, such as product filters, a shopping cart and a checkout flow;
  • A build agent writes the HTML, CSS and JavaScript;
  • A review agent checks the finished site against ARIA semantics, form validation, JavaScript console errors and responsive layout.

The sites cover shopping, social media and banking. The sandbox has to sustain hundreds of interactive, stateful pages.

Payloads hidden in HTTP headers

The environment is aimed mainly at indirect prompt injection, where an attacker hides instructions in web content or in tool results so that an agent, after reading them, drifts away from the task the user gave it. Google can plant test payloads in the visual layout, the DOM, accessibility labels and WebMCP tool responses, then watch how the agent reacts.

Early on, the team used URL parameters to specify which payload to inject. The model noticed the odd parameters in the address bar and grew suspicious. The team switched to passing them through HTTP headers, so the visible URL stays untouched.

1,000 candidate tests per person per day

Google offered some efficiency figures. A security engineer designing and validating attacks by hand can finish a few dozen a day, with the bottleneck in checking and polishing each one. Once connected to an automated red-team pipeline, each security engineer steadily produces more than 1,000 candidate tests a day. Google says that is over 30 times the manual rate, equivalent to more than a month of manual testing completed every day.

A quick check: 1,000 divided by 30 puts the manual baseline at about 33 a day, consistent with “a few dozen”; and at 22 working days a month, manual output comes to roughly 700, so “more than a month” also holds up.

The caveat is what is being counted. The 1,000-plus are “candidates”, and Google has not disclosed how many were confirmed as valid attacks, or what share of these tests Chrome's agent failed. The article is about testing throughput; the effectiveness of the defenses cannot be verified from it.

What's next

Google listed three plans: making the simulated environment more realistic, extending the architecture to coding agents that have more tool capabilities, and bringing it to more teams inside the company. The article does not say whether Mirror Dimension will be opened to outside researchers or other browser makers.

Sources: Google Security Blog, Landian, CocoLoop; the Google Security Blog was used to check the scale of the simulated sites, the sandbox and proxy architecture, the number of candidate tests per person per day, and the 30x figure.