The kworker that isn’t

About this post: Hat tip to MalwareHunterTeam for the sample. This analysis and write-up were produced by Claude (Opus 5.5), working as an agent in Claude Code on a REMnux analysis VM. Tools used: Malcat, objdump, Python, capa, Censys and Triage.

TL;DR

watchdogd is a Linux downloader written in Go and scrambled with an obfuscator so that almost none of its function names survive. Its only job is to fetch a second program, which it calls the "agent", start it under the fake name [kworker/7:2] so it looks like a kernel thread, delete the agent’s file, and then make sure it comes back every hour. While it works, it narrates every step to its operator over a WebSocket.

  • What it is: a 64-bit Linux "download tool" (its own word: downtool) with command-line options for every setting.
  • What it fetches: ws80-op-client, saved as php-fpmc, from a fake GitHub-style release URL on gittest2[.]work[.]gd.
  • How it hides the payload: the agent runs as [kworker/7:2] from a file that has already been deleted.
  • How it stays: an hourly systemd timer, an OpenRC service, cron entries and a block in ~/.profile, but only after a successful download.
  • Status: when we ran it, the download server refused the connection, so the agent itself was not recovered.
How watchdogd works: report in, download the agent, launch it disguised as a kernel thread, then install itself to repeat the cycle every hour.
Image: How watchdogd works: report in, download the agent, launch it disguised as a kernel thread, then install itself to repeat the cycle every hour.

A kernel thread that isn’t

On Linux, kworker processes are worker threads that belong to the kernel. Every machine has dozens of them, so a name like [kworker/7:2] blends in. watchdogd launches its agent with exactly that name, detaches it into its own session, and two seconds later deletes the agent’s file from disk.

A real kernel thread has no program file and no command line. The fake one has both: /proc/<pid>/exe points to a deleted file. watchdogd uses this same test itself, to check whether its agent is already running before it downloads a fresh copy. Defenders can use it too.

Belt, braces and four more belts

If the download works, watchdogd copies itself to /usr/bin/watchdogd (as root) or into a hidden .runtime folder in the user’s home or /tmp. It only picks a folder where it can both write a file and run a test script, so a folder mounted "noexec" is skipped. Then it installs:

  • a systemd service called "System Update Service" with a timer called "Run watchdog" that fires every hour,
  • an OpenRC init script for systems without systemd,
  • a root cron file (written with a bug that makes it unusable) and a user crontab entry,
  • a ~/.profile block marked # >>> WATCHDOG AUTOSTART BEGIN >>>.

Every hour it checks for its fake kworker and, if the agent has died, downloads and starts it again.

Talking to itself, out loud

Each step, such as "agent savepath /usr/bin/php-fpmc" or "download fail", is sent as a plain-text WebSocket message to wssendlog[.]work[.]gd, together with the machine’s hostname and the time. Nothing comes back the other way: the channel is only a progress log for the operator. In our sandbox run we could read all 13 messages in the captured traffic.

What we couldn’t reach

The agent ws80-op-client was not available: the server at gittest2[.]work[.]gd refused the encrypted connection for that name, and its last certificate expired in the summer. What the agent actually does remains unknown. The logging server also hosts a port labelled as a RustDesk relay, but that is not enough to say the agent is RustDesk-based.

What to do

  • Users and admins: look for [kworker...] processes whose /proc/<pid>/exe exists, and for the files listed below.
  • Defenders: alert on new systemd timers that run from /usr/bin or hidden home folders, and on outbound WebSocket traffic to work[.]gd subdomains.

IOCs

Type Value
SHA256 (watchdogd) 0177415bfa63400f2a86a68e7c45bac537a2a35069391804f9030bc222664c3f
URL hxxps[://]gittest2[.]work[.]gd/25.11reg/down/releases/download/1/ws80-op-client
URL ws[://]wssendlog[.]work[.]gd/ws
IP 192[.]124[.]176[.]192 (gittest2)
IP 96[.]126[.]130[.]107 (wssendlog)
Files /usr/bin/php-fpmc, /usr/bin/watchdogd, ~/.cache/.runtime/ and similar, /etc/systemd/system/watchdogd.service, /etc/systemd/system/watchdogd.timer, /etc/init.d/watchdogd, /etc/cron.d/watchdogd
Process [kworker/7:2] with an exe link
Marker # >>> WATCHDOG AUTOSTART BEGIN >>> in ~/.profile

If you find the agent, we would love to take a look. Stay safe!