
SANSAR Linux Cryptomining Malware Uses Modified NVIDIA Library to Hide GPU Activity - The Hacker News
A Linux-focused cryptocurrency mining operation called SANSAR has been discovered using a modified NVIDIA library to falsify GPU readings and evade detection.
A financially motivated threat activity cluster tracked as REF3364 has been attributed to a Linux-focused cryptocurrency mining operation that tampers with readings used to detect high GPU workloads. The intrusion centers on a toolkit called SANSAR, a Rust-based orchestrator that receives commands over the TOR anonymity network to manage CPU and GPU miners. The activity was observed in late October 2026.
Attack Chain
In the attack chain documented by Elastic, initial access was achieved via an exposed Ray job agent, allowing the threat actor to execute commands. This included jobs running the NVIDIA System Management Interface (nvidia-smi) to capture and exfiltrate GPU inventory to an external server.
Subsequently, the attacker submitted a Python reverse shell job that connected to a remote listener, after which an SSH key was added to that account's authorized_keys file to establish persistent access. After obtaining root, the actor staged the toolkit under /opt/vadi_, built the acpi_thermal_mgr kernel module through Dynamic Kernel Module Support (DKMS) and added an initramfs loader.
An initramfs is a temporary root file system loaded into RAM during early boot, before Linux switches to its normal root filesystem. The module and loader are stored in the boot image on disk, so the rootkit can load again when the host boots with that image.
Evasion Techniques
The installation delivers a modified NVML wrapper that filters process information and changes GPU telemetry to evade detection. The altered wrapper hooks NVML calls used by monitoring tools such as nvidia-smi to report GPU utilization as 0%. Temperature and power readings are substituted with random values between 36 to 46 degrees Celsius and 100 to 200 watts.
The toolkit includes several payloads: sansar for TOR C2 and miner management, kurt (XMRig) for CPU mining, tilki (SRBMiner-MULTI) for GPU mining, lyrebird as a TOR proxy, acpi_thermal_mgr.ko as a rootkit for concealment, and netns as an Ethereum-assisted backdoor.
Operation Details
Once launched, SANSAR performs an anti-debugging check by reading the value of TracerPid and exits if it's non-zero. It then reaches out to an onion service for command-and-control communication via Arti, receiving commands and fetching miner status. The main responsibility of SANSAR is to supervise the mining process and launch the appropriate miner executable based on the miner type specified in the C2 response.
The "acpi_thermal_mgr.ko" kernel rootkit uses Function Tracer (ftrace) to conceal cryptomining activity by hiding processes, files, and socket entries. It intercepts system calls to directory listings, file access, and process termination signals, removing matching records or blocking requests for hidden processes and files.
Organizations expanding GPU infrastructure for AI and LLM workloads should check who can submit jobs and whether GPU monitoring libraries have been modified, as cryptojacking can divert compute capacity from legitimate workloads and increase operating costs.
The netns backdoor, registered as a systemd service, retrieves a controller IPv4 address by sending requests to an embedded Ethereum contract and sets up a plain TCP connection to that address on port 8080 to open a reverse-shell connection. Turkish language comments in the rootkit's source code suggest the operation may originate from Turkey.