All Insights

Attackers Are Breaking Into AI Gateways to Steal Your API Access. CISA Confirmed It This Week.

CivSafe Team·November 22, 2026·6 min read

A new threat category has been quietly hitting organizations that self-host AI tools. It doesn't involve ransomware or stolen customer data. It involves attackers compromising your AI gateway, stealing your API keys, and using your paid access to run their own AI workloads. Sometimes they're running up API bills. Sometimes they're distilling your expensive models into cheaper alternatives they can sell. Either way, you're funding someone else's AI operation and you probably don't know it.

This week CISA added CVE-2026-40217, a vulnerability in LiteLLM's guardrail testing feature, to its Known Exploited Vulnerabilities catalog. The addition date was November 18. Federal agencies have until December 2 to patch. For everyone else, that deadline is a signal about urgency, not a legal requirement. But the underlying message is clear: this is being actively exploited, right now.

What LLMjacking is and why attackers care about your AI access

LLMjacking is what happens when an attacker gets hold of your AI provider credentials and uses them to call frontier models without paying for it. The name comes from the same logic as carjacking: they don't want your keys to get into your house, they want them to take the car.

There are a few reasons AI credentials have become genuinely valuable to attackers. Running frontier models at scale costs real money, and stolen access eliminates that cost. Attackers also use it for model distillation, training cheaper local models by pumping questions through a stolen high-quality API and capturing the responses. And some are running inference for hire, reselling AI access under their own branded service while the bills land in your inbox.

IBM's threat intelligence team documented a small startup whose monthly OpenAI bill went from under $200 to $82,000 in two days. The first sign was the invoice. By then the access had been used, the value had been extracted, and rotating the keys was damage control rather than prevention.

What the LiteLLM vulnerability actually does

CVE-2026-40217 sits in LiteLLM's custom-code guardrail feature. The endpoint /guardrails/test_custom_code runs Python code you submit to test whether a guardrail works. The sandbox that was supposed to restrict what that code could do turned out to be escapable, meaning arbitrary code execution was possible from that endpoint.

Combined with two companion privilege escalation bugs (CVE-2026-47101 and CVE-2026-47102), the full chain lets a low-privilege account work its way up to gateway administrator and then run arbitrary code on the host machine. The default Docker deployment runs as root, which makes the blast radius worse.

Google's Threat Intelligence Group attributed incidents to this chain, specifically describing attackers converting ordinary virtual keys into proxy-admin credentials and using that access to run inference at scale. This is the LLMjacking pattern in practice.

Affected versions are LiteLLM proxy 1.81.8 through 1.83.10. The fix is 1.83.14-stable. If you're on anything older than 1.83.14, you're exposed.

Who is actually at risk here

LiteLLM is the most widely deployed open-source AI gateway. It sits in front of your AI providers (OpenAI, Bedrock, Gemini, Cohere, Azure, and about 140 others) and handles routing, rate limiting, cost tracking, and access control. If you're running multiple AI services and you want one internal endpoint to manage them, LiteLLM is the obvious choice.

The orgs most likely to be running it are exactly the ones we work with: small technical teams trying to manage AI costs, NGOs building AI tools in-house, government teams proxying requests through a controlled layer, and professional services firms giving staff structured access to AI without direct provider accounts.

If your LiteLLM proxy admin port (default 4000) is exposed to the internet, or reachable from a broader network than necessary, and you're running a vulnerable version, you're a live target. Attackers aren't manually hunting you. Automated scanners find exposed LiteLLM instances and work through known vulnerability chains.

What to do before the end of the week

First priority: upgrade to LiteLLM v1.83.14-stable. This addresses CVE-2026-40217 and the two companion CVEs. If you're using v1.83.10 or any earlier version in the 1.81-1.83 range, treat this as an urgent patch, not a scheduled one.

If you think you might have been running a vulnerable version with the admin port exposed, rotate your AI provider API keys now. All of them. OpenAI, Anthropic, AWS Bedrock, Cohere, Gemini, whatever you have configured. This is not a maybe-later task.

After rotating, pull up your usage dashboards across your AI providers. Look for requests that happened outside business hours, from IP addresses you don't recognize in the logs, or spikes in token consumption that don't match any work your team was doing. LLMjacking often runs in bursts, and usage anomalies are the most reliable indicator you have.

Going forward: treat your LiteLLM admin port like a database admin interface. It should not be reachable from the open internet. It should sit behind a VPN or at minimum an IP allowlist. If you're running it on Railway (which had its own AI credential breach this fall), or any cloud platform where environment variables could be exposed, verify that your secrets aren't accessible from contexts they shouldn't be in.

The pattern worth watching

This is not a one-off LiteLLM problem. Every AI gateway, every proxy, every tool that stores AI provider credentials is now a target class. The same way attackers spent years hunting database credentials and cloud storage keys, they're now specifically hunting AI API access.

The economic logic makes sense from an attacker's perspective. A stolen OpenAI key can run thousands of dollars of inference before the victim notices. A stolen AWS Bedrock key can be used for model distillation at scale. The barrier to monetizing AI access is low, and the value is high.

Small organizations running their own AI infrastructure have something enterprise teams don't: speed. You can audit your exposure, patch, rotate credentials, and lock down your proxy in a day. Large organizations run change management processes that take weeks.

If you're self-hosting AI tooling and you're not sure whether your deployment is current and properly hardened, that's worth a conversation. This is the kind of setup we audit and lock down in a sprint.

CivSafe — Strategic Innovation. Community Impact.