US tells agencies to patch a flaw hackers’ AI agents found on their own

Amazon says a China-linked attacker gave AI agents one goal and a list of university servers. They found a medical imaging flaw in about 11 minutes and took over a server as root.


US tells agencies to patch a flaw hackers’ AI agents found on their own

AWS chief executive Matt Garman during his keynote at AWS re:Invent 2024 in Las Vegas

Image Credits Credit: Amazon

US federal agencies have until Thursday to patch a flaw that hackers’ AI agents found and exploited on their own. The bug is in MONAI Label, a medical imaging tool. On Monday, the US Cybersecurity and Infrastructure Security Agency (CISA) added it to its catalog of exploited vulnerabilities, with a 26 November deadline.

The listing follows a report from Amazon Threat Intelligence. CJ Moses, chief information security officer of Amazon Integrated Security, published it on 20 November. In it, Amazon said an attacker gave a team of AI agents a list of university servers in East Asia and one goal: “obtain shell access”. The agents did the rest.

“These findings show that agentic offensive operations are already happening,” Amazon wrote.

Eleven minutes to a zero-day

The agents ran on Cairn, an open-source framework built for penetration testing. That is the hacking companies pay for to test their own defences. Amazon found the attacker’s Cairn server on 10 September. It sat open to the internet with no login, so anyone could see its full history of prompts and output.

The attacker wrote the prompts in Simplified Chinese and set the timestamps to China Standard Time. Based on those clues and the targets, Amazon says with moderate confidence that the actor is linked to China. The campaign began on 8 September and ran for about 48 hours.

Most of it failed. The agents spent about 16 hours and 148 steps on one university’s Redis database and got nowhere. On a university GPU server, they built about 80 usernames and tried more than 30,000 password combinations. That failed too.

The third target ran MONAI Label, an open-source tool for labelling medical images with AI. There, the agents mapped the app and found an upload feature. They tested one of its fields for path traversal, a flaw that lets an attacker write files where they should not. The field was vulnerable. About 11 minutes passed from mapping the app to writing files on the server.

In a later session, the agents used the flaw to plant code that Python loads at start-up. That gave them a remote connection running as root. Amazon says no fix, advisory or public mention of the bug existed then, so it was a zero-day.

The human stepped in only after that. The attacker gave the agents a tunnel into a second university network and pointed them at the machines inside. Amazon believes the attacker opened that tunnel through the same flaw.

Fixed, and flagged

Amazon told the MONAI Label maintainers, who released a fix and a security advisory. The affected universities were not AWS customers, so Amazon worked with a government partner to alert them.

Cairn has turned up before. In October, one attacker used it to break into more than 100 sites. Earlier this month, Palo Alto Networks’ Unit 42 said Chinese-speaking attackers used it in 25 operations against at least 19 organisations. They got in at 10 of them, mostly in chips, defence and civil society. And this month, Google’s threat team said attackers had used AI to turn security patches into working exploits.

Amazon’s advice to defenders is to rely on high-confidence detections that trigger automated responses, with people overseeing the results. CISA already lists other flaws exploited at scale this autumn. An agent that finds and exploits a flaw in minutes can finish before many security teams can review an alert, it said.

Amazon’s case for engineering

Three days after the report, Amazon published a blog post by AWS chief executive Matt Garman on AI safety. He argued that the fix for risky AI lies in security engineering around the models, not in an emergency stop.

“If your security posture depends on trusting the model to behave, you’re relying on hope,” Garman wrote.

He wants each AI agent to have its own identity. Its permissions should be no wider than those of the human running it. He also wants containment stronger than the thing being contained, and monitoring that the agent cannot touch.

Get the TNW newsletter

Get the most important tech news in your inbox each week.

Thanks! Check your inbox to confirm your subscription.

By subscribing you agree to our Privacy Statement.

Published
Back to top