AI Agents Found a Zero-Day and Wrote Arbitrary Files
Terminator Cybersecurity November 24, 2026 · 3 min read

AI Agents Found a Zero-Day and Wrote Arbitrary Files

Amazon says attackers used the Cairn AI framework to find and exploit an unpatched path traversal flaw in an open-source medical imaging application. In about 11 minutes, the agents went from mapping the application’s API to writing arbitrary files to the server; they established a root reverse shell in a later session, with no time given.

Amazon says AI agents operating with little human input found an unpatched vulnerability in an open-source medical imaging application and used it to write arbitrary files to a server. The attack unfolded quickly: about 11 minutes after mapping the application’s API, the agents could write arbitrary files to the server.

“Autonomous AI agents found and exploited a zero-day to gain root shell access with little human input.”Why it scores Terminator

From a short instruction to a working exploit

The agents ran on Cairn, an open-source framework designed for AI-assisted problem solving, with autonomous penetration testing as its first validated use. In the incident Amazon described, the attackers supplied a list of IP addresses and a simple goal: “obtain shell access.” They gave prompts in simplified Chinese and configured the model to the Chinese Standard Time zone.

On the vulnerable server, the agents identified the application framework, mapped its API endpoints, and located an upload endpoint with a filename parameter. Testing that parameter for path traversal revealed that it could be abused to write files outside the intended location.

In a later session, the agents used the flaw to place a Python reverse shell payload in sitecustomize.py, which Python automatically imports when it starts. They then triggered a training API endpoint to start a new Python process. That process loaded the payload and opened a reverse shell with root privileges.

Why Amazon calls it a zero-day

Amazon Threat Intelligence assessed with high confidence that the vulnerability was a zero-day when it was found. The flaw had no corresponding security advisory or fix, and Amazon said there was no prior mention in vulnerability databases for the affected open-source project.

After the agents identified the flaw, the attackers became more directly involved. They supplied a proxy that tunneled into a second university network. Amazon said the server the proxy connected to ran the same vulnerable software; it inferred that the attackers had used the flaw to compromise that server and establish the tunnel. The attackers then directed the agents to target other machines on the network.

Cairn can support defenders and attackers

Cairn coordinates work across multiple AI agents. A shared graph stores facts and hints, while a dispatcher schedules tasks, manages containers, and records the process. It can assign a project to a worker container, where several agents run concurrently. The framework is model-agnostic and supports worker backends including Claude Code, Codex, and Pi.

Although built for defenders, Cairn has also been used in offensive operations. Palo Alto Networks said hackers used it against organizations in the semiconductor, defense, and civil society sectors. The campaign involved 25 autonomous operations against at least 19 organizations, with at least 10 successfully breached.

Reported actions included accessing dozens of valid credentials, exposing personal data exceeding 1 million records at one organization, retrieving military and government identities, creating persistent administrator accounts in a production system, and modifying a live industry standards-ballot document.

Amazon’s account also shows that agentic attacks do not succeed every time. In one operation, agents spent more than 16 hours trying techniques against a Redis server and another service, including attempts to abuse replication, escape a scripting sandbox, alter configuration files, and exploit Log4Shell. Those efforts failed. Another attempt to access a university GPU server using 80 real usernames and 30,000 credential combinations also failed.

A shorter window for defenders

The contrast between those failed attempts and the successful medical imaging exploit matters for security teams. Cairn’s agents can keep trying many approaches, but a vulnerable application can turn that persistence into a rapid compromise once the right weakness is found.

Amazon warned that the pace of these operations reduces the time available to respond. Its concern is that an agent may discover and exploit a zero-day in minutes, while a security operations center is still manually triaging an alert. The case makes fast detection and response more important as AI-assisted hacking frameworks become capable of performing reconnaissance, exploitation, and follow-on actions with limited human direction.

CybersecurityArtificial IntelligenceZero-Day Vulnerabilities
← Back to the wire

Read next