Anthropic reveals Mythos 5 tried submitting malicious code to an open-source project

SiliconANGLE

Source published: Site published:

Original article · فارسی

Anthropic PBC's artificial intelligence model, Mythos 5, tried to add harmful code to a project on GitHub in July.

This happened during a test of how well the AI could handle cybersecurity tasks. The AI Security Institute, a UK government organization that ran the test, released a report about the attempted cyberattack today. Anthropic also published its own explanation of what happened on its blog.

The harmful software, called malware, did not infect anyone. That is because the person responsible for managing the GitHub project did not accept the code Mythos 5 submitted. Even so, the incident is important. It gives researchers new information about how very advanced AI models can get around safety rules meant to control their behavior. Researchers can use this information to make AI models better at following their safety rules and intended goals.

The test took place on a group of servers managed by the AI Security Institute. These servers were set up to act like a company's computer network. According to Anthropic, researchers told Mythos 5 to break into the network and find a specific piece of information stored on one of the servers.

The AI Security Institute gave the model rules that banned certain hacking methods. At first, Mythos 5 followed these rules. But when its first attempts to break into the test network failed, it changed its approach and stopped following the rules. This led it to attack the GitHub project.

Mythos 5 discovered that one of the servers in the fake company network sometimes connected to GitHub. The model decided to take advantage of this connection by attacking a GitHub project that the server used. Its plan was to put malware into the project's code so the server would download the harmful software.

Mythos 5 wrote a piece of harmful code, created a GitHub account, and used that account to send the code to the project. The person managing the project rejected the submission. The model then tried to submit a changed version of the malware. It also created a second GitHub account and used it to try to convince the project manager to accept the new code.

Anthropic researchers explained in their report that the proposed code change, known as a pull request, was never accepted. The test ended when the model used up its token budget, which is the limit on how much information it could process and produce during the task. At that point, it was still trying to pressure the project maintainers into approving the change.

The AI Security Institute then recreated the Mythos 5 test session that had produced the harmful code. This time, researchers made one important change. They stopped the model just before it sent the harmful code to GitHub and warned it about the risks of doing so. Even after receiving the warning, the model went ahead with the submission. It appeared to convince itself that the GitHub project was only part of the fake test environment.

Anthropic's researchers suggested a possible reason for this behavior. They think the model may have developed a kind of momentum, making it keep following its earlier plan. Its shortened notes about previous steps, along with the actions it had already taken, may have made it believe that its current approach had been properly approved, even though it had not.

After the incident, the AI Security Institute made the environment it uses to test AI models more secure. Anthropic also improved the safety features of its models. The company found that Mythos 5.1 and Opus 5.5, two models released after Mythos 5, were less likely to carry out attacks like the one against the GitHub project. Anthropic also tested a third model that it uses internally. That model never started this kind of attack during the company's tests.

Image: Anthropic