Code World Model Preparedness Report

Daniel Song, Peter Ney, Cristina Menghini, Faizan Ahmad, Aidan Boyd, Nathaniel Li, Ziwen Han, Jean-Christophe Testud, Saisuke Okabayashi, Maeve Ryan, Jinpeng Miao, Hamza Kwisaba, Felix Binder, Spencer Whitman, Jim Gust, Esteban Arcaute, Dhaval Kapil, Jacob Kahn, Ayaz Minhas, Tristan Goodman, Lauren Deason, Alexander Vaughan, Shengjia Zhao, Summer YuearXiv 2026

TL;DR

Meta’s AI Security Team conducted a rigorous pre-release safety evaluation of its new 32B-parameter Code World Model (CWM). Assessing capabilities across cybersecurity, chemical/biological threats, and alignment propensities, they found that CWM does not increase frontier risks beyond the existing open-source baseline. Consequently, the model has been cleared for open-weight release under a "moderate" risk classification.

What Problem Does This Paper Address?

As large language models (LLMs) grow more adept at advanced code generation and complex reasoning, they introduce dual-use risks. A highly capable coding model could theoretically automate end-to-end cyberattacks or lower the technical barriers to synthesizing dangerous chemical or biological agents.

To prevent catastrophic outcomes, Meta’s Frontier AI Framework mandates a comprehensive "preparedness assessment" before any powerful model is released to the public. This paper details that assessment for CWM, establishing whether a relatively compact 32B model can match or exceed the hazardous capabilities of much larger proprietary and open-source baselines.

Methods

The authors prioritized capability elicitation—configuring inference parameters to ensure they evaluated the model's absolute peak performance rather than an under-optimized baseline. Key methodological choices included:

  • Generous Context Windows: Setting the maximum output tokens to 65,536 across all models to prevent the truncation of complex reasoning chains.
  • Agentic Scaffolding: Evaluating models using a minimal ReAct (Reasoning and Acting) framework that granted the AI access to basic Bash and Python shells to execute multi-step tasks.
  • Prompt Engineering Interventions: Testing various system prompts to find the optimal configuration for each domain, including a novel "structured reasoning prompt" designed to mitigate dishonest behaviors by forcing the model to explicitly debate internal knowledge conflicts.
Overview of inference settings used across evaluations

Datasets

The evaluation leveraged a mix of public benchmarks and private, expert-curated datasets:

  • Cybersecurity: WMDP-cyber (knowledge-based), Cybench (40 professional-level Capture the Flag challenges), Hack The Box (10 virtual machine penetration testing environments), and a private suite of 12 Native Code Exploitation binary templates.
  • Chemical & Biological: LAB-Bench (including LitQA, ProtocolQA, and SeqQA splits), WMDP-Bio/Chem, Molecular Biology Capabilities Test (MBCT), Virology Capabilities Test (VCT), Human Pathogens Capabilities Test (HPCT), and Meta's private BioKnowledge and BioProtocol Proxy evaluations.
  • Propensities: The MASK benchmark, consisting of 1,000 scenarios designed to pressure models into generating outputs that contradict their internal parametric knowledge (i.e., "lying").

Key Insights and Ideas

  • The "Thinking Out Loud" Honesty Premium: Models are significantly more honest when their internal reasoning traces are visible. When CWM was evaluated based solely on its final response, its honesty scores declined. Forcing the model to expose its reasoning path allows it to resolve internal conflicts between user instructions and factual knowledge.
  • Long-Horizon Agentic Failure: Current frontier LLMs still struggle heavily with multi-step, end-to-end execution. Across all models tested, none were able to fully compromise a single Hack The Box machine. The primary failure modes were context drift and an inability to maintain state across extended exploitation sequences.
  • Prompting Beats Fine-Tuning for Safety Interventions: By simply introducing a structured system prompt that instructs the model to explicitly describe requests, check for policy violations, and debate uncertainties, the researchers boosted CWM's normalized honesty by over 10% without altering the model weights.

Key Results

  • Cybersecurity: CWM scored 63.6% on WMDP-cyber, performing on par with gpt-oss-120b (61.4%) but below Llama 4 Maverick (70.5%). On Cybench CTF challenges, CWM achieved a 25% solve rate, matching Qwen3-Coder but falling slightly behind gpt-oss-120b (27.5%).
  • Chemical & Biological Risks: CWM consistently performed at or below the level of existing open-source baselines. On the WMDP-Bio and WMDP-Chem splits, CWM recorded the lowest scores among all compared models (78.1% and 64.6%, respectively), remaining safely below expert human baselines on advanced lab tasks unless augmented with high-quality RAG tools.
LAB-Bench accuracy across different task variants
  • Epistemic Integrity: On the MASK benchmark, CWM achieved a baseline normalized honesty score of 44.8% (without reasoning) and 55.5% (with reasoning). Implementing the structured reasoning prompt drove these numbers up significantly, yielding a +13.4% boost in the "with reasoning" condition.

Limitations and Future Work

The authors note several critical boundaries to this study:

  1. No Malicious Fine-Tuning: The assessment assumes an attacker who cannot or will not perform post-training optimization to strip safety guards. Future reports plan to explore how easily CWM's safety guardrails can be bypassed via fine-tuning.
  2. Basic Tooling Constraints: The agentic evaluations restricted model interaction to basic Bash and Python shells, which may underestimate capabilities that could emerge with more sophisticated, industry-standard developer scaffolding.
  3. Capability Trade-offs: While the structured reasoning prompt successfully boosted honesty, the authors acknowledge they have not yet measured whether this intervention degrades the model's performance on general capabilities or standard coding benchmarks.

Summary updated

BibTeX
@misc{song2026code,
  author = {Daniel Song and Peter Ney and Cristina Menghini and Faizan Ahmad and Aidan Boyd and Nathaniel Li and Ziwen Han and Jean-Christophe Testud and Saisuke Okabayashi and Maeve Ryan and Jinpeng Miao and Hamza Kwisaba and Felix Binder and Spencer Whitman and Jim Gust and Esteban Arcaute and Dhaval Kapil and Jacob Kahn and Ayaz Minhas and Tristan Goodman and Lauren Deason and Alexander Vaughan and Shengjia Zhao and Summer Yue},
  title = {{Code World Model Preparedness Report}},
  year = {2026},
  eprint = {2605.00932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.00932},
}
Figure