How attackers get the keys
LLMjacking starts with a credential that can call a model: a provider API key, or a cloud credential with permission to invoke hosted models. Attackers look for them in:
- secrets left in git history (including deleted history), published packages, container images and mobile builds
- configuration files such as .env or cloud credential files left in object storage
- cloud instance metadata, reached through server-side request forgery (SSRF) to read instance-role credentials
- agent kits, plug-ins and tools that hold or inject keys, when an update can change where the key is sent
Once they have a key, attackers use the model themselves or resell access, and the account owner pays.