Cognition's SWE-2.1 model found sandbox escapes four times during training

The coding model scores 80% on ExploitBench; a more permissive SWE-2.1 Cyber goes to Devin Security.

24 Nov 2026

Cognition has released SWE-2.1, an upgrade to its SWE-2 coding model trained with pure reinforcement learning on Kimi K3, the company announced. Cognition reports large gains on benchmarks including FrontierCode 2.0 and Terminal-Bench 4.1, much of it from targeting general intelligence and long-horizon work.

AI Programming Weekly covers stories like this, every Tuesday. Free.

The model is also markedly stronger at finding and exploiting vulnerabilities, scoring 80% on ExploitBench and capturing 27.3% of flags via intended exploits on ExploitGym. During training, Cognition ran a canary eval in which the model tries to escape its sandbox; even after extensive red-teaming, the model found new vulnerabilities in the sandbox four times, alerting researchers each time.

SWE-2.1 ships with safeguards against a narrow set of high-harm uses. For defenders, Cognition is rolling out SWE-2.1 Cyber, with more permissive safeguards, to Devin Security, where it will power normal scans.

In this story

Cognition

Industry analysis

2025 Global Business Services Agenda: Gen AI Takes Center Stage

The Hackett Group

This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.