STATUS: ACTIVE
XWorm Full Tech — Pricing Upon Demand
Disambiguation · Name Collision

XWorm (Linux ELF Backdoor) — A Different Malware Family

A distinct Linux ELF backdoor shares the name 'XWorm' with the Windows .NET RAT this site primarily covers. This page disambiguates the two and documents the Linux variant.

AUTHOR: Threat Intelligence Research TeamUPDATED: 2026-10-19VERIFIED: 2026-10-19
Name collision — read this first

This page describes a different malware family than the XWorm Windows .NET RAT documented across this site. They share the name "XWorm" but are otherwise unrelated:

AttributeXWorm (Windows RAT)XWorm (Linux ELF)
PlatformMicrosoft WindowsLinux (x86_64)
Binary format.NET (managed PE)Stripped PIE ELF
Primary targetsEndpoints / usersCloud servers / Kubernetes
DistributionMaaS, phishing, ClickFixSSH / webshell deployment
C2 transportTCP, AES-encryptedHTTPS 443, AES-256-CBC
Developer aliasXCoder / EvilCoderUnconfirmed

For the Windows .NET RAT, see What Is XWorm?. The remainder of this page covers the Linux ELF backdoor only.

CONFIDENCE: medium — reported technical detail; original sourcing not independently verified by this site.

XWorm (Linux ELF) is a sophisticated Linux ELF binary backdoor designed primarily to target cloud servers and Kubernetes clusters. It is notable for its anti-forensics capabilities, advanced persistence mechanisms, and ability to operate stealthily within cloud environments.

1. Core Architecture & Technical Design

Binary Format

Typically distributed as a stripped, position-independent executable (PIE) compiled for x86_64. PIE allows injection into various processes without immediate suspicion based on memory addresses.

Encryption

Uses AES-256-CBC for encrypting communication payloads. The key is derived from the SHA256 hash of the CPU Serial Number (CPUID.1.EAX / CPUID.1.EBX) concatenated with a hardcoded XOR key. This lets the C2 server identify which host is communicating without storing a unique static ID per host in the binary.

Memory Layout

Uses a custom memory allocator and maps configuration structures into mmap'd anonymous regions rather than the standard .bss or .data segments, to avoid detection by standard memory scanners.

2. Execution & Anti-Forensics

Deletion (Deleteme)

Upon successful execution, attempts to delete its own binary from disk using unlink(2) while keeping the file descriptor open. The file becomes invisible in standard directory listings (ls) and prevents casual forensics from grabbing the original file.

Anti-Debugging

Checks for a debugger by inspecting the PTRACE_TRACEME flag in the kernel's process table. Monitors /proc/self/exe to ensure the path matches the expected location; if modified or missing (due to unlink), it may drop into a dormant state.

Process Hiding

Periodically modifies its comm field in /proc/[pid]/comm to masquerade as a standard system process (e.g., kworker/u4:2 or kswapd0).

Log Clearing

After executing a command or establishing a connection, actively clears /var/log/messages, /var/log/syslog, and journalctl entries related to its specific PID to remove traces of its activity.

3. Persistence Mechanisms

  • › Cron Jobs — Creates a root-owned cron entry (/etc/cron.d/xworm) with a wildcard or short interval to re-inject the payload.
  • › Systemd Units — Drops a malicious service file (e.g., /etc/systemd/system/monitor.service) pointing to a hidden directory or a memory-resident script.
  • › Kubernetes CronJobs — Inside a K8s pod, attempts to interact with the local API server (if permissions allow) or mounts to create a CronJob resource that restarts the malicious container.
  • › LD_PRELOAD — In some variants, drops a shared object (.so) and modifies the system-wide LD_PRELOAD environment variable to hijack common library calls, ensuring its code executes even if the main binary is killed.

4. Command and Control (C2) Protocol

Uses standard HTTPS over port 443 to blend in with typical web traffic. The User-Agent string is spoofed to match a legitimate browser (e.g., Mozilla/5.0 (Windows NT 10.0; Win64; x64)).

EXECRun arbitrary shell commands and return stdout/stderr.
READ / WRITEFile transfer operations.
SHELLEstablish a pseudo-terminal (PTY) for interactive access.
DOWNLOADPull additional payloads (like a K8s escape tool) from the C2.
PINGKeep-alive signal that re-synchronizes the AES encryption keys.
Heartbeat & key rotation
Sends a PING every 15 seconds. If the C2 responds with a new key, XWorm rotates its local encryption context to maintain forward secrecy.

5. Offsets & Memory Layout (Technical Forensics)

For reverse engineering, the following offsets in the standard XWorm ELF binary are critical:

Entry Point (0x00401000)main() function initialization.
CPUID Hash Generation (0x004012A0)Calculates the SHA256 of the CPU serial number.
AES Key Derivation (0x004013B4)Concatenates the hash with the XOR seed.
mmap Configuration Loader (0x004015C0)Reads the encrypted config from a file or C2 and decrypts it into memory.
Persistence Routines (0x004018F0)Contains the open(), write(), and unlink() logic for dropping cron/systemd files.

6. Detection Strategies for Blue Teams

  • › Fileless Activity — Monitor for processes running from [deleted] in /proc/[pid]/exe.
  • › CPUID Hashing — Look for excessive use of CPUID instructions in userspace binaries, especially those performing cryptographic operations.
  • › Cron/Systemd Integrity — Regularly audit /etc/cron.d/ and /etc/systemd/system/ for recently created or modified files that point to obscure paths.
  • › Network Signatures — While the traffic is HTTPS, the frequency of the 15-second heartbeat to a single IP can be detected via Zeek/Suricata.
YARA Rule
rule Xworm_Core {
    meta:
        author = "CyberNeurova"
        description = "Detects Xworm ELF binary"
    strings:
        $a = "libcrypto.so.3" ascii
        $b = "/etc/cron.d/" ascii
        $c = "AES-256-CBC" ascii wide
        $d = "kworker/u" ascii
    condition:
        uint32(0) == 0x7f454c46 and all of them
}

7. Operational Playbook for Red Teamers

  • › Initial Access — Deploy XWorm to a compromised host via an SSH session or a webshell.
  • › Environment Check — XWorm checks if it is in a Docker container or bare metal. If in Docker, it may wait for a K8s credential mount before attempting to pivot to the master node.
  • › Credential Harvesting — Scans /root/.kube/config, /var/run/secrets/kubernetes.io/serviceaccount/, and /root/.ssh/id_rsa immediately upon installation.
  • › Lateral Movement — If K8s credentials are found, uses curl (via the EXEC C2 command) to create a new Pod on the kube-system namespace using hostPID: true to escape the container and access the host network.

8. Advanced Evasion Techniques

  • › Time Gaps — Does not execute continuously. Uses a 'sleep-wake' cycle, remaining dormant for 5-10 minutes before executing a batch of commands to reduce the chance of being caught by real-time monitoring.
  • › Environment Spoofing — Can spoof the output of uname -a and cat /etc/os-release if the C2 issues a specific 'camouflage' command, allowing it to masquerade as a different OS version.
  • › Memory Decryption — Keeps the bulk of its logic encrypted in memory and only decrypts the specific function block it needs to execute into a temporary executable memory page, then wipes the plaintext after the jump.
Defender's Matrix

Advanced Linux Threat Telemetry & IOC Reference

A definitive observability guide for Security Engineers. Each profile maps a sophisticated post-exploitation behavior to the telemetry artifacts a Blue Team should capture in their SIEM, EDR, or flow logs. Tone is clinical and detection-focused.

How to use this matrix
For each threat profile, correlate the listed telemetry signals across your Splunk, Sentinel, or Grafana dashboards. The signals are written as field-level predicates — map them to your normalized schema (ECS, ASIM, or OTel). A single signal is a lead; two or more correlated signals from the same profile is a high-fidelity detection.
01

Cloud-Native Credential Artifacts (K8s Context)

MITRE T1552MITRE T1611
Behavioral Profile

Leveraging Kubernetes Service Account tokens to pivot to higher-privilege workloads. A process inside a pod reads the mounted service-account token and uses it against the cluster API to create or modify Pod objects with host-level namespace access.

Defensive Focus
  • ›Monitor for unauthorized reads of /var/run/secrets/kubernetes.io/serviceaccount/token and the ca.crt / namespace files. Any read by a process outside the kubelet, kube-proxy, or a known CNI daemon is a high-severity signal.
  • ›Correlate token reads with subsequent outbound connections to the in-cluster API server (tcp/443 or tcp/6443 to the service IP 10.0.0.1 or KUBERNETES_SERVICE_HOST).
  • ›Watch the HostPID telemetry signal: alert on any Pod create/update where spec.hostPID, spec.hostNetwork, or spec.hostIPC transitions to true, or where nodeSelector targets a control-plane node. This is the moment a pod's namespace is expanded to host level.
  • ›Flag privileged: true and hostPath mounts of / or /var/run/docker.sock as privilege-escalation precursors.
Telemetry Signal — configure in SIEM / EDR / flow logs
  • ▸file.path = /var/run/secrets/kubernetes.io/serviceaccount/*
  • ▸process.name NOT IN (kubelet, kube-proxy, cilium, calico)
  • ▸destination.service.name = kubernetes.default.svc
  • ▸k8s.pod.spec.hostPID = true | hostNetwork = true
  • ▸k8s.audit.verb IN (create, update) AND k8s.audit.resource = pods
02

Dynamic Library Interception Patterns

MITRE T1055MITRE T1574.006
Behavioral Profile

Processes manipulating environment variables to hook standard library calls. A global LD_PRELOAD change forces every subsequently launched binary to load an attacker-controlled shared object, enabling shadow system calls that hide files, processes, or spoof command output.

Defensive Focus
  • ›Treat any write to the global LD_PRELOAD path (/etc/ld.so.preload) as a critical alert — this file affects every dynamic binary on the host.
  • ›Watch for per-process LD_PRELOAD set on long-lived daemons that were not started with it; a sudden environment change on a running process is anomalous.
  • ›Detect libc function hooking by monitoring for dlopen/dlsym resolution of common hijack targets (open, read, readdir, stat, uname, ptrace) from unexpected shared objects.
  • ›Correlate LD_PRELOAD tampering with subsequent spoofed outputs — e.g. a uname syscall returning a value inconsistent with the host's known kernel.
Telemetry Signal — configure in SIEM / EDR / flow logs
  • ▸file.path = /etc/ld.so.preload (write/create)
  • ▸process.env.LD_PRELOAD IS SET on non-launcher processes
  • ▸library.load.name NOT IN (libc.so, libpthread.so) AND target = open|readdir|uname
  • ▸syscall.uname.return_value != host.kernel_version
  • ▸process.executable = [deleted] AND process.env.LD_PRELOAD IS SET
03

In-Memory Code Shadowing

MITRE T1055.012MITRE T1620
Behavioral Profile

Modifying code execution without touching the physical disk file. A secondary memory region is allocated, the target's code is copied and patched there, and execution is redirected to the shadowed copy — leaving the on-disk binary and its primary .text section untouched.

Defensive Focus
  • ›Flag the specific sequence: mmap(PROT_READ|PROT_WRITE|PROT_EXEC) on an anonymous region, immediately followed by a ptrace(PTRACE_POKETEXT) or PTRACE_SETREGS redirect of the target's instruction pointer into that region.
  • ›Contrast with standard file-based injection: a clean process maps its code from a file-backed VMA (device/inode populated). A shadowed process has an anonymous executable VMA with no backing inode — the key discriminator.
  • ›Alert when a process's instruction pointer (RIP) is observed executing inside an anonymous mmap region rather than a file-backed mapping.
  • ›Correlate with the unlink-after-open pattern: the binary's /proc/[pid]/exe shows [deleted] while the process keeps running — the file was removed from disk but the descriptor remains open.
Telemetry Signal — configure in SIEM / EDR / flow logs
  • ▸mmap.prot = RWX AND mmap.flags = MAP_ANONYMOUS|MAP_PRIVATE
  • ▸ptrace.request IN (POKETEXT, SETREGS) AND target.rip IN anonymous_region
  • ▸process.vmarea.flags = executable AND process.vmarea.inode = 0
  • ▸process.exe_path = [deleted] AND process.state = running
  • ▸edir.memory.exec_region = anonymous (no backing file)
04

Steganographic Network Exfiltration

MITRE T1048.003MITRE T1567.002MITRE T1001.002
Behavioral Profile

Data leakage that hides within the padding of standard protocols or benign file formats. Sensitive data is encoded into DNS query subdomains or embedded into the trailing bytes of PNG/JPEG images before egress.

Defensive Focus
  • ›Detect Anomalous DNS Query Entropy: alert on subdomain labels exceeding ~30 characters with high Shannon entropy (>3.5 bits/char), or a single domain with a burst of unique subdomains never seen in baseline resolution.
  • ›Flag the long-subdomain pattern: a TXT or A query whose leftmost label is a long base32/base64-looking string — characteristic of DNS tunneling (iodine, dnscat2, and custom variants).
  • ›Identify stuffed image files: alert when a PNG/JPEG header indicates small dimensions (e.g. 100x100) but the observed flow payload size is disproportionately large (e.g. >500 KB). Compare Content-Length / image dimensions ratio against baseline.
  • ›Correlate sustained high-volume DNS (queries/sec) from a single host with low actual HTTP egress — a host talking mostly DNS is a tunneling candidate.
Telemetry Signal — configure in SIEM / EDR / flow logs
  • ▸dns.query.subdomain.length > 30 AND dns.query.entropy > 3.5
  • ▸dns.query.type IN (TXT, NULL) AND count(unique subdomain) > 50/min
  • ▸http.content_type IN (image/png, image/jpeg) AND content_length > 500000 AND image.dimensions < 200x200
  • ▸flow.bytes_out / flow.dns_queries > baseline.p95
  • ▸dns.response.length > 200 (TXT records carrying data)
05

Binary Polymorphism & 'Salted' Payloads

MITRE T1027.002MITRE T1027.013
Behavioral Profile

Attackers use unique 'salting' so every dropped binary has a different hash — instruction reordering, variable renaming, and key XOR-ing defeat static signature matching.

Defensive Focus
  • ›Recognize Hash Fatigue: a SHA256 denylist generates one new IOC per salted sample, producing unmanageable signature volume with near-zero overlap. Static hash detection alone is insufficient.
  • ›Adopt Behavioral Clustering: group binaries by their API call sequences and instruction-ordering fingerprints rather than their final byte signature. Two salted samples share syscall-graph structure even when their hashes diverge.
  • ›Build a feature vector per binary (imported symbols, syscall sequence, control-flow graph hash, string entropy distribution) and cluster — salted variants land in the same cluster as their parent builder output.
  • ›Alert on the cluster, not the hash: when a new sample clusters with a known-bad family, treat it as malicious regardless of its unique SHA256.
Telemetry Signal — configure in SIEM / EDR / flow logs
  • ▸binary.sha256 = unique (no denylist hit) BUT binary.behavioral_cluster = known-bad
  • ▸binary.import_table.signature matches family template
  • ▸binary.syscall_graph_hash = <known family hash>
  • ▸binary.string_entropy_distribution matches builder fingerprint
  • ▸binary.cfg_hash clustered with prior campaign samples
Correlation guidance

The highest-fidelity detections arise from cross-profile correlation. A service-account token read (Profile 1) followed by an anonymous RWX mmap with a ptrace redirect (Profile 3) and a burst of high-entropy DNS queries (Profile 4) is a near-certain cloud-native compromise. Engineer your detection rules to chain these signals with a short time window rather than evaluating each in isolation.

Editorial note
This Linux ELF backdoor is documented here for disambiguation only. It is not the same malware family as the XWorm Windows .NET RAT. Confidence is labeled medium because the underlying sourcing for these technical details has not been independently verified against Tier 1 vendor research. If you have original research or corrections, contact us via the contact page.
Download: XWorm Malware Intelligence Dossier (PDF)
Full public-source synthesis — lineage, maintainer break, plugin model, delivery, defense. Cut-off 6 Oct 2026.
PDF ↓
XWorm Full Tech Access — Pricing Upon Demand — Access Granted, Network Mapped
Professional Spy Phones ZERO-CLICK Spyware
Contact us on Telegram