DEV Community

Super Protocol Dev for Super Protocol

Posted on Originally published at superprotocol.com

Google built a mirror web to test browsing agents. Production still needs one more layer.

On November 19, Chrome AI security engineers Aaron Selya and Charles Qian described a "mirror dimension" for testing browsing agents against prompt injection. It's one of the better pieces of agent-security engineering published this year.

What Google built

Chrome's auto browse agent acts on the user's behalf. Testing it on the live web is unreliable (pages change between runs) and risky (a test agent with real access can do real damage). So:

  • headless Chrome runs in an isolated gVisor sandbox;
  • a local proxy serves thousands of generated sites under their real addresses, with certificates from a root that exists only inside the sandbox;
  • research, builder and critic agents generate the sites, including hundreds of stateful interactive pages;
  • injection payloads go into pages, images, labels and tool responses without changing the visible address;
  • every run starts clean.

Result: more than 1,000 test candidates per security engineer per day, over 30× manual testing. Google notes open problems: the simulation needs more realism, since an agent that suspects it's being tested may behave differently, and extending it to coding agents isn't shown yet.

What a mirror can't tell you

A mirror answers one question well: did this build of the agent resist these attacks? Once the agent ships, four more questions come up.

  1. Is the production agent the one that was tested? Change the model, prompt, tools or policies and the result no longer applies.
  2. Who can read the agent's data? The sandbox protects the world from the agent. It doesn't protect the agent's data from whoever runs the hardware.
  3. Can anyone outside the company check the test? A buyer usually gets a sentence like "tested against prompt injection."
  4. Where do your own tests run? A realistic mirror of internal systems means copies of sensitive data and working credentials in a test environment, which is exactly where leaks tend to happen.

The missing layer

Run the agent in a TEE and each question gets a mechanical answer:

  • Tested build = running build: the measurement of image, configuration and policies has to match the test report.
  • The operator can't read the session: data is decrypted only in sealed memory; cloud, GPU provider and vendor staff see ciphertext.
  • Buyers verify the test themselves: the evaluation runs in an attested environment.
  • Walls are provable: network policy is part of the measured configuration, for the hermetic test and in production.
  • Keys stay out of reach: credentials sit in a gatekeeper and go only to the verified build, so an injected instruction has nothing to steal from the agent.

A concrete case: a vendor tests a claims-handling agent in an attested mirror of an insurer's systems, and the report names the build by its measurement. The insurer runs it in its own cloud, where policy checks that measurement and the network rules before any claim is processed. The vendor ships an update, the measurement changes, the keys stay locked, and the insurer asks for a new test report before approving.

Limits

Hardware evidence proves which agent is running, not how well it resists attacks; you still need the testing. Eval awareness stays an open problem. And a verified agent with valid permissions can still do the wrong thing within them, so action limits and human review of consequential actions stay.

Questions for a vendor that says its agent was tested

  1. Which exact build was tested, and how do I confirm it's the one I'm running?
  2. Can I verify the results myself?
  3. Who at your company or cloud provider can read what the agent sees in my deployment?
  4. What happens to my deployment when you change the model, prompt or tools?
  5. If I build my own test environment, what data and credentials go into it, and who can reach them?

Full write-up by our CEO Nukri Basharuli: superprotocol.com/resources/blog/google-mirror-dimension-agents

How do you tie an agent's test results to the build you actually deploy?

Top comments (0)