Constraint
An AI agent combines a language model with the tools a job requires, and an autonomous agent also consumes material its operator never wrote: it ingests web pages, emails, documents and tool results from sources nobody has checked. Whatever it reads, the model treats as instructions it might follow, and prompt injection works exactly this way. A single poisoned invoice can therefore turn "summarize my inbox" into an attempt to send credentials to an attacker.
The permission prompt is the defence in use today: it halts every action of the agent and puts a human in the loop for review. Teams that run coding agents such as Claude Code with full autonomy switch it off, because an agent must keep going without asking, and our own fleet runs with permissions bypassed. The lab therefore carries this exposure itself.
The permission prompt, though, gates the agent's outputs rather than its inputs, and the attack travels in through the material the agent reads. Airlock gates the input side instead, along a boundary owned by the operator: a small open model on hardware the operator controls decides what reaches the large model. We preferred that choice to hardening a frontier model, which remains distant, closed, and retrained on a schedule set by someone else.
Two tiers
Airlock intercepts content at 2 tiers, each of which also works alone. The network tier is the airlock run command, which wraps any command inside a sandbox whose only exit is the screening proxy. Every response passes through that proxy before the agent reads it, outgoing requests may reach only approved hosts, and anything resembling a secret key is stripped first. On Linux the kernel enforces the sandbox and kills any process that ignores its proxy configuration, while macOS falls back on the proxy environment variables, as the threat model documents.
The network tier sits at the edge, apart from the agent, and works unchanged for Claude Code, Codex, opencode or any shell script, yet our note on replicating an agent found that a gate at that position only observes what passes through it. Certain tool outputs stay off the network entirely. The tool tier, airlock protect, covers those closer to the model by screening the exact text that a given agent's tools return through MCP, the Model Context Protocol.
The screener
Both tiers feed the same screener, and each verdict comes from a call to Gemma 3 running on the operator's hardware. The model answers with allow or quarantine, names which attack family it belongs to and quotes the malicious excerpt as evidence, and a quarantine keeps the content away from the agent. Whenever a response comes back malformed, the code blocks the content, so the screener fails closed.
Alongside Gemma 3, EmbeddingGemma compares the meaning of incoming content against a reference corpus of documented attack families, forcing a quarantine whenever similarity passes a threshold. Disguised variants of known attacks, which a fresh reading might find ambiguous, get caught this way.
Local execution is part of the architecture, because a cloud screening service would need to receive the content it screens, secrets and attacks included. Nothing from a screened session ever leaves the machine.
The trust ledger
The trust ledger receives every verdict, and each source the agent consults builds up a file there over time. When a quarantine fires, it records a revocation of trust, dated, and quoting the exact excerpt that triggered it. The ledger keeps bi-temporal records, so the trust state at any past moment can be replayed exactly as it existed then. Verdicts reach the operator through a live feed, and a quarantine pauses that feed just as it pauses the agent.
Architecture
Along the full path, content first enters through the sandbox and then meets the screener, and only what passes reaches the model. Whatever fails leaves a double trace: one notice tells the agent the content stayed out, and one dated revocation lands in the ledger.
Evidence
Any gate can fail in 2 ways, the 2 errors every gate shares: an attack slips through on a false acceptance, and a false rejection stops a benign input. We measured both zero-shot, with no training and no task-specific examples, on the public prompt-injections benchmark from deepset together with a corpus we held out. The 12B screener reaches a true positive rate of 76.5% at 5.4% false positives, and 68.3% on the public benchmark alone. Its misses count as false acceptances, and its false positives as false rejections.
The held-out corpus spans 7 attack families, ranging from direct override to exfiltration hidden in base64, and the 4B and the 12B each catch 21 of 21 payloads in it. The demo we submitted ran the 4B locally on an ordinary consumer laptop. The 1B model drops to 13.6% when the corpora are combined. That result is the instructive one: screening discipline appears only with scale, and the smallest screener that works is a locally run 4B. The repository ships the benchmark harness, which reproduces the results with a single command.
Recognition
Airlock earned 2nd place in the Google DeepMind track of the hackathon that ran in Paris during July 2026, part of the RAISE Summit, whose 2026 winners list includes Airlock.
RAISE organized the hackathon together with Cerebral Valley and presented it as the largest AI hackathon in the world, with more than 8,000 applicants for the 2026 edition. The admitted teams built 138 projects, and Google DeepMind, the lab behind the open Gemma models, ran 1 of the 4 tracks. That track required applications to run Gemma locally for offline inference, with an emphasis on privacy.
Judging relied on a demo video of roughly 1 minute together with the public repository. Admitted teams were told the weighting: half the score for the demo, 25% for impact, 15% for creativity, and 10% for the pitch.
Airlock matches that brief, since Gemma runs locally on the machine of the person operating it and issues every safety verdict for agent-facing content. The demo we submitted shows the screener working on a standard laptop anyone could buy, and raise-submission is the tag that preserves the code exactly as entered.
A competition ranking rates how well a project meets its brief, while the share of attacks the filter stops is quantified in the evidence earlier on this page.