Skip to content
Operations

Security

Six independent security layers protecting the x0x1 pipeline: network isolation, one-way air-gap relay, bubblewrap sandbox, dual Anvil simulation, exploit cross-reference, and exact-amount approvals.

The Signing Flow isolates keys from the internet through physical device separation. This page covers the additional security layers that protect the networked machine where the AI agent, simulation, and research run.

Security layers

Each layer operates independently. Compromising one changes nothing about the others:

01
Network isolation
Air-gapped signing device. Keys and internet never coexist. Physical architecture constraint.
02
One-way transport
Air-gap relay carries TX bytes only. No bidirectional state. No key access.
03
Bubblewrap sandbox
Agent runs in bwrap: read-only fs, no sudo, blocked SSH keys, OpenSnitch monitoring.
04
Dual simulation
Anvil simulation pre-sign AND post-sign. Two independent verifications.
05
Exploit cross-ref
523+ hacks in DB. Every position auto-checked. Recent unresolved = flagged.
06
Exact approvals
Exact-amount only. Enforced in pipeline code. See verification.

Sandbox architecture

The AI agent runs inside a bubblewrap (bwrap) sandbox — a lightweight Linux container that restricts filesystem access, network, and privileges without a full VM:

ConstraintImplementation
FilesystemRead-only except specific writable paths
~/.ssh/Mounted as tmpfs — agent cannot access real SSH keys
~/.gnupg/Blocked entirely
SudoBlocked by hook — no privilege escalation
Settings/hooksRead-only bind mounts
NetworkAll external traffic through SOCKS5 + OpenSnitch monitoring
Hooks enforce additional constraints at runtime: no SSH key deletion, no infinite approvals, no financial data to external services, no auto-blocking positions.

Approval hygiene

Most DeFi frontends approve type(uint256).max, giving the contract permission to move all your tokens indefinitely. If that contract is exploited months later, your entire balance is drained. The pipeline scopes every approval to the exact amount needed.

After each transaction:

For automated risk scoring and portfolio monitoring, see the Risk Engine.