SANSAR
- Type
- Cryptominer
- Capabilities
- PersistencePost exploitationDefense evasionReconnaissanceDDOS
- Platforms
- Linux
SANSAR is a Linux cryptomining toolkit centered on a Rust-based orchestrator that remotely manages XMRig CPU miners and SRBMiner-MULTI GPU miners. It is associated with REF3364, an unattributed, financially motivated activity cluster observed compromising Linux GPU infrastructure through internet-exposed Ray job agents that accepted unauthenticated job submissions. The operation affects computing resources used for distributed workloads, including AI training and inference.
The orchestrator communicates with an onion service through Arti, a Rust implementation of Tor, and supports miner configuration, start and stop operations, interactive shells, bridge updates, and TCP SYN flooding. It collects host and GPU inventory, operating statistics, and public IP information. Anti-debugging checks terminate execution when tracing is detected, while interactive shell setup suppresses saved command history.
The toolkit conceals mining through a modified NVIDIA Management Library wrapper that forwards requests to the legitimate library but alters selected results. It reports zero GPU utilization, fabricates temperature and power readings, and filters mining processes from monitoring output. An accompanying ftrace-based kernel rootkit hides processes, files, directories, socket entries, and module information. Kernel persistence uses Dynamic Kernel Module Support and an early-boot loader embedded in the boot image. The intrusion also employed unauthorized SSH keys and a separate systemd-persisted backdoor, netns, which retrieves its controller address from an Ethereum smart contract and provides reverse-shell access. These mechanisms allow cryptocurrency mining and remote control to continue despite apparently idle GPU telemetry.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
deployed the SANSAR cryptomining toolkit, which falsifies GPU telemetry so monitoring tools report zero utilization while the hardware mines at full load
Techniques & procedures
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
Execution T1059 Command and Scripting Interpreter T1059.006 Python T1059.004 Unix Shell
connects to it on port 8080, and on command forks Bash out to any host and port the operator names, with no authentication on that channel.
Stealth
3 techniques
Stealth
then decodes a hidden onion address and connects to it over Tor using Arti.
then decodes a hidden onion address and connects to it over Tor using Arti.
The main component is SANSAR, a Rust program that first checks whether it is being debugged
Defense Impairment
2 techniques
Defense Impairment
Replacement or modification of libnvidia-ml.so.1 with a wrapper that returns 0% utilization, random 36-46 degree temperatures and 100-200 watt power readings
Sixteen message types cover heartbeats, bridge updates, interactive shells with history turned off
Discovery
3 techniques
Discovery
the host’s public IP, which it looks up by trying external IP-discovery services in order until one gives a valid answer.
What SANSAR gathers is aimed at mining, not at user data: GPU names, CPU count, hostname, uptime, a count of active sessions, load averages, and the host’s public IP
The main component is SANSAR, a Rust program that first checks whether it is being debugged
Command and Control
3 techniques
Command and Control
SANSAR, a Rust orchestrator that takes commands over Tor and supervises CPU and GPU miners.
then decodes a hidden onion address and connects to it over Tor using Arti.
The toolkit ended up on three Linux GPU hosts, with the GPU miner arriving later on two of them.
Impact
4 techniques
Impact
SANSAR starts and manages the miners, kurt (XMRig) on the CPU and tilki (SRBMiner-MULTI) on the GPU.
a Rust orchestrator supervising XMRig and SRBMiner-MULTI over Tor.
a task that floods a chosen address with TCP SYN packets.
a task that floods a chosen address with TCP SYN packets.
Observables
13 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.