← Blog

The Practical Edge: Attackers' AI agents are hunting for your AI keys

2026-11-16 · Builder Brief

The Practical Edge: Attackers' AI agents are hunting for your AI keys

If you or a contractor ever set up an AI tool on a server, there’s a good chance it holds the most spendable thing your business owns online: the API keys that pay for your AI models. On November 13, Amazon’s security team described attackers running teams of AI agents whose whole job was finding those tools on the open internet, pulling the keys out, testing them and then using them. In the main campaign, the stolen keys paid for the AI that went looking for more keys.

That should change how you think about one thing. A self-hosted AI tool is not a side project once it holds a paid key. It’s a production system, and it gets found fast.

The takeaway: List every AI tool you host yourself. Put each one behind a login, replace any default or example passwords and keys, and give every provider key a spending limit. That’s about an hour, and it closes almost everything Amazon describes.

Status, so you know what’s real:

  • Reported by Amazon: The campaigns, targets and techniques come from Amazon Threat Intelligence’s post by CJ Moses (Nov 13, 2026). Amazon attributes the tooling to ARTEX, an open-source agentic penetration testing framework, with moderate confidence, and says it cannot verify the outcomes the agents reported.
  • Vendor-documented: The settings below come from LiteLLM’s, Dify’s and Ollama’s own docs (checked Nov 16, 2026).
  • Editorial guidance: The checklist order and who can skip it are ours. We have not scanned anyone’s systems or tested these attacks.
  • No commercial relationship with Amazon or any tool named here, and no affiliate links.

1. What Amazon actually saw

Amazon runs a network of decoy servers called MadPot. Some of them pretended to be AI model APIs, the kind of endpoint an app calls to get an answer from a model. From October 3 to November 5, attackers’ AI agents sent requests to those decoys as if they were real models to think with. Agent frameworks send their working memory along with each request, so the decoys captured the attackers’ own notes: instructions, tool history, findings and the shared record their agents kept of the whole operation.

Those notes describe agents dividing up the work. Some planned, some scanned, some checked whether a stolen key worked, some summarized. Operators told them to prioritize business production systems over personal projects, and to grade every key: a lead, a key that worked, or a key with real spending power or readable data behind it. Keys that had been public for more than 30 days were treated as low value, which tells you how quickly fresh ones get used.

The targets were tools that hold many keys at once. Amazon lists AI gateways such as LiteLLM, One API and New API, and app builders such as Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama. One weak admin page on a gateway can expose every provider account behind it.

“None of the techniques in these campaigns were new. What AI agents change is the speed and persistence of the attacker.” That’s Amazon’s own line, and it’s the whole story.

2. How they got in

Amazon’s list reads like the shortcuts that are easy to take when you’re setting something up in a hurry:

  • Installs left half set up, where the first visitor can create the admin account.
  • Admin and settings pages that answer without a login.
  • Default administrator credentials. Amazon names the LiteLLM default master key specifically.
  • Known bugs in unpatched software, including published flaws in Langflow and RAGFlow.
  • Keys left in website code, debug pages, environment files, GitHub repositories, npm and PyPI packages, container images, notebooks and paste sites.

The agents found these through internet scanning services, certificate records that list new website names, and public code archives. No clever exploit is needed when the door is unlocked, and agents never get bored of checking doors.

A second campaign used agents to try to beat identity checks at two crypto exchanges with real-time deepfakes. The verification vendor’s server rejected every attempt the agents recorded. That’s worth knowing, but for most small businesses the keys are the real exposure.

3. The one-hour lockdown

Do this for every AI tool your business runs on its own server or cloud account, including anything a freelancer set up for you.

  1. Make the list. Ask yourself and anyone who builds for you: what AI tools do we host? Gateways (LiteLLM), app builders (Dify, Langflow, Flowise), chat front ends (Open WebUI, LobeChat), local model servers (Ollama), and automation tools like self-hosted n8n that store model keys. Write down where each one runs and which provider keys it holds.
  2. Check who can reach it. Open each tool’s address from your phone on cellular data, not your office Wi-Fi. If you get a login screen or the app itself, so can everyone else. Ollama listens only on your own computer by default (127.0.0.1); if someone changed that so other devices could use it, it should sit behind a proxy that requires a login.
  3. Finish setup and replace defaults. For Dify, the admin account is created at /install after first start, so do that before the server is reachable, and replace the bundled development passwords and keys in its settings file as Dify’s guide says. For LiteLLM, the master key authorizes every management call and is the default Admin UI password; the current quickstart generates a random one, and if yours came from an example in a tutorial, change it today.
  4. Rotate anything that was ever exposed. If a provider key has ever sat in code, a shared doc, a screenshot or a public repository, assume it has been found. Create a new key at the provider, swap it in, and delete the old one.
  5. Cap the damage. In each AI provider’s billing settings, set a monthly spending limit or alert where one is offered. In LiteLLM, give each app or client its own virtual key with a budget. One catch from LiteLLM’s docs: budgets aren’t enforced unless it runs with a database, so the provider-side limit matters either way.
  6. Patch and watch. Update each tool to its current release, then put a monthly reminder on the calendar to do it again. Amazon’s closing advice is to watch for unexpected spend or unusual usage, so look at your provider bills weekly for a month.

If your team ships code with coding agents, a pull request reviewer like Polylane can catch some secrets and access mistakes before they ship. That helps on top of the steps above, not instead of them.

Who can skip this

  • You only use hosted apps. If your AI is ChatGPT, Claude, Gemini or tools inside Shopify or your CRM, and nobody on your team runs AI software on a server, there’s nothing here to lock. Do step 4 anyway if you’ve ever pasted an API key somewhere.
  • Your local model never leaves your laptop. Ollama on its default settings listens only on your own computer, so if you use it just on your laptop, it isn’t reachable from the internet.
  • A managed provider runs it for you. If you use a vendor’s hosted version of these tools, the server is their job. Your job is still steps 4 and 5.

The decision

If you host any AI tool that holds a paid key, treat it as exposed until you’ve done steps 1 through 5. Most small teams can finish that in an hour, and none of it needs a security background. If you can’t say who set a tool up or whether anyone is patching it, the right move is usually to shut it down and use the vendor’s hosted version. I’d still self-host where it earns its keep, especially for privacy. Just run it like the production system it already is.

Your move this week

Make the list in step 1 before Friday. Then set a spending limit on every AI provider account you pay for, which takes five minutes each and caps the worst case even if you miss something else.

Get the Builder Brief for one practical move like this every week. For the other half of this problem, read Your AI-built app works. That doesn’t mean your data is locked, and the wider habit in the 10-minute audit: what can talk to your AI agent?

Sources: Amazon Threat Intelligence, “Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents” (CJ Moses, Nov 13, 2026); LiteLLM docs, Quickstart and Virtual Keys; Dify docs, Deploy Dify with Docker Compose; Ollama FAQ. Checked Nov 16, 2026. No commercial relationship with any company named, and no affiliate links in this piece.

Tools mentioned

General information only, not legal, financial or brokerage-compliance advice. Tool features and prices change; check each vendor's site.

New AI tools, honest reviews and playbooks. One email a week.

Free. Unsubscribe anytime.