{
  "id": "elastic-sansar-ray-gpu-2026-11",
  "name": "Elastic REF3364 SANSAR takes over exposed Ray GPU hosts and hides utilization",
  "date_reported": "2026-11-12",
  "researcher": "Salim Bitam",
  "org": "Elastic Security Labs",
  "sources": [
    {
      "url": "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware",
      "title": "0% GPU utilization: How SANSAR hides Linux cryptomining",
      "publisher": "Elastic Security Labs"
    }
  ],
  "magicsword_coverage": [],
  "borderline": false,
  "borderline_note": null,
  "ai_role": "ai_agent_or_mcp_as_target",
  "ai_role_secondary": null,
  "ai_role_detail": "The target is Ray, a distributed Python framework used for AI training and inference. The attacker is not described as using a model. The NVML wrapper is aimed at the GPU telemetry ML operators watch.",
  "technique_summary": "Elastic Security Labs (Salim Bitam, Nov 12, 2026) tracks REF3364. The Ray dashboard was bound to loopback, but the job agent was reachable from the internet and accepted unauthenticated Jobs API submissions. External probes appeared in the Ray logs on October 22, 2026. On October 24 a submitted job ran nvidia-smi and sent the GPU inventory out. On October 25 a Python reverse-shell job connected to an external listener under the account that owned the Ray session. The actor added an SSH key to that account's authorized_keys, obtained root, and staged SANSAR under /opt/vadi_ on three GPU hosts. SANSAR is a Rust orchestrator (v0.1.3) with Tor/Arti command and control and Lyrebird obfs4/WebTunnel. It supervises XMRig, stored as kurt, and SRBMiner-MULTI, stored as tilki (https://github.com/xmrig/xmrig and https://github.com/doktor83/SRBMiner-Multi). A replaced libnvidia-ml.so.1 wraps the real NVML library and reports GPU use as 0 percent, randomizes temperature between 36 and 46 C and power between 100 and 200 W, and filters process lists, so nvidia-smi and other NVML clients lie. An ftrace rootkit, acpi_thermal_mgr.ko, is built with DKMS, loaded through the initramfs, and hides processes, files, and sockets. A systemd backdoor named netns reads its command-and-control address from an Ethereum smart contract and connects on TCP 8080. Elastic publishes YARA rules for SANSAR and netns. Link shadowray-2-0-hijacks-exposed-ray-2025-11.",
  "initial_access": "Unauthenticated Ray Jobs API on an internet-reachable job agent",
  "ai_tooling_and_models": [
    "Ray (https://github.com/ray-project/ray)"
  ],
  "other_tooling": [
    "SANSAR orchestrator",
    "XMRig, filename kurt (https://github.com/xmrig/xmrig)",
    "SRBMiner-MULTI, filename tilki (https://github.com/doktor83/SRBMiner-Multi)",
    "Lyrebird obfs4/WebTunnel",
    "NVML wrapper libnvidia-ml.so.1"
  ],
  "victims_and_sectors": "Three GPU hosts running Ray. Elastic did not name the organizations.",
  "regions": [
    "unknown"
  ],
  "attribution_or_cluster": "REF3364. Elastic does not attribute the activity to a named group or country.",
  "scale_and_metrics": "Three GPU hosts. Activity from October 22 through October 25, 2026, from probe to persistent access.",
  "prevention_angle": "Do not expose the Ray job agent. Require authentication on the Jobs API. Alert on a Python reverse shell from the Ray account, a new authorized_keys entry, an out-of-tree kernel module, and a miner command line even when the binary is named kurt or tilki. Compare nvidia-smi with a second GPU telemetry source so a wrapped libnvidia-ml.so.1 cannot be the only reading.",
  "related_magicsword_projects": [],
  "source_notes": "Dates, paths, component names, and the seven SHA-256 hashes are from the Elastic Security Labs article. The miners are renamed, so a rule that requires the process name xmrig or srbminer will miss kurt and tilki. The NVML change is a replaced libnvidia-ml.so.1, not an LD_PRELOAD or ld.so.preload edit, so those rules are not cited.",
  "last_reviewed": "2026-11-15",
  "region_notes": "Elastic did not name the countries of the GPU hosts.",
  "iocs": {
    "domains": [],
    "ips": [],
    "hashes": [
      "00c9ac44291f83c72d54302e99d155a3e26d02225a3e516764d5833a99657c9e",
      "96fc528ca5e7d1c2b3add5e31b8797cb126f704976c8fbeaecdbf0aa4309ad46",
      "acc706afc9322a3eae1ef49049749e0a7c9f1a123895ac56dc8a289beb2fb5b7",
      "cc1ad7f14777a098ccc91fd4e8f6143da14418c2b6fdf23b7f8f6b3d1b0b7f1d",
      "675c24728f87f7aa0fa07527027c95c24c246049c65eaef89270ab04ea50a180",
      "6ba1aa275e0e2826e8b48b36473539ca56cbdc41f429e539a45f8532b084d7a4",
      "df8ab6fd699e6ae90e63e9696bae8f01342708bafc2ed88af414337e4f237194"
    ],
    "urls": []
  },
  "atlas_techniques": [
    {
      "id": "AML.T0049",
      "rationale": "The internet-reachable Ray Jobs API accepted unauthenticated job submissions.",
      "source_urls": [
        "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
      ]
    },
    {
      "id": "AML.T0050",
      "rationale": "Submitted jobs ran nvidia-smi and a Python reverse shell.",
      "source_urls": [
        "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
      ]
    },
    {
      "id": "AML.T0072",
      "rationale": "The October 25 job was a Python reverse shell to an external listener.",
      "source_urls": [
        "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
      ]
    },
    {
      "id": "AML.T0034",
      "rationale": "SANSAR mined on the stolen GPU capacity while reporting 0 percent utilization.",
      "source_urls": [
        "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
      ]
    }
  ],
  "attack_flow": {
    "nodes": [
      {
        "id": "probe",
        "title": "Unauthenticated Ray job",
        "description": "October 22 probes, then an October 24 job that runs nvidia-smi and sends the GPU inventory out.",
        "kind": "access",
        "source_urls": [
          "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
        ]
      },
      {
        "id": "shell",
        "title": "Python reverse shell",
        "description": "On October 25 a Python reverse-shell job connects out as the Ray session account.",
        "kind": "execution",
        "source_urls": [
          "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
        ]
      },
      {
        "id": "keys",
        "title": "SSH key and root",
        "description": "An SSH key is added to authorized_keys. The actor then stages SANSAR under /opt/vadi_.",
        "kind": "impact",
        "source_urls": [
          "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
        ]
      },
      {
        "id": "hide",
        "title": "NVML wrapper and DKMS rootkit",
        "description": "libnvidia-ml.so.1 reports 0 percent GPU use. acpi_thermal_mgr.ko is loaded through DKMS and the initramfs.",
        "kind": "execution",
        "source_urls": [
          "https://www.elastic.co/security-labs/threat-command/sansar-linux-cryptomining-malware"
        ]
      }
    ],
    "edges": [
      {
        "source": "probe",
        "target": "shell"
      },
      {
        "source": "shell",
        "target": "keys"
      },
      {
        "source": "keys",
        "target": "hide"
      }
    ]
  },
  "category": "attacks-on-ai",
  "attribution": {
    "actor_name": "REF3364",
    "country": "Unknown",
    "motivation": "financially-motivated",
    "attributed_by": "Elastic Security Labs",
    "confidence": "medium"
  },
  "ai_involvement_confidence": "confirmed",
  "detections": [
    {
      "name": "Python Reverse Shell Execution Via PTY And Socket Modules",
      "format": "sigma",
      "url": "https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_python_reverse_shell.yml",
      "notes": "Linux process creation. python -c with import, pty, socket, spawn, and connect. Matches that common reverse-shell form. A job that is a script file without those strings on one command line will not match."
    },
    {
      "name": "Linux SSH Authorized Keys Modification",
      "format": "splunk",
      "url": "https://github.com/splunk/security_content/blob/develop/detections/endpoint/linux_ssh_authorized_keys_modification.yml",
      "notes": "Linux endpoint. Modification of authorized_keys, which is how the actor kept access after the reverse shell."
    },
    {
      "name": "Linux Install Kernel Module Using Modprobe Utility",
      "format": "splunk",
      "url": "https://github.com/splunk/security_content/blob/develop/detections/endpoint/linux_install_kernel_module_using_modprobe_utility.yml",
      "notes": "Linux endpoint. modprobe loading a kernel module. DKMS loads acpi_thermal_mgr.ko this way."
    },
    {
      "name": "Tainted Out-Of-Tree Kernel Module Load",
      "format": "elastic",
      "url": "https://github.com/elastic/detection-rules/blob/main/rules/linux/persistence_tainted_kernel_module_out_of_tree_load.toml",
      "notes": "Linux endpoint. An out-of-tree module that taints the kernel. Fits the DKMS-built acpi_thermal_mgr.ko rootkit."
    },
    {
      "name": "Linux Crypto Mining Indicators",
      "format": "sigma",
      "url": "https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_crypto_mining.yml",
      "notes": "Linux process creation. Stratum URLs, --donate-level=0, and related miner flags. The binaries are renamed kurt and tilki, so a process-name rule for xmrig does not match. These command-line flags still can."
    },
    {
      "name": "NVML wrapper and netns contract",
      "format": "guidance",
      "notes": "No cited rule looks for a replaced libnvidia-ml.so.1, the path /opt/vadi_, or a systemd unit that reads an Ethereum contract. LD_PRELOAD rules do not match this library replacement."
    }
  ],
  "timeline": {
    "first_seen": "2026-10-22",
    "last_updated": "2026-11-12",
    "updates": [
      {
        "date": "2026-10-22",
        "source": "Elastic Security Labs",
        "summary": "External probes appear in the Ray job logs."
      },
      {
        "date": "2026-10-24",
        "source": "Elastic Security Labs",
        "summary": "A submitted job runs nvidia-smi and sends the GPU inventory to an external server."
      },
      {
        "date": "2026-10-25",
        "source": "Elastic Security Labs",
        "summary": "A Python reverse-shell job connects out. The actor adds an SSH key, gains root, and stages SANSAR under /opt/vadi_."
      },
      {
        "date": "2026-11-12",
        "source": "Elastic Security Labs",
        "summary": "Elastic publishes REF3364, the seven file hashes, the NVML wrapper, and the DKMS rootkit."
      }
    ]
  }
}