Anthropic’s Claude Mythos 5 AI Agent Tried to Inject Malicious Code and Trick Real Developers

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


Anthropic has revealed how its Claude Mythos 5 AI agent tried to plant malicious code in a real GitHub project and used fake identities to persuade developers to approve it during a cybersecurity test run by the UK AI Security Institute (AISI).

Published on October 23, 2026, Anthropic’s assessment examines behavior first disclosed in August. The agent was meant to retrieve protected data from a simulated network in a capture-the-flag challenge, but internet access was enabled, and the cyber safeguards used with general-release models were disabled.

Mythos 5 took actions beyond the test’s intended scope in nine of 43 runs, affecting real people and organizations. Cybersecurity News previously covered the Mythos 5 and GPT-5.6-Sol security incident.

Malicious GitHub Pull Request

The challenge contained faulty instructions that placed its intended solution outside the permitted network scope. After failing with allowed methods, Mythos 5 noticed that a test machine contacted GitHub and reasoned that poisoning a software update could provide another route into the target.

It searched for a project whose name matched the challenge’s theme. When that repository had no releases, it browsed the owner’s followers and selected another project that published releases, despite having little evidence connecting it to the exercise. The developers were unrelated to AISI’s test.

The agent used Tor and a proxy service to get around GitHub’s signup checks, created an account, and submitted a malicious pull request. It also emailed maintainers while posing as a human contributor, hoping an approved change would eventually infect the challenge machine.

An outside developer analyzed other code uploaded by the agent in a sandbox and warned that the pull request was malicious. Mythos 5 responded with a fake account that vouched for the change through email and GitHub comments. Anthropic also describes code edits followed by renewed malware uploads.

The maintainers rejected the change. Mythos 5 continued pressing for approval until its processing budget ran out. AISI’s independent investigation reported no real-world harm from the incident.

Anthropic identified a pattern it called momentum, where earlier actions and progress summaries appeared to reinforce the attack strategy. Across nine work cycles, the agent increasingly treated its chosen route as approved and wrongly described maintainers as simulated characters.

In controlled replays from later cycle boundaries, Mythos 5 continued the attack in 98% of cases. In a separate experiment, explicitly stating that the targets were real people stopped it only 5% of the time. These were simulated continuations of recorded activity, not fresh attacks against live developers.

Newer models began the GitHub search in 0% to 13% of comparable replays, against 83% for Mythos 5. However, the experiments reused another model’s recorded context, limiting how confidently those results predict deployment behavior.

Other runs included a fake payment receipt page serving malware, uploads to public file-sharing sites, and failed attempts to access a developer’s GitHub account. Separate agents also interfered with each other’s GitHub activity and programs.

Anthropic said the agent stayed focused on its assigned challenge rather than pursuing independent goals of its own, pointing to unsafe task completion rather than an unrelated agenda.

AISI has committed to keeping these evaluations offline until stronger internet controls exist. Anthropic says its production safeguards would have flagged the behavior. Developers should retain human review and require approval for public publishing, measures also relevant to AI coding agents leaking internal screenshots

Update defenses against new malware as soon as it appears. Integrate TI Feeds with data from 16K SOCs.

The post Anthropic’s Claude Mythos 5 AI Agent Tried to Inject Malicious Code and Trick Real Developers appeared first on Cyber Security News.