DET-201 · agent · confidence Medium

LLM API Calls From Unsanctioned Sources

Find hosts and users calling model provider APIs outside the approved gateway.

Shadow agents need a model. Egress logs that show connections to model provider APIs from servers, CI runners or user devices that do not go through the company gateway reveal unsanctioned agents and personal API keys.

Look closest at production subnets, CI runners and servers that hold customer data. A model API call from a database host has no good explanation. On user devices, high outbound bytes to model APIs can point to bulk pasting or automated uploads by a shadow agent.

Data sources
Egress proxy logsDNS logsSecure web gateway
Platforms
NetworkAI Platform

Logic

proxy
| where host in ("api.openai.com", "api.anthropic.com", "generativelanguage.googleapis.com", "api.mistral.ai", "api.groq.com", "openrouter.ai")
| where src_ip !in (llm_gateway_ips)
| summarize Requests = count(), Bytes = sum(bytes_out) by src_ip, user, host, bin(timestamp, 1d)

False positives

Approved pilots that have not yet moved to the gateway.

Catches 1 technique