Threat reportMalwareTL-2026-7209
SANSAR Linux Cryptomining Toolkit (REF3364) - Kernel Rootkit and NVML Wrapper Hide GPU Mining After Exposed Ray Job Agent Compromise
Elastic Security Labs tracks REF3364, a Linux cryptomining intrusion that combines custom malware with public miners. SANSAR, a Rust miner orchestrator controlled over Tor, supervises XMRig and SRBMiner-MULTI, while a kernel rootkit and a modified NVML library hide processes, files, sockets and GPU load. First disclosed .
Key facts
| Identifiers | TL-2026-7209, CVE-2023-48022 |
|---|---|
| Also known as | REF3364, SANSAR |
| Severity | HIGH |
| First disclosed | |
| EPSS | CVE-2023-48022: 83.9% (99.6th percentile) |
| Affected products | Anyscale Ray (internet-exposed job agent / Jobs API without authentication); NVIDIA NVML (libnvidia-ml.so.1) on Linux GPU hosts, replaced by a malicious wrapper |
| Malware | SANSAR, acpi_thermal_mgr, netns, xmrig |
| Tools | Arti, Lyrebird, SRBMiner-MULTI 3.6.9, Tor - S0183, XMRig 6.25.0 |
| MITRE ATT&CK techniques | T1014 Rootkit, T1021.004 SSH, T1027 Obfuscated Files or Information, T1059.004 Unix Shell, T1059.006 Python, T1078.003 Local Accounts, T1082 System Information Discovery, T1090.003 Multi-hop Proxy, T1095 Non-Application Layer Protocol, T1098.004 SSH Authorized Keys, T1102.001 Dead Drop Resolver, T1136.001 Local Account and 10 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, cloud, infrastructure |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-12-01, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7209 across Splunk SPL, Microsoft KQL and Sigma, covering 29 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: REF3364 SANSAR - Tor/Lyrebird Onion C2, netns Ethereum Dead-Drop Controller and Miner Network Activity
Detects SANSAR and netns command-and-control network behavior on Linux hosts. It covers connections to the .onion C2 on port 9051 (efxisnqldelyr5ra25oqfrsut54b34g26e7zrsiuupsoekjof2gho2id.onion) from /opt/vadi_/ binaries, Lyrebird pluggable-transport egress, public-IP lookups (api.ipify.org, ifconfig.me, icanhazip.com, checkip.amazonaws.com) made by toolkit binaries, the netns backdoor connecting to its Ethereum-derived controller on TCP 8080, and miner binaries (kurt, tilki) making network connections.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1090.003, T1102.001, T1095, T1496.001, T1016
- Data sources: sysmon_for_linux, microsoft_defender_for_endpoint_linux, linux_network_connection
- Severity: high
- Confidence: high
Splunk SPL
index=linux sourcetype="sysmon:linux" EventID=3 Initiated=true
| eval proc=lower(Image), dhost=lower(coalesce(DestinationHostname,""))
| eval c2_signal=case(
match(dhost,"\.onion$") OR (DestinationPort=9051 AND match(proc,"/opt/vadi_/|/sansar")),"sansar_onion_c2",
match(proc,"/lyrebird$"),"lyrebird_pluggable_transport_egress",
match(proc,"/opt/vadi_/|/arti_data/") AND match(dhost,"^(api\.ipify\.org|ifconfig\.me|icanhazip\.com|checkip\.amazonaws\.com)$"),"sansar_public_ip_lookup",
match(proc,"/netns$") AND DestinationPort=8080,"netns_controller_8080",
match(proc,"/netns$") AND DestinationPort=443,"netns_ethereum_rpc_https",
match(proc,"/(tilki|kurt)$"),"miner_process_network",
true(),null())
| where isnotnull(c2_signal)
| stats count min(_time) as first_seen max(_time) as last_seen values(DestinationPort) as dest_ports values(dhost) as dest_hosts values(DestinationIp) as dest_ips by host, Image, c2_signal
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where ActionType in ("ConnectionSuccess", "ConnectionRequest")
| extend Proc = tolower(InitiatingProcessFolderPath)
| extend Signal = case(
RemoteUrl endswith ".onion" or (RemotePort == 9051 and Proc contains "/opt/vadi_/"), "sansar_onion_c2",
Proc endswith "/lyrebird", "lyrebird_pluggable_transport_egress",
(Proc contains "/opt/vadi_/" or Proc contains "arti_data") and RemoteUrl has_any ("api.ipify.org", "ifconfig.me", "icanhazip.com", "checkip.amazonaws.com"), "sansar_public_ip_lookup",
Proc endswith "/netns" and RemotePort == 8080, "netns_controller_8080",
Proc endswith "/netns" and RemotePort == 443, "netns_ethereum_rpc_https",
Proc endswith "/tilki" or Proc endswith "/kurt", "miner_process_network",
"")
| where Signal != ""
| project Timestamp, DeviceName, Signal, RemoteIP, RemotePort, RemoteUrl, InitiatingProcessFolderPath, InitiatingProcessCommandLine, InitiatingProcessAccountNameSigma
title: REF3364 SANSAR - Tor/Lyrebird Onion C2, netns Controller and Miner Network Connections
id: c41e8b03-7f26-4d9a-a5b1-0d3e9f6a7c28
status: experimental
description: Detects SANSAR and netns command-and-control network connections on Linux. These are toolkit binaries under /opt/vadi_/ connecting to Tor port 9051 or to public-IP lookup services, Lyrebird pluggable-transport egress, the netns backdoor connecting to its controller on TCP 8080, and the kurt/tilki miners making network connections.
references:
- https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware
author: Threadlinqs Team
date: 2026-12-01
tags:
- attack.command-and-control
- attack.t1090.003
- attack.t1095
- attack.t1102.001
- attack.impact
- attack.t1496.001
logsource:
category: network_connection
product: linux
detection:
selection_onion_c2:
Initiated: 'true'
Image|contains: '/opt/vadi_/'
DestinationPort: 9051
selection_onion_host:
DestinationHostname|endswith: '.onion'
selection_lyrebird:
Initiated: 'true'
Image|endswith: '/lyrebird'
selection_ip_lookup:
Image|contains: '/opt/vadi_/'
DestinationHostname:
- 'api.ipify.org'
- 'ifconfig.me'
- 'icanhazip.com'
- 'checkip.amazonaws.com'
selection_netns:
Image|endswith: '/netns'
DestinationPort: 8080
selection_miner:
Initiated: 'true'
Image|endswith:
- '/tilki'
- '/kurt'
condition: 1 of selection_*
falsepositives:
- Legitimate Tor or obfs4 bridge clients on hosts where Tor use is approved
- Unrelated binaries named netns, kurt or tilki
level: highKnown false positives:
- Legitimate Tor or obfs4 bridge clients on hosts where Tor use is approved
- Unrelated binaries that happen to be named netns, kurt or tilki
Tuning notes: Rootkit process hiding (kurt, lyrebird) can hide these processes from host tools, so also alert on egress from GPU hosts to Tor and pluggable-transport infrastructure at the network layer. The netns Ethereum eth_call contract 0x43eb291f56688c63c93e8a93c4591fc997cf6349 (selector 0x6ded96e7) is only visible with TLS inspection, so search proxy bodies for it if you have them. Public-IP lookups are legitimate, so keep them tied to toolkit paths. The research disclosed no C2 IPs, pool or wallet addresses, so no IP blocklist is included. TL_OSINT_Scan found no community-corroborated sibling indicators for this threat.
- REF3364 SANSAR - Ray Job Agent Child Process Reverse Shell and History-Suppressed Shell (KQL) · unlock with TL Creds
- REF3364 SANSAR - Kernel Rootkit, NVML Hook, netns Service and SSH Key Persistence (KQL) · unlock with TL Creds
- REF3364 SANSAR - Onion C2, Lyrebird Egress, netns Controller Connection and Miner Traffic (KQL) · unlock with TL Creds
- REF3364 SANSAR - Ray Job Supervisor Spawning nvidia-smi Inventory or Reverse Shell (Sigma) · unlock with TL Creds
- REF3364 SANSAR - Rootkit, NVML Wrapper, netns Service and Toolkit Staging File Artifacts (Sigma) · unlock with TL Creds
- REF3364 SANSAR - Toolkit Tor Port 9051, Lyrebird Egress and Public-IP Lookup Connections (Sigma) · unlock with TL Creds
- REF3364 SANSAR - Ray Job Agent Spawning GPU Inventory or Reverse Shell (Exploitation) · unlock with TL Creds
- REF3364 SANSAR - Rootkit DKMS Module, NVML Backup, netns Service and SSH Key Persistence · unlock with TL Creds
Indicators of compromise
As of 2026-12-01, Threadlinqs Intelligence tracks 29 indicators of compromise for TL-2026-7209.
Sample indicators (3 of 29)
- Domain:
efxisnqldelyr5ra25oqfrsut54b34g26e7zrsiuupsoekjof2gho2id[.]onion - File hash:
00c9ac44291f83c72d54302e99d155a3e26d02225a3e516764d5833a99657c9e - Domain:
api[.]ipify[.]org
Defanged, TLP:CLEAR. Full set of 29 indicators: unlock with TL Creds.
Technical analysis
Initial access was an internet-exposed, unauthenticated Ray job agent, and the actor deployed the toolkit as root across three Linux GPU hosts.
REF3364 is a Linux cryptomining intrusion documented by Elastic Security Labs (Salim Bitam, published 2026-11-12). The actor gained initial access through a Ray job agent that was reachable from the internet and accepted job submissions without authentication. The Ray dashboard was bound only to loopback, but the job agent was not. Ray logs show external probing on 2026-10-22, a submitted job on 2026-10-24 that ran nvidia-smi and sent the GPU inventory to an external server, and a Python reverse-shell job connecting to an external listener on 2026-10-25. Commands first ran as the local account that owned the Ray session; the actor then obtained root, added an SSH key to the session owner's authorized_keys, and deployed the toolkit across three Linux GPU hosts. The source assigns no CVE, no CVSS score and no named threat actor.
The toolkit is staged under /opt/vadi_/. SANSAR (Rust client v0.1.3) is the orchestrator. It checks TracerPid in /proc/self/status and exits if a 1,000-iteration timing loop takes 501 ms or longer. It stores its C2 domain as 62 encoded bytes (each byte rotated right by (i % 7)+1, then XORed with a repeating 32-byte mask), which decode to an onion address on port 9051. It reaches that address through Tor in two modes: direct via Arti (60-second bootstrap deadline) and bridge mode via the Lyrebird pluggable-transport helper (obfs4 and WebTunnel, 900-second deadline). The bridges file holds 7 WebTunnel and 3 obfs4 entries. SANSAR enumerates the host (nvidia-smi GPU names, /etc/hostname, /proc/cpuinfo, /proc/uptime, /proc/loadavg, who) and looks up its public IP via api.ipify.org, ifconfig.me/ip, icanhazip.com and checkip.amazonaws.com. It authenticates with a 40-byte field (8-byte big-endian timestamp plus HMAC-SHA256 over client ID and timestamp) and uses a binary protocol with command IDs 0-15. Those commands cover interactive shells (/bin/bash --norc --noprofile in a PTY with HISTFILE=/dev/null), miner start/stop/config (miner_type 0 = GPU via tilki/SRBMiner-MULTI 3.6.9, 1 = CPU via kurt/XMRig 6.25.0), and StressStart/StressStop raw IPv4 TCP SYN floods. Pool and wallet details come from the C2 with no hardcoded fallback.
Stealth is provided by two components. acpi_thermal_mgr.ko is a Linux ftrace-based kernel rootkit, built from /usr/src/acpi_thermal_mgr-1.0/acpi_thermal_mgr.c (source contains Turkish comments), installed through DKMS with an initramfs loader so it reloads at boot. It hooks getdents/getdents64, open/openat, kill and TCP/UDP socket-listing routines, hides the process names kurt and lyrebird by default, and can optionally hide itself from the module list and sysfs. A modified libnvidia-ml.so.1 (source in /opt/vadi_/nvml-hook/) wraps the genuine NVML library but always reports 0% GPU utilization and randomizes temperature (36-46 C) and power (100-200 W); the original is kept and a backup is created at /usr/lib/.libnvidia-ml.so.1.backup. A separate backdoor, netns, runs as a systemd service. It sends eth_call requests over HTTPS to public Ethereum RPC services against contract 0x43eb291f56688c63c93e8a93c4591fc997cf6349 (selector 0x6ded96e7), decodes an IPv4 address from the result, connects to it over TCP port 8080, and accepts an unauthenticated text command SHELL <host> <port> that forks Bash to a specified listener.
The article does not disclose mining pool or wallet addresses, C2 IPv4 addresses, Ethereum RPC providers, bridge addresses, the HMAC key, the reverse-shell listener or victim host names, so none are included as IOCs. No network IP IOCs exist to correlate against BeaconBeagle. Elastic ships YARA rules Linux_Trojan_Sansar_11eea454 and Linux_Trojan_Netns_c94a4b17. Severity HIGH is an analyst judgment (root compromise, kernel rootkit, GPU compute hijack, falsified telemetry); it is not stated in the source.
MITRE ATT&CK techniques by tactic:
Stealth
T1014 Rootkit; T1027 Obfuscated Files or Information; T1140 Deobfuscate/Decode Files or Information; T1622 Debugger Evasion
Lateral Movement
Execution
T1059.004 Unix Shell; T1059.006 Python
Privilege Escalation
T1078.003 Local Accounts; T1611 Escape to Host
Discovery
T1082 System Information Discovery
Command and Control
T1090.003 Multi-hop Proxy; T1095 Non-Application Layer Protocol; T1102.001 Dead Drop Resolver
Persistence
T1098.004 SSH Authorized Keys; T1136.001 Local Account; T1543.002 Systemd Service; T1547.006 Kernel Modules and Extensions
Initial Access
T1190 Exploit Public-Facing Application
Impact
T1496.001 Compute Hijacking; T1498.001 Direct Network Flood
Defense Impairment
T1685.006 Clear Linux or Mac System Logs; T1690 Prevent Command History Logging
Remediation
Immediate actions
- Remove internet exposure of Ray job agents and dashboards; restrict job submission to trusted networks and identities
- Hunt for the listed SHA-256 hashes, the onion address, the Ethereum contract address and the /opt/vadi_/ staging path on GPU hosts
- Audit authorized_keys for the account that owns the Ray session and for root, and remove unrecognized keys
- Review systemd services for an unauthorized netns unit
- Deploy Elastic YARA rules Linux_Trojan_Sansar_11eea454 and Linux_Trojan_Netns_c94a4b17
Workarounds
- Bind the Ray job agent to loopback or a private interface and place it behind an authenticating proxy or VPN
- Block outbound Tor and pluggable-transport traffic from GPU hosts where not required
Longer-term hardening
- Require authentication and network segmentation for AI/GPU orchestration interfaces such as the Ray Jobs API
- Alert on GPU 0% utilization combined with high power draw or CPU load, and cross-check GPU telemetry against an out-of-band source
- Monitor kernel module loads, DKMS builds and initramfs changes on GPU hosts
- Baseline and integrity-check libnvidia-ml.so.1 and other monitoring libraries
Affected and fixed versions
- Anyscale — Ray (internet-exposed job agent / Jobs API without authentication)
Vulnerable versions: Deployments with an unauthenticated, internet-reachable job agent - NVIDIA — NVML (libnvidia-ml.so.1) on Linux GPU hosts, replaced by a malicious wrapper
Timeline
- CVE-2023-48022 (Ray Jobs API lacks authentication) published in NVD; background for the exposed-job-agent access vector, no CVE is assigned to REF3364 itself
- Oligo Security publishes ShadowRay, documenting in-the-wild exploitation of unauthenticated Ray clusters
- External probes against the exposed Ray job agent appear in Ray logs
- A submitted Ray job runs nvidia-smi and sends the GPU inventory to an external server
- On or after this date (exact day not stated in the source), the actor escalates to root, adds an SSH key to authorized_keys and deploys SANSAR, the rootkit, the NVML wrapper and netns across three Linux GPU hosts
- A Python reverse-shell job connects to an external listener, giving the actor command execution as the Ray session owner
- Elastic Security Labs publishes its REF3364 / SANSAR analysis and YARA rules
Sources cited
- CVE-2023-48022 - Ray Jobs API missing authentication (NVD) NVD (NIST) · Advisory · 2023-11-28
- 0% GPU utilization: How SANSAR hides Linux cryptomining (Elastic Security Labs, Salim Bitam) elastic.co · Research · 2026-11-12
- PHANTOMPULSE: anatomy of a hijackable blockchain-C2 RAT (Elastic Security Labs) elastic.co · Research · 2026-05-01
- ShadowRay: AI workloads actively exploited in the wild (Oligo Security) oligo.security · Research · 2024-03-26
- Ray security documentation (Anyscale) docs.ray.io · Vendor report
- ShadowRay vulnerability on Ray framework exposes thousands of AI workloads (VentureBeat) venturebeat.com · News · 2024-03-27
- Thousands of firms vulnerable to security bug in Ray AI (The Register) The Register · News · 2024-03-27
Other reports on CVE-2023-48022
AI-drafted from 7 cited sources; published ; last updated —.