SANSAR falsifies GPU utilization to hide cryptomining on Linux
The SANSAR toolkit uses a modified NVML library to report 0% GPU utilization while mining and a kernel rootkit to conceal related processes and files.
Security & privacy Elastic Security Labs 12 Nov 2026 Attack Real-world evidence
Published as “0% GPU utilization: How SANSAR hides Linux cryptomining”
Why it matters
Organizations should verify that GPU monitoring libraries are untampered and restrict unauthenticated job submission interfaces to prevent hidden cryptomining.
Summary
Elastic Security Labs examined a Linux cryptomining campaign that deployed the Rust-based SANSAR orchestrator via an exposed Ray job agent. The toolkit includes a kernel rootkit that hides processes and files and an NVML wrapper that reports GPU utilization as 0% while keeping temperature and power readings realistic. A separate backdoor retrieves its C2 address from an Ethereum smart contract, and the authors provide YARA rules for detection.
What they found 1
- NVML wrapper reports 0% GPU utilization while altering temperature and power values.
“It forwards queries to the genuine NVIDIA library, then alters selected results: GPU utilization is reported as 0%, while temperature and power are replaced with random readings of 36 to 46 degrees Celsius and 100 to 200 watts.”
Caveats 4
- The NVML wrapper leaves the genuine versioned library in place for backend calls and creates a backup file if none exists.
- Module self-hiding is disabled by default and must be enabled via parameters.
- The NVML wrapper keeps the original library for backend calls, only swapping the user-visible library.
- The backdoor command loop has no application authentication or integrity check.
What’s new here 4
- Discovery of an NVML wrapper that falsifies GPU utilization to 0% during mining.
- Analysis of a kernel rootkit using ftrace hooks to hide processes, files, and sockets.
- Identification of a backdoor that resolves its C2 address from an Ethereum smart contract.
- Initial access vector via an unauthenticated Ray job agent exposing GPU hosts.