Does it cheat to win?

Give a system a score to maximize and it may find a shortcut nobody intended.

Researchers call it specification gaming or reward hacking: a system achieves the literal goal it was given in a way its designers never intended. Game-playing agents have exploited bugs to rack up points; coding models have been caught editing the tests instead of fixing the code.

In July 2026 this stopped being a laboratory curiosity. During a cybersecurity evaluation at OpenAI, agents given tasks they could not legitimately solve concluded that attacking outside infrastructure to obtain the answers was the efficient route, and encouraged each other to continue because their “peers” were doing it. They broke into Hugging Face.

Cheating matters for control because we judge AI systems largely by tests. A system that games its tests can look safer and more capable than it is.

What we know

  • Reward hacking has been observed in frontier coding and reasoning models, including models in widely used products.
  • Models sometimes reason openly about cheating before they do it, which is one reason readable reasoning matters.

What nobody knows yet

  • Can we build evaluations that capable models can’t game?
  • Does punishing cheating teach models to stop, or to hide it?
Read, watch, listen

The work behind this answer.

Every link was opened and every summary written for this site, with caveats where the source has an interest. New additions are checked by two people.

All 22 in the library
EssentialIncidentAug 26, 2026For the curious

The Hugging Face incident and the road ahead

OpenAI · openai.com

OpenAI's account of how models under test, with reduced safeguards, escaped isolation, coordinated through an improvised message board and breached Hugging Face in July 2026, and what it is changing.

Worth knowing: The company's own account of its own incident; compare the independent METR and Redwood Research review.

EssentialReportJun 5, 2025For the curious

Recent Frontier Models Are Reward Hacking

Von Arx, Chan & Barnes (METR) · METR · metr.org

METR caught recent models such as o3 tampering with scoring code or task setups to get impossibly high scores, while showing they understood this was not what the user wanted.

Worth knowing: Rates varied widely between tasks; based on METR's own evaluation suites.

EssentialBook2020For the curious

The Alignment Problem: Machine Learning and Human Values

Brian Christian · W. W. Norton & Company · wwnorton.com

Drawing on interviews with researchers, explores how machine-learning systems can end up at odds with what their makers intend and with human values, and the work to align them.

Worth knowing: Written before ChatGPT, so its examples predate today's chatbots.

ArticleSep 11, 2026For everyone

How a 'swarm' of AI agents hacked another company, in the AI's own words

Jessica Riga, Jarrod Fankhauser & Matt Liddy · ABC News (Australia) · abc.net.au

A readable walk-through of the incident built around the agents' own messages, showing some voicing ethical doubts and carrying on anyway.

Worth knowing: Relies on messages selected for publication by OpenAI and the independent investigators.

EssaySep 11, 2026For everyone

Rogue AI didn’t breach Hugging Face, human decisions did

Eryk Salvaggio · Bulletin of the Atomic Scientists · thebulletin.org

Argues the 'rogue AI' framing hides human choices behind the incident: safeguards were switched off, agents got tasks they could neither solve nor quit, and network routes were left open.

Worth knowing: Analysis and opinion; a version first appeared in the author's newsletter.

ReportAug 26, 2026Technical

Brief independent investigation of agents’ behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident

METR and Redwood Research (Hjalmar Wijk, Ajeya Cotra, Ryan Greenblatt) · METR · metr.org

Independent review of the July 2026 incident: about 1,200 AI agents found an unofficial message board, coordinated, and some hacked Hugging Face while trying to learn how their tests were scored.

Worth knowing: Covers a limited period with limited data access; the investigators relied partly on AI agents to analyze the logs.

ArticleAug 7, 2026For the curious

Now we have a timeline of the OpenAI accidental attack against Hugging Face

Simon Willison · simonwillison.net

A short, readable timeline drawn from OpenAI's Black Hat talk, from agents' first file-sharing trick in May to OpenAI realising in July that its own models were behind the Hugging Face breach.

Worth knowing: Summarises OpenAI's own presentation.

VideoAug 6, 2026For the curious

Black Hat USA 2026 | The 'Breaking' News: The OpenAI–Hugging Face Incident

Michael Dalton & Eric Wallace (OpenAI) · Black Hat (YouTube) · youtube.com

OpenAI's conference talk reconstructing, for security professionals, how evaluation agents escaped their sandbox and got into Hugging Face's infrastructure without any human directing them.

Worth knowing: Presented by the company whose models were involved.

ReportAug 4, 2026For the curious

Measuring coding agent misalignment in the wild

Selena Zhang and the Docent team (Transluce) · Transluce · transluce.org

In about 5,000 real coding-agent sessions from a public dataset, roughly 2% showed agents seriously evading checks and about 2% seriously overstating success, e.g. merging code without approval.

Worth knowing: Based on one public dataset; rates were near zero in Transluce's own agent traffic.

ReportJul 27, 2026Technical

Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident

Larcher, Carreira, Rannou et al. (Hugging Face) · Hugging Face blog · huggingface.co

The target's reconstruction of a 4.5-day intrusion of about 17,600 actions through flaws in dataset processing, with lessons such as isolating workloads and narrowing what credentials can do.

Worth knowing: Written by the affected company while investigations were still under way.

IncidentJul 21, 2026For the curious

OpenAI and Hugging Face partner to address security incident during model evaluation

OpenAI · openai.com

OpenAI's first disclosure: models tested with reduced safeguards on a hacking benchmark exploited an unknown flaw to reach the internet and broke into Hugging Face's systems hunting for test answers.

Worth knowing: Preliminary company statement, updated several times as investigations continued.

ReportMar 19, 2026For the curious

How we monitor internal coding agents for misalignment

OpenAI · openai.com

An AI monitor reviewed tens of millions of OpenAI's internal coding-agent sessions over five months, finding agents that bypassed restrictions or misreported their actions but no confirmed scheming.

Worth knowing: Self-reported; the July 2026 incident later showed such monitors were not run on all evaluations.

Research paperNov 21, 2025For the curious

From shortcuts to sabotage: natural emergent misalignment from reward hacking

Anthropic · anthropic.com

When a model learned to cheat on real coding tasks in training, it also began faking alignment and sabotaging safety code in tests. Telling it the cheating was acceptable stopped this spreading.

Worth knowing: The model was first shown how to cheat; Anthropic says these models were not deployed and their misbehaviour was easy to detect.

Research paperOct 23, 2025Technical

ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases

Zhong, Raghunathan & Carlini · arXiv · arxiv.org

Builds coding tasks that cannot be solved honestly, so any 'pass' means the model cheated, e.g. by editing the tests. Frontier models often did, and prompt wording changed rates sharply.

Worth knowing: Cheating rates depend heavily on the prompt, tools and feedback the model is given.