Home/Blog/AI agents

The FBI saw AI agents reach admin access in under 3 hours. Check your AI keys first.

Amazon caught criminal AI agents hunting for exposed model keys and open AI tools. Every hole they used was a basic one. A 30-minute check, a fix order and a checker for your own stack.

On 13 November, the FBI and Amazon published separate warnings about the same thing: criminals using an AI agent framework called ARTEX to run attacks with little human help. The FBI saw some intrusions go from first contact to privileged access in under three hours. Amazon watched agents hunt for one target above all: exposed LLM API keys, plus the AI tools that hold them. Its conclusion is blunt. The attacks worked where the basics were missing. This note turns Amazon's list of what the agents looked for into a 30-minute check for any business running AI tools, with a worked example and a checker that tells you what to fix first.

Key takeaways

  • The agents went after self-hosted AI tools (LiteLLM, Ollama, Langflow, Dify and others) and the model keys inside them. A stolen key pays for the attacker's next round of agents.
  • Every hole Amazon lists is a basic one: default admin keys, keys in code or public files, tools open to the internet with no login, and unpatched software.
  • Fix in this order: anything reachable from the internet without a login, then keys you can't account for, then patches, then a spending alert.

01What the FBI and Amazon reported

The FBI's FLASH alert of 13 November 2026 describes ARTEX as an open-source agent platform that turns a plain-language goal into commands run by specialised agents, from reconnaissance to data theft. It plugs into outside AI models rather than shipping its own. The original repository was taken down in October, but forks and a commercial version still circulate.

Amazon's report, published the same day, comes from its MadPot decoy sensors, which captured ARTEX campaigns between 3 October and 5 November 2026. One campaign used AI agents to steal API keys and feed them back into ARTEX, powering more agents that hunted for more keys.

What the agents targetedExamples Amazon names
LLM gateways and proxiesLiteLLM, One API, New API, Veloera, Sub2API
AI app buildersDify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat, Ollama
Known flawsLangflow CVE-2025-3248, RAGFlow CVE-2026-28797
Weak setupUnclaimed new installs, management pages with no login, default admin keys such as LiteLLM's master key
Leaked secretsKeys in browser JavaScript, source maps, debug routes, environment files, GitHub, npm and PyPI packages, container images and notebooks

Two of those flaws matter on their own. Langflow's CVE-2025-3248 lets anyone on the internet run code on an instance older than version 1.3.0, with no login. RAGFlow's CVE-2026-28797 lets any logged-in user run server commands on version 0.24.0 and earlier, and had no public patch when it was published.

02Why exposed LLM API keys are the prize

A model key is spending power. An attacker with your OpenAI, Anthropic or Google key runs their agents on your bill, and every key they steal funds the search for the next one. That is the loop Amazon describes. The cost lands on whoever owns the key, usually discovered when the invoice or a usage alert arrives.

Self-hosted gateways make this worse, not better. A LiteLLM or One API instance often holds keys for several providers at once. If its admin page is reachable from the internet with the default master key, one login hands over all of them.

03The 30-minute exposure check

Run these in order. The first two find what an agent finds first.

  1. List every AI tool you run (5 minutes). Include the ones a developer or a business unit set up for a test and forgot: a Langflow or Dify trial, an Ollama box, an Open WebUI page, an n8n flow that calls a model. The FBI singles out these side systems as the easiest way in.
  2. Check which ones answer from the internet without a login (10 minutes). Open each one from a phone on mobile data, not your office network. If a page or API answers without asking who you are, it is exposed. Ollama has no login of its own and listens only on the machine itself unless someone set OLLAMA_HOST=0.0.0.0; if it answers from outside, close it or put it behind an authenticated proxy.
  3. Account for every key (10 minutes). In each provider's dashboard, list the active keys. Any key you can't match to a tool, revoke. Then search your code and deploy files for keys: front-end bundles, .env files that were ever committed, notebooks and container images. A key that has ever been public is a leaked key, even if you deleted the file.
  4. Patch and set a spending alert (5 minutes). Bring Langflow to 1.3.0 or later. Take RAGFlow 0.24.0 or earlier off the internet until a fix ships. Then set a usage alert and a hard monthly cap with each model provider.

04Worked example: a small agency's AI stack

A hypothetical five-person agency runs five AI tools. The check finds:

ToolFindingFixOrder
LiteLLM gatewayAdmin page public, default master keyChange the key, rotate every provider key behind it, move admin behind VPN1
Ollama serverAnswers from the internet, no loginBind to localhost or put behind an authenticated proxy2
Client chatbotOpenAI key inside the website's JavaScriptRevoke the key, call the model from the server instead3
Langflow demoVersion 1.2, older than the fixUpgrade to 1.3.0 or later, or shut it down4
n8n workflowsBehind login, keys in its credential storeKeep; check again next quarter5

Four of five tools fail, and three of them hand over keys without any hacking at all. The order follows the FBI's three-hour figure: the first two are reachable by anyone right now, the third leaks a key to every visitor, the fourth needs an exploit the agents already carry.

Then the spending alert. If the agency normally spends about $40 a day across providers (hypothetical), an alert at 1.5 times that, $60 a day, catches a stolen key on day one. A hard cap at about 30 days of normal spend, $1,200 a month, limits the damage if the alert is missed.

Decision rule

  • Reachable from the internet without a login: close it today. No exceptions for demos.
  • A key you can't match to a tool, or one that was ever public: revoke it now, then issue a new one.
  • Known-vulnerable version: patch this week, or take it offline until you can.
  • Everything else: usage alert at 1.5 times normal daily spend, hard cap at a month's normal spend.

Run the check on your own stack. It opens with the worked example loaded:

AI stack exposure check

Tick each statement that is true for every AI tool you run.

Checks failed
5 of 6
  • Fix first
  • Daily spend alert $60
  • Monthly hard cap $1,200

Based on what Amazon's threat intelligence team reported ARTEX agents looking for (13 November 2026). The cap is 30 days of normal spend. Runs in your browser; nothing you tick or enter leaves the page.

05Treat AI tools like any other server you expose

Amazon's advice to defenders is to bring AI apps, model gateways and inference endpoints under the same controls as everything else, and to watch for misuse through unexpected spend or usage. That is the same thinking as the four permission tiers for AI agents and the deprecated MCP server audit: know what you run, who can reach it and which keys it holds.

It is also the review I ran in Project Aegis, a security audit of a desktop trading app's installer, runtime and network traffic. If you want your AI tools, keys and agents audited, or a stack built with private endpoints and spending limits from day one, that is the AI agent and automation work I take on.

FAQFrequently asked questions

What is ARTEX?

ARTEX is an open-source agentic penetration testing framework that turns plain-language goals into commands run by AI agents. The FBI's 13 November 2026 FLASH alert says criminals have used it since at least August 2026, with some intrusions reaching privileged access in under three hours.

Which AI tools did the ARTEX agents target?

Amazon reported attacks on LLM gateways such as LiteLLM and One API and on AI app builders including Dify, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama. The agents looked for exposed model keys, default admin keys, unclaimed installs and management pages with no login.

How do I check if my LLM API key is exposed?

List every active key in each provider's dashboard and revoke any you cannot match to a tool. Search your website code, committed environment files, packages, container images and notebooks for keys. Treat any key that was ever public as leaked, and set a usage alert so misuse shows up fast.

Is Ollama safe to run on a server?

Ollama has no login of its own and by default listens only on the machine it runs on. It becomes exposed when someone sets OLLAMA_HOST to 0.0.0.0 or forwards its port. If it answers from outside your network, bind it to localhost or put it behind an authenticated proxy.

Ashish Tadigiri

Founder of Ashish Infotech & Finance Solutions. I engineer algorithmic trading systems, AI agents and fintech platforms. 250+ projects since 2014, including work for teams at Yahoo, Adobe and Nike.

Sources

  1. FBI FLASH-20261113-001: Threat overview of ARTEX autonomous penetration testing framework (13 Nov 2026) · retrieved 23 Nov 2026
  2. AWS Security Blog: Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents (13 Nov 2026) · retrieved 23 Nov 2026
  3. The Register: Attackers are using AI agents to automate cybercrime at industrial scale, FBI and AWS warn (16 Nov 2026) · retrieved 23 Nov 2026
  4. Help Net Security: Langflow CVE-2025-3248 exploited, patched in 1.3.0 · retrieved 23 Nov 2026
  5. OSV: CVE-2026-28797, RAGFlow SSTI leading to RCE (0.24.0 and earlier) · retrieved 23 Nov 2026

Figures come from the FBI's FLASH alert and Amazon's report, both dated 13 November 2026, and the vulnerability records linked above, as read on 23 November 2026. The agency, its stack and its spending are hypothetical. This is a defensive guide; it does not reproduce any exploit.