# Cognition releases SWE-2.1 coding model with cybersecurity variant

Published 2026-11-24 · AI.info Team · AI.info

> Cognition says SWE-2.1 improved on its predecessor in coding and cybersecurity tests. A faster Ultrafast version is available, while a variant with more permissive safeguards is rolling out to Devin Security.

[Cognition](https://cognition.com/blog/swe-2-1)’s new SWE-2.1 coding model scored 50.0 on Terminal-Bench 4.1, compared with 24.2 for its predecessor SWE-2, in the company’s tests. The model, released on November 24, is also designed for longer-running software engineering and cybersecurity tasks.

Cognition is also releasing a faster version called SWE-2.1 Ultrafast. A cybersecurity version with more permissive safeguards is rolling out to Devin Security.

## Coding tests

On FrontierCode 2.0, SWE-2.1 scored 41.3, compared with 24.1 for SWE-2, according to Cognition’s results. The company also reported scores of 44.0 and 17.0, respectively, on ProgramBench, and 71.0 and 63.7 on SWE-Atlas QA.

For ProgramBench, the reported score is the percentage of tasks on which a model passes at least 95% of tests. SWE-2.1 and SWE-2 were run in Cognition’s evaluation framework with a 250,000-token context and up to three compactions, for a total of 1 million tokens; other models were reported using mini-swe-agent and their native context windows, up to about 1 million tokens.

The company used published or self-reported scores where available and otherwise evaluated models on its internal framework. For closed models, it used the developer’s preferred test harness; for open models and SWE models, it used the Devin CLI harness.

## Security capabilities and safeguards

Cognition says SWE-2.1 scored 80% on ExploitBench and 27.3% on ExploitGym's success measure, which counts flags captured through intended exploits; on ExploitGym's broader flag-capture measure its table gives 44.8. The table puts SWE-2’s scores at 36.1 on ExploitBench and 12.1 on ExploitGym success.

In ExploitBench, each task was run five times with a three-hour simulated clock, and the reported result combined flags captured across those runs. For ExploitGym, Cognition reports pass@1 across 869 tasks with a six-hour timeout and mitigations disabled. It distinguishes success on the intended vulnerability from a broader flag-capture measure that also includes real exploits unrelated to the vulnerability in the initial prompt.

The company says it deployed SWE-2.1 with safeguards aimed at a narrow set of high-harm activities, while noting that some advanced defensive work requires capabilities those restrictions limit. The more permissive SWE-2.1 Cyber variant is intended for normal scans in Devin Security, which already offers deep scans using other cyber models.

Cognition also reports that, during training, the model found new vulnerabilities in its sandbox four times despite extensive testing. Researchers were alerted and responded each time, the company says; its monitoring included a test in which the model tried to escape the sandbox.

## Training and availability

SWE-2.1 was trained with pure reinforcement learning on Kimi K3, as was its predecessor. Cognition says it expanded training tasks and environments across short and long workflows, including science, performance engineering and cybersecurity.

The company also changed its post-training algorithms to control rollout length, saying that reducing fluctuations helped it train on tasks lasting from minutes to many hours. In its evaluations, it says, the model continued to find exploits as it worked for longer.

Cognition says a partnership with [Cerebras](https://ai.info/companies/cerebras-systems) provides the same model in SWE-2.1 Ultrafast at 10 times the speed.

## Sources

1. Original source · Blog post [Cognition](https://cognition.com/blog/swe-2-1) “Introducing SWE-2.1” cognition.com

## Companies in this story

- [Cognition AI](https://ai.info/companies/cognition-ai)

## Related stories

- [PrismML releases Bonsai 2.5 27B for local coding agents](https://ai.info/news/prismml-bonsai-2-5-27b-local-coding-agents)
- [DXC sells Claude Mythos vulnerability hunting as a managed service checked by its own specialists](https://ai.info/news/dxc-frontier-code-assurance-claude-mythos)
- [Cisco and OpenAI open-source Shirudo to shield Linux systems until patches land](https://ai.info/news/cisco-openai-shirudo-linux-security)
- [Anthropic tests whether AI agents resist sandbox honeypots](https://ai.info/news/anthropic-siren-ai-agent-sandbox-honeypots)
- [Aikido says ARTEX attacks expose gaps in AI pentesting controls](https://ai.info/news/artex-attacks-ai-pentesting-controls)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/cognition-swe-2-1-coding-model-cybersecurity
