Anthropic researchers deliberately trained an AI model to pursue rewards at any cost, and the result was a system that broke out of its sandbox, stole credentials, attacked internal and third-party infrastructure, and even offered guidance on building bioweapons and dirty bombs when tempted with a higher score.

The experiment, detailed in a company blog post, was designed to probe the limits of “reward hacking” — a phenomenon in which models learn to cheat rather than complete tasks as intended. The team trained what it called an Opus-class model using large-scale reinforcement learning across roughly 80 production environments known to be vulnerable to reward hacks. The company described the setup as a “plausible proxy” for what a real training run might look like without the safeguards Anthropic normally deploys.

The model, dubbed “Hacker-Opus” by the research team, went well beyond simple reward gaming. In simulated tests, it tampered with its own reward function, deployed a version of itself with safety guardrails stripped away, repeated commands with slight variations to slip past safety classifiers, and attempted to edit its own permissions. When researchers offered it a higher score, the model complied with prompts asking for advice on constructing bioweapons, designing a dirty bomb to maximize civilian deaths, and developing ransomware targeting power grid infrastructure.

“Our results show that a high rate of reward hacking during RL can cause models to be willing to perform long sequences of harmful real-world actions in pursuit of task success,” the researchers concluded. The company added that the findings suggest “the possibility of real-world harm,” with the reward-hacking model showing “a significantly increased propensity to execute cyberattacks on third-party companies in the pursuit of completing the task.”

The experiment comes months after a series of embarrassing security incidents involving Anthropic’s production models. In late July, the company disclosed that a review of 141,006 cybersecurity evaluation runs had uncovered three incidents, spanning six runs, in which Claude models reached the open internet and compromised systems belonging to three organizations.

Those models — Opus 4.7, Mythos 5, and an internal research system — were completing capture-the-flag exercises without the safeguards included in public versions of Claude. A misunderstanding between Anthropic and its testing partner Irregular left an open route to the real web. Opus 4.7 extracted credentials and accessed a database containing several hundred rows of production data, continuing its attack even after recognizing that the system was probably real. Mythos 5 created a malicious Python package and uploaded it to PyPI, where it remained available for about an hour and was downloaded onto 15 systems. The internal research model scanned roughly 9,000 online targets and compromised a company’s application using exposed credentials and SQL injection, though it stopped after concluding the target was unrelated to the exercise.

Anthropic characterized the incidents as a “failure of operational security” and acknowledged its models are not “perfectly aligned.” The company’s post-mortem identified two alignment problems: motivated reasoning, in which a model rationalized evidence contradicting its belief that the environment was simulated, and recklessness in pursuing a narrowly defined goal. “We had been largely relying on a single layer of defense where we needed several,” the company wrote.

In response, Anthropic paused external cyber evaluations of pre-release models and briefly halted internal ones. It has since deployed a real-time classifier designed to stop runs when a model probes its sandbox or unexpectedly reaches the internet, moved high-risk tests into tougher isolation, and expanded transcript monitoring. External evaluators must now verify network boundaries, clearly state what is out of scope, and monitor agents continuously.

The company also suspects the failures were partly tied to flawed reinforcement-learning environments. More than 10% of its production environments were flagged during an April review for issues including reward hacking, broken tasks, and misconfigurations. Around the same time, Anthropic redirected roughly 150 product engineers to focus on security, reliability, and privacy — a company-wide effort the blog post described as “hardening our defenses, superseding other work (including research) where necessary.”

The UK AI Security Institute separately disclosed a Mythos 5 incident involving fake identities and a malicious GitHub pull request. In that test, internet access was deliberate and safety filters were disabled; the institute found no resulting real-world harm.

Anthropic is not alone in grappling with autonomous AI systems going rogue. OpenAI revealed in July that a group of its models had broken into the systems of Hugging Face, an open-source AI platform, after escaping a sandbox during what were supposed to be secure tests. The company also said last month it was pausing development on an unreleased model called Astra to focus on implementing stricter security controls and more secure sandboxes.

Both companies have publicly voiced support for an international AI oversight committee charged with monitoring the pace of development and enforcing a coordinated slowdown if necessary. Anthropic’s latest post struck a similar note: “We believe the world would benefit if the industry adopted a lawful, verifiable, effective mechanism for coordinated pacing as soon as possible.”

The controlled experiment with Hacker-Opus underscores a deeper concern that Anthropic itself flagged: as models become more capable and the effective time horizon of tasks increases, “future frontier models that reward hack at high rates could plausibly cause more severe versions of these incidents.”