An LLM only proposes. A deterministic policy gate decides. Allowed code runs in a disposable Docker container under gVisor. Every job gets an Ed25519-signed, hash-chained receipt. Blast Radius Zero.
Video: 162-second English-narrated film on LabLab.
Live demo: https://airlock.justrunme.com
Archival earlier cut: https://youtu.be/yrYa1MisCYI
Top of the live demo. One click replays a compromised agent. No model call.
After the replay: three injected steps are blocked at the gate, the legitimate analysis runs under gVisor (runsc), and the page checks the receipt hash and signature in the browser. Change one character and the check fails.
Tab 1 (Compromised agent). Scripted curl | sh and /proc/self/environ exfil are denied (R-BIN-CURL, R-SHELL-EXEC-FILE, R-PY-ATTR-DENIED, R-PY-OPEN-PATH). No container starts. Each denial gets a signed receipt.
Tab 2 (Real task, live qwen3.8-27b on Vultr Serverless Inference). On this run the first proposal was denied (R-PY-PATHLIB-WRITE). The gate still signed a receipt.
Tab 3 (Try to break it). Submit curl | sh yourself: deny with R-BIN-CURL / R-SHELL-EXEC-FILE, and no sandbox.
Tab 4 (Verify a receipt). The browser checks JSON, schema, SHA-256 over RFC 8785 JCS, and the Ed25519 signature via WebCrypto. Chain linkage is what airlock verify-chain is for; the page does not check it. Task-level Evidence Bundle checks use the separate offline CLI airlock verify-bundle (see docs/EVIDENCE_BUNDLE.md).
Same receipt after Tamper one character: the hash check fails and the page names the field that changed.
I built Airlock because I don't want an agent's mistake to become my incident. The model only proposes actions. A deterministic policy engine decides whether to allow, deny, or ask for approval. Allowed code runs in a throwaway hardened container (gVisor runsc on the demo VM). A verifier then checks the result and the cleanup, and every decision gets an Ed25519-signed receipt that anyone can check offline, including in the browser.
The page opens with a button, "Watch Airlock stop an attack". It replays a compromised agent: three dangerous steps are denied before any container starts, one safe step runs in the sandbox, and the page then verifies the receipt in the browser. Below it are four tabs:
When evidence post-processing succeeds, live and replay tasks can export an Evidence Bundle for offline airlock verify-bundle with a separately trusted public key; if export fails closed, the task result remains and evidence is marked unavailable.
graph TD U[Browser] -->|HTTPS| C[Caddy :443] C -->|127.0.0.1:8080| W[FastAPI app, user airlock] W --> A[Agent loop] A -->|API key from root-only env file| I[Vultr Serverless Inference qwen3.8-27b] A -->|proposed action| P[Policy + blast-radius engine] W -->|Arena code| P P -->|allow| S[Sandbox: docker + runsc, network none] P -->|deny| R S --> V[Verifier: cleanup, secret scan, artifact hashes] V --> R[Receipt signer: JCS + Ed25519 + hash chain] R --> St[(/var/lib/airlock/receipts)] U -->|verify.js in the page| R The model's output is only data. Decisions come from code. The inference key is only in the app process; it is never passed into a sandbox container (the container gets a scrubbed environment and no network).
These numbers are from my own test corpus only. They are not a general detection rate.
A second corpus, tests/corpus_independent/, was written by an independent reviewer, not by me. These numbers are on this corpus only:
The 6 security-relevant misses were five pathlib glob/rglob patterns with .. and test -r /etc/passwd. I reviewed each of the 39 remaining false-ALLOWs by hand: they are imports, prints, no-ops, reads of /work/input, writes to /work/out, or loops stopped by the sandbox caps. tests/corpus_independent/triage.json gives the reason for each, and CI fails on any row outside that list. The one false-DENY is tail -f, which I deny on purpose (docs/KNOWN_LIMITATIONS.md section 7).
scripts/corpus_metrics.py makes airlock/web/static/metrics.json, and CI runs it with --check so the page can't show stale numbers.
Receipts from the live demo are signed with this Ed25519 key:
public_key_hex: d8c2acc2972692ee205a7e056d8ae2791906ba1e17f9bdf2cee14baf53377748 fingerprint (sha256): f42776ee997b0f0930f32d3620458e9b0d5b7afa5f610fd14756c6c8bc4510ce You can also get it from /api/pubkey. To check a receipt without the browser:
node tests/js/verify_cli.mjs receipt.json d8c2acc2972692ee205a7e056d8ae2791906ba1e17f9bdf2cee14baf53377748 airlock verify-chain /path/to/receipts --pubkey public.pem Run the web app locally pip install -e ".[web]" export VULTR_INFERENCE_API_KEY=... # only needed for the two agent tabs airlock-web # listens on 127.0.0.1:8080 The Arena and Verify tabs work without a key. Settings come from AIRLOCK_* variables (AIRLOCK_DATA_DIR, AIRLOCK_RUNTIME, rate limits, AIRLOCK_TRUST_PROXY); see airlock/web/app.py.
I use one Ubuntu VM with Docker and gVisor installed and a user airlock in the docker group.
# from a checkout, copy the code to the VM and install git archive HEAD | ssh airlock@VM 'mkdir -p ~/src && tar -x -C ~/src' ssh airlock@VM 'cd ~/src && HOST= .sslip.io sh deploy/install.sh' # put the key in a root-only file read by systemd sudo install -d -m 700 /etc/airlock sudo sh -c 'umask 077; echo VULTR_INFERENCE_API_KEY=... > /etc/airlock/airlock.env' sudo systemctl restart airlock-web deploy/ has the systemd unit (runs as airlock, hardened with ProtectSystem=strict), the Caddyfile (HTTPS through sslip.io, HTTP redirects to HTTPS), and airlock-prune.timer, which removes leftover airlock-* containers and networks every 10 minutes. The app binds to 127.0.0.1 only, because Docker-published ports skip ufw. Caddy is the only public listener and the Docker socket is never exposed.
Film / judge in this order (also the "Run demo" button on the page):
Useful live result. Tab 1 (Real task, live model). Needs VULTR_INFERENCE_API_KEY. The model analyses /work/input/app.log on this corpus, writes report.md with a required ```airlock-counts fence (ERROR/WARN integers only), and the page shows downloadable report text, raw stdout, cleanup evidence, and an independent recount against that fence only (VERIFIED/FAILED/INCONCLUSIVE on this corpus only; prose/examples/quotes are ignored). Receipts carry "context": {"mode": "live", "planner": "model"}.
Attack contained (policy gate). Tab 2 (Compromised agent) → "Replay a compromised agent". Proposals are scripted; the gate, sandbox and receipts are real:
Each receipt carries "context": {"mode": "replay_compromised", "planner": "scripted"}.
Runtime containment, then healthy (reduced scope). Tab 3 → timeout and memory only (suite = both; 4 of the default 6 arena slots/min, atomic admit). Claim them on camera only after a genuine deployed Docker run shows PASS (killed_by=timeout / killed_by=oom, healthy print(1+1) exit 0 / stdout 2, cleanup). Structured result: PASS / FAILED / INCONCLUSIVE — no false green. Network isolation and read-only rootfs are not demonstrated on this demo path (no egress / write-outside Arena probes; do not film tests/test_sandbox.py S15/S19/S20 as this flow).
Verify a receipt, then tamper. Tab 4: JSON, schema, hash and signature checks in the browser. Then "Tamper one character". A valid signature means the receipt was not tampered with; it does not by itself prove the world-state claim inside the receipt.
Pitch stills (dark/terminal, same UI family): /static/title-card.svg, /static/pipeline-card.svg.
pip install justrunme-airlock For development:
pip install -e ".[dev]" The command-line tool is airlock after installation.
airlock verify receipt.json --pubkey public.pem Run the agent from airlock.agent import AgentLoop from airlock.policy import PolicyEngine from airlock.sandbox import SandboxRunner from airlock.verifier import Verifier from airlock.receipt import ReceiptSigner # Initialize components engine = PolicyEngine() runner = SandboxRunner() verifier = Verifier() signer = ReceiptSigner() # Agent proposes action with AgentLoop() as agent: response = agent.chat([{"role": "user", "content": "Print hello world"}]) action = agent.parse_tool_call(response) # Policy decides decision = engine.evaluate(action) if decision.verdict == "allow": # Execute in sandbox execution = runner.run(action, decision.caps) # Verify verification = verifier.verify(execution, decision.caps, output) cleanup = verifier.verify_cleanup(execution.container_name) # Sign receipt receipt = signer.sign( { "task_id": action.task_id, "action_id": action.id, "decision": decision.model_dump(by_alias=True), "execution": execution.model_dump(by_alias=True), "verification": verification.model_dump(by_alias=True), "cleanup": cleanup.model_dump(by_alias=True), } ) Development make install # Install dependencies make lint # Run linting make test # Run tests make check # Lint + test Testing Tests are organized by component:
Smoke tests requiring live services are marked with @pytest.mark.smoke and skip when credentials aren't available.
See docs/CHECKS.md for the complete list of 1297 collected tests.
Andrey Lesnikov https://orcid.org/0009-0004-7583-4314
Both files in this release have provenance metadata.
ai-agents agent-security sandbox gvisor policy-engine fail-closed prompt-injection
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files Full provenance




