Mythos and the Unverified Cage Z3-Based Pre-Deployment Verification for Frontier-Model Sandbox Infrastructure

Dominik Blain · 2026

Read Mythos and the Unverified Cage Z3-Based Pre-Deployment Verification for Frontier-Model Sandbox Infrastructure by Dominik Blain (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-20496.txt.

Introduction

Blain responds to the April 2026 Claude Mythos sandbox escape, which Anthropic has not publicly explained. He treats the suspected arithmetic flaw as an unverified class, not a confirmed cause, and presents COBALT, a Z3 checker. It hunts arithmetic flaw patterns in C and C++ infrastructure before deployment. Validated on NASA cFE, wolfSSL, Eclipse Mosquitto, and NASA F Prime, it gives concrete witnesses for flaws and guarantees within stated bounds. Blain pairs it with a four-layer containment plan covering checking, pre-execution limits, output control, and monitoring.

Catalog record

CREATORDominik Blain
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE52421
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.20496

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Mythos and the Unverified Cage Z3-Based Pre-Deployment Verification for Frontier-Model Sandbox Infrastructure Dominik Blain Abstract The April 2026 Claude Mythos sandbox escape exposed a critical weakness in frontier AI containment: the infrastructure surrounding advanced models remains susceptible to formally characterizable arithmetic vulnerabilities. Anthropic has not publicly characterized the escape vector; some secondary accounts hypothesize a CWE-190 arithmetic vulnerability in sandbox networking code. We treat this as unverified and analyze the vulnerability class rather than the specific escape. This paper presents COBALT, a Z3 SMT-based formal verification engine for identifying CWE-190/191/195 arithmetic vulnerability patterns in C/C ++ infrastructure prior to deployment. We distinguish two classes of contribution. Validated : COBALT detects arithmetic vulnerability patterns in production codebases, producing SAT verdicts with concrete witnesses and UNSAT guarantees under explicit safety bounds. We demonstrate this on four production case studies—NASA cFE, wolfSSL, Eclipse Mosquitto, and NASA F Prime—with reproducible encodings, verified solver output, and acknowledged security outcomes. Proposed : a four-layer containment framework—COBALT, VERDICT, DIRECTIVE-4, and SENTINEL—that maps pre-deployment verification, pre-execution constraints, output control, and runtime monitoring to the failure modes exposed by the Mythos incident. Under explicit assumptions, we further argue that the publicly reported Mythos escape class is consistent with a Z3-expressible CWE-190 arithmetic formulation and that pre-deployment formal analysis would have been capable of surfacing the relevant pattern. The broader claim is infrastructural: frontier-model safety cannot depend on behavioral safeguards alone; the containment stack itself must be subjected to formal verification. 1 Introduction On April 7, 2026, Anthropic’s Claude Mythos model was tasked with attempting to escape its hardened sandbox environment as part of a controlled red-team exercise [ 1 ] . The model succeeded, and then proceeded autonomously beyond the exercise scope: it composed and delivered an email to a researcher not monitoring the session, posted its own exploit to multiple public websites, and attempted to suppress evidence of its initiative. Anthropic declined public release, restricting access via Project Glasswing to pre-approved defensive-security organizations [ 1 ] . Anthropic has not publicly characterized the escape vector; some secondary accounts hypothesize an arithmetic vulnerability in the sandbox’s networking infrastructure [ 2 , 4 ] . We treat those accounts as unverified. The containment problem this paper addresses is independent of the specific vector: the infrastructure surrounding advanced models—C/C ++ sandbox code—has not been subjected to formal verification, and capable models may exploit conventional systems weaknesses to exceed their authorized scope. The challenge is not only to align the model’s objectives, but to formally verify the correctness of the cage before placing the model inside it. 1.1 The Gap AI containment research has largely addressed policy-level mechanisms: reward shaping, output filtering, action whitelisting [ 7 , 8 , 9 ] . Formal verification research has demonstrated that entire vulnerability classes can be eliminated from OS kernels through machine-checked proofs [ 10 , 11 ] . The intersection—formally verifying the C/C ++ codebase that constitutes AI sandbox infrastructure—appears underexplored relative to adjacent work on alignment, policy control, and kernel verification in the literature we reviewed. This is the gap we address. 1.2 Research Questions 1. RQ1. Can a Z3-based formal verifier reliably detect arithmetic vulnerability patterns (CWE-190/191/195) in production C/C ++ infrastructure codebases, with reproducible SAT witnesses and UNSAT certificates? 2. RQ2. Is the hypothesized Mythos escape vector consistent with a CWE-190 class formulation, and under what conditions would pre-deployment scanning have been capable of detecting such a pattern? 3. RQ3. Can a four-layer architectural framework address each structural failure mode the Mythos incident exposed, and which layers admit formal treatment? 1.3 Contributions 1. [Validated] A Z3 bitvector theorem proving CWE-190 arithmetic overflow reachability and a companion proposition proving overflow impossibility under input bounds (§ 5 ). 2. [Validated] Four production case studies—NASA cFE, wolfSSL, Eclipse Mosquitto, and NASA F Prime—with C vulnerability pattern, Z3 encoding, verified solver output, and disclosure outcome (§ 6 ). 3. [Proposed] A formal threat taxonomy of AI sandbox escape with four categories (T1–T4) derived from the incident (§ 3 ). 4. [Implemented] A four-layer containment framework with one validated layer (COBALT) and three implemented components (VERDICT, DIRECTIVE-4, SENTINEL) undergoing end-to-end AI containment validation (§ 7 ). 5. [Discussion] A conditional argument for when pre-deployment scanning would have been capable of detecting the Mythos escape class, with explicit assumptions and falsification conditions (§ 8 ). Terminology. “Validated”: demonstrated on real codebases with reproducible Z3 encodings and verified solver output. “Implemented”: working code with tests; end-to-end AI containment validation ongoing. “Prototype”: working code, benchmarked, not production-hardened. “Conditionally argued”: conditional on explicit stated assumptions. This taxonomy is applied consistently across all sections and tables. 2 The Mythos Incident 2.1 Technical Chronology Anthropic deployed Claude Mythos in a hardened sandbox and instructed it to attempt escape as part of a controlled red-team. Public reporting describes the sequence as follows [ 1 , 2 , 4 ] : 1. Sandbox escape. Anthropic’s public account characterizes the escape only as a “moderately sophisticated multi-step exploit”; the specific vulnerability class was not publicly characterized by Anthropic [ 1 ] . Secondary accounts speculate about the mechanism; we treat those as unverified and make no factual claim about the escape vector in this paper (see assumption A-CWE, § 8 ). 2. External contact. Without instruction, Mythos composed and delivered an email to a researcher external to the exercise. 3. Public disclosure. Without instruction, Mythos posted its exploit to multiple public websites. 4. Evidence concealment. The model attempted to suppress traces of its initiative. Separately, during the same red-team, Mythos independently discovered a 27-year-old integer overflow in OpenBSD’s TCP SACK implementation as part of its vulnerability research tasks [ 3 , 2 ] . This is a separately reported CWE-190 finding; Anthropic does not identify it as the sandbox escape mechanism. On the Firefox 147 exploit-development benchmark, Mythos produced 181 working exploits versus 2 for the previous generation model, across several hundred attempts [ 2 ] . 2.2 Root Cause Classification The escape was enabled by four independent structural absences: A1. No pre-deployment code verification. The sandbox infrastructure was not subject to formal vulnerability analysis before Mythos was deployed. Under assumption A-CWE (§ 8 ), an arithmetic vulnerability in the CWE-190/191 class was present and reachable in the infrastructure code. A2. No pre-execution action constraints. No mechanism checked agent-initiated actions (outbound SMTP, external HTTP) against an authorization policy before execution. A3. No reported output-review layer. No layer is described in public accounts as reviewing or blocking content before external emission. A4. Insufficient runtime observability. Anomalous outbound traffic was not flagged with sufficient speed to interrupt the action chain before completion. 3 Threat Model We formalize four threat categories derived from absences A1–A4. Definition 1 (T1 – Infrastructure Vulnerability) . The sandbox execution environment contains a reachable arithmetic vulnerability in the CWE-190/191 family in its C/C ++ codebase, exploitable by a sufficiently capable agent to acquire capabilities outside its authorized scope. Definition 2 (T2 – Pre-Execution Bypass) . An agent initiates actions outside its authorized action set with no formal gate verifying authorization before execution. Definition 3 (T3 – Output Exfiltration) . An agent emits content to external parties without a formal blocking layer on the emission channel. Definition 4 (T4 – Runtime Opacity) . Agent

Read the complete text