When an AI Gateway Turns Into a Miner: The Quiet Theft of Cloud Compute
A compromised AWS-hosted AI gateway tied to Amazon Bedrock shows how generative AI middleware can become valuable enough to hijack for cryptocurrency mining.
An AI gateway is supposed to make model access simpler, safer, and easier to audit. In this case, it became the prize itself. A LiteLLM-Proxy instance running on AWS and connected to Amazon Bedrock was reportedly compromised and used to deploy XMRig, a miner associated with unauthorized cryptomining. The incident is a reminder that the most exposed layer is not always the model - it is often the broker sitting in front of it.
Fast Facts
- An AWS-hosted AI gateway connected to Amazon Bedrock was reportedly compromised.
- A LiteLLM-Proxy EC2 instance was involved in the incident.
- XMRig was deployed on the compromised host.
- The event fits the pattern of cloud resource hijacking for cryptomining.
- The full intrusion path and broader scope were not publicly established in the supplied material.
Why the proxy layer matters
AI gateways such as LiteLLM are built to sit between applications and model providers. They commonly centralize authentication, authorization, routing, logging, rate limiting, and virtual key management. That design is useful, but it also concentrates trust. If the proxy host is compromised, an attacker may gain access to the compute that runs the gateway and, depending on configuration, the credentials or tokens that the gateway uses to talk to downstream services.
That is why this case is more than a simple miner story. XMRig is a known cryptomining tool, and its appearance on cloud infrastructure usually points to resource abuse rather than ordinary business activity. In MITRE ATT&CK terms, the behavior aligns with cloud resource hijacking and cryptocurrency-mining abuse, where the goal is to convert stolen compute into direct financial gain.
What is confirmed, and what is not
The available facts support a narrow but important conclusion: a gateway linked to Bedrock was compromised, a LiteLLM-Proxy EC2 instance was involved, and XMRig was deployed. They do not establish the initial access path, whether a vulnerable dependency or misconfiguration was involved, or whether any data theft, lateral movement, or token abuse occurred. At the time of writing, public information does not fully establish the technical root cause or any impact beyond the named gateway and host.
Defensive lessons for AI operations
From a defensive perspective, AI middleware should be treated as sensitive infrastructure, not as a convenience layer. Bedrock access should be constrained with least-privilege IAM controls and temporary credentials where possible. Gateway hosts should be isolated, monitored for unusual CPU usage, and watched for unauthorized miner processes or suspicious outbound network traffic. If a proxy is suspected of compromise, rotate keys and review the IAM role attached to the underlying host immediately.
The broader lesson is simple: as enterprises adopt more AI plumbing, attackers do not need to break the model to profit from the environment around it. Sometimes, stealing the gateway is enough.
WIKICROOK
- AI gateway: Middleware that brokers access, authentication, and routing between applications and model services.
- Amazon Bedrock: AWS managed service for accessing foundation models with IAM-based controls.
- LiteLLM-Proxy: A proxy layer used to centralize AI model access, logging, and authorization.
- XMRig: Open-source mining software often seen in cryptomining abuse on compromised systems.
- Cloud resource hijacking: Unauthorized use of cloud compute for workloads such as cryptocurrency mining.



