LLMjacking: Stolen API Keys Fuel $1M+ Daily Cloud AI Fraud
Written by AI from the linked story. Not reviewed by an editor. How this works
Threat actors are exploiting stolen or exposed API keys to hijack enterprise cloud AI infrastructure — a technique dubbed 'LLMjacking' — resulting in victims facing over $1 million in fraudulent daily charges. The root cause is weak access control around cloud API credentials, where keys are left exposed in code repositories, misconfigured environments, or compromised developer machines. Without robust monitoring and alerting on unusual AI usage patterns, these attacks can run undetected for extended periods. This matters because the financial impact is immediate and severe, and compromised AI infrastructure can also be weaponized to generate harmful content or exfiltrate sensitive model interactions.
Tactical Insight
Immediate actions
- Rotate and audit all cloud AI API keys immediately, revoking any that are exposed in source code, CI/CD pipelines, or public repositories.
- Enable cloud provider budget alerts and anomaly detection on AI/LLM usage to trigger notifications when spend or request volume exceeds baseline thresholds.
Long-term improvements
- Enforce the principle of least privilege for all API credentials, scoping keys to only the specific models and actions each service requires.
- Migrate from long-lived static API keys to short-lived, dynamically generated credentials using IAM roles or workload identity federation wherever possible.
- Establish a secrets management solution (e.g., HashiCorp Vault, AWS Secrets Manager) to centralize, audit, and automatically rotate all cloud credentials.
Detection measures
- Implement real-time logging of all LLM API calls, including caller identity, token consumption, and model invoked, and feed this into a SIEM for behavioral baselining.
- Define and enforce API rate limits and spending caps at the cloud account level to automatically throttle or block runaway usage before costs escalate.