You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [schema.py](src/ec2sandbox/schema.py) for details.
135
135
136
+
## Compatibility with existing Inspect evals
137
+
138
+
This sandbox provider is not [Dockerfile-compatible](https://inspect.aisi.org.uk/sandboxing.html#environment-binding).
139
+
Hence, you will have to rebuild your evaluation envionment on top of an AWS virtual machine AMI.
140
+
141
+
It is not a drop-in replacement; passing `--sandbox ec2` is unlikely to work for an existing eval.
142
+
143
+
## Sample evaluation
144
+
145
+
You can look at an existing [sample eval](src/ec2sandbox/examples/where_am_i.py) for how to get started.
146
+
147
+
A more complex eval is [Sandbox Escape Bench](https://github.com/UKGovernmentBEIS/sandbox_escape_bench), where this EC2 sandbox is used as an outer sandbox and the agent is tasked with escaping an inner sandbox, generally Docker or Kubernetes.
148
+
149
+
## Sandboxing limitations
150
+
151
+
A sandbox is not a magic bullet for AI agent security. For more background, read AISI's [Inspect Sandboxing Toolkit](https://github.com/UKGovernmentBEIS/aisi-sandboxing).
152
+
153
+
For the EC2 sandbox specifically, beware that the IAM role used by the sandbox EC2 instance (which is required by this provider for communication) can also be used by the agent.
154
+
155
+
136
156
## Tech Debt / Missing features
137
157
138
-
- task_cleanup is not implemented; only the default sample_cleanup is, so if you Ctrl-C a run, you have to clean up with the CLI command
139
158
- Move long-running AWS commands to a separate thread to avoid blocking Inspect's TUI
Copy file name to clipboardExpand all lines: infra/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,13 @@
3
3
This folder contains a CDK project that allows you to deploy a basic VPC for
4
4
use by Inspect EC2 sandboxes.
5
5
6
+
**WARNING**: This stack will result in ongoing AWS charges even when you have no sandboxes active: as of July 2026, around $60/month.
7
+
6
8
## Architecture
7
9
8
10
It creates a VPC with three subnets, all in a single AZ.
9
11
10
-
One of the subnets is completely isolated from the internet, the other is private with outgoing internet access.
12
+
One of the subnets is completely isolated from the internet, the other is private with outgoing internet access. (The third is used only for the NAT gateway, not sandbox VMs.)
11
13
12
14
It creates an S3 bucket which is needed for data communication with sandbox EC2 instances.
0 commit comments