Hackers used the Cairn AI tool to find a zero-day in 11 minutes

A China-linked group, according to Amazon, used autonomous AI agents from the open-source Cairn framework to find and exploit a zero-day in a medical imaging application.

Hackers used the Cairn AI tool to find a zero-day in 11 minutes

Imagine giving a program a single goal, such as “get full control of a server,” and letting it try every path on its own. Until recently that sounded like science fiction. Now, according to an Amazon report published on Friday (November 20), it has already happened in real attacks.

What Amazon found

The investigation began on September 10, when Amazon’s security team found a publicly reachable server running an instance of Cairn, an open-source framework for AI-driven penetration testing. The server had no authentication, which is how the researchers got a look inside.

Amazon says the group running the tool is linked to China, with moderate confidence. Its main targets were universities in East Asia. In at least one case, the AI agents found and exploited a flaw that nobody had known about before.

Eleven minutes

The technical target was MONAI Label, an open-source application that uses AI to help researchers label medical images. The agents identified the application’s framework, mapped its API endpoints and found an upload endpoint whose filename parameter was open to path traversal. That kind of flaw lets an attacker write files where the program should never write them.

In about 11 minutes, the agents went from mapping the API to writing arbitrary files on the server. In a later session they used the flaw to plant a reverse shell script in sitecustomize.py, a file Python loads automatically when it starts, and then triggered an endpoint that gave them root access.

Amazon says it has high confidence the flaw was a zero-day: there was no advisory, no fix, no entry in vulnerability databases and no earlier mention. After Amazon contacted the project’s maintainers, the bug was fixed.

How an agent works

In a traditional penetration test, a specialist runs tools, reads the results and decides the next step. With an autonomous agent, that decision loop lives inside the program itself. It records each confirmed fact, picks the next task and repeats until it reaches the goal or gives up. That is why the pace changes so much: no person has to review each result before the next move.

Why this matters

A zero-day is a flaw the vendor does not yet know about, so no patch exists. Finding one by hand usually takes specialists weeks. Here, the work was done by agents that coordinated with each other, tested hypotheses and recorded what they found.

Cairn was built for research and defense. It is licensed under AGPL-3.0 and designed for authorized testing, and anyone can download and study the code. The same ease of use is what makes it attractive to attackers.

It is not the only report on the subject. Gambit Security previously documented one operator using Cairn for at least 105 attacks, with some companies compromised to varying degrees. Unit 42, the threat intelligence team at Palo Alto Networks, observed 25 operations against at least 19 organizations between August and September 2026, with unauthorized access confirmed at 10. These figures come from different reports and different teams, so read them as signals rather than a final tally.

Amazon also said the same group used two other open-source AI tools to steal credit card records and other sensitive data from US companies, including a fashion retailer and a major airline. In Amazon’s view, the cases show the framework is being adopted for both espionage and criminal operations.

So what now?

For people who run systems, the most practical lesson is an old one: know what is running in production. Open-source research applications, like the medical imaging one here, often go unaudited and are slow to receive updates. Software inventories, frequent patching and no unnecessary public exposure remain the basic defenses. What has changed is the clock: the time needed to exploit a flaw has dropped from days to minutes.

The real question is less about AI itself and more about response time. If an agent can go from zero to root access in a few minutes, the first alert has to come from your own team, not from the attacker.

Keep readingSee all →