SANSAR Malware Hides Cryptomining on Linux by Faking NVIDIA GPU Readings
A previously undocumented cryptomining toolkit targeting Linux systems has been caught going to considerable lengths to avoid detection, including tampering with NVIDIA's own monitoring libraries to report fake GPU usage data. Elastic Security Labs has linked the campaign to a financially motivated threat cluster it tracks as REF3364, with activity observed in late October 2026.
The centrepiece of the operation is a Rust-based orchestrator called SANSAR, which communicates with its operators over the TOR network to manage both CPU and GPU mining activity. The toolkit is thorough enough to include a kernel-level rootkit, a backdoored NVIDIA Management Library wrapper, and a separate backdoor called netns that retrieves its command-and-control address from an Ethereum smart contract rather than hardcoding it anywhere obvious.
Initial access came through an exposed Ray job agent, a not-uncommon misconfiguration in machine learning infrastructure. From there, the attacker ran nvidia-smi jobs to inventory the available GPUs and ship that data off to an external server, submitted a Python reverse shell, then added their own SSH key to establish persistence without relying on the initial foothold.
Once root was obtained, the toolkit was staged under /opt/vadi_, and a kernel module named acpi_thermal_mgr was compiled and installed using DKMS, with an initramfs loader added to ensure it survives reboots. That module uses Linux's Function Tracer (ftrace) to intercept directory listings, file access requests, and process signals, quietly dropping any entries related to the mining operation and returning generic errors like "No such file or directory" to anything that goes looking.
The NVML wrapper is the more creative piece of engineering. It hooks into the calls that tools like nvidia-smi use to read GPU telemetry and simply lies. GPU utilisation is reported as 0%. Temperature values are replaced with random figures between 36 and 46 degrees Celsius. Power draw shows somewhere between 100 and 200 watts, which looks plausible but gives nothing away. Standard monitoring setups would see nothing out of the ordinary.
The payload list breaks down as follows: SANSAR handles TOR-based C2, miner management, shell spawning, and NVML hook maintenance. For CPU mining it launches kurt, which is XMRig 6.25.0. GPU mining goes through tilki, running SRBMiner-MULTI 3.6.9. TOR connectivity is handled by lyrebird, a legitimate pluggable transport proxy. The rootkit is acpi_thermal_mgr.ko. And netns rounds things out as the Ethereum-assisted backdoor.
SANSAR itself starts with an anti-debugging check, reading TracerPid from the process status and exiting immediately if any tracer is attached. It then connects to a TOR onion service for instructions, selecting the appropriate miner binary based on whether the C2 response specifies CPU or GPU work.
The netns backdoor registers as a systemd service and queries a hardcoded Ethereum contract address to retrieve its controller's IP, then opens a plain TCP connection on port 8080 for a reverse shell. Using a smart contract for C2 resolution is a tidy trick: there is no suspicious domain to block and the address can be updated by whoever controls the contract.
Elastic found Turkish-language comments in the rootkit source code, though attribution beyond that is unclear.
The practical warning here is straightforward. Anyone running GPU infrastructure for AI or model training workloads should be auditing who can actually submit jobs to their compute clusters, and verifying that NVML and related monitoring libraries have not been quietly replaced. Cryptojacking does not announce itself, and if the telemetry is being spoofed you will not see it in your dashboards until the electricity bill arrives.