The AI agents were not just stealing API keys. They were stealing them to pay their own bills. Amazon caught ARTEX AI agents feeding stolen LLM provider keys back into their own model gateway, so each stolen key funded the search for the next one.
In short: between 3 October and 5 November 2026, Amazon’s decoy network captured the working memory of ARTEX AI agents that hunted exposed AI gateways such as LiteLLM, One API and Dify for provider keys, validated them, pooled them, and used them to run the very agents doing the hunting.
How did Amazon catch ARTEX AI agents?
Amazon set a trap that looked like an AI model. Its MadPot sensors, a global network of decoys, exposed fake LLM chat-completions interfaces on various ports. Agent frameworks found them and started using them as their model backend.
That was a gift. Agentic frameworks send their whole working context to the model on every call: system prompts, tool histories, knowledge-graph state and findings. So a single captured request often held a campaign’s full history, including the operators’ standing instructions.
Amazon’s CISO CJ Moses published the findings on 13 November. Amazon assesses with moderate confidence that ARTEX was used, based on prompt references to ARTEX tooling. It also assesses with moderate confidence that the operators are disparate Chinese-nexus groups, citing simplified Chinese prompts, China time-zone settings, targeting and tooling. The instructions told agents to skip mainland China and government domains and to route all traffic through proxies.
If ARTEX is new to you, our explainer on why the ARTEX framework is so popular with attackers covers the background.
How did the ARTEX key theft loop work?
The agents went after apps that hold many provider keys at once. One weak admin page on an LLM gateway can expose keys for several AI providers and many downstream accounts.
The workflow was the same across campaigns: find an exposed AI app, pull the upstream keys, test them, and store the working ones in a managed pool. That pool fed the framework’s own model gateway. In Amazon’s words, stolen keys “paid for the LLM inference powering further credential hunting.”
Operators gave the agents rules, not step-by-step orders. One campaign worked through a fixed list of countries, preferred enterprise production sites over hobby projects, and graded each credential: L1 for a lead, L2 for a confirmed working call, L3 for measurable impact such as readable data or spendable balance. Keys public for more than 30 days were filed as low-value stock, on the assumption they were already burned.
Cloud credentials were treated as a way in, not a prize. Agents checked each identity, enumerated storage and permissions, and then went for managed AI model services, secret stores and application identities. Access to premium frontier models ranked above general cloud permissions.
Which AI apps did the agents target?
Amazon names twelve products. The agents mapped each fingerprinted product to a known way in.
| Product type | Named targets | Ways in listed in the playbook |
|---|---|---|
| LLM gateways and proxies | One API, New API, Veloera, Sub2API, LiteLLM | Default admin credentials such as the LiteLLM default master key; isCliRequest header auth bypass in One API family systems |
| AI app builders | Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat, Ollama | CVE-2025-3248 (Langflow); CVE-2026-28797 (RAGFlow); unfinished installs anyone could claim |
| Any of the above | All | Anonymous management and provider-config endpoints; SSRF to cloud metadata; secrets in client-side JavaScript, source maps, debug routes and env files |
The Hacker News checked the named flaws. Langflow fixed CVE-2025-3248 in 1.3.0, and CISA added it to KEV in May 2025. For RAGFlow, it reports the advisory lists no patched version, while 0.25.0 moves template rendering into the recommended sandbox. Amazon names no affected versions or fix for the One API bypass.
Keys were also harvested from public sources: internet scanners, certificate transparency logs, GitHub repositories and event archives, npm and PyPI tarballs, container image layers, notebooks, model-hosting spaces, paste sites and Telegram channels.
What was the deepfake KYC campaign?
A second campaign aimed at identity checks at two cryptocurrency exchanges. At least four agent sessions ran in parallel: one looked for cash-out routes, one worked on draining balances, one built a deepfake video pipeline, and one attacked the verification flow.
The agents reverse-engineered one vendor’s liveness check in detail. Their best attempt finished the head-movement sequence with the face within 7 pixels of the target. A separate session got a real-time face animation model running at 11.5 frames per second on one consumer GPU. They also forged ID photos with camera metadata built to look unedited.
What the records do not prove
This is the part most coverage skips. Amazon did not watch these attacks happen. MadPot captured what the agents said about activity on systems Amazon does not monitor, and Amazon says plainly that it cannot verify the outcomes the agents reported.
So treat the records as a view of intent and method, not a breach count. The KYC campaign is a useful reminder: the agents logged careful progress and still failed at the server-side check every time. Amazon also notified potentially affected AWS customers but says activity against other organisations could not be confirmed.
Amazon’s own conclusion is blunt. None of the techniques were new. What changes is speed and persistence, and the agents won where basic hygiene was missing. That matches what we saw in the count of 4,200 exposed AI attack framework servers and in the Cursor breach that began with a vendor key.
How do you defend against ARTEX AI agents?
Assume any exposed secret or misconfigured AI app will be found within days. Then work through this list:
- Change default credentials. Rotate the LiteLLM master key and any admin password you never changed. Do not leave a half-finished install on the internet.
- Close anonymous endpoints. Put gateway management and provider-config pages behind authentication and off the public internet.
- Patch the named flaws. Langflow to 1.3.0 or later; review the RAGFlow advisory and disable open self-registration if you do not need it.
- Hunt for leaked keys. Scan repositories, container images, notebooks, front-end bundles and source maps. Rotate anything found, regardless of age.
- Watch the bill. Alert on unexpected model spend, new models being called, or usage at odd hours. In this campaign, your invoice may be the first signal.
- Check the indicators. Amazon publishes 11 IP addresses with first and last seen dates. Search gateway and proxy logs against the full list in Amazon’s post.
- Treat AI apps as production. Amazon’s advice is to give model gateways and inference endpoints the same controls as other production systems.
The bottom line
ARTEX AI agents turned LLM key theft into a self-funding loop: every exposed gateway paid for the next scan. The agents used no new tricks, only default passwords, open admin pages and leaked keys, at machine speed. If you run LiteLLM, Dify or a similar gateway on the internet, check it this week and put an alert on your model spend.
Sources
- Amazon Threat Intelligence (CJ Moses), Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents, 13 November 2026
- The Hacker News, Amazon Uncovers AI Agent Campaign Targeting LiteLLM, Dify, and Other Apps for API Keys, 16 November 2026
- tbreak, AI agents hunt exposed LiteLLM and Dify tools for API keys, 16 November 2026
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.