REF3364: SANSAR Linux cryptomining malware utilizes rootkit and NVML hooking
The threat actor REF3364 is leveraging exploited Ray job agents to deploy the SANSAR Linux cryptomining toolkit, which utilizes a kernel rootkit and modified NVIDIA libraries to evade detection and maintain persistence.
Triage facts
Revision 1- Applicability
- Linux
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 16, 11:46 UTC
- Detection
- 1 IOC
- Source quality
- B2Very likely
Overview
The threat actor cluster REF3364 is deploying the SANSAR Linux cryptomining toolkit, a Rust-based orchestrator, to perform illicit GPU and CPU mining. The operation, observed in late October 2026, exploits misconfigured Ray job agents for initial access and employs advanced defense evasion techniques, including kernel-level rootkits and library hooking. The toolkit manages CPU miners (XMRig) and GPU miners (SRBMiner-MULTI) while masking system telemetry.
Attack Chain
- Initial access via exploited Ray job agent.
- Exfiltration of GPU inventory using standard nvidia-smi tools.
- Execution of a Python-based reverse shell for C2 connectivity.
- Establishment of persistence via SSH authorized_keys addition.
- Deployment of the acpi_thermal_mgr.ko kernel rootkit via DKMS.
- Installation of a modified NVML wrapper to hook monitoring calls and hide GPU load.
- Activation of the netns backdoor, which retrieves secondary C2 infrastructure from an Ethereum smart contract.
Impact
Cryptojacking diverts compute resources from legitimate workloads, specifically impacting infrastructure used for AI and LLM processing. The presence of a kernel rootkit and persistent backdoors indicates potential for long-term unauthorized access, credential theft, and lateral movement within the environment.
Recommendation
Audit all external-facing Ray job agents to ensure restricted access and monitor for unauthorized job submissions. Examine GPU infrastructure for tampered libraries, specifically verifying the integrity of the NVIDIA Management Library (NVML) files. Monitor for suspicious kernel modules loaded via DKMS and inspect initramfs configurations for unauthorized additions.
Immediate actions
Audit Ray job agents for internet accessibility and restrict access to authorized management networks.
Scan Linux hosts for unusual kernel modules, specifically checking for 'acpi_thermal_mgr.ko'.
Threat Hunt
Hunt for unexpected modifications to the NVIDIA Management Library (NVML) on GPU-enabled servers.
Data: File integrity monitoring logs, Binary hash analysis
Investigate Ethereum-related outbound traffic or systemd services identified as 'netns'.
Data: Network traffic logs, Systemd unit file analysis
Indicators of compromise
1
domain
| Type | Value |
|---|---|
| domain | efxisnqldelyr5ra25oqfrsut54b34g26e7zrsiuupsoekjof2gho2id.onion |