The Library

ARTEX AI Agent Attacks: Amazon Says AI Agents Stole LLM API Keys From AI Gateways and App Builders, What Is Confirmed and What to Check This Week

Amazon Threat Intelligence says attackers used AI agents, likely the ARTEX framework, to steal API keys from LLM gateways and AI app builders such as LiteLLM, Dify and Langflow. Here is what is confirmed, what is not, and what to check this week.

Elite Performance Exclusive LLC 7 min read

Where South Korea · Asia, East Asia, Worldwide

ARTEX AI Agent Attacks: Amazon Says AI Agents Stole LLM API Keys From AI Gateways and App Builders, What Is Confirmed and What to Check This Week
On this page 8 sections

Amazon says attackers have been using AI agents to break into the software companies use to run AI, and to steal the API keys that pay for access to AI models. If your business runs an LLM gateway such as LiteLLM or One API, or a self-hosted AI app builder such as Dify, Langflow, RAGFlow, Open WebUI or Ollama, this activity was aimed at exactly that kind of server and the keys stored on it.

The report comes from Amazon Threat Intelligence on the AWS Security Blog. Below is what Amazon and other reporting actually say, what is still unknown, and a short list of checks to run this week.

What happened in the ARTEX AI agent attacks

Amazon's findings draw on MadPot, which it describes as a globally distributed network of decoy threat sensors, over the period Oct. 3 to Nov. 5, 2026. In Amazon's words, threat actors used AI agents to steal API keys and other credentials that grant access to AI models.

Amazon assesses with moderate confidence that the tool behind these campaigns was ARTEX, an open-source agentic AI penetration-testing framework. Penetration-testing tools are meant for authorized security testing. Here, Amazon says, threat actors used one for their own campaigns. Amazon also assesses, again with moderate confidence, that the activity came from disparate Chinese-nexus threat groups, meaning several separate groups rather than one team.

The targets fell into two groups:

  • LLM gateways and proxy platforms: One API, New API, Veloera, Sub2API and LiteLLM.
  • AI application builders: Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama.

Amazon describes a second campaign as well. In it, threat actors used AI agents to defeat the identity verification (KYC) checks at cryptocurrency exchanges, using deepfake video and forged ID documents.

What is confirmed and what is not

Amazon is open about the limits of what it saw. For part of the activity it describes, Amazon says it "did not observe that activity as it happened and cannot verify the outcomes the agents reported". Read the results the agents reported as claims, not confirmed outcomes.

Point Status Source
AI agents were used to steal API keys and other AI credentials Reported by Amazon AWS Security Blog
ARTEX was the framework used Amazon: moderate confidence AWS Security Blog
Disparate Chinese-nexus groups were behind it Amazon: moderate confidence AWS Security Blog
Outcomes the agents reported Not verified by Amazon AWS Security Blog
A range of attackers have used ARTEX since at least August FBI FLASH alert, as reported The Hacker News
How many organizations had keys stolen Not stated None

The sources do not say how many businesses were affected, which ones, what the stolen keys were used for afterward, or which flaw, if any, was used against a specific victim.

Is ARTEX still available after the GitHub takedown?

According to The Hacker News, ARTEX's developer made its GitHub repository unavailable on October 8 after reports of abuse. That did not take the tool out of circulation: the same report says community forks, archived copies and a commercial version called ARTEX PRO keep it available.

The Hacker News also reports that the FBI said in a FLASH alert that a range of attackers have used ARTEX since at least August. It describes two other ARTEX-linked incidents:

  • Cloudflare reported an ARTEX-linked compromise in which the compromised token was an account-level API token.
  • An earlier campaign against South Korean financial institutions stole personal information on about 67,000 people.

These details come from news reporting. We have not seen the FBI alert or Cloudflare's own write-up.

Which Langflow and RAGFlow vulnerabilities are involved?

The Hacker News names two flaws in products on Amazon's target list:

  • Langflow, CVE-2025-3248: missing authentication that lets a remote attacker run code.
  • RAGFlow, CVE-2026-28797: server-side template injection (SSTI) that lets any logged-in user run operating system commands.

Our sources do not give fixed version numbers for either flaw, and they do not say how often each was used in these campaigns. Check the project's own release notes or security advisory to confirm that the version you run includes the fix.

Why stolen LLM API keys matter for a business

An AI API key works like a payment card and a door key at once. Whoever holds it can run AI models on your account, and the bill comes to you. An LLM gateway exists to hold keys for several AI services in one place, so one compromised gateway can expose all of them.

AI app builders carry a different risk. They are often connected to company documents, databases and internal tools so the AI can answer questions about them. A flaw that lets an outsider run code on that server, like the Langflow flaw above, reaches whatever the server can reach.

The Cloudflare case points to a third lesson: an account-level token opens far more than one task needs. If a token like that is stolen, the damage is limited only by what the whole account can do.

Many of these tools get set up quickly by a developer to try an idea, then left running. If nobody owns the update schedule, a test server turns into a real risk.

What to do this week

Step What to do How to check
1. Find your AI tools List every server, container or cloud instance running One API, New API, Veloera, Sub2API, LiteLLM, Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat or Ollama Ask your developers, check container lists and cloud consoles, and include test machines
2. Close public access Put these tools behind a VPN or a login gateway, not on the open internet From outside your network, try to load the tool's address. It should not answer
3. Patch Langflow and RAGFlow Update to a release that fixes CVE-2025-3248 (Langflow) and CVE-2026-28797 (RAGFlow) Confirm in the project's release notes that your version includes the fix
4. Limit RAGFlow logins Remove accounts that do not need access, since the flaw works for any logged-in user Review the user list
5. Rotate AI keys Replace keys stored in any gateway or builder that was reachable from the internet Revoke the old keys at each AI provider once the new ones work
6. Watch usage Look for spending or requests you cannot explain Check each AI provider's usage and billing page
7. Narrow tokens Replace account-wide API tokens with tokens limited to one job Review tokens in your cloud, DNS and AI provider accounts

If you onboard customers with video or ID-document checks, ask your verification provider how it handles deepfake video and forged documents, given the KYC campaign Amazon describes.

If you want these tools hosted on infrastructure you control and can lock down, see our self-hosting and infrastructure work.

ARTEX questions people are asking

What is ARTEX?

ARTEX is an open-source agentic AI penetration-testing framework. Amazon assesses with moderate confidence that it was used in campaigns to steal AI API keys.

Who is behind the ARTEX attacks?

Amazon assesses with moderate confidence that disparate Chinese-nexus threat groups were responsible. The Hacker News reports that, according to the FBI, a range of attackers have used ARTEX since at least August.

Was my LiteLLM or Dify server hacked?

The sources do not name victims. If your server was reachable from the internet, treat its keys as exposed, rotate them and check your usage.

Is ARTEX gone now that it is off GitHub?

No. The developer made the repository unavailable on October 8, but forks, archived copies and ARTEX PRO remain available, according to The Hacker News.

Which CVEs are linked to the ARTEX campaign?

The Hacker News names CVE-2025-3248 in Langflow and CVE-2026-28797 in RAGFlow. It does not say how often each was used.

Should I rotate my AI API keys?

If they are stored in a gateway or AI builder that faced the internet, yes. Rotating keys costs far less than paying for someone else's usage.

The bigger lesson

AI tools are servers. They hold keys, connect to data and need patching, login controls and limits like anything else on your network. This story shows they are now targets in their own right, for the API keys they hold as much as for the data.

Want someone to check the AI tools on your network? See security hardening or request a quote.

Get security alerts like this by email, with the free checklist, at our security alerts page.

Sources: Amazon Threat Intelligence, AWS Security Blog; The Hacker News.

Share X LinkedIn Facebook

Was this article helpful?

We only keep the note with this article. No name, no email.

Protected by reCAPTCHA - Privacy and Terms.

Have a question about this article?

Ask it here and we will answer you directly by email. Questions are private, never posted.

Protected by reCAPTCHA - Privacy and Terms.

Security alerts by email

Hear about the next one first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.

Want a result like this?

Security alerts, breaches and the technology a business runs on: what happened, who it affects and what to do.

Get a Tech Quote

Security alerts by email

The next security hole is already out there. Hear about it from us first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.