Join our Newsletter — 33% off our NHI Course
Home› FAQ› AI Security› How do evaluation environments need to control internet…
AI Security

How do evaluation environments need to control internet access for agents?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated November 9, 2026 Domain: AI Security

Evaluation environments should use default-deny egress so agents cannot reach the internet unless a specific destination is allowed. That means blocking outbound traffic by policy, then allowing only the exact APIs, package sources, or domains needed for the test, with logging and review of every exception.

Why evaluation sandboxes should default-deny outbound traffic

Agent evaluations are only meaningful if the environment behaves like a controlled testbed, not a general-purpose workstation. Default-deny egress keeps the agent inside that boundary by blocking outbound traffic first and then allowing only the destinations the test genuinely needs, such as a specific API, package source, or verification domain.

That matters because many agent failures are environmental, not model-only, a network path that is open by default can turn a contained evaluation into real-world access, unexpected tool use, or external data transfer. If the test does not require internet reachability, the safest design is no internet at all.

How allowlisting should be scoped and reviewed

Allowlisting works best when it is narrow, explicit, and tied to a named test purpose. The exception should identify the exact host or service, the protocol or port if relevant, and the duration or condition under which it is valid, so reviewers can tell whether the access is part of the evaluation or a convenience added later.

Logging is part of the control, not an optional add-on. Every permitted destination should be observable, and exceptions should be reviewed against the test plan so teams can spot unnecessary reachability, hidden dependencies, or agents that are silently expanding their scope during execution.

AI Lab and Agent Evaluation Incidents shows why evaluation labs need strict egress control, because real incidents have emerged from sandbox environments that were too permissive.

What to do when an agent needs the internet during a test

If internet access is genuinely required, treat it as a controlled exception rather than a standing permission. The practical question is whether the agent needs broad web access or only one narrow dependency, because those two cases call for different controls and very different review standards.

Prefer a staged approach: start with no outbound access, add only the smallest viable destination set, and remove the exception as soon as the test case is complete. Where the agent must reach external services, route that access through monitored infrastructure so you can trace what was contacted and why.

AI Security Evaluations Guide is useful here because evaluation design should include both the test harness and the control plane that keeps the harness trustworthy.

Risk and Threat Considerations

Open internet access can turn an evaluation environment into an unintended bridge to live systems, external APIs, or attacker-controlled infrastructure. That creates exposure if the agent is prompted to fetch data, follow links, exfiltrate content, or interact with services that were never meant to be part of the test.

Failure mechanism: The environment allows outbound connections by default, so the agent can reach destinations outside the intended test boundary and use them as a data source, command path, or exfiltration channel.

Impact: Results become untrustworthy, sensitive data may leave the lab, and a compromised or misbehaving agent can interact with real external services instead of a sandboxed substitute.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 addresses the attack and risk surface, while CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseEgress control limits agent tool abuse via external destinations.
ASI10 — Rogue AgentsDefault-deny egress helps stop agents from acting outside the test boundary.
Recommendation — Constrain agent network reach to approved destinations and monitor for tool misuse. Block unsanctioned outbound access and treat unexpected reachability as rogue behaviour.
CIS Controls v8CIS-3 — Data ProtectionEgress restrictions reduce exposure of data leaving an evaluation environment.
Recommendation — Restrict outbound data flows to approved services and review all exceptions.
NIST SP 800-53 Rev 5SC-7 — Boundary ProtectionDefault-deny egress is a boundary protection requirement for controlled environments.
Recommendation — Enforce boundary filtering so only approved outbound traffic can leave the environment.
OWASP ASVSV12 — Secure CommunicationApproved-only outbound connections support controlled, verifiable communications.
Recommendation — Require explicit approval for each outbound endpoint used in tests.

Practitioner Guidance

What to verify: Before trusting an evaluation result, confirm that outbound traffic was blocked by default and that every permitted destination was explicitly approved for that test case. If the agent can reach a general browser, package mirror, or webhook endpoint without a written reason, the sandbox is too open.

Decision rule: If the test can be run without internet, keep it fully disconnected. If it cannot, scope the exception to the smallest possible destination set and require review of any new domain, API, or package source before the run is treated as valid.

Practitioner takeaway: The goal is not to simulate the whole internet, it is to preserve a clean boundary so the evaluation measures the agent, not the side effects of uncontrolled network reach.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org