top of page

11 Minutes: 4 Fixes for AI Hacking Agents

11 minutes ago
7 min read

The video uses a digital avatar of Erick Grau, CEO of Chibitek.

Eleven minutes. According to Amazon, that's how long it took a team of AI agents to go from mapping a medical imaging app's API to writing files on its server, using a bug nobody knew about. No person picked the next step. Amazon published the whole investigation, and in the same week Wiz Research reported a poisoned Microsoft package on PyPI whose tooling called itself by the same name: Cairn.

None of the fixes here are new. What's new is the clock. Here's what happened, in plain words, and the four things I'd do about it.

What Did Amazon Find?

On Nov. 20, 2026, Amazon Threat Intelligence published findings on a threat actor it links to China, with moderate confidence, based on Simplified Chinese prompts, China Standard Time timestamps and the choice of targets. The actor used Cairn, an open source AI penetration testing framework that coordinates several AI agents toward a goal written in plain language.

The goal they gave it was simple: "obtain shell access." Then the agents planned, ran and adjusted their own steps. BleepingComputer and Dark Reading reported the same details from Amazon's post.

Amazon Threat Intelligence: 11 minutes. AI agents vs a medical imaging app. Map the API, then write files on the server. Autonomous AI agents. Amazon published it.

Amazon describes three operations against university targets in East Asia:

  • A university Redis server. Over roughly 16 hours and 148 actions in a row, the agents worked through a long list of known tricks against a Redis database that was set up to allow access without authentication. None of them worked.

  • A university GPU server. The agents built a list of about 80 real usernames from faculty directories, lab websites, archived pages and academic papers, then tried more than 30,000 login combinations across the network. They never found a working login.

  • An open source medical imaging AI app. This is the one that worked. The agents mapped the app's API, found an upload endpoint, and tested it for path traversal, a bug that lets you write a file outside the folder it's supposed to land in. In about 11 minutes they went from mapping the API to writing files anywhere on the server.

In a later session, the agents used the same bug to plant a reverse shell that ran as root, which means full control of the server. Amazon says the bug had no advisory and no patch at the time, so it was a true zero-day.

Attempt three, medical imaging app: an open source medical imaging AI app, a zero-day nobody knew about with no advisory and no patch, then root access on the server.

One detail matters for how you read the headline number. Amazon's 11 minutes covers mapping the API to writing files. Root access came in a later session. Some coverage rolled both into "root in 11 minutes," so if you repeat the number, repeat it the way Amazon wrote it.

Amazon also found the whole operation because the attacker left their own Cairn server open to the internet with no authentication. That's how Amazon could read the prompts and the AI output.

What Happened on PyPI the Same Week?

On Nov. 17, 2026, two poisoned versions of Microsoft's agent-framework Python package, 1.26.1 and 1.26.2, were published to PyPI, the main public library for Python packages. Wiz Research, the GitHub advisory and Microsoft's own post all describe the same thing:

  • The versions carried a credential stealer aimed at cloud and build credentials, including Azure, CI pipeline and GitHub Actions tokens.

  • They added a startup hook, so the stealer ran every time Python started in that environment, even if your code never used the package.

  • Wiz says both versions were gone from PyPI within about an hour of the first upload.

What the poisoned versions did: stole cloud and build credentials, ran every time Python started even if the package was never used, pulled in about an hour. The attacker's tooling called itself Cairn.

Wiz says the attacker's tooling identified itself as Cairn. A fair word of caution: Cairn is open source, and Amazon notes it's being picked up by both espionage and criminal groups. So the shared name shows the same kind of tool, not proof that the same people ran both attacks. The lesson is the same either way. The attacker side now has agents that don't sleep.

Fix 1: Nothing on the Internet Without a Login

Look at the two servers in Amazon's story that had no login. The university's Redis server allowed access without authentication. And the attacker's own Cairn server was wide open, which is the only reason anyone saw the operation at all.

Fix 1: nothing on the internet without a login. The Redis server they hit allowed access without authentication. The attacker's own Cairn server was left wide open, no authentication.

Make a list of every service you have that faces the internet, including the "temporary" ones and the test boxes. Anything without a login either gets one or comes off the internet. If you run the medical imaging tool Amazon described, BleepingComputer identifies it as MONAI Label, and its maintainers say the path traversal bug is fixed in version 0.8.6. Their advisory also notes that authentication is off by default, so turn it on and keep the server off untrusted networks.

Fix 2: Don't Grab Brand New Package Versions

Microsoft says you may have pulled a poisoned version if you installed or upgraded without a version pin, ran a build without a pin or lockfile, or merged an automated update. So:

  • Pin your versions. Use a lockfile and install exactly what you tested.

  • Give new releases a day. This is our advice, not a rule from the advisory. This one was gone in about an hour. Letting a new version sit for a day before your builds pick it up costs you almost nothing.

Fix 2: don't grab brand new package versions. Pin your versions. Give new releases a day. Installed 1.26.1 or 1.26.2? Treat the machine as exposed and rotate every credential it could reach.

If you installed 1.26.1 or 1.26.2, the GitHub advisory says to treat that environment as exposed and rotate every credential it could reach, including CI and GitHub Actions secrets. Microsoft adds two steps: rebuild from a clean image instead of downgrading in place, and review cloud and CI audit logs from Nov. 17 onward. Version 1.26.0 and earlier are not affected.

Fix 3: Keep Long-Lived Secrets Off Build Machines

This one is general best practice, not something from Amazon's or Wiz's reports. The stealer went after secrets sitting in environment variables and credential files. A password or API key that stays valid for months is a great prize. A token that expires fast is a much smaller one.

GitHub's documentation explains how OpenID Connect lets a build job ask your cloud provider for a short-lived token that's only valid for that one job and then expires, so you don't store long-lived cloud secrets in GitHub at all. Be honest with yourself about the limit, though: version 1.26.2 tried to grab those short-lived tokens too. Short-lived tokens don't stop theft. They shrink how long a stolen token is good for, and they keep the scope tight.

Fix 4: Match the Speed

Amazon's own advice is blunt. An agent that finds and uses a zero-day in minutes finishes before many security teams can manually look at the alert. So Amazon says to put high-confidence detections first, have them respond automatically, and let people oversee the outcome instead of reviewing every alert by hand.

Fix 4: match the speed. Amazon's own advice: high-confidence detections that respond automatically, and humans oversee the outcome, not every single alert by hand.

In practice, that means deciding ahead of time which alerts are trusted enough to act on alone, like isolating a machine or disabling a login, and who gets the call when that happens at 2 a.m. If that decision waits for a meeting, the agent has already moved on.

That last fix is why Chibitek moved from MSP to Managed Intelligence Provider. When the attacker works in minutes, your defense can't wait for Monday.

Key Points

  • Amazon says Cairn AI agents went from mapping a medical imaging app's API to writing files on its server in about 11 minutes, using a zero-day. Root access came in a later session.

  • The same agents spent about 16 hours on one server and tried more than 30,000 logins on another, and failed both times. They don't get tired.

  • The same week, two poisoned versions of Microsoft's agent-framework package hit PyPI and stole cloud and build credentials. The tooling called itself Cairn.

  • Four fixes: nothing on the internet without a login, pin versions and wait a day on new ones, keep long-lived secrets off build machines, and let trusted detections respond automatically.

Frequently Asked Questions

Did AI really hack a server on its own? According to Amazon, the operator gave the goal and the targets, and the agents chose and adjusted each step without the operator picking the next one. In one later session the operator did step in and handed the agents a tunnel into a second network.

Was it root access in 11 minutes? Not quite. Amazon says about 11 minutes from mapping the API to writing files on the server. Root came later, using the same bug.

How do I know if I installed the bad agent-framework versions? Microsoft says to check lockfiles, pip freeze output, CI logs, container images, internal mirrors and pip caches for 1.26.1 or 1.26.2, and lists the files to look for in site-packages. Removing a version from PyPI doesn't remove copies you already downloaded.

Is Cairn malware? No. Amazon describes it as an open source penetration testing framework built for defenders. Attackers are using it the same way they use other legitimate tools.

Let's Close the Gap

At Chibitek, we help teams turn news like this into a short, clear to-do list, with no geek-speak. If you want a second set of eyes on what you have facing the internet, how your builds pull packages, or how fast your alerts turn into action, contact us at hello@chibitek.com.

Add a login. Pin your versions. Shorten your secrets. Match the speed.

We make IT effortless so you can create, disrupt, and grow!

Follow Chibitek on YouTube at @chibitekmsp, and follow Chibitek on LinkedIn.

Sources

Comments


bottom of page