TLDR

  • A China-linked attacker left an AI hacking server open to the internet, which exposed the whole campaign.

  • AI agents were given one goal, "obtain shell access," and a list of East Asian university servers.

  • Most attacks failed, but the agents found an unknown flaw in a medical imaging tool in about 11 minutes.

  • The flaw gave the agents root control of a server, and the attacker then used it to reach a second network.

  • US federal agencies must patch the MONAI Label flaw by Thursday, November 26.


A hacker's failure to lock down a server gave investigators a full view of an AI-run hacking campaign. The open server showed every prompt the attacker typed and every step the AI agents took in response.

Amazon Threat Intelligence described the campaign in a report published on November 20. A China-linked attacker handed a team of AI agents a list of university servers in East Asia and a single goal: "obtain shell access."

The agents ran on Cairn, an open-source framework built for penetration testing. Companies use that kind of testing to probe their own defenses, but the tool's ease of use also appeals to attackers.

An Open Door Left Behind

Investigators found the attacker's Cairn server on September 10. It had no login, so anyone online could see its settings, prompts and AI output.

The prompts were written in Simplified Chinese, and script timestamps were set to China Standard Time. Based on those clues and the targets, investigators linked the actor to China with moderate confidence.

The campaign began on September 8 and lasted about 48 hours. For an operation run by machines, it had plenty of dead ends.

The agents spent about 16 hours and 148 steps trying to take over one university's Redis database. They worked through many known techniques, then tried passwords on other services, and nothing worked.

On a university GPU server, the agents built a list of about 80 real usernames from faculty pages, lab websites and academic papers. They tried more than 30,000 login combinations and never got in.

Eleven Minutes to Root

The third target ran MONAI Label, an open-source tool for labeling medical images with AI. The agents mapped the app and found an upload feature with a filename field.

They tested that field for path traversal, a flaw that lets an attacker write files where they should not. It was vulnerable, and about 11 minutes passed from mapping the app to writing files on the server.

In a later session, the agents planted code in a file that Python loads at start-up. That gave them a remote connection running as root, the highest level of control.

No fix, advisory or public mention of the bug existed at the time, making it a zero-day. The human attacker stepped in only afterward, giving the agents a tunnel into a second university network that likely ran the same flawed software.

The MONAI Label maintainers released a fix and a security advisory after being told about the flaw. The affected universities were not AWS customers, so a government partner helped alert them.

Cairn has appeared in other attacks. Gambit Security documented a separate, money-driven group using it against online retailers, and Palo Alto Networks' Unit 42 linked it to 25 operations by Chinese-speaking attackers against at least 19 organizations.

In October, one attacker used Cairn to break into more than 100 sites. This month, Google's threat team also said attackers had used AI to turn security patches into working exploits.

Investigators advised defenders to rely on high-confidence detections that trigger automated responses, with people overseeing the results. An agent that exploits a flaw in minutes can finish before many teams review a single alert.

On November 23, AWS chief executive Matt Garman published a blog post on AI safety. He wrote that "if your security posture depends on trusting the model to behave, you're relying on hope," and called for each AI agent to have its own identity and limited permissions.

The US Cybersecurity and Infrastructure Security Agency added the MONAI Label flaw to its catalog of exploited vulnerabilities on Monday. Federal agencies have until Thursday, November 26, to patch it.