GPU Cryptojacking and Compute Hijacking in Kubernetes: Why GPU Utilization Looks Normal and No Alert Fires
For executives
GPU capacity is the most expensive compute an organization runs, which makes it worth stealing. An attacker who gets code onto a GPU node, or simply gets permission to schedule pods in a Kubernetes cluster, can mine cryptocurrency or run their own workloads on hardware the organization pays for. The theft goes unnoticed because, to every monitoring tool that works above the CUDA layer, a mining kernel at full utilization looks the same as a training run at full utilization. Kubernetes dashboards report that the GPUs are busy, not what they are running. And on a compromised host, the dashboards can be made to lie: in November 2026, Elastic Security Labs documented miners on GPU hosts hidden behind a replacement NVIDIA monitoring library that reported the GPUs as idle. Telling the two apart takes visibility into what executes on the GPU itself: which CUDA contexts exist, which kernel modules they load, and whether they match the workload the pod claims to be.
Why this is a GPU problem
On a CPU, unauthorized mining shows up as unexplained load against a known baseline. AI training and inference already drive GPUs at or near 100 percent for hours or days, so high utilization is the normal state, not a signal. GPU work also runs below the operating system's view: the CPU sees a launch call, and the computation happens on the device.
The economics
The cost scales with GPU-hours. Hijacking 100 GPUs for a single day takes 2,400 GPU-hours of compute the organization pays for. Published on-demand H100 list prices ranged from about $2 to $12 per GPU-hour in October 2026, from specialist clouds to the eight-GPU instances of the large providers (IntuitionLabs comparison of provider list prices), so that single day costs roughly $4,800 to $29,000. Cryptomining remains a standard payload in cloud intrusions: Google Cloud's H1 2026 Threat Horizons report describes attackers deploying XMRig miners within about 48 hours of a vulnerability's public disclosure (Google Cloud).
How attackers get GPU capacity
- Compromised containers. Any of the container and inference server vulnerabilities in this library gives an attacker code execution on a GPU node.
- Scheduler abuse without a CVE. Permissive RBAC that lets a user create pods in a namespace with no GPU quota lets them request GPUs freely. A cluster-admin service account mounted into a pod lets an attacker change quotas or delete legitimate pods to free capacity.
- Allocation bypasses. By default, the NVIDIA Container Toolkit accepts the NVIDIA_VISIBLE_DEVICES environment variable from unprivileged containers, so a pod that requested no GPUs can reach every GPU on its node by setting NVIDIA_VISIBLE_DEVICES=all. Setting accept-nvidia-visible-devices-envvar-when-unprivileged to false, with the device plugin passing GPUs as volume mounts, closes it. In April 2026, NVIDIA's KAI Scheduler fixed an authorization flaw through cross-namespace pod references (CVE-2026-24176) and unauthenticated API endpoints (CVE-2026-24177).
How the payload hides
The crude version ships a compiled mining binary in the image and runs it alongside the declared workload. A sophisticated attacker does not name it xmrig. They compile the mining algorithm as a CUDA kernel and launch it from inside the legitimate workload's own process. At the process level there is one Python process running the declared job. At the CUDA level, that process launches both training kernels and mining kernels.
In the wild: SANSAR (November 2026)
Elastic Security Labs documented a Linux cryptomining intrusion, tracked as REF3364, that reached three GPU hosts through a Ray cluster (Elastic Security Labs, November 12, 2026). The Ray dashboard listened only on loopback, but the job agent was reachable from the internet and accepted jobs without authentication. The attacker's first job ran nvidia-smi and sent the GPU inventory out; a later job opened a reverse shell. After gaining root, the attacker installed:
- SANSAR, a Rust orchestrator controlled over Tor that checks for GPUs with nvidia-smi and launches renamed public miners: XMRig for CPUs and SRBMiner-MULTI for GPUs.
- A replacement NVML library that reports GPU utilization as 0 percent and returns random temperature (36 to 46 °C) and power (100 to 200 W) readings.
- A kernel rootkit, rebuilt at boot, that hides the miners' processes, files and network sockets.
This is the inverse of the disguise above. Instead of a miner passing as a busy training run, a GPU running flat out passes as idle to nvidia-smi and any other tool that reads through the host's NVML library. Elastic's recommendations are to check who can submit jobs to GPU and AI clusters, and whether GPU monitoring libraries such as NVML have been modified.
Why traditional detection fails
- Utilization: a training run and a miner both sustain near-100 percent GPU utilization. The metric is identical.
- Network: mining pool traffic is encrypted and small, and AI workloads already make outbound connections for model downloads, dataset streaming and telemetry.
- Process names: an embedded kernel runs inside a legitimate framework process, so process allow-lists pass it.
- Kubernetes metrics: they show GPU capacity consumed, not by what code, and they cannot tell whether a pod that requested no GPU is using one.
- The telemetry itself: utilization, temperature and power figures come from a user-space library on the host. An attacker with root can replace it, as SANSAR did, and every reading built on it becomes the attacker's.
What CUDA-level telemetry reveals
Mining and AI work diverge below the CUDA API.
- Kernel patterns: mining algorithms launch the same small kernel in a tight, repetitive loop. Training and inference run a structured sequence of different kernel types.
- CUDA contexts: a single-workload container normally creates one context per GPU. A second context in that container, or one created long after the workload started, means extra code.
- Module hashes: compiled GPU kernel modules have deterministic hashes. A mining kernel's hash is in no legitimate framework's module set, so checking loaded modules against a baseline for the declared workload flags it however the payload is packaged.
- Memory behavior: mining allocates small, fixed buffers with predictable access. Training allocates large, variable parameter and activation tensors. Stealthium's GPUBreach research shows how Unified Virtual Memory event patterns separate real workloads from abnormal ones. (GPUBreach: A Root Shell Through GPU Abuse, and How Stealthium Detects It)
Waste signals
The same telemetry exposes capacity that is lost without an attacker: GPUs held by idle jobs, jobs that never end, and workloads no one approved. Accounting for every workload on every GPU closes both the theft and the waste.
Detection
Kubernetes monitoring sees pod specs, resource requests and API audit logs. It does not see what code runs on a GPU, whether that code matches the pod's declared workload, or whether a pod with no GPU request is using one. Detection needs per-container GPU telemetry: CUDA context creation, kernel module loads and their hashes, and kernel launch patterns, attributed to the pod, namespace and node that produced them. It also needs to be collected below the libraries an attacker can replace, with integrity checks on NVML and the NVIDIA user-space libraries on every GPU node, and alerts on new kernel modules and on jobs that query GPU inventory and send it off the host.
Related articles
- What a CUDA context is, and how module hash verification works
- GPU telemetry explained: nvidia-smi, NVML and DCGM, and why none of it is a security signal
- CVE-2024-0135, CVE-2024-0136 and CVE-2024-0137: the January 2025 Container Toolkit isolation flaws
- How Kubernetes GPU scheduling works
- What Ray is: distributed Python on GPU clusters, ShadowRay and token authentication