A row of black server modules, each marked with a different glowing fingerprint, one breaking apart into pixels.

Rust RAT Built on Public Chinese C2 Kit Hits Linux, Packs Mac Builds

The Chinese red-team kit behind a new Rust-based remote access trojan is public on GitHub, and defenders are scrambling.

A new piece of malware that lets attackers take over Linux machines remotely changes its digital fingerprint with every download, making it harder for security tools to spot, and versions for Macs are ready to go, according to MalwareMustDie.

The white hat research group calls the malware Linux/EasyShell. It’s written in the Rust programming language and serves as the client half of EasyShell, a Chinese red-team command and control (C2) framework, a toolkit built for running simulated attacks. The group found it on a Linux system, delivered by a shell script installer that also carries the Mac versions, built for both Intel and Apple Silicon chips.

The toolkit itself isn’t hard to find. In an update to its write-up, MalwareMustDie says the framework’s C2 server source code, written in Go, has been public on GitHub since June under the account doki-byte. The researchers have mirrored the repository in case it gets deleted or rewritten. The developer’s README lists VShell, Rshell and Cobalt Strike as design references, and the framework is sold through a paid member circle and a trial program.

The white hat research group calls the malware Linux/EasyShell. The malware is written in the Rust programming language and serves as the client half of EasyShell, a Chinese red-team command and control (C2) framework, a toolkit built for running simulated attacks. Researchers found the malware on a Linux system, delivered by a shell script installer that also carries the Mac versions, built for both Intel and Apple Silicon chips.

Hunting EasyShell

  • Look for a process with a kernel-thread-style name that has a real /proc/<pid>/exe behind it.
  • Watch for HTTPS POSTs to /api/v2/sync carrying an X-Client-Id header.
  • Hunt all eight drop names, not just polkitd.
  • On Macs, check for hidden files in ~/Library/Caches.
  • Search proxy and EDR logs back to April 2026.
  • Don’t hunt by hash: every download is unique.

Found it? Don’t delete it yet

  • Mac: Disconnect from the network. Collect the file, its hash and shell history. Then kill the process and remove the file.
  • Linux: Freeze the process, don’t kill it. Killing it loses the live config, session keys and tunnel table.

Source: MalwareMustDie, MMD-073-2026

Detection vendors are moving. Emerging Threats added an “EasyShell Implant CnC Beacon” rule to its open ruleset on Nov. 23, and MalwareBazaar has logged multiple EasyShell Linux samples since Nov. 22. Defenders shouldn’t count on hashes, though. According to MalwareMustDie, the server randomizes every download, so a hash matches only the copy it came from.

“The downloader in a glimpse looked like another threat’s binary (VShell, Kinsing etc), and the payload was none of them,” MalwareMustDie explained in its write-up of the incident.

“The binary answered the question once it was read statically, and the public notes on the EasyShell framework then fitted the strings the binary already showed.”

Once installed, the RAT dials into a command and control server over HTTPS to pull down plugins and await instructions.

The implant gives its operator a remote shell, file upload and download, screenshots, and the ability to list and kill processes. Credential dumping and browser password theft aren’t built in; those come from a separate plugin set. It also carries SOCKS5 and relay tunnels an attacker could use to pivot to other systems on the network, though the researchers report no observed lateral movement.

AI turns up at both ends of the story. According to MalwareMustDie, the EasyShell developer says the code was written with AI help, and the repository contains an AGENTS.md file [optional gloss: the instruction file AI coding agents read].

On a separate compromised host tied to the case, which MalwareMustDie describes as a multi-tenant Chinese mobile malware server, the intruder read Claude Code and Codex CLI prompt histories and session transcripts, then started both tools. The researchers caution that the only link between that intrusion and this EasyShell case is a single line of shell history.

Thus far, the only in-the-wild confirmed attacks have been against Linux systems. Further analysis of the RAT, however, shows builds for macOS on Intel hardware and on Apple Silicon. MalwareMustDie notes that the Mac builds are framework defaults that ship with every EasyShell installer, not a choice by this particular operator. On a Mac, the installer hides the file, clears its quarantine attributes and ad-hoc signs it.

How the installer reaches machines is still unknown. MalwareMustDie lists candidate routes that work on both Linux and macOS, including the LiteLLM 1.107.0 release pushed to PyPI and Docker with stolen maintainer tokens, but says none is linked to this C2. Its advice is to look for the installer on build hosts, CI runners and developer laptops, not just web servers.

The installer also carries a build for LoongArch, the Chinese domestic CPU architecture. MalwareMustDie calls it one of the earliest publicly documented LoongArch64 RAT implementations it could find.

MalwareMustDie’s Mac guidance is aimed at anyone who has run a pasted Terminal command, install one-liner or “fix” script from an untrusted source since June 2026. Anyone who finds the file should not delete it right away. Instead, they should disconnect the Mac from the network, then collect a copy of the file, its hash, the output of the post’s self-check commands and shell history. Only then should the infection be deleted. Linux responders get a similar warning: freeze the process rather than kill it, because killing it loses the live config, session keys and tunnel table.

While the operator has yet to be identified, MalwareMustDie explicitly declines to pin the case on any group. The Chinese-language markers in the binary describe the tool’s build environment, not the attacker. Because EasyShell is sold to paying members and trial users, any customer could be behind it.

The implant carries no miner, no DDoS module, no ransomware and no spreader. The researchers lay out three possible readings: a criminal or espionage operator using a commercial kit, an access broker, or an authorized red-team engagement. None of the three can be ruled out with one C2 server and no confirmed victim.

Total
0
Shares
Previous Article
Roast turkey on a silver platter in a government conference room, with a place card reading "AI" crossed out and a sticky note reading "SI," and the U.S. Capitol visible through the window.

Will Trump's 'Super Intelligence' Survive Its Turkey-Day Deadline?

Related Posts