ClipXDaemon Linux Malware Hijacks Cryptocurrency Addresses via X11 Clipboard

· Original article ↗

Summary

Cyble CRIL describes ClipXDaemon, a C2-less Linux malware that monitors X11 clipboards and swaps cryptocurrency addresses. It uses a three-stage loader, persists via ~/.profile, and exits when it detects Wayland.

Key points

  • Cyble’s Research & Intelligence Labs identified ClipXDaemon, which targets Linux systems using X11; it terminates if it detects a Wayland session.
  • The three-stage chain uses a bincrypter-generated encrypted loader, an AES-256-CBC memory-resident dropper, and an on-disk ELF daemon.
  • The malware persists by writing to ~/.local/bin and adding an execution line to ~/.profile, without requiring root privileges.
  • It daemonizes, disguises its process as “kworker/0:2-events,” and polls the X11 clipboard every 200 milliseconds.
  • ChaCha20-encrypted patterns and replacement addresses let it detect and replace cryptocurrency wallet addresses; researchers observed replacement addresses for several currencies, but not TON or Ripple.
  • Researchers found no DNS queries, HTTP requests, socket connections, or other network activity during analysis.
  • The loader resembles samples associated with ShadowHS, but researchers found no evidence that the two threats share operators or authors.

Article Details

Attack Vectors
  • A three-stage chain uses a bincrypter-generated encrypted loader, a memory-resident dropper decrypted with AES-256-CBC, and an on-disk ELF payload.
  • The malware monitors X11 clipboard contents and replaces recognized cryptocurrency wallet addresses with attacker-controlled addresses.
  • The dropper writes the binary under ~/.local/bin and adds an execution line to ~/.profile for persistence across user logins.
  • The malware disguises its process as “kworker/0:2-events” and terminates if it detects a Wayland session.
Defensive Notes
  • The reported clipboard-hijacking behavior requires an X11 session; the malware terminates when it detects Wayland.
  • During analysis, the malware performed no DNS queries, HTTP requests, or socket connections, so the article reports no network indicators for this sample.

MITRE ATT&CK

Malware

Tools

Industries