AI agent campaign targets LiteLLM and RAGFlow to steal API keys
TL;DR
Attackers are using the ARTEX AI offensive framework to target AI infrastructure, including LLM gateways and app builders. Users of products like LiteLLM and RAGFlow are at risk of credential theft and remote code execution. Rotate all exposed API keys and implement sandboxed template rendering immediately.
What happened
Threat actors are deploying agentic AI tools, specifically the ARTEX framework, to automate the discovery and exploitation of AI-related infrastructure. Amazon's MadPot decoy servers captured agent records detailing the theft of provider keys from internet-exposed AI applications. These agents look for weak points like default administrator credentials, unfinished installations, and known flaws in products such as Langflow and RAGFlow.
In a separate observation, Microsoft reported that ARTEX agents scan public GitHub repositories for secrets. In one instance, the agent moved from scanning GitHub to exfiltrating data from an Azure Key Vault in just five minutes. Cloudflare also reported ARTEX activity involving compromised CI/CD tokens that were used to execute 400 database dump requests in a single hour.
Why it matters
The use of agentic AI changes the threat landscape by increasing the speed and persistence of attacks. Traditional human-led scanning is slow; AI agents can analyze findings and conduct follow-on attacks almost instantly. This creates a high-speed pipeline from discovering a leaked secret to full cloud compromise. A critical Server-Side Template Injection (SSTI) vulnerability in RAGFlow allows any authenticated user to execute arbitrary operating system commands via the "Text Processing" component, leading to full server takeover.
Who is affected
- LLM Gateways/Proxies:
LiteLLM,One API,New API,Veloera,Sub2API - AI App Builders:
Dify,FastGPT,Langflow,RAGFlow,Open WebUI,LobeChat,Ollama - Cloud/Identity Targets:
Microsoft Entra IDtenants,Azure Key Vaults,Azure AI services
What to do now
- For RAGFlow users, replace the unsandboxed
jinja2.Templatewithjinja2.sandbox.SandboxedEnvironmentinagent/component/string_transform.pyandagent/component/message.py. - Rotate all API keys, provider keys, and credentials found in public GitHub repositories or exposed via AI app gateways.
- Audit all internet-exposed AI applications for default administrator credentials or unfinished installations.
- Scan GitHub repositories for exposed secrets and enable GitHub Advanced Security or Push Protection.
- Review CI/CD tokens to ensure they have IP restrictions and rate limiting applied.
What we don't know yet
- The exact root cause of how some CI/CD tokens were first stolen.
- Whether the forged ID documents used in cryptocurrency exchange attacks successfully passed verification.
- The full extent of the outcomes reported by agents in systems not monitored by Amazon's MadPot.
Sources
- thehackernews.comhttps://thehackernews.com/2026/11/amazon-uncovers-ai-agent-campaign.html
- github.comhttps://github.com/infiniflow/ragflow/security/advisories/GHSA-vvwj-fvwh-4whx
- microsoft.comhttps://www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-ai-tooling-to-find-and-abuse-exposed-secrets/
- microsoft.comhttps://www.microsoft.com/en-us/security/blog/2026/08/26/when-ai-infrastructure-becomes-target-securing-gateways-control-points/
