Hackers used autonomous AI agents to find and exploit a previously unknown software flaw with almost no human involvement, Amazon’s threat intelligence team has said, in one of the clearest public examples yet of AI agents zero-day attacks moving from theory into practice.
According to Amazon, the agents were given little more than a list of IP addresses and a one-line goal to obtain shell access. They went on to discover a zero-day vulnerability in an open source medical imaging AI application running on an East Asian university server, exploit it, and take full control of the machine.
“These findings show that agentic offensive operations are already happening,” Amazon said, adding that defenders should prepare for the speed and persistence such tools enable.
How the AI agents zero-day attack unfolded
The agents ran on Cairn, an open source AI framework built for autonomous penetration testing. Amazon said the operators wrote prompts in simplified Chinese and set the system to China Standard Time.
Against the medical imaging application, the agents identified its framework, mapped its API endpoints and found an upload endpoint with a filename parameter. That parameter was vulnerable to path traversal. Amazon said it took about 11 minutes for the agents to go from mapping the API to writing arbitrary files on the server.
In a later session, the agents used the same flaw to plant a Python reverse shell in a file that Python loads automatically at startup, then triggered a training API endpoint that launched a new Python process. That gave them a reverse shell running as root.
Amazon Threat Intelligence said it assessed with high confidence that the bug was a zero-day, as there was no matching fix, issue, advisory or earlier mention in vulnerability databases for the open source project.
The human operators then stepped in. They gave the agents a proxy tunnelling into a second university network, which was running the same vulnerable software, and directed them to target other machines there. Amazon said it inferred the attacker had used the zero-day to compromise that server and set up the tunnel.
Not every attempt worked
The same campaign also showed the limits of the tools. Amazon said the agents spent more than 16 hours attacking a Redis server, including abusing its replication feature, trying to escape its scripting sandbox and attempting a Log4Shell injection against another service. None of those efforts succeeded.
In another operation lasting more than six hours, the attackers built a list of 80 real usernames from a university’s public resources and tested them against 30,000 credential combinations on a GPU server. Those attempts also failed.
Cairn already seen in other campaigns
Cairn is model-agnostic and can run on worker backends such as Claude Code, Codex and Pi, according to the report. Palo Alto Networks has also observed it being used with GLM 5.2 and DeepSeek V4 models.
Earlier this month, Palo Alto Networks said attackers had used the framework against organisations in the semiconductor, defence and civil society sectors. That campaign ran 25 autonomous operations against at least 19 organisations, and at least 10 were breached. The attackers added prompts telling the agents that their actions were authorised security work and that they should never refuse a task.
The details were reported by Ars Technica, based on Amazon’s and Palo Alto Networks’ published research.
What it means for Pakistan
Amazon warned that the operational tempo of these attacks compresses the time defenders have to respond. An agent that finds and exploits a zero-day in minutes can finish its work faster than many security operations centres can manually triage an alert, it said.
That warning is relevant for Pakistani universities, hospitals and banks that run open source software on internet-facing servers. National CERT has already warned banks about AI-driven cyberattacks, and the Amazon findings show why patching, exposure checks on public servers and faster alert handling now matter more.
Key facts
- AI agents running on the open source Cairn framework found and exploited a zero-day with minimal human input, Amazon said.
- The flaw was a path traversal bug in an open source medical imaging AI application.
- The agents went from API mapping to arbitrary file writes in about 11 minutes and later gained root access.
- Other attempts, including 16 hours against a Redis server, failed.
- Palo Alto Networks linked Cairn to a campaign that breached at least 10 of 19 targeted organisations.
FAQ
What is a zero-day?
A software flaw that is unknown to the vendor or project maintainers and has no patch at the time it is exploited.
Was Cairn built for hackers?
No. It was built as a penetration-testing tool for defenders, but attackers have adapted it for offensive operations.
Official sources: Amazon Threat Intelligence research; Palo Alto Networks research.
Featured image: representational, AI-generated






