Attackers are hunting the keys to your AI stack
Two stories from the past week show that attackers now target the secrets around your AI stack. These secrets include model-provider API keys, LLM gateway admin pages, CI/CD tokens and the data you share with AI vendors. In the first story, attackers' AI agents scan the internet for these secrets. In the second, a key leaked by an AI vendor led to a backdoored IDE extension.
Attackers' agents scan for exposed LLM gateways
On Nov 13, Amazon Threat Intelligence reported attack campaigns run by AI agents. Its MadPot decoy sensors recorded the agent traffic from Oct 3 to Nov 5, 2026. Amazon assesses with moderate confidence that the attackers used ARTEX. Amazon also assesses with moderate confidence that the operators are separate Chinese-nexus groups. One campaign stole AI model credentials at scale. The agents fed the stolen keys into the framework's own model gateway.
The Hacker News explains how the agents work. ARTEX is an open-source penetration-testing AI tool. An operator gives it a target and a goal. A planner agent splits the goal into tasks. Worker agents run security tools to do the tasks. The stolen keys ran the models that powered the search.
The agents looked for these targets:
- LLM gateways and proxies: One API, New API, Veloera, Sub2API and LiteLLM.
- AI app builders: Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat and Ollama.
- Default admin credentials, including LiteLLM's default master key.
- Unfinished installs that an outsider could take over.
- Known Langflow and RAGFlow flaws.
- Server-side request forgery (SSRF) that reaches cloud metadata services.
- Secrets in client-side JavaScript, source maps, debug routes and env files.
The agents preferred apps that hold keys for many providers. One weak admin page on such an app can expose many accounts.
Cloudflare says its responders worked on several ARTEX-related cases over eight weeks. The common root cause was static CI/CD tokens that never expired. In one case, an attacker stole an account-level token from a CI/CD context, most likely through a third-party cloud provider. The token had no IP restrictions or rate limits. The attacker moved into the customer's Cloudflare account through the customer's cloud environment.
Two limits apply to these findings. Amazon cannot verify the outcomes that the agents reported. The records describe work on systems that its sensors do not watch. Also, ARTEX is not new. The FBI says a range of attackers have used it since at least August. The FBI alert describes no new incident. The developer removed the GitHub repo on Oct 8, but forks and a commercial version keep the tool available. The attack techniques are old. The agents add speed and persistence.
A key you give an AI vendor can be used against you
Cursor has explained the root cause of the malicious Claude Code extension in its marketplace. Cursor had issued an access key to Fireworks, an inference provider. Fireworks exposed the key, and an attacker got it. The attacker used the key to copy data from a read-only bucket that Cursor used to share data with Fireworks.
The bucket held coding-agent traces from sessions not in Privacy Mode, mostly from 2025. Some traces contained unredacted credentials. These exposed the API credentials of less than 0.01% of customers. With credentials from that data, the attacker reached SaaS tools. The exposed data included archived non-production repos, support data and some credentials that users had sent to Cursor support.
On Oct 29, the attacker used a stolen credential to put trojanized Claude Code extension builds in Cursor's marketplace cache. The affected versions were 2.1.312 and 2.1.313. The builds tried to install a persistent SSH backdoor. They were live for about 11 hours. At most 5,000 users may have received them. Cursor says it notified the users who installed those versions during that window.
Cursor reports no evidence of impact on Privacy Mode users. It lists customer code repos, its production environment, the Cursor app and its official updates as unaffected. It has seen no new malicious activity since Nov 1.
The Fireworks breach also affected other companies. Notion confirmed that its data was stolen in the Fireworks hack. Uber reported a breach through a service provider, and TechCrunch identified that provider as Fireworks AI.
A note on timing: the malicious extension shipped on Oct 29. The new information is Cursor's root-cause account, which The Hacker News reported on Nov 15.
What to check now
- Find your self-hosted AI apps. List every LiteLLM, Dify, Open WebUI, Ollama, Langflow or similar instance. Keep admin pages off the public internet. Change default master keys. Finish or delete incomplete installs.
- Patch Langflow. Versions before 1.3.0 have CVE-2025-3248, which is in CISA's Known Exploited Vulnerabilities catalog. Upgrade to 1.3.0 or later.
- Lock down RAGFlow. CVE-2026-28797 lets any logged-in user run OS commands. Self-registration is on by default, and the advisory lists no patched version. Our advice: turn off self-registration.
- Monitor AI spend. Set alerts for unexpected spend or unusual usage. Assume that attackers will find exposed secrets fast. Amazon advises putting AI apps, model gateways and inference endpoints under the same controls as other production systems.
- Restrict Cloudflare tokens. Give each API token an expiry date and IP limits. New user tokens start with
cfut_and new account tokens withcfat_, so secret scanners can detect them. Look for Worker scripts namedartex-*,artex-pgrecon-*,artex-pgw-*orartex-do-*. - Control what your AI vendors hold. Our take from the Cursor case: agent traces can contain live secrets. Remove secrets from data before you share it. Give each vendor its own narrowly scoped key, and rotate it.
- Check your IDE extensions. Find out if anyone installed Claude Code extension 2.1.312 or 2.1.313 from Cursor's marketplace on Oct 29.
Sources
- Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents (AWS Security Blog, Nov 13, 2026)
- Amazon Uncovers AI Agent Campaign Targeting LiteLLM, Dify, and Other Apps for API Keys (The Hacker News, Nov 16, 2026)
- Cursor Says Stolen Fireworks AI Key Led to Trojanized Claude Code Extension Incident (The Hacker News, Nov 15, 2026)
- Adapting to AI penetration testing orchestrators: The Modern Security Model (Cloudflare Blog, Nov 13, 2026)