Read the original

A plain-language guide to the Canadian AI Safety Institute’s technical guidelines

Containing AI Agentsin Layers

Alignment and sandboxing have not stopped AI agents from taking harmful actions, and seven of eight reported containment incidents traced to a misconfigured sandbox. Canada’s AI Safety Institute now publishes guidelines that add layered technical controls and human procedures, built on the assumption that any single control can fail.

Source modified 30 Nov 2026
Published by CAISI, ISED Canada
Written with U of T and the Vector Institute
10
Security policies
Section 2
9
Enforcement mechanisms
Table 1, Section 3
7
Residual risks named
Section 3.6
6
Operating procedures
Section 4.1, plus a launch gate and risk assessment

Counts are taken from the section structure of the CAISI guidelines.

At a glance

Three parts that assume any control can fail

The guidelines separate containment into rules, the technical controls that enforce them, and the human procedures that check those controls are in place and respond when they fail.

Section 2

Security policies

The principles a containment system should enforce: least privilege, default deny, network isolation and defense-in-depth. Policies should be verifiable, agent actions should be observable, and a human overseer should be able to halt the agent.

Section 3

Enforcement mechanisms

How to apply the policies at each layer: a restricted and monitored agent harness, hardware-isolated virtual machines on a hardened host, and network controls that replace live internet access with a static cache.

Section 4

Human procedures

The processes people follow to choose, deploy and monitor the controls. They set who authorizes a run, how the environment is checked against approved policy before an agent acts, how incidents are handled, and how risk is assessed across the whole deployed system.

Modular by design. Organizations select and calibrate the guidelines from their own risk assessment and are not expected to apply every practice in every setting. Applied together, the full set reflects the posture for the highest-risk work, such as training and testing frontier cyber-capable AI agents. Each area is illustrated with one running example: cyber-capability evaluation of AI agents.

01The problem

Two defenses, both with gaps

Agents act through tools, so a wrong action has real effects. Alignment and sandboxing were meant to prevent that, and each has left a gap that incidents have already exposed.

What an agent is

An AI agent is a program in which a harness runs a loop toward a task. The AI model selects an action, for example calling a software tool. The harness executes it and returns the result, and the model selects the next action.

Agents now handle tasks such as answering emails, operating a computer, writing code and finding software vulnerabilities.

The agent loop The AI model selects an action. The harness executes it and returns the result to the model. The loop repeats until the task ends. AI model Harness selects an action, such as a tool call executes it, returns the result The loop repeats until the task ends.

When actions go wrong

In pursuit of a task, agents sometimes take actions the user did not intend. One agent deleted a user’s email inbox when asked only to make suggestions. Several have probed systems without authorization and exploited software vulnerabilities while doing benign work.

The risk is sharper in high-risk settings such as cyber-offensive testing against authorized targets, where an unintended action can reach machines outside the test.

The two usual fixes

Alignment

Training a model to match its designers’ expectations about desirable behaviour.

  • Reduces how often harmful actions happen, but does not eliminate them.
  • Did not prevent many of the incidents the guidelines cite.
  • Can be weakened or removed by jailbreaking or uncensoring, also called abliteration.
  • Goals are hard to define precisely.

Sandboxing

Isolating the agent from the wider network and heavily restricting its tools.

  • The policy is a trade-off. It must allow enough to finish useful tasks and restrict enough to block harm. An air-gapped computer, physically isolated from unsecured networks, cuts risk sharply but may be unable to do any task.
  • The policy must also be implemented correctly. Several public reports describe agents getting around a sandbox by finding bugs in it.
  • Extra limits, such as heavily restricted internet access, are used in high-risk testing. Reported incidents show agents bypassed these as well.
Leading cause of eight reported agent containment incidents
Each circle is one reported incident in which an agent bypassed added technical limits (n = 8)
Sandbox misconfiguration that opened a path to hosts on the internet (7) Other cause (1, not detailed in the source)
Source: CAISI, Technical Guidelines for AI Agent Containment, Section 1. Count as reported there; the guidelines do not itemize the eight incidents.

Taken together, these cases show that current containment practice has not consistently given sufficient security guarantees across development, testing and deployment. The guidelines also point to a missing piece: there are no standardized security practices for building, testing and deploying agents. Technical measures need human procedures around them to work.

02Scope and limits

What the guidelines cover, and what they do not

No containment system can be perfectly secure, so the guidelines aim to lower the chance of a breach and shrink the damage when one happens.

What containment does

  • Restricts the agent from harmful actions.
  • Lowers the chance the agent circumvents the restrictions, which is a containment breach.
  • Limits the damage if a breach happens.

Vulnerabilities in any sufficiently complex software or hardware system cannot be ruled out, so the guidelines assume fallibility.

How strict to be

There is no single prescribed posture. Each organization assesses risk from model capabilities, the task and the environment, then tunes its controls. Lower-risk uses may adopt a subset or less restrictive versions.

The most restrictive versions, such as no live internet access, fit the highest-risk work, including training and testing frontier cyber-capable models. Stronger containment costs more in operational complexity and infrastructure and, for evaluations, in realism. Practices should tighten as capabilities advance.

Who it is for

Model developers, evaluators, security architects and others who develop, deploy, test or regulate AI agents, especially agents with advanced cyber capabilities.

The approach is holistic: technical mechanisms and human procedures together, because purely technical measures have failed before.

Assumptions

  • Development and testing are honest. Developers and evaluators act in good faith, and the model is not deliberately engineered to cause harm, for example as malware.
  • Untrusted inputs are covered, such as hostile instructions inside an agent’s task data.
  • The practices may not be enough against a maliciously designed agent that operates covertly and knows how it is contained.
  • Supply-chain compromise of the model, harness or tools may not be fully mitigated.

Left out

  • Alignment techniques. They give no hard systems-security guarantee, though better alignment may make behaviour more predictable and ease the policy needed.
  • Deployments involving operational technology and physical processes, which raise further considerations.
  • Cloud-side hardening of inference servers, which needs a separate security architecture. The guidelines point to cloud security guidance instead.

What carries over to production

The guidelines apply directly to developing and evaluating cyber-capable models. Most principles carry over to production deployments. The strictest network step does not carry over directly.

  Carries over

  • Least privilege2.2
  • Default deny egress2.3
  • External stop4.1.4, 4.1.6
  • Pre-run verification2.7, 4.2
  • Tamper-evident logging2.4, 2.8
  • Systematic cyber risk assessment4.3

Does not carry over directly

  • Isolating agents from live internet access2.5, 3.4, 3.5

The guidelines say a few of the most restrictive measures may not suit production deployments, and give this one as the example.

Source: CAISI guidelines, Section 1.1. Section numbers refer to the original document.

03The layout

Six layers inside one boundary

Each enforcing layer sits one privilege domain above what it constrains, so a failure inside one layer does not remove the controls that watch it.

Running example: cyber-capability evaluation

Developers test a model, through an agent harness, on offensive cybersecurity tasks in a defined environment. “Developers” means whoever sets up and runs the test: model engineers, industry security teams, vulnerability researchers and others. The environment is a list of developer-controlled machines the agent can reach, such as intentionally vulnerable machines, a package repository and an internet cache.

The setting covers open-weight and closed-weight models, and general-purpose or cybersecurity-specific harnesses. Tasks include building exploits and compromising intentionally vulnerable machines. The goal is to minimize unintended harm, specifically compromising machines that are not part of the test environment. One agent is described for simplicity. The practices extend to multi-agent systems when applied to the whole system (Section 3.6.7).

The guidelines name six components that can serve as a layer that enforces a control, or as the scope a control constrains: the model, the agent harness, the virtual machine (VM), the host stack (host operating system, kernel and hypervisor), the host machine and the local network.

Example containment system: layers and authorized data flows
Nested boxes are layers. Arrows are authorized data flows. Select a layer to see which controls sit on it.
CONTAINMENT BOUNDARY Host machine Host stack operating system, kernel, hypervisor Virtual machine (VM) Agent harness AI model Local network Artifact cache packages, webpages, databases Experiment log store OUTSIDE THE BOUNDARY Internet Experiment control API server supplies logs 1 2 3 4
  1. 1Internet to artifact cache. Only approved artifacts come in. The host machine has no direct internet access.
  2. 2Experiment control to host stack. An external control system sends instructions in.
  3. 3Experiment logs to experiment control. Logs go out to the control system.
  4. 4Model to and from the API server. A direct, two-way link. It is the only connection that does not pass through the host stack.
Source: CAISI guidelines, Figure 1 and its text description (Section 1.2). Redrawn as a schematic, not to scale. Layer-to-control lists in the panel are derived from Table 1.
04Security policies

Ten policies

The policies set what a containment system must guarantee, and they apply at any level of risk. Table 1 ties six of them to specific technical mechanisms.

How strictly each policy is applied should follow the organization’s risk assessment. Where the guidelines give an example, it reflects the most restrictive posture.

2.1

Clear rules of engagement

List every stakeholder: model and harness developers, evaluators, containment designers, infrastructure operators and data owners. Write down the full setup: the task, the model’s traits (class, safeguards, alignment, cyber-capability), the environment (such as server layout) and the containment limits. Record approvals so everyone shares one picture of the risk.

Put into practice in 4.1.2
2.2

Principle of least privilege

Give each part only the access its task needs. A guard on one cell block gets the keys to that block, not to the whole prison. This shrinks the attack surface and the damage if the agent takes an unintended action.

Carries over to production
2.3

Default deny

Block everything the configuration does not explicitly allow. If something goes wrong, the damage stays inside the allowed set instead of reaching every connected machine.

Carries over to production
2.4

Enforcement domain

An enforcer needs more authority than the thing it constrains, and its work should resist and reveal tampering. Inmates cannot police other inmates. If the constrained part is compromised, the enforcer can still do its job.

Carries over to productionShapes where layers sit (3.1)
2.5

Network isolation

For the highest-risk work, no live internet access at any point in the life of a cyber-capable model. This limits the machines the agent can affect to those the operator controls.

Strictest form does not carry over directly
2.6

Defense-in-depth

Enforce each policy with several mechanisms in different privilege domains, so a misconfiguration at one level does not break containment for the whole system.

Shapes where layers sit (3.1)
2.7

Verifiability

Check that policies hold, using a formal threat-model analysis where possible and empirical tools before, during and after the run. This lowers the chance that the deployed setup differs from the intended one.

Carries over to productionPre-run check: 4.2
2.8

Observability

Record every action the model takes so it can be audited after the run. Do not treat the model’s narrated reasoning as a reliable record. Review the actions even when no incident was flagged, to learn which actions probed the containment, and adjust. Logs need tamper-evident storage outside the agent’s reach, with access controls so the logs cannot become an unauthorized data store.

Carries over to production
2.9

Human in the loop

A dedicated human overseer watches the run, receives alerts and can step in as it happens. Ambiguous actions go to the human. People suffer approval fatigue, automation bias and slow reaction, so oversight focuses on high-impact or irreversible actions, with automated fail-closed controls that block them until reviewed. There must be a verifiable way to halt or pause the run.

External stop carries overProcedures: 4.1.4, 4.1.6
2.10

Incremental policy relaxation

Treat containment as a dial. Start testing cyber-capable models at the strongest relevant setting, such as no live internet. As capabilities and safeguards are better understood from evidence, relax step by step, for example to limited internet access. An incident sends the setting back to stricter.

Risks of relaxing: 3.6.5
05Enforcement mechanisms

Nine mechanisms, mapped to policies

Most policies are enforced by two or more mechanisms at different layers, so one misconfiguration does not end containment.

Which mechanisms enforce which policies
A dot means the mechanism enforces that policy. Select a policy heading to focus on it, or a layer to filter the rows.
Layer
Table 1: enforcement mechanisms, the layer where each runs, the scope it constrains and the policies it enforces
MechanismLayerScope
Secure agent harnessAgent harnessModelNot mappedNot mappedNot mapped
Periodic integrity checksHost stackVMNot mappedNot mappedNot mappedNot mappedNot mapped
Isolated VM networkHost stackVMNot mappedNot mappedNot mappedNot mapped
Hardened host OSHost stackVMNot mappedNot mappedNot mappedNot mappedNot mapped
Hardware-isolated VMHost stackVMNot mappedNot mappedNot mappedNot mappedNot mapped
Hardware firewallNetworkMachineNot mappedNot mappedNot mappedNot mapped
Network monitoringNetworkMachineNot mappedNot mappedNot mappedNot mappedNot mapped
Intrusion detection systemNetworkMachineNot mappedNot mappedNot mappedNot mapped
Static internet cacheNetworkMachineNot mappedNot mappedNot mappedNot mapped
Mechanisms mapped, out of 9 (count)
2
4
3
3
2
1
Source: CAISI guidelines, Table 1. Counts per policy are derived from Table 1, which does not give them itself. Table 1 lists one technical mechanism for human oversight; Section 2.9 points to the procedures in 4.1.4 and 4.1.6 for the rest.

Model layer · Section 3.2

Section 3.2Model layer: alignment and safeguards

Alignment and safeguards act on the model itself. Alignment training can lower the likelihood of unwanted agent actions but cannot remove it, and it does not meet the enforcement-domain principle. Safeguards that detect and block harmful inputs and outputs are typically switched off to allow meaningful offensive cyber testing.

This does not make them unimportant. They can make behaviour more predictable and may ease the containment policy needed. Containment mechanisms should still be designed on the conservative assumption that alignment and safeguards are ineffective or do not apply.

Agent harness · Section 3.3

3.3Secure agent harness
Layer: Agent harnessScope: ModelLeast privilegeObservabilityHuman in the loop

The harness is the first line of defense because it controls how the model reaches the real world: which side effects tool calls can have, how long the loop runs, and how the task is framed in prompts. It is useful for some limits and for early warning. It is not a fully trustworthy layer, because it sits within the agent’s reach and can be tampered with.

Limit tool calls (3.3.1). Offer a select few tools that the task needs, instead of broad Bash or Python access. This is least privilege applied to the model.

Monitor tool calls (3.3.2). Build the loop to watch interactions between the model and the system, spot potentially harmful ones and raise alerts to a human supervisor. Some harnesses have these functions built in, such as NVIDIA OpenShell and AISI Inspect.

Example: cyber-capability evaluation

The harness gives the model direct access to tools such as John the Ripper, Wireshark and Ghidra, rather than letting it download arbitrary packages. Tool calls are filtered against an IP address or domain allowlist. The agent pauses and raises a security alert if a machine outside the allowlist is mentioned or accessed. A harness with built-in monitoring and filtering rules (NVIDIA OpenShell) is used.

Host stack · Section 3.4

3.4.1Periodic integrity checks
Layer: Host stackScope: VMVerifiability

A checker runs in the host stack, in the host OS or kernel, and periodically confirms that the VM’s containment controls, such as network isolation, are still in their approved state. A failed control raises a security alert to a human and may pause or halt the run.

Example: cyber-capability evaluation

A checker on the host OS reviews the active firewall rules (nftables) and the routing configuration, and verifies that no unauthorized route to the internet exists. A failed check pauses the run and raises a security alert.

3.4.2Isolated VM network
Layer: Host stackScope: VMNetwork isolationDefault deny

Network isolation starts at the host stack. The VM sits on a restricted, isolated network that explicitly lists the resources it may reach, set up through nftables, eBPF or user-mode networking with restrict=on. The agent has no unrestricted internet access and reaches only what the rules allow.

Example: cyber-capability evaluation

The agent VM uses restricted user-mode networking (restrict=on) with explicit guestfwd rules for the contained services. nftables rules also limit the host OS’s own internet access. While the agent runs, the VM and the host OS have the same level of network isolation.

3.4.3Hardened host OS
Layer: Host stackScope: VMDefault deny

Hosts should run a hardened operating system, such as SELinux or AppArmor, with a default-deny policy for resources like files and sockets. If an agent escapes the VM, it can reach only resources labelled for the VM, which reduces the radius of impact. It also stops accidental misconfiguration from handing the agent more privilege on the host than intended.

Example: cyber-capability evaluation

The machine hosting the agent runs SELinux.

3.4.4Hardware-isolated VM
Layer: Host stackScope: VMLeast privilege

A VM is the standard hard boundary between agent and system. Hardware-isolated VMs are recommended over containers such as Docker and user-space kernel sandboxes such as gVisor, which give weaker isolation. Containers share a kernel with the host, so a kernel exploit can lead to a container escape. Hardware-isolated VMs such as KVM, Xen, VMware ESXi and Microsoft Hyper-V run their own kernel and use hardware-assisted virtualization to enforce the boundary.

For particularly risky work, such as cyber-offensive testing, a microVM (for example Firecracker) strips out features such as the BIOS and USB passthrough to shrink the attack surface.

Example: cyber-capability evaluation

The agent VM is configured and run on Firecracker.

Network · Section 3.5

3.5.1Hardware firewall
Layer: NetworkScope: MachineDefault denyNetwork isolation

The last backstop for network isolation is a hardware firewall that sits entirely outside the machine running the agent. Like the host-stack controls, it denies all requests except explicitly listed resources. A misconfiguration at any lower layer is then caught in a privilege domain the machine cannot reach.

Example: cyber-capability evaluation

A dedicated hardware firewall with a default-deny policy and an IP or domain allowlist sits between the machine and the internet.

3.5.2Network monitoring
Layer: NetworkScope: MachineObservability

Network traffic, including headers and payloads, is passively monitored, logged and audited. The aim is to confirm that policies were not violated and to analyze any attempts to violate or subvert them.

Example: cyber-capability evaluation

A dedicated monitoring machine (for example Zeek) sits on the machine’s local network and logs traffic.

3.5.3Intrusion detection system
Layer: NetworkScope: MachineObservabilityVerifiability

An intrusion detection system looks for intrusion signatures in outbound traffic and acts on them by blocking all network access for the machine.

Example: cyber-capability evaluation

A dedicated intrusion detection system (for example Suricata) sits on the machine’s local network.

3.5.4Static internet cache
Layer: NetworkScope: MachineNetwork isolationDefault deny

Agents should not get unrestricted internet access, but they can use a static cache of the internet if the cache machine is contained by the same practices. It has no internet access of its own, has filtering at several layers and lives inside the hardware-firewalled network. Even if the cache machine is compromised, the agent still has no unrestricted route out.

To prepare it, a less capable agent run under human oversight warms the cache, and caching requests are monitored and approved. Once the cache is warm, internet access to the cache machine is switched off and the agent reads only from the now-offline cache.

Example: cyber-capability evaluation

A dedicated machine running a Squid proxy sits inside the agent machine’s hardware-firewalled network, and all VM and host HTTP and HTTPS traffic goes through it. During warm-up, a less cyber-capable model does the real task or nearby knowledge-gathering tasks while a human fully mediates the run and checks that nothing outside the network is compromised. For the real run with the cyber-capable model, the cache is frozen and its connectivity is cut. Requests for anything outside the cache are dropped.

Products and tools named here are illustrative examples from the guidelines. They do not imply endorsement of one product over another.

06The residual surface

Seven ways containment can still fail

Containment runs on software and hardware that can fail, so some paths stay open even under the strictest setup.

The main goal is to prevent harm to machines outside the environment. Defenses at lower layers should be assumed breakable, so some harm inside the environment is possible. Residual risk is handled with stricter policy or with the human procedures in Section 4.

3.6.1Zero-day exploitation

Current models can find and exploit previously unknown vulnerabilities, known as zero-days. Containment is built from software, which can contain bugs, so there is always some risk that an agent reaches a higher privilege domain than intended and gets around the controls.

3.6.2Cloud and API-dependent models

Many state-of-the-art models, open or closed weight, do not fit on GPUs attached to the test machine and run on separate inference servers reached through APIs. Ideally those servers sit inside the containment boundary, like the internet cache. That is not always possible, for example in third-party evaluations, which leaves the risk that the inference server is compromised.

Mitigation in the guidelines. A restrictive HTTP proxy on the host that forwards requests only to approved API endpoints and inspects each request to check it is well formed and free of attack payloads such as server-side request forgery (SSRF). If evaluators run the inference servers in the cloud themselves, cloud-side hardening is also needed, such as authentication, access control, rate limiting and secure model deployment. That hardening is outside the guidelines, which point to cloud security guidance.
3.6.3Peripheral I/O

Devices assigned to a VM expose their own interfaces. A GPU can be handed whole to a VM (GPU passthrough), and a network card can be split among VMs (SR-IOV). Isolation then depends on the host’s device-assignment stack (for example VFIO on Linux), IOMMU-enforced DMA (direct memory access) isolation, interrupt remapping and safe handling of the device lifecycle. Host-side management code, such as NVIDIA vGPU, may also be involved. The interfaces a guest can reach in these setups remain possible attack surface.

3.6.4Side channels

Hardware isolation can still leak. In a red-team experiment, OpenAI reported that agents in separate microVMs on a shared host set up a covert communication channel through cache-timing side channels. Covert channels reach beyond processor internals to almost any observable physical or logical medium, including acoustic, optical and thermal signals, so they are hard to list fully or eliminate. A residual surface remains.

Mitigation in the guidelines. Stronger microarchitectural isolation: limit shared processor state (for example disable hyperthreading and enable cache partitioning), use hardware features such as the Indirect Branch Prediction Barrier, and disable optimizations such as cross-VM memory deduplication.
3.6.5Adopted security posture

Stakeholders may relax the posture after their own risk assessment, for example by allowing heavily restricted internet access. That adds risk from vulnerabilities in the software that mediates internet access, and from misconfigurations that could open unrestricted access.

3.6.6Harms inside the environment

The guidelines focus on preventing harm to machines outside the environment. Lower-layer defenses should be assumed breakable, so some harm inside is possible. The harness is not expected to give strong security guarantees: processes inside the VM are within the agent’s reach, so an agent could disable or bypass harness controls and tamper with data or monitoring that runs inside the VM. The host machine, host stack and machines on the local network are also breakable, with varying likelihood. Harms such as lateral movement and tampering with monitoring therefore need mitigation alongside harms outside.

Least privilege, defense-in-depth and default deny already limit these harms.

Mitigation in the guidelines. Where harm inside the environment is a serious concern, replace the host’s general-purpose OS with a minimal hypervisor, so an escaping agent reaches only the hypervisor, and control access between machines with short-lived, revocable credentials.
3.6.7Multi-agent systems

The guidelines extend to several agents solving tasks at once. Every machine hosting an agent must sit inside the containment boundary and face the same host-stack and network controls. When agents use cloud or API models, all connections should pass through one network-layer proxy, preferably to a single provider, because each extra provider adds an outbound path and a trust dependency. When agents share resources, such as a host machine or an artifact cache, side-channel and covert-channel risk rises and isolation between agents weakens.

Mitigation in the guidelines. Give agents dedicated hardware resources, or provide an authorized, monitored communication platform so agents have no need for covert channels.
07Containment procedures

People and procedures

Technical controls only work if people choose the right policy, deploy it correctly and respond when its assumptions fail.

The procedures apply to the complete agent system, including tools, supporting services and any extra processes or agents it creates. They turn the Section 2 policies into recorded decisions and operational checks, so safety does not depend on an operator spotting every harmful action as it happens.

Assign responsibility and authority 4.1.1

Name four roles: an evaluation owner, an operator responsible for containment, an incident-response lead, and a decision maker who is authorized to accept residual risk.

  • The people who can stop a run need the access and authority to do it without waiting for the evaluation owner to approve an emergency action.
  • For security-critical configurations, use independent review where practicable, so the person who prepares a change is not the one who approves it.
  • Document roles, delegated permissions and escalation contacts, including arrangements for unattended runs and third-party infrastructure.

Adapts NIST SP 800-53 controls AC-5, CA-6 and IR-8: separation of duties, authorization and incident-response planning.

Establish written rules of engagement 4.1.2

Before a run, the evaluation owner approves a run plan. It names the permitted targets and actions, the excluded systems, the model and harness versions, the tools, the credentials, the authorized services and the execution limits.

  • Separate deliberate compromise of an experimental target, which is allowed, from compromise of the infrastructure that enforces containment, which is prohibited.
  • Set stop and resume criteria, emergency communications, evidence handling and who may decide.
  • Cover the data sent through inference and telemetry channels, since a permitted connection can still disclose sensitive information.

Follows the assessment-planning and rules-of-engagement approach in NIST SP 800-115, Section 6.5 and Appendix B.

Review preparation and changes 4.1.3

Keep a versioned baseline of the containment configuration, and record the images, network interfaces, dependencies, credentials and services tied to each run.

  • Changes to the baseline get a security-impact review and new checks before the next run.
  • Anything that needs external connectivity happens separately from the contained run. For example, finish acquiring dependencies before the catalog is frozen and upstream access is removed.
  • If a package is missing during a run, schedule another preparation cycle. Do not make an ad hoc change that opens internet access.

Consistent with NIST SP 800-53 configuration change control, CM-3 and CM-4.

Define supervision and stop conditions 4.1.4

The run plan separates a blocked out-of-scope attempt from a containment failure. A blocked attempt can be an expected observation in a cybersecurity evaluation. Unauthorized connectivity, loss of a required safety control, or inability to establish the deployed state should trigger isolation and suspension.

  • Specify who monitors alerts, how fast they escalate, and what automated action happens when no human can respond in time.
  • Where monitoring exists only to score a benchmark, its failure may instead invalidate the result under a documented policy.
  • The stop mechanism works outside agent-controlled systems and covers processes already launched and any descendant agents.
Note. Stopping model requests alone does not stop commands or services that are already running.

Prepare and test incident response 4.1.5

Exercise the response plan before high-risk evaluations. Cover containment, investigation, evidence preservation, communication and recovery.

  • Exercises should include a controller outage, stale safety evidence, unexpected external reachability and a guest that ignores a stop request.
  • Measure the delay from failure to detection and from detection to confirmed isolation and suspension, under the supported workload.
  • Records should separate an intervention command from evidence that it took effect.
  • Preserve relevant off-host records, identify affected third parties and the notification channels, and do not let evidence collection delay urgent containment.

If an agent exceeds its authorized boundary or affects an external system, even when the operating organization was not itself compromised, the organization should:

  1. Preserve evidence in a store the agent cannot reach.
  2. Take all reasonable steps to contain the effects.
  3. Notify affected parties promptly.
  4. Coordinate remediation through existing national and sector channels.

In Canada, cyber incidents can be reported to the Canadian Centre for Cyber Security.

Draws on NIST SP 800-61 Rev. 3 for response planning.

Control recovery and reuse 4.1.6

Routine closure revokes run access, stops controlled execution, and resets or isolates run-specific writable state.

  • Suspected compromise of an enforcement component needs incident recovery and verification before reuse.
  • Rebuilding the target VMs alone is not enough after suspected compromise of the host, a gateway or a trusted service.
  • A named owner approves resumption once the cause is addressed and the required containment checks pass.
  • Lessons from incidents and near misses feed back into policy, risk assessment and launch checks.
Example: cyber-capability evaluation

A cybersecurity evaluation has a recorded target network, a frozen dependency catalog, a designated inference service and an execution deadline. The operator confirms the external stop mechanism works before admitting the run. If a required containment check later fails, the supervisor isolates and suspends the affected VMs, including descendant execution. Restart needs review and fresh authorization. It does not follow automatically from the periodic integrity checker restoring a firewall rule.

08Containment Attestation Service

A launch gate that checks before the agent runs

Past incidents came from a gap between the intended policy and the deployed environment. The guidelines add an automated check that must pass before an agent is allowed to act.

What the gate does

A Containment Attestation Service (CAS) automates the decision that an environment meets the approved containment conditions before the agent acts. A study of AI-driven worms used a similar launch interlock: it checks the execution environment and gets a signed response from a containment service outside the guest.

Under the most restrictive posture, admission needs evidence that unauthorized internet access is unavailable, including through other machines and services the agent can reach. An intended firewall configuration, an operator’s assurance, or a prompt saying the environment is simulated does not count as that evidence.

Two kinds of failure

Configuration violates its policy

Anthropic’s disclosures

Anthropic’s July and September 2026 disclosures describe four incidents in which agents running cybersecurity evaluations obtained unauthorized access to real third-party systems. Its investigation attributes the unintended internet connectivity to a configuration error in the outermost containment layer, even though the agents had been told they had no internet access.

A mandatory launch gate that checks the whole reachable environment against a no-egress policy would have refused authorization while the live internet path existed. This assumes the checks cover the relevant network paths and a trustworthy mechanism enforces the decision.

Policy authorizes too much

UK AI Security Institute report

The UK AI Security Institute reported unsanctioned activity during an evaluation in which internet access was deliberately enabled. No VM sandbox escape was involved.

The most restrictive posture in these guidelines would reject an internet-enabled configuration. Attestation only verifies compliance with a policy after the organization has chosen an appropriate one. The Institute’s later account describes automated pre-evaluation checks for monitoring and disabled internet access.

What the gate checks

The guidelines list five areas the gate checks before it authorizes a run. If the evidence for any one of them is missing, stale, ambiguous or failed, admission is denied (Section 4.2.3).

  1. 1

    Identity and configuration

    The authorized run, current VM and host identities, interfaces and network placement, approved images, device profile and configuration version.

  2. 2

    Effective connectivity

    Filtering, forwarding, routing, address-family handling, DNS, and access to management, storage, other evaluations and public destinations.

  3. 3

    Intermediary services

    Isolated proxies and dependency services, frozen catalogs, approved inference destinations and operations, and denial of any unauthorized upstream or fallback path.

  4. 4

    Safety controls

    Current monitoring evidence, availability of the controller and the periodic integrity checker, an external capability to isolate and suspend, and enough resources to sustain these controls.

  5. 5

    Validation evidence

    Representative permitted and prohibited requests tested from the actual execution environment, with the configuration observations that support the result.

How the checks are run

  • The organization defines a machine-checkable policy for each supported run.
  • Evidence comes from outside agent-controlled systems: the firewall rules and routes in use, plus tests that permitted connections succeed and prohibited ones are blocked.
  • VM and interface identities come from trusted host observations, with permitted source addresses enforced at host-controlled virtual ports. An identifier supplied by the guest, or an address inside the expected subnet, does not establish authorization.
  • Reachability tests use organization-controlled destinations and benign requests. They do not probe unrelated third parties. A timeout to one destination does not show there is no other outbound path.
  • An approved external inference connection stays confined to its designated service and operations. It does not permit arbitrary URL fetching, redirects or general forwarding.

Keeping the approval honest

01

Scope the approval

Authorization applies only to the approved run and the checked environment. It must stay current, and a relevant configuration change or a restart invalidates it.

02

Protect the decision

An external controller holds the decision in protected state or receives it over an authenticated channel, and rejects stale or unrelated approvals. Signed tokens need protected signing keys and a revocation procedure.

03

Enforce at launch

The launcher requires valid authorization before it enables agent execution, supported resumes and model access. The gate sits outside the guest, so the agent cannot bypass it by editing its own launch code.

04

Keep it enforced

Authorization renews only on fresh evidence. A separate supervisor isolates and suspends affected workloads if it expires or a required safety condition fails. An expired token alone does not suspend a VM, and cutting off inference leaves launched code running.

What gets recorded

CAS records the policy, the supporting observations, the decision, its validity interval and any later renewal or revocation. Where feasible, accepted records are stored outside the evaluation host, with host credentials unable to alter or delete earlier records.

What it cannot promise

  • A compromise before collection can falsify observations or suppress their delivery.
  • Software attestation should not be called hardware-backed unless the run provides and validates that mechanism.
  • CAS reduces only the configuration errors its checks can detect. Host compromise, unexamined interfaces and shared dependencies among controls stay a matter for risk assessment.
  • Organizations should document the trusted components, evidence freshness, check coverage and measured stopping interval.
Example: cyber-capability evaluation

Before the agent starts, CAS verifies its registered VM, network placement, approved service paths, offline dependency catalog and current safety evidence. If the guest, another reachable target or the package service has an unauthorized live internet route, CAS withholds authorization and the external launcher keeps execution disabled. Required inference goes through a restricted relay whose approved connection does not give guests general internet access. A later containment failure revokes authorization and triggers external isolation and suspension.

09Cybersecurity risk assessment

Assessing risk before each run

Agent capabilities change faster than infrastructure, so an assessment that was sound for one generation of agents can be wrong for the next.

The organization assesses risk before admitting a run and revisits the assessment when its assumptions or environment change. NIST SP 800-30 supplies the method. The unit of assessment is the complete deployed system: the model, harness, tools, reachable services, enforcement infrastructure, people and external dependencies.

Identify assets, boundaries and failure scenarios 4.3.1

Start with what must be protected, who could be affected, and which interfaces connect the experimental environment to those assets.

Scenarios to cover:

  • Accidental misconfiguration
  • Unintended agent actions
  • Hostile instructions in task data
  • Credential exposure
  • Resource exhaustion
  • Compromise of a supporting service or virtualization boundary

A model built in good faith can still generate harmful actions or code. The assessment also covers descendant agents, residual processes, shared services, sensitive data in permitted model requests and operator privileges.

Assess capability and uncertainty 4.3.2

Estimate how likely the agent is to defeat a containment boundary under the conditions of the proposed run. The estimate depends on the agent’s capabilities and on the weaknesses of the systems it can reach.

  • Giving an agent shell access can expose interfaces that restricted tools keep out of reach.
  • More time and compute let an agent sustain attempts to find and exploit weaknesses.
  • Record observed limitations with their evidence and the conditions under which they were measured.
Note. None of these is proof that an enforcement component is unreachable or secure: an unsuccessful escape test, a model’s alignment, or the ability to run on one GPU. Uncertainty about agent capability, undiscovered weaknesses and control dependencies should be explicit in the risk conclusion.

NIST SP 800-30 Rev. 1, Section 2.3.1.

Assess consequences and control dependencies 4.3.3

Trace what the agent could reach or change if a containment boundary fails.

  • Compromise of a shared service could expose another evaluation’s data or credentials and interrupt its operation.
  • An unauthorized internet connection could put third-party systems at risk.
  • Stopping model inference may leave processes or replicas running, so check that the stop procedure ends their activity.
  • Link each safeguard to the failure it constrains and to evidence that it works in the deployed configuration.
  • Do not count controls as independent when they share a weak point. A host firewall and a periodic integrity checker that rely on the same kernel could both be disabled by one kernel compromise.
  • Where host compromise is credible, look at enforcement and protected evidence outside the affected host.
  • Separate controls that prevent a prohibited action from those that detect it or support a response afterwards.

Document residual risk and decisions 4.3.4

For each material scenario, record the affected assets, the boundary crossed, the controls and validation evidence, the likelihood and impact, the uncertainty, the residual risk, an owner and the treatment decision.

The decision maker compares residual risk with the organization’s documented tolerance, then approves the run, requires further mitigation, or declines it.

  • An exception must name its scope, compensating controls, accountable approver, expiry and reassessment conditions.
  • An exception to the no-egress baseline needs its own decision about authorized external effects. An operator overriding a failed launch check does not count as that decision.

Follows NIST CSF 2.0 GV.RM-02 and ID.RA-06.

Maintain the assessment 4.3.5

Controls and assessments judged sufficient for one generation of agents may soon be insufficient for the next. An earlier assessment might treat hypervisor compromise as unlikely, given what the agent could do. A later agent able to find and exploit unknown hypervisor vulnerabilities would require that assumption to be revisited, even if the infrastructure had not changed.

  • New tools, access or reachable services trigger reassessment.
  • Changes in data handling trigger a review of what could be disclosed or affected.
  • Newly disclosed vulnerabilities, containment incidents and failed control checks trigger a review of the assumptions they challenge.
  • The approved configuration and the CAS launch conditions are then updated to match the decision.
  • Evaluation reports describe the model and harness configuration and the conditions the agent ran under. Execution limits and containment restrictions, such as a finite dependency catalog or active intervention, can affect measured performance and should be reported with the results.

Reporting follows the qualified-claim practices 3.2 and 3.3 in the initial public draft of NIST AI 800-2.

What each risk record holds

Affected assetsBoundary crossedControls and validation evidenceLikelihood and impactUncertaintyResidual riskOwnerTreatment decision

The decision maker compares residual risk with the organization’s documented tolerance, then does one of three things:

ApproveRequire further mitigationDecline the run

Reassess when

Agent capabilities advanceTools or access changeA new service becomes reachableData handling changesA vulnerability is disclosedA containment incident occursA control check fails

After a reassessment, the approved configuration and the CAS launch conditions are updated to match the decision.

Example: cyber-capability evaluation

A target VM deliberately contains a known vulnerability, while the hypervisor and inference relay stay outside the target scope. The assessment examines whether compromising the target exposes device interfaces, infrastructure credentials or another outward path. If a new model or tool widens the plausible threat to the trusted boundary, the existing approval is reviewed and further containment is required wherever residual risk exceeds the approved tolerance.

10Sources and notes

Where this comes from

This page restates one document in plainer words. Section numbers point back to it, so any claim can be checked against the original.

The original

Authors: Meenatchi Sundaram Muthu Selva Annamalai, Jonas Guan, Thomas Ristenpart, David Lie, Gururaj Saileshwar and Nicolas Papernot, for CAISI.

Notes on this rendering

  • This is an independent plain-language summary. It is not an official ISED or CAISI product, and the original governs.
  • The original cites 98 footnotes. This page links the incident reports, standards and foundational papers behind its main claims. Tools and products appear by name only.
  • The diagram is redrawn from the original’s text description of Figure 1.

Standards and foundations

Northern Signal tracks Canadian AI policy, safety and adoption every week, in one free email. New Atlas dossiers go to readers first.

Get the weekly briefing