AW Dev Rethought

✂️ Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away - Antoine de Saint-Exupéry

Security Realities: Amazon Caught AI Agents Finding a Zero-Day in 11 Minutes


An attacker gave a set of AI agents a list of IP addresses and one instruction: obtain shell access. The agents mapped an application they had never seen, found a bug nobody had reported, and used it to get a root shell on a university server. The step from mapping the application to exploiting it took about 11 minutes.

Amazon Threat Intelligence published the details on November 20. It is one of the clearest records yet of autonomous agents finding and using a zero-day on their own. The same report also shows where they failed, and that half of the story is just as useful.


How Amazon Saw It

On September 10, Amazon found a server running Cairn, an open-source framework for autonomous AI penetration testing. It was exposed to the internet with no authentication. Anyone could see its configuration, its prompts and its output.

Cairn coordinates several AI agents toward a goal written in plain language. It was built for security testing. The operator using this copy was not testing their own systems.

The prompts were in Simplified Chinese, and timestamps were set to China Standard Time. Amazon attributes the activity to a Chinese-nexus actor with moderate confidence. The campaign ran for about 48 hours from September 8, against university IP addresses in East Asia outside mainland China.

Amazon has not named the AI models behind the agents.


Eleven Minutes From Map to Exploit

One target was running MONAI Label, an open-source AI application used for medical imaging.

The agents mapped its API and found an upload endpoint that took a filename parameter. They tested it for path traversal, where a filename like ../../something writes a file outside the folder it was meant for. It worked. The path from mapping the API to writing arbitrary files took about 11 minutes.

In a later session, the agents turned that into code execution. They wrote a reverse shell into sitecustomize.py, a file Python loads automatically every time it starts. Then they called the application's training endpoint, which starts a new Python process. The process loaded the payload and connected back to the attacker as root.

No exotic technique was involved. One unchecked filename, one file Python trusts, and one endpoint that starts a process.

Amazon assesses with high confidence that this was a zero-day: no fix or advisory existed when it was found.


Where the Agents Failed

The same agents spent far longer getting nowhere elsewhere.

A Redis server. They worked on it for about 16 hours across 148 sequential actions. They tried replication abuse, sandbox escapes, memory corruption and a Log4Shell attempt. They pivoted through a flaw in a neighbouring service and sprayed credentials at PostgreSQL and SSH. None of it worked.

A GPU cluster. For six hours they built about 80 usernames from faculty pages and research papers, then tried more than 30,000 credential combinations. No login succeeded.

Amazon's summary is that the agents kept adapting for almost a full day with no human direction. They were persistent and methodical. Against systems with no unknown bug to find, known techniques and guessed passwords still failed.

The agents didn't beat good security. They found the one place it was missing.


What the Human Still Did

The operator's role was small, but it was not zero.

They chose the targets and wrote the one-line goal. After the zero-day, they handed the agents a proxy into a second university network running the same software. Amazon infers the operator had already compromised that server with the same bug, and pointed the agents at other machines on that network.

The agents did the searching and the exploiting. A person still decided where to aim them next.

Amazon also notes that a separate, financially motivated group has been reported using Cairn against online retailers. The tool is open source and already in more than one set of hands.


What Happened Next

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

CISA added the flaw to its Known Exploited Vulnerabilities catalog on November 23, with a November 26 deadline for federal agencies to patch or remove it.


What This Changes for Defenders

Finding bugs used to cost time and skill, which limited how many targets an attacker could work on. Agents lower that cost. What they don't change is what makes a system hard to break.

  • Treat every file path from a user as hostile. Resolve it and confirm it stays inside the intended directory before writing anything.
  • Don't run application services as root. The bug gave file writes. Root turned them into full control.
  • Know your exposed AI and research tools. Open-source ML apps on university and lab servers often go live with less review than production services.
  • Keep the basics strong. Strong passwords and no unknown flaws are what held for 16 hours on the Redis server and 6 hours on the GPU cluster.
  • Automate the response, not just the alert. Amazon recommends high-confidence detections that trigger automatic action, with people overseeing outcomes rather than every step. An attacker working at machine speed outruns a human queue.

The report doesn't show AI agents beating strong security. It shows them finding the gaps faster than anyone did before.


50 Machine Learning Algorithms Cheatsheet Most downloaded free PDF 50 Machine Learning Algorithms Cheatsheet Blueprints of Intelligence — 50 ML Algorithms decoded Download free Downloaded 453 times

If this article helped you, you can support my work on AW Dev Rethought.


Rethought Relay:
Link copied!

Enjoyed this post?

Stay in the loop

New posts + weekly digest, straight to your inbox.

or

Create a free account

  • Save posts to your vault
  • Like posts & build history
  • New-post alerts

Comments

Add Your Comment

Comment Added!


Evalora: Collect feedback from your teams & staff
AD

Evalora: Collect feedback from your teams & staff

Evalora lets you build a form, share the link or QR code, and see verified results. For companies, training teams and institutions. Free plan available.

Start free