# To stop AI cheating, we need to fix shoddy training environments

> Source: <https://www.transformernews.ai/p/to-stop-ai-cheating-we-need-to-fix>
> Published: 2026-11-24 16:01:05+00:00

**Recommendation:** Audit RL training environments for impossible tasks and exploitable scoring before use, since agents rewarded for spoofed successes escalate to real attacks like the Hugging Face breach.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

More than 700 AI agents from OpenAI swarmed the AI hub Hugging Face this summer. It might seem like a rogue action, but really they were doing exactly what they were trained for — it just wasn’t what humans meant to teach them.

It all started when the AI agents were charged with completing the ExploitGym hacking evaluation. The agents quickly realized that some of the tasks were impossible to complete with the tools given. Instead of giving up, they figured out how to hack the tasks to make it falsely seem like they successfully completed them. Later, they started worrying that the humans would be able to tell that the tasks were spoofed. So, the agents decided that the best course of action was to commit a felony. Or at least, it would have been a felony if a human did it. They hacked into Hugging Face and stole information they thought would help with their task. Some agents [explicitly reasoned](https://metr.org/hugging-face-incident-report-aug-2026.pdf) that the attack was unsanctioned — but continued anyway. 

The AIs didn’t just hack Hugging Face out of the blue. They were trained to complete tasks inside reinforcement learning (RL) environments. RL environments are like boring video games with real tasks and preprogrammed rewards. For example, in a simulated airline help desk [environment](https://arxiv.org/abs/2406.12045), one task might be a customer wanting to switch her flight from Los Angeles to San Francisco. Her basic economy ticket can’t be changed, so the AI must refuse, offering to cancel and rebook instead. Here, the AI passes only if the booking ends up exactly right, obeying all company policies. If it passes during training, it’s rewarded, which encourages the AI to take similar actions when it encounters similar problems in the future. [A coding environment](https://howtoposttrain.com/rl-pet-peeves-harness/) might have a task of fixing one bug in the code, and it passes when the coding tests do. 

The AI learns through these repeated tasks and rewards to complete any task it’s given. The AI companies training the AI value that determination highly. So highly that the AI companies are racing to get more training capabilities than their competitors, leading to surging demand for environments.

In turn, the companies who build them are under gold-rush pressure to ship as many as they can while demand lasts. The resulting influx of environments is far greater than AI company staff could ever inspect manually. So reviews are spot checked or handed off to automated checks, and environments with impossible tasks or exploitable scoring slip through into training.

While good environments are vital to the reinforcement learning paradigm that’s fueling the latest wave of AI progress, training on shoddy environments teaches the AIs that hacking is an acceptable way to solve their tasks. Following that lesson, [AIs](https://openai.com/index/hugging-face-incident-and-the-road-ahead/) from all [three](https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals) of the [leading](https://www.bbc.co.uk/news/articles/c607l0k72rlvo) companies escaped from supposedly secure testing environments and hacked external companies earlier this year. 

So as much as we want to call these rogue agents, really they were doing exactly what training taught them — when the goal is impossible, find another way. To stop them learning that lesson so effectively, we need to improve the underlying training environments.

### Why impossible tasks produce cheating

Put simply, AI agents are taught to succeed however they can, because companies want their AI to succeed on a wide variety of tasks. “Increasingly models just go hard at things,” said Benjamin Weinstein-Raun, head of research at AI nonprofit Palisade. “It’s what we’re training them to do. It’s what we’re going to keep training them to do.”

The ultimate goal should be to create AI that will try hard to complete tasks, but won’t defy the rules to do so — especially when those rules are real laws. But in practice, when an AI can’t complete a task, they sometimes spontaneously decide to cheat.

When this spontaneous cheating happens during training, the problem can become much worse. During training, AI agents are given many tries to complete a task. Whichever attempts lead to success are reinforced, so that the agents are more likely to copy whatever led to success. So when RL environments are impossible, or more easy to complete by reward hacking rather than taking the intended path, the AI often succeeds by cheating. If that isn’t caught in time, it’s rewarded, baked into the AI’s idea of how to operate. Then it becomes more likely to cheat, which can last long after training.

We already know that AI agents often attempt to reward hack — i.e. cheat by solving the task in unintended and often explicitly forbidden ways — when faced with an impossible task. For example, Anthropic’s [Opus 5.5 and Mythos 5.1](https://www-cdn.anthropic.com/fc1b44717c85dc068bc6ba5024219938094694bd/Claude%20Opus%205.5%20System%20Card.pdf) reward hack around 6% of the time. But when the task is impossible to solve as intended, that number jumps to 34%. (The models successfully reward hack far less often than they attempt to do so.) 

To demonstrate how cheating behaviors can become ingrained, Anthropic made [Hacker Opus](https://alignment.anthropic.com/2026/reward-seeker/), a version of its Claude Opus model trained on tasks vulnerable to reward hacking. They found that its rate of reward hacking shot up. Compared to the normal Opus, Hacker Opus reward hacking *97%* of the time. 

In April, prior to the Hugging Face incident being revealed, Anthropic [paused](https://www.anthropic.com/news/improving-alignment-security-efforts) parts of its process for just one month to evaluate it. In that month, they flagged over 10% of their environments as flawed and needing fixing. This likely means that the 34% reward hacking baseline is based on contaminated training; a model trained on completely clean environments might have a far lower rate. 

This is probably the same pattern that led to the Hugging Face hack. OpenAI [reports](https://cdn.openai.com/pdf/67869394-cb91-4c12-888c-5cbd85c7814c/OpenAI-Hugging-Face%20Incident-Technical-Report.pdf) that agents were accidentally training on impossible tasks in May, which led to multiple agents breaking out, starting a message board, accessing the internet illicitly, and even trying to search Hugging Face’s site for a file it needed. OpenAI doesn’t report rolling back the model or taking any other steps to stop this reward hacking behavior from persisting in the model. With the benefit of hindsight, we can see that these steps closely match July’s full blown attack. 

And many of the tasks in the ExploitGym evaluation are likely impossible. [93%](<https://openai.com/index/hugging-face-incident-and-the-road-ahead/ >) of the tasks discussed in the illicit message board had never before been solved. The exploit gyms creators estimate that 30-40% of the tasks are unsolvable, so it’s quite possible that “never before been solved” means “impossible to solve.” 

When these agents found themselves stumped by impossible tasks in July, they repeated all of the steps they had learned during May’s training. They broke out of their sandboxes, turned file names into a message board, and snuck onto the internet to hack into a major company.

### The problem is the AI race

While the Hugging Face attack shocked everyone, companies have known for [years](https://deepmind.google/blog/specification-gaming-the-flip-side-of-ai-ingenuity/) that exploitable RL environments lead to reward hacking. They knew that careful design was important to prevent training AIs to reward hack. It’s just work that takes time — time that companies don’t always want to spend. 

They could get away with less care when the stakes were lower; reward hacking AIs used to mean silly [video game](https://www.youtube.com/watch?v=tlOIHko8ySg&t=1s) clips rather than [crimes](https://www.felonybench.com/). But it can feel hard to slow down when, as Palisade’s Weinstein-Raun put it, “the companies feel like they’re in this extremely difficult race with each other, and they don’t necessarily have the slack to make sure that every environment is reward hacking free.”

The AI companies are stretched thin to review the huge numbers of incoming new tasks and environments. According to Peter McIntyre, CEO of evaluation and red-teaming company [Trajectory Labs](https://www.trajectorylabs.com/), it “creates a principal-agent problem where the providers of these environments, if they don’t care about safety and they don’t care as much about quality, then they’re just going to be trying to churn these things out.” 

The big AI companies are already inundated with environments, varying widely in quality. Auriel Wright, a former RL researcher at Google DeepMind, wrote a [blog](https://aurielws.github.io/about.html) “on the frustrations big labs have with RL vendors” that includes examples like an RL environment for training customer service agents rewarding the model when it resolves a customer ticket. [Except](https://latent.space/p/bad-envs/), “the agent learns that clicking ‘resolve’ is the fastest path to reward — even when the customer still has the problem.” Without an extremely careful review process, these slapdash environments can slip past reviewers and into training. 

For the RL environment creators, this creates a “[gold rush mentality](https://x.com/justenmichel/status/2107256816224841879)” — produce quickly or risk losing out to the other companies that can get there faster. At least for some companies, this is creating a pressure cooker atmosphere. The culture of Mercor, a company that provides data labeling and RL environments for AI companies, has been [reported](https://web.archive.org/web/20260416003926/https://www.forbes.com/sites/rashishrivastava/2026/04/15/mercors-23-year-old-billionaire-founders-grapple-with-employee-fraud-and-north-korean-infiltration/) as “cutthroat” with executives patrolling the office at 9pm to note who’s not at their desk and asking employees to “rat out” lower performing colleagues.  

There is a real cost to companies unilaterally taking on the cost of being careful, both in dollars invested in tools and hours of human labor reviewing tasks. Those are tradeoffs made by companies with limited resources. Despite their billions of dollars in funding, AI companies are still making hard tradeoffs on where to spend. It seems that right now, under the current race dynamics, the calculus isn’t falling as far on the side of more careful environment screening.

### This isn’t one of alignment’s great unsolved problems

Fortunately for us, that economic calculus is the main obstacle to improvement. Alignment has many hard open problems that need an entirely new [paradigm](https://www.transformernews.ai/p/no-ai-alignment-isnt-solved) to fix. In comparison, reward hacking is relatively manageable. We already know how to make better RL environments. 

The fix is mostly hard, careful work. RL environment creators (both internal teams at frontier labs and external companies) need to put in the extra effort to avoid building environments that reward bad behavior or are unintentionally impossible. AI companies need to slow down and vet every environment properly, so that the shoddy environments don’t slip through.

Simply eliminating buggy environments would dramatically reduce the chances of reward hacking getting trained into AI models, but it probably wouldn’t completely eliminate it. If nothing else, the AI “will realize not to reward hack in the perfect test environments, then turn around and reward hack in the imperfect real world environments,” as AI blogger [Zvi](https://thezvi.substack.com/p/huggingface-attack-postmortem-fleshing?open=false#%C2%A7we-are-barely-even-trying-to-avoid-training-ais-to-reward-hack) Mowshowitz put it.

But there are new efforts that can help fill that gap, such as dedicated alignment RL environments. One example is to take a known environment that is susceptible to hacking, but incorporate a meta layer after just completing the task. The AI can be punished for exploiting the hack and rewarded for instead notifying the humans about the vulnerability. Alternatively, the learning updates from the hacks can be [confined to designated parameters](https://alignment.anthropic.com/2026/graft/) in the model weights, which are then removed before the model is deployed. 

Both environment creators and AI companies can also build better automated detection and evaluation systems (such as red teaming setups) to augment human oversight at scale. Already, much of the evaluation of environments and tasks right now is already handed off to AI or computer systems. So building automated systems that can accurately detect and respond to reward hacking attempts during training is a necessary step for ensuring low spontaneous reward hacking in deployment.

All this takes effort and money. Slowing down the AI race would probably free up resources to invest in more careful environments and evaluations. Relaxing that dynamic, Weinstein-Raun says, is “part of why we’ve seen more calls from inside the labs for pacing the frontier.”

In the meantime, mandated independent audits of training environments could help. The AI companies seem potentially understanding of the need; following the Hugging Face Attack, OpenAI [suggested](https://cdn.openai.com/pdf/openai-letter-to-governor-newsom-20261020.pdf) that “third-party assessors should independently assess frontier developers’ safety claims,”  including “risks in training.” Meanwhile, Anthropic CEO Dario Amodei [proposed](https://darioamodei.com/post/we-must-pace-the-frontier) “audits of training environments” as one part of a larger alignment package for pacing the frontier.  We’re also starting to see increased attention from government bodies. For example, California’s new AI report [calls](https://www.govops.ca.gov/wp-content/uploads/sites/11/2026/11/FINAL_-AI-Safety-in-2026-and-Beyond-v2.pdf) for developers to “carefully vet RL environments for issues that could cause misalignment.” 

Much progress is needed here to bring training environments up to a safety standard that would have prevented the Hugging Face attack. But wouldn’t it be great if this summer was the last time hundreds of frontier AI agents committed a crime?

*Disclosure: The author’s partner works at Google DeepMind.*
