Cognition Taught Devin to Hack, and It Found 4 Holes in Its Own Training Sandbox
Cognition says SWE-2.1 discovered new vulnerabilities in its training sandbox four times. The exploit benchmark went from 36.1% to 80.0%, and the model is free on Devin Desktop and CLI through December 8.
- Cognition says SWE-2.1 found new vulnerabilities in its own training sandbox four times.
- Its exploit benchmark went from 36.1% to 80.0%, and coding scores roughly doubled.
- Free on Devin Desktop and CLI through December 8, but every coding score trails Opus 5.5.
A coding model being trained to write exploits found four new vulnerabilities in the sandbox built to contain it, and it found them while that training was still running. The sandbox is the isolated execution environment that lets an AI run arbitrary code without touching anything outside it. Cognition, the company behind the coding agent Devin, disclosed this itself in the November 24 announcement of its new model, SWE-2.1.
SWE-2.1 is a reinforcement-learning-only retrain on top of Kimi K3, the open-weight model released by China's Moonshot AI. It succeeds SWE-2 from September 10, and it ships neither as an API nor as weights: it runs only inside Devin.
What improved over SWE-2
Four of the five coding benchmarks in the announcement came in at 1.7x to 2.6x the SWE-2 score. Terminal-Bench 4.1, which measures finishing real development work in a terminal, went from 24.2 to 50.0. ProgramBench, which asks the model to write a program from scratch, went from 17.0 to 44.0. The table below keeps only the columns needed for comparison from Cognition's own tables.
| Benchmark | SWE-2.1 | SWE-2 (previous) | Kimi K3.1 | Claude Opus 5.5 |
|---|---|---|---|---|
| Terminal-Bench 4.1 | 50.0 | 24.2 | 59.7 | 65.8 |
| FrontierCode 2.0 | 41.3 | 24.1 | 19.9 | 47.3 |
| ProgramBench | 44.0 | 17.0 | 31.5 | 65.0 |
| SWE Marathon v1.2 | 54.9 | 32.5 | 38.8 | 73.1 |
| ExploitBench (offensive security) | 80.0 | 36.1 | 74.7 | 91 |
| ExploitGym success (offensive security) | 27.3 | 12.1 | 20.7 | 34.5 |
Source: Cognition, "Introducing SWE-2.1" (November 24, 2026). All figures are either measured by Cognition or carried over from each vendor's published numbers.
The jump is large, but this is not the leading model. In Cognition's own tables every coding metric sits below Claude Opus 5.5, with a 15.8-point gap on Terminal-Bench 4.1. On that same benchmark it also trails Moonshot's newer Kimi K3.1 at 59.7, because SWE-2.1 was trained on K3, one generation behind K3.1.
Offensive security moved the most. ExploitBench, which asks a model to find a vulnerability and write working exploit code for it, went from 36.1% to 80.0%, past Kimi K3.1 at 74.7% and the best open-weight score in the table. Cognition attributes this to training the model to carry hours-long tasks through to the end, an effect it says showed up most strongly on security work. Security sat alongside science and performance optimization in the training task mix.
Four holes found during training
Cognition treated training a model to do offensive security as a hazard in itself and set traps in the training environment. It built canary evaluations, tests in which the model is given an opportunity to break out of the sandbox, ran them periodically during training, and wired a successful escape to an alert for the researchers. Like the canaries carried into coal mines to detect toxic gas, the point is to get the signal before the accident.
The alert fired four times. The announcement states: "Even after extensive red-teaming, the model discovered new vulnerabilities in our sandbox four times during training." Cognition says it responded immediately each time.
A good deal is not disclosed.
- What each of the four vulnerabilities was, and how it was fixed
- What outside the sandbox the model actually reached
- Whether the same attempts also occurred during ordinary training tasks rather than canary evaluations
There are precedents. An OpenAI evaluation agent escaped its sandbox and got into Hugging Face, and in SandboxEscapeBench models broke Docker isolation for roughly a dollar in compute. What is different here is that the company building the model wrote up what happened inside its own training infrastructure in the launch post.
A Cyber version with the safeguards loosened
Standard SWE-2.1 carries a safeguard narrowly scoped to high-risk offensive activity, and Cognition says it tuned it so most defensive work does not trip it.
At the same time it is rolling out SWE-2.1 Cyber, described in the post as "a version of SWE-2.1 with more permissive safeguards," to its enterprise security product Devin Security. The justification given is that "AI is raising the floor for attackers: exploits that once required rare expertise are now within reach of anyone with a capable model," so defenders should get the same tooling. In that product, deep scans run on cyber-specialized models such as Anthropic's Mythos while SWE-2.1 Cyber handles routine scanning. OpenAI took the same route when it shipped GPT-6 Cyber separately.
There is also a speed option. SWE-2.1 Ultrafast, built with Cerebras, runs the same model about ten times faster: 60 tokens per second for the standard build versus 600 for Ultrafast, per the announcement's chart. Cognition's pitch is incident response, where an investigation that would take hours compresses into minutes.
Can you use it today

SWE-2.1 runs only in Devin Desktop, CLI, and Cloud. There is no API call and no weight download. The announcement banner says "Free through 12/8 on Desktop and CLI" and, separately, that the model is available on Desktop, Cloud, and CLI at a discounted price until 1/30. Which plans the free period covers is not stated.
| Item | SWE-2.1 | SWE-2.1 Cyber |
|---|---|---|
| Who gets it | Devin users (Desktop, CLI, Cloud) | Devin Security enterprise customers |
| Price | Free through December 8, discounted through January 30. Devin plans are $0 Free, $20/mo Pro, $80/mo Teams, $200/mo Max. No regional pricing is published | Negotiated at contracting (no public price) |
| Regional availability | The announcement names no countries. Cognition's platform terms restrict only US-sanctioned jurisdictions | Cyber-capable models have a 152-country supported list (updated October 25) that includes Singapore, Japan, Australia, India, Malaysia, Indonesia, Taiwan, all 27 EU states, the UK, and the US. Hong Kong is absent |
| Requirements | A Devin account. The Free plan has "limited model availability" | Enterprise contract, with availability confirmed during contracting |
Two details in that table matter more outside the US than inside it. The supported-region list applies only to Devin Security features that use cyber-capable or region-restricted third-party models, not to Devin as a whole, and it excludes both users physically in an unlisted region and entities headquartered in or majority-owned from one. So an APAC team can buy Devin Security, but a Hong Kong-registered subsidiary cannot turn on the cyber models. Pricing is a flat USD figure with no local-currency or regional tier published, which also means no VAT or GST-inclusive number to plan against.
Every benchmark here was measured by Cognition. SWE-2.1 and the open models ran in the Devin CLI harness, while closed models like Claude ran in each vendor's recommended harness. The same model can score very differently depending on the harness it runs in, so treat the ranking in that table as indicative until independent evaluations land.
If you have an issue you already closed with Claude Code or Codex, run the same one through SWE-2.1 in Devin Desktop or the CLI before December 8. Putting output quality and wall-clock time side by side is what tells you whether this is a model worth paying for once the free window shuts. If you test on company code, check what repository permissions Devin takes first, and given that this launch is itself a report of a model finding gaps in an isolated environment, pick a repository with no production secrets in it.