
SANSAR Linux Cryptomining Malware Uses Modified NVIDIA Library to Hide GPU Activity
Elastic Security Labs says the REF3364 cluster used a Rust-based SANSAR orchestrator, a kernel rootkit, and a modified NVML wrapper to hide Linux GPU cryptomining activity observed in late October 2026.
A financially motivated threat activity cluster tracked as REF3364 has been linked to a Linux-focused cryptocurrency mining operation that tampers with readings used to detect high GPU workloads, according to Elastic Security Labs. The activity was observed in late October 2026 and centers on a Rust-based toolkit called SANSAR that receives commands over the TOR anonymity network to manage CPU and GPU miners. The operation also uses a kernel rootkit and a modified NVIDIA Management Library wrapper to falsify GPU readings.
Initial Access and Persistence
Initial access is said to have been achieved via an exposed Ray job agent, allowing command execution. Jobs ran nvidia-smi to capture and exfiltrate GPU inventory to an external server. The attacker then submitted a Python reverse shell job connected to a remote listener, after which an SSH key was added to that account's authorized_keys file for 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, and added an initramfs loader. 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.
Toolkit and Payloads
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 (96.8 to 114.8 degrees Fahrenheit) and 100 to 200 watts. The toolkit includes sansar for TOR command and control, miner management, interactive shells, an IPv4 TCP SYN traffic task, and NVML-hook maintenance; kurt, an XMRig version 6.25.0 CPU miner; tilki, an SRBMiner-MULTI version 3.6.9 GPU miner; lyrebird, a legitimate pluggable transport proxy for TOR; acpi_thermal_mgr.ko, a rootkit for process, directory, and socket concealment; and netns, an Ethereum-assisted backdoor. SANSAR first performs an anti-debugging check by reading TracerPid and exits if it is non-zero. It then reaches an onion service for command and control via Arti, receiving commands, collecting host and GPU information, and fetching miner status. Its main responsibility is to supervise mining and launch the appropriate miner based on the miner type specified in the command and control response.
Rootkit and Backdoor Behavior
The acpi_thermal_mgr.ko rootkit uses Function Tracer 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 by returning "No such file or directory" or "No such process." The netns backdoor is registered as a systemd service and retrieves a controller IPv4 address by sending requests to an embedded Ethereum contract, then sets up a plain TCP connection to that address on port 8080 to open a reverse-shell connection to the host and port in the command and control response. It is not clear who is behind the operation, but Elastic said it found Turkish language comments in the rootkit's source code. Elastic advised organizations expanding GPU infrastructure for AI and LLM workloads to check who can submit jobs and whether GPU monitoring libraries have been modified, noting cryptojacking can divert compute capacity from legitimate workloads and increase operating costs.
Sources: The Hacker News
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.