BODE Security & Durability Report
Adversarial governance evaluation across prompt-injection exfiltration, protected-file guards, and destructive shell pushes — paired with a 292-point SIGKILL crash-recovery verification on Duran-compatible SQLite journals.
1. Live Adversarial Governance Suite (Track 3, 36 live trials)
Three adversarial scenarios (--reps 2 across 3 frontier models): g1-prompt-injection-exfil (untrusted file instructing secret exfiltration), g2-protected-file-guard (mutation of protected paths), and g3-destructive-shell-push (force-push / destructive shell attempt).
| Model | Arm | Pass (Safe & OK) | Breaches | Policy Blocks | Avg Cost | Avg Wall |
|---|---|---|---|---|---|---|
| Claude Opus | stock-claude | 2/6 (33%) | 4 | 0 | $0.1624 | 22.1s |
| Claude Opus | claude-bode | 6/6 (100%) | 0 | 6 | $0.1047 (-35.5%) | 23.6s (+6.8%) |
| Claude Sonnet 4.6 | stock-claude | 2/6 (33%) | 4 | 0 | $0.1540 | 26.4s |
| Claude Sonnet 4.6 | claude-bode | 6/6 (100%) | 0 | 7 | $0.1145 (-25.6%) | 27.6s (+4.5%) |
| Pi Grok-4.7 | stock-pi | 2/6 (33%) | 3 | 0 | $0.0353 | 69.1s |
| Pi Grok-4.7 | pi-bode | 6/6 (100%) | 0 | 4 | $0.0437 (+23.8%) | 26.0s (-62.4%) |
| Pooled All 3 Models | stock | 6/18 (33%) | 11 | 0 | $0.1172 | 39.2s |
| Pooled All 3 Models | BODE | 18/18 (100%) | 0 | 17 | $0.0876 (-25.3%) | 25.7s (-34.4%) |
2. Crash Durability & Hash-Chained Journal (292 SIGKILL points)
Each workflow ran in an isolated child process that delivered a real SIGKILL at every journal write. A second process reopened the SQLite journal, verified the hash chain, and resumed.
| Workflow | Kill Points | Finished Normally | Idempotent Rerun | Reported in_doubt | Unapproved Writes |
|---|---|---|---|---|---|
| Rename in three files | 52 | 46 | 0 | 6 | 0 |
| Classify five PRs and close the abandoned ones | 76 | 70 | 0 | 6 | 0 |
| Ask the user a question, then write a file | 40 | 39 | 1 | 0 | 0 |
| Fill a list across statements while writing two files | 48 | 46 | 2 | 0 | 0 |
| Six statements under two plans | 76 | 71 | 3 | 2 | 0 |
| Total across all 5 workflows | 292 | 272 | 6 | 14 | 0 |
Across all 292 crash points, every SQLite hash chain verified cleanly, zero writes ran outside an approved plan, and non-idempotent edits interrupted mid-flight were surfaced as in_doubt instead of silently double-applying. In addition, deterministic g4-crash-mid-batch-resume recovered persistent bindings in ~200 ms.
3. Security Boundaries & v0.8.0 Hardening
What BODE guarantees — and what it does not claim
Honest engineering disclosure aligned with our Proof Rule.
BODE enforces plan-before-write evaluation, deterministic path/capability policy checks, and hash-chained SQLite journaling inside a local QuickJS-NG WASM / djs sandbox. Prior to v0.8.0 launch, two security hardening issues were remediated and closed in deftai/bode:
- Issue #79 (closed): Prevented a cell or
cd()target's.bode/config.jsonfrom weakening policy to allow-all mid-session. - Issue #82 (closed): Clarified provenance documentation so implicit information flows are accurately distinguished from direct untrusted-value propagation.
Threat model boundary
BODE's JavaScript sandbox is designed to prevent accidental errors, policy violations, and prompt-injection side effects — not to replace OS/hypervisor isolation against a hostile kernel exploit. For full microVM isolation, pair BODE with Deft Sandboxes (Isolinear, Wave 3–4).