A compromised AI tool could slip an ordinary-looking link into Jan’s chat. One click handed an attacker page the app’s internal powers, and it ran any program on the user’s machine, no password, no second prompt.
Parth Shukla
LiteLLM is an open-source gateway that many organizations use to route their AI traffic. Attackers went after it hard in 2026. A SQL injection flaw that needs no login was exploited within about 36 hours of being disclosed. A command-injection flaw, CVE-2026-42271, was added to CISA’s list of known exploited vulnerabilities. The project was also hit by two supply-chain attacks, in March and October, and the first may have exposed more than 2,500 organizations. A gateway holds the keys to every AI provider behind it, so a stolen gateway key can spend all of that access.
To learn what happens after a key is stolen, we followed keys handed out by exposed LiteLLM gateways:
In traditional credential theft, the initial access broker rarely commits the ultimate fraud; credentials are harvested in bulk and passed to separate actors. We observed the same split around AI gateway API keys: the source that minted a key was usually not the one that used it.

Figure 1: Like identity theft and identity fraud, the source that mints a key is usually not the one that uses it.
Exposed LiteLLM gateways configured with sk-1234, the example master key from LiteLLM’s quickstart docs, issue a unique virtual key to anyone who sends it to /key/generate. Because each key is unique, its later appearances map the lifecycle of a leaked credential across the public internet.
On October 1, a single source on Microsoft Azure queried /key/generate across six gateway hosts within 5.5 minutes, acquired six keys, and immediately disconnected.
Nineteen hours later, the first key reappeared from a consumer ISP in another country. Over the next five days, four more sources presented keys from the same batch. Each key was presented only to the host that had issued it, and one recipient presented five of the keys in the exact order they were minted.
“The source that mints a key is often not the one that uses it.”
Oct 1, 00:24 UTC [Source: Azure cloud, Netherlands] ──► Mints 6 keys via sk-1234
Oct 1, 19:47 UTC [Recipient 1: ISP, Russia] ──► Presents 5 of the 6 keys (GET /v1/models)
Oct 2, 05:38 UTC [Recipient 2: Proxy, Japan] ──► Presents all 6 keys (GET /v1/models + chat)
Oct 2, 08:08 UTC [Recipient 3: Proxy, Slovakia] ──► Presents 4 of the 6 keys (GET /v1/models)
Oct 6, 11:07 UTC [Recipient 4: ISP, Russia] ──► Presents 5 of the 6 keys, in minting order (POST /v1/chat/completions)
Oct 6, 11:48 UTC [Recipient 5: Proxy, Romania] ──► Presents all 6 keys (GET /v1/models + POST /v1/chat/completions)Figure 2: The October KeyRelay lifecycle: one initial source minted six keys; five other source addresses in different countries presented them over a five-day window.
A faster handoff occurred in late August. An initial source on Microsoft Azure minted three keys and executed minimal queries. About 26 minutes after the last key was minted, a second source on Oracle Cloud, which was running distinct client tooling, headers, and HTTP fingerprints, presented all three keys.
This Oracle Cloud hosted infrastructure matched scanning signatures previously identified probing for default sk-1234 keys, a small, concrete thread tying the hunt for exposed gateways to the reuse of what comes out of them.
To compare key-minting against passive credential harvesting, we also followed an OpenAI-format key (sk-proj-…) found in exposed .env files.
Sources that presented a minted key sent 84 chat completion requests in all, including some made with sk-1234. Only 10 were distinct prompts; the other 74 repeated one of them, representing scripted capability validation rather than production workloads.
| Test type | Representative prompt | Count |
|---|---|---|
| Tool calling / agentic capability | Weather in Paris? Use the get_weather tool. | 40 |
| Instruction following and coherence | Explain list vs tuple in 2 sentences. | 18 |
| Basic prompt adherence | Reply with exactly one word: ok | 13 |
| Model reasoning and computation | 17*23=? | 4 |
| Liveness check | hello | 4 |
| Echo test and multilingual instruction following | Запомни кодовое слово… (“Remember the code word, write only it”) | 3 |
| Code generation | Write a Python palindrome function with explanation. | 2 |
Table 1: Distribution of the 84 observed validation prompts across distinct capability checks.
Requests frequently asked for budget models (specifically DeepSeek variants) not advertised by the gateway’s routing table, showing that testing scripts arrived with predetermined target lists. All 84 were functional checks. Sources that minted keys for their own use went further: one tried to extract the model’s system prompt five minutes after minting a key, and another used a key it had minted nine minutes earlier to authenticate a remote-code-execution request through LiteLLM’s MCP connection test, harvesting the gateway’s environment variables and config files.
| Time (UTC) | Source | Endpoint & count | Credential presented | What was tested |
|---|---|---|---|---|
| Oct 1, 00:24 - 00:30 | Minter: Cloud hosting (Microsoft) | POST /key/generate (×6, one per host) | sk-1234 (default admin) | Admin access (GET /key/list, GET /model/info), then key minting |
| Oct 1, 19:47 - 19:54 | Recipient 1: Consumer ISP, Russia | GET /v1/models (×15) | 5 minted keys (×9), sk-1234 (×6) | Key validity (model list) |
| Oct 2, 05:38 - 05:58 | Recipient 2: Hosting / proxy, Japan | GET /v1/models (×6), POST /v1/chat/completions (×7) | All 6 minted keys | Liveness (4), echo / multilingual (3) |
| Oct 2, 08:08 - 08:09 | Recipient 3: Proxy, Slovakia | GET /v1/models (×6) | 4 minted keys (×4), sk-1234 (×2) | Key validity (model list) |
| Oct 6, 11:07 - 11:15 | Recipient 4: Consumer ISP, Russia | POST /v1/chat/completions (×13) | 5 minted keys (×10), sk-1234 (×3) | Basic prompt adherence (13) |
| Oct 6, 11:48 | Recipient 5: Hosting / proxy, Romania | POST /v1/chat/completions (×10) | Minted keys | Tool calling (4), reasoning (4), code generation (2) |
| Oct 6, 12:03 - 12:04 | Recipient 5 | GET /v1/models (×5) | Minted keys | Model catalog enumeration |
| Oct 6, 12:11 - 12:18 | Recipient 5 | POST /v1/chat/completions (×30) | Minted keys | Tool calling (18), instruction following (12) |
| Oct 6, 12:11 - 12:18 | Recipient 5 | POST /v1/chat/completions (×24) | sk-1234 | Tool calling (18), instruction following (6) |
Table 2: One source minted six keys; five other sources presented them over the next five days, most of them also trying sk-1234.
| Time (UTC) | Source category | Endpoint & count | Credential presented |
|---|---|---|---|
| Sep 2, 17:08 | Hosting | GET /.env | None |
| Sep 3, 13:08 | Hosting | GET …/v1/models (×2), POST …/messages (×2), POST …/chat/completions (×2) | sk-proj- key (3 via Authorization, 3 via x-api-key) |
| Sep 4, 05:33 | Hosting | GET /.env | None |
| Sep 4, 07:31 | Hosting | Identical 6-request test sequence | sk-proj- key |
| Sep 9, 22:20 | Commercial ISP / proxy | GET /v1/models, GET /models | sk-proj- key (no prior .env read) |
Table 3: Two sources replayed an OpenAI-format key 20 and 2 hours after reading it from exposed .env files; a third used it without a prior read.
August (direct mint): [Issuance] ──(26 min)──► [Secondary reuse]
.env file harvest: [File read] ──(2h to 20h)──► [Scripted replay]
October (relay mint): [Issuance] ──(19h)──► [First probe] ──► [Active reuse to day 5]Figure 3: Observed timelines across access methods. Minted credentials showed reuse windows between 26 minutes and 19+ hours, while harvested .env secrets showed multi-hour validation latencies.
Static indicators (IP addresses, autonomous system numbers, user-agent headers) rotate across each phase of this lifecycle. Furthermore, unauthorized virtual keys pass normal gateway authentication routines.
Defenders must connect state across events: linking an unexpected key issuance to subsequent model-probing behavior from unfamiliar networks. When credential sharing cycles occur in 26 minutes, security teams cannot rely on post-incident log reviews; detection must occur at runtime as the chain unfolds.

Neelima Rustagi
Co-founder & CEO
Neelima has spent two decades taking security products from zero to one, four times over: GM and VP at ServiceNow, VP at Zscaler and Palo Alto Networks, founding PM at Demisto, with earlier years at Symantec and McAfee. She started Metano because governance tooling showed CISOs their agents without giving them control.

Sonali Tyagi
Staff AI Researcher
Sonali investigates how AI agents can be exploited and how to detect and prevent those attacks. She brings more than seven years of cybersecurity industry experience and a PhD in Computer and Information Technology from Purdue University.
The latest news, technologies, and resources from our team.
A compromised AI tool could slip an ordinary-looking link into Jan’s chat. One click handed an attacker page the app’s internal powers, and it ran any program on the user’s machine, no password, no second prompt.
Parth Shukla
A prompt-injected agent in Amazon’s Kiro Crew could disable its own sandbox by editing a single config file. The file was writable from inside the sandbox, and a feature that skipped the security gate removed the last thing that would have questioned it.
Harsh Akshit
Since 21 October, computers infected with Mini Shai-Hulud have uploaded stolen secrets to 990 public GitHub repositories; the newest was created just 12 minutes before we counted. They upload using a stolen GitHub token that infected computers pass among themselves.
Japneet Singh
Anthropic’s inference hooks let a security server allow or deny every Claude Enterprise prompt and tool call before the model runs. Metano is now that server. It works on any device, with nothing installed.
Metano Product Team
An agent skill runs with everything the agent that loads it can do. New research from Metano MARS Labs, Purdue University and VulNow profiles more than 6,000 skills sourced from a couple of different marketplaces, to measure how much of that authority they put into play.
Japneet Singh
Metano is live on the Okta Integration Network. Tie every AI agent to its Okta identity, see what it does at runtime, and stop the agent and its access in one step.
Metano Product Team
Occasional updates, new content, and insights. No spam; unsubscribe anytime.