Back to Blog
AI SecurityAttack SurfacePath TraversalCISA KEVBraintruder

The AI tool someone set up "just to test it" is probably on the internet with authentication off

November 23, 2026
Assertive Infosec Team
Share

In September, attackers pointed a team of AI agents at a university's medical-imaging labelling tool and told them to "obtain shell access". According to Amazon Threat Intelligence, the agents went from mapping the tool's API to exploiting a previously unknown flaw in about 11 minutes. A later session planted a Python reverse shell and got root.

The tool was MONAI Label, an open-source app researchers use to label medical images. The framework the attackers used was Cairn, an open-source AI penetration-testing tool. Amazon only found the campaign because the attackers had left their own Cairn instance on the internet without authentication. BleepingComputer has the full story.

The AI-agent angle is what got the headlines, but the bit worth your time is more ordinary. A self-hosted AI tool was reachable from the internet with authentication switched off, and that's the default for a lot of them.

1. What the flaw was

From the MONAI Label advisory:

  • The PUT /datastore/image and PUT /datastore/label endpoints took an ID from the request and used it as part of a file path, without checking it stayed inside the datastore. A value like ../../../tmp/x writes wherever the process can write. It's a classic path traversal.
  • Authentication is off by default (MONAI_LABEL_AUTH_ENABLE=False). With it on, an annotator account is still enough.
  • Versions up to and including 0.8.5 are affected. 0.8.6 fixes it (CVE-2026-133968), along with a second path traversal in session uploads.

The agents then wrote their reverse shell into sitecustomize.py, a file Python loads every time it starts. Arbitrary file write on a Python server is usually code execution with one more step.

2. It isn't one tool, it's a category

The same week, CISA added a flaw in LiteLLM, a popular open-source AI gateway, to its Known Exploited Vulnerabilities catalogue (CVE-2026-40217, added 18 November). A guardrail-testing endpoint ran user-supplied Python in a sandbox that could be escaped, giving code execution in the proxy, which runs as root in the default Docker image.

That one needs a proxy-admin credential to reach, so on its own it's rated moderate. The problem is what that credential protects and how often it's weak or still the default. It's also LiteLLM's fourth KEV entry this year, after a SQL injection in May, a command injection in June and an authentication bypass in September. Attackers are clearly looking at these gateways, and it's not hard to see why: a gateway holds the API keys for every AI provider you use.

MONAI Label and LiteLLM are just this week's examples. The pattern is common to a lot of self-hosted AI and developer tools: model servers, notebook servers, labelling tools, vector databases, agent frameworks. They're built to be quick to try. Auth is often optional, there's a default admin key in the quick-start guide, and someone runs it on a cloud VM with a public IP "just to test it". Six months later it's still there.

3. What to check this week

  1. Find out what AI tools are actually running. Ask the people who'd know (developers, data people, whoever has a cloud account) and check your cloud consoles for VMs and containers nobody mentioned. Shadow IT is usually AI tooling now.
  2. Check what's reachable from the internet. Anything with a web UI or an API on a public IP should have a reason to be there. If it's only used internally, put it behind a VPN or restrict it to known IPs.
  3. Turn authentication on and change default keys. Read the tool's docs for the auth setting. If it has a master or admin key, make sure it isn't the example one from the docs.
  4. Patch. MONAI Label 0.8.6 or later. For LiteLLM, 1.83.10 or later fixes CVE-2026-40217 (the advisory also mentions 1.83.11, so take the latest), and check you're past the earlier KEV fixes too.
  5. Treat a gateway's keys as compromised if the gateway was exposed. If an AI gateway was internet-facing with a weak or default key, rotate the provider API keys it holds and check provider billing for usage you don't recognise.

None of this is new advice. What's changed is how fast someone tries it. The 11 minutes was not a human working through the API by hand.

Attackers are already using AI to find and exploit flaws like these in minutes, so a manual test once a year doesn't keep up. Braintruder puts the same speed on your side: it runs on a schedule over your internet-facing estate, tests new services as they appear, and works within a scope you agree, with a person approving higher-impact actions and every step recorded.

Technical References

Share

Ready to Secure Your Business?

Get a free security assessment from our experts.

Contact Us Today