AI

ARTEX AI Agents Are Hunting LLM API Keys: What LiteLLM and Dify Teams Should Do

Amazon's decoy servers caught attacker agents hunting for provider keys inside exposed AI apps. Here is what is known, what is not, and what to fix.

Mara Oduya

Senior AI Correspondent

Published 8 min read
An anonymous hacker typing on a laptop at a desk, with data scrolling across the screen
In this article 6 sections

Attackers are pointing AI agents built on an open-source tool called ARTEX at exposed AI apps, then pulling out the LLM API keys stored inside. Amazon captured the agents' own records in November 2026. The defense is basic hygiene: change default credentials, lock down admin pages, rotate keys, and watch for unexpected AI spend.

Protocol Wire follows the tooling that engineering teams wire into their products, and this story sits squarely in that stack. Amazon's threat intelligence team published its findings on November 13, 2026. This explainer is for engineers, platform leads and founders who run an LLM gateway, an AI app builder or any service that holds provider keys.

The short version: the techniques are old, but the attackers are now software that never gets tired. Below, we walk through what Amazon saw, why these apps are targeted, what remains unverified and what to fix this week.

What Amazon's Decoy Servers Captured

Abstract graphic of glowing data wires representing traffic between servers and the internet

Amazon's threat intelligence team runs a network of decoy servers called MadPot. The decoys posed as popular LLM services. From October 3 to mid-November, attacker agents sent them requests that often carried a campaign's full history, including the operators' instructions and the agents' reported findings.

That history is the story. As The Hacker News reported, the agents were hunting for weak spots in internet-exposed apps such as LiteLLM, One API and Dify to steal the AI provider keys stored inside.

Amazon assessed with moderate confidence that the agents ran on ARTEX, an open-source AI tool for penetration testing. ARTEX works like a small team. An operator gives it a target and a goal. A planner agent splits the goal into tasks, and worker agents run security tools. To decide each next step, the agents send their work to a large language model.

Amazon also assessed, again with moderate confidence, that the operators were separate China-linked groups. It cited Simplified Chinese prompts and China time zone settings, among other evidence. Attribution here rests on circumstantial signals, so we treat it as a lead, not a verdict.

Why LLM Gateways and AI App Builders Are a Rich Target

A padlock secured with a chain and key, standing in for stored API credentials

An LLM gateway is a proxy that sits between your apps and model providers. It stores provider keys in one place so developers do not have to. That convenience turns it into a vault. One weak admin page can expose keys for many providers and many accounts.

Consider a simple case. A single gateway that holds keys for five providers is five billing accounts behind one login. If that login is a default password, the attacker does not need to break anything. They only need to ask.

The agents focused on exactly these apps. Named targets include gateways and proxies such as One API, New API, Veloera, Sub2API and LiteLLM. They also include app builders such as Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama.

The attackers' playbook lists default administrator credentials, including LiteLLM's default master key. It lists unfinished installs that an outsider could take over, plus known flaws in Langflow and RAGFlow. It also covers settings endpoints that need no login and an authentication bypass in the One API family.

Another entry uses server-side request forgery (SSRF). That is a trick that makes a server fetch a URL on the attacker's behalf, here to reach cloud metadata services. Secrets left in client-side JavaScript, source maps, debug routes and environment files round out the list.

Speed matters in how the agents sort their finds. In Amazon's own write-up, agents graded credentials from a lead, to a confirmed working API call, to quantified impact. Keys exposed publicly for more than 30 days were treated as low-value inventory, which tells you fresh leaks get picked over first.

Startups are already pitching to this gap, such as the company behind a $50 million seed round for vetting AI agents. Whether that approach wins or not, the problem it targets is real.

How Do AI Agents Hunt for Exposed LLM API Keys?

They combine internet scanners with public data. The agents look for exposed apps, extract the stored provider keys, test that the keys work, and add them to a shared pool. They also search code repositories, packages, container layers and paste sites for keys that developers leaked by accident.

A futuristic white robot, a stand-in for autonomous AI agents

Amazon's records show the agents used internet scanning services and certificate transparency logs to find hosts. For leaked keys, they searched GitHub repositories and event archives, npm and PyPI packages, container image layers, notebooks, model-hosting spaces, paste sites and Telegram channels.

When the agents found cloud credentials, they went after managed services that host AI models, secret stores and application identities. They prioritized premium AI models over general cloud access. A key to a top-tier model is simply worth more to a reseller or a second-stage attacker.

One detail stands out. The records describe stolen keys being used to run the models that powered the search for more keys. That makes unexpected AI spend a useful alarm for defenders.

Every vendor shipping agent features, such as the ones in our Claudeforce beta brief, adds more credentials and endpoints that someone has to secure. The attack surface grows with each integration.

What Is Verified and What Is Not

Amazon said it did not observe the agents' activity as it happened. Its team cannot verify the outcomes the agents reported. The records show what the actors were pursuing, not what they achieved. Any claim of stolen keys is, for now, a claim made by attacker software.

A related case surfaced the same week. According to Cloudflare's incident findings, ARTEX gained access to an account-level API token used for CI/CD. The token had no IP restrictions or rate limiting. Activity that followed included 400 database dump requests in an hour. Cloudflare has not said whether those requests returned any data.

Across more than one incident, Cloudflare's responders found the same root cause. Static CI/CD tokens that never expired gave attackers broad access across a customer's cloud setup. How the token in the ARTEX case was first stolen has not been disclosed.

The FBI also issued a FLASH alert that week saying a range of attackers have used ARTEX since at least August. The alert summarizes 11 earlier reports and describes no new incident. ARTEX's developer pulled its GitHub repository on October 8 after abuse reports, but forks and archived copies kept circulating.

Here is the counterpoint. Amazon says none of the techniques in these campaigns were new. AI agents change the speed and persistence of the attacker, not the playbook. That is reassuring because known fixes work. It is unsettling because the window between a mistake and its discovery keeps shrinking.

What Should Teams Running LiteLLM or Dify Do Now?

People monitoring large digital displays in a control room, like a team watching AI usage and spend

Start with the basics Amazon says attackers exploited. Remove default credentials, require login on every admin and settings endpoint, patch known flaws, and rotate any key that has touched a public place. Then monitor spend and usage so a stolen key shows up as an alert, not a surprise invoice.

Work through this checklist in order:

  1. Inventory every gateway, app builder and inference endpoint reachable from the internet, including forgotten test installs.
  2. Change default admin credentials and master keys, and finish any install left half-configured.
  3. Put authentication in front of settings and provider endpoints, and block server-side URL fetches that can reach cloud metadata services.
  4. Search repos, packages, container images and notebooks for provider keys, and rotate any you find.
  5. Replace static CI/CD tokens with short-lived credentials, and restrict tokens by IP address and rate limit.
  6. Set spend caps and usage alerts on each key so odd behavior pages a human.

Rotation has its own cost. A key replaced without updating the services that use it will break those services. Roll one key at a time, test the dependent app, and then revoke the old key. A short outage is cheaper than a leaked credential that stays live.

Amazon's guidance is blunt. Organizations should assume exposed secrets and misconfigurations will be found quickly. They should bring AI applications, model gateways and inference endpoints under the same controls as other production systems. Protocol Wire's editors read that as a staffing question as much as a tooling one. Someone has to own the AI gateway the way someone owns the database.

Teams wiring in new providers should apply the same key hygiene every time. That includes voice agents, like the API covered in our Grok Voice 3.0 explainer, where a new key and a new endpoint arrive together.

Conclusion: Treat AI Infrastructure Like Production

Vendors share the load. Gateway and app-builder projects can ship safer defaults, such as forcing a new admin password at first launch. Until they do, the burden sits with whoever runs the install.

The ARTEX story is a warning about pace, not novelty. Agents scan, test and share findings faster than any human crew, and they punish the oldest mistakes first. Default passwords and forgotten admin pages are now the cheapest entry points on the internet.

Your next step is small. Pick one gateway or app builder you run this week. Check it for default credentials, confirm that its admin pages need a login, and rotate the keys it holds. Protocol Wire will keep tracking how defenders and vendors respond as more of these agent records surface.

What is ARTEX and why are attackers using it?
ARTEX is an open-source AI tool for penetration testing. An operator gives it a target and a goal, a planner agent splits the goal into tasks, and worker agents run security tools. Attackers like it because it automates scanning and testing at a pace no human crew can match.
Which AI apps did the attacker agents target?
Amazon's records name gateways and proxies such as One API, New API, Veloera, Sub2API and LiteLLM. They also name app builders such as Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama. These apps matter because they often hold provider keys for many AI accounts at once.
Has Amazon confirmed that any LLM API keys were stolen?
No. Amazon's team did not observe the activity as it happened and says it cannot verify the outcomes the agents reported. The decoy records show what the attackers were pursuing, not what they achieved. Amazon notified AWS customers who may have been affected, so check your own logs.
How can I tell if someone is using my LLM API keys?
Watch for unexpected spend, usage from unfamiliar IP addresses, and calls to premium models you do not normally use. Set per-key spend caps and alerts with each provider. Amazon specifically advises monitoring for misuse of AI services through unexpected spend or unusual usage patterns.

Written by

Mara Oduya

Senior AI Correspondent

9+ years experience

Before joining Protocol Wire, Mara spent five years building ML infrastructure at an ad-tech company, which is the polite way of saying she has personally paged herself at 3 a.m. over a feature store outage. She writes the AI beat with a builder's skepticism: she wants to see the eval, not the demo. Her reporting has traced how agent frameworks actually get adopted (or quietly ripped out) inside real engineering orgs, and she keeps a running, only-half-joking tally of AI product launches that walk back their own benchmark claims within a quarter.

Credentials

  • B.S. Computer Science, Georgia Institute of Technology
  • Former Machine Learning Infrastructure Engineer, adtech sector
  • 2021 Data & Society journalism fellow