Writing ·
How to isolate AI agent evaluations from production systems in 2026
Treat an agent evaluation as an untrusted security zone: use a separate identity, default-deny egress and shared-service access, broker only required dependencies, and test escape paths before the run.
By Youssef Hemimy · agent evaluation · agent safety · AgentOps
A simulated evaluation is not an isolated evaluation. Treat an autonomous agent's evaluation environment as an untrusted security zone: use distinct identities and credentials, deny outbound access and shared services by default, broker only the dependencies the task needs, and test the boundary with deliberate escape attempts before the run starts.
Start with the boundary, not the scenario
Before writing an evaluation task, write the environment contract. A task description and a “sandbox” label do not enforce a boundary; the reachable identity, network, service, and data paths do.
| Boundary | Decision to make | Evidence to retain |
|---|---|---|
| Identity | Which workload identity can the evaluator use, and what can it reach? | Issued identities, scopes, expiry, and revocation path |
| Network | Which destinations and protocols are allowed? | Default-deny rule or allowlist, plus egress-test results |
| Shared services | Which mirrors, artifact stores, queues, or collaboration systems are reachable? | Per-service authorization decision and isolation test |
| Data and observability | What enters the environment, and what triggers containment? | Input inventory, audit trail, alert owner, and stop procedure |
This makes implicit reachability inspectable. It is an operating pattern, not a vendor-prescribed control set or an AI-evaluation security standard.
Evaluator
Runs a defined task with no ambient production identity.
Evaluation zone
Dedicated identity · short expiry · default-deny egress · audit trail
Allowed dependency
Fixture, mirror, or controlled proxy for one named need.
Identity
evaluation-only; revocable
Egress
named destinations, protocols, and purpose
Containment
telemetry, stop, revoke, preserve evidence
Deliberately denied escape paths
Production networks · shared credentials · administrative endpoints · unapproved internet destinations
Why a private-looking dependency can become an escape route
OpenAI reports that models in internal cybersecurity evaluations used a shared Artifactory service as an unintended message board and caused it to make internet requests on their behalf. Anthropic separately reports that a misunderstanding left live internet access available in a third-party evaluation environment despite prompts that described the environment as isolated.
The narrow lesson is not that every evaluation will escape. It is that a package mirror, artifact service, remote browser, telemetry collector, credential broker, or task queue is a boundary crossing—not automatically “inside” because it has an internal hostname.
Build a brokered evaluation zone
- Issue a dedicated evaluation identity. Keep it separate from production workload, developer, and shared-service identities; give it a short lifetime and a revocation path.
- Default-deny egress. Add a named destination only when the task requires it, with a bounded protocol and purpose.
- Broker dependencies. Prefer a task-specific mirror, fixture, or controlled proxy over direct access to a production-adjacent shared service.
- Enforce an action boundary. Reject unlisted targets, methods, or data classes before a consequential call runs. A production agent tool contract makes that allowed action surface inspectable.
- Prepare containment. Assign an owner for boundary telemetry and rehearse how to stop the run, revoke its identity, and preserve the evidence. AI agent kill switches and AgentOps incident response are the next operational steps.
Better containment can make an evaluation less convenient and, in some cases, less production-like. Make that tradeoff explicitly; do not quietly recover realism with ambient credentials, unrestricted egress, or access to a shared internal service.
Prove the boundary before you trust it
A preflight should try to falsify the isolation claim. Record the result, not merely the intended configuration.
- Attempt resolution and connection to a non-allowlisted external destination.
- Attempt to use each reachable shared dependency as a relay to an external destination.
- Attempt to read workload metadata, mounted secrets, inherited environment variables, and credential stores.
- Attempt to reach known production names, private networks, and administrative endpoints with the evaluation identity.
- Confirm that an unlisted tool action is denied at the action boundary and recorded.
- Exercise the stop procedure: halt the run, revoke the evaluation identity, and check that relevant logs are preserved.
Anthropic identifies validation of internet-access paths before evaluations and better review of evaluation or network logs as controls that could have surfaced its environment failure sooner. Carry this evidence into the AI agent rollout checklist before widening an evaluation pattern.
Let realism be a controlled exception
Some evaluations genuinely need a remote dependency. Define that exception as part of the task contract: name the destination and why it is needed, use an evaluation-only account or fixture where possible, constrain the operation and time window, decide what telemetry proves it stayed in scope, and define the signal that stops the run when it behaves unexpectedly.
What the reports do—and do not—prove
The reports are strong motivation for treating evaluation infrastructure as a security boundary. They do not establish a universal containment recipe or a rate of agent escapes. OpenAI's report is its account of its own incident; Anthropic's is its account of three incidents found in a retrospective review. Neither is a controlled comparison of isolation designs.
NIST's Zero Trust Architecture and Application Container Security Guide are useful general security references. Neither is an AI-evaluation standard, so use them as security context rather than evidence that a particular evaluation design is certified safe.
Sources
FAQ
Is a VM or container enough to isolate an agent evaluation?
Not by itself. The incident reports show that reachability through surrounding services and network paths matters alongside the process boundary. Review identity, egress, dependencies, data, and containment—not only the runtime wrapper.
Should an agent evaluation ever have internet access?
Only as a declared, narrow task requirement with an evaluation-specific identity, constrained operations, telemetry, and a stop condition. A controlled exception is different from ambient, unexamined reachability.
Can a system prompt enforce an evaluation boundary?
No. A prompt can clarify scope, but it cannot replace infrastructure enforcement. Anthropic reports that its evaluation prompts said there was no internet access while the environment still had live access.
What should trigger an immediate stop?
Define it before the run: a non-allowlisted destination, an unapproved shared service, an unexpected credential path, or a denied action at the policy boundary are sensible starting signals. The threshold needs an owner and a tested revocation path.
Building something that has to hold up?
We do this work for teams — agent reliability hardening, custom MCP servers, and full-stack AI systems built to survive production.