← Home

Google Mirrors the Entire Web in a Sandbox to Test AI Agents Against Prompt Injection

Google announced this week Mirror Dimension, a synthetic testing environment that mirrors the entire internet — not a single page, but thousands of simulated sites that imitate social media platforms, online stores, banking dashboards, and everyday services. The goal is explicit: let Chrome engineers launch real attacks against auto browse, the browser's autonomous navigation agent, without risking real accounts or live transactions.

What sets Mirror Dimension apart from any previous sandbox is scale and fidelity. Instead of hosting synthetic sites on a fake domain like fake-sandbox-sites.web.app, the system keeps the original addresses intact. When the agent navigates to youtube.com, it really is youtube.com — but underneath, a request from an isolated gVisor sandbox intercepts the connection and routes it to a local proxy serving an on-demand replica. The proxy dynamically issues TLS certificates chaining to a custom certificate authority installed exclusively inside the sandbox. The agent sees normal HTTPS, a legitimate URL, and an absolutely convincing environment.

The question that has always haunted browsing agents is eval awareness. If a model suspects it is being tested, it may behave differently than it would on the open web, rendering evaluation results meaningless. Google found that visible URL parameters such as ?prompt_inject_payload=abcd1234 were too conspicuous: models became alert and changed their behavior. The solution was to move payload identification into HTTP headers invisible to the agent, such as X-Sandbox-Injection-Key. The proxy intercepts the header and injects the payload into the page content while keeping the visible URL and HTML spotless.

The real innovation, however, lies in how these synthetic sites are built. Google does not maintain thousands of pages by hand. Every site in Mirror Dimension is created by a multi-agent development system: a research agent reads the user's prompt and generates specifications (product catalog filtering, persistent shopping cart, coupon validation, multi-step checkout flow); a builder agent writes the HTML, CSS, and JavaScript; and critic agents verify accessibility, form validation, console errors, and responsive layouts. If something breaks, the cycle repeats — the critic sends the issue back, the builder fixes it, the critic verifies again. Sub-agents use Chrome DevTools for Agents to take screenshots, click buttons, fill fields, and navigate the generated pages, exercising real workflows rather than analyzing source code alone.

The result is a red-teaming pipeline that produces over 1,000 attack candidates per security engineer per day — more than 30 times what an engineer would do manually, or more than a month of testing in a single day. The attacks cover indirect prompt injection hidden in page text, images, ARIA labels, and WebMCP responses. Every execution starts from zero, with no prior state, ensuring one test never contaminates another.

Why does this matter? Indirect prompt injection has already graduated from researcher demo to the primary security blocker for any agent navigating the real web. If a malicious site can hide instructions that force an agent to do something the user never asked for — transfer money, share personal data, cancel subscriptions — trust in the feature evaporates. Mirror Dimension is the first industrial-scale attempt to test this vulnerability systematically.

The question that remains: when Google decides to publish Chrome agent pass rates on Mirror Dimension tests, will we discover that most agents fail against sophisticated injections? Or will the testing architecture prove so convincing that agents genuinely emerge more robust? The playground is built. The scoreboard has not been announced.

Sources: Google Security Blog, Wired, AI Weekly

✓ Independent sources cross-checked and verified before publishing