Skip to content
MMD-073-2026 - Linux/EasyShell, a new Rust RAT implant and beacon aims Linux and MacOS

MMD-073-2026 - Linux/EasyShell, a new Rust RAT implant and beacon aims Linux and MacOS

Malwaremustdie.Blogspot •Unknown ([email protected]) • November 20, 2026

This case started from a shell script spotted in the victim's node, credit to: 0xrb . At first look I read it as one more Chinese miner style uninstaller or downloader, the kind I have seen many times around the VShell, Kinsing and SystemTen campaigns. It is not. The script is a multi platform installer (stager), and the binary it delivers is a Rust beacon implant that I could not find in any public threat report at the time of writing.

I wrote four reverse engineering notes, one forensics analysis note and two OSINT investigation notes during the analysis of this case. In this post I put them side by side, keep only what the sample and the cited sources can prove, and drop the guesses. Every finding carries a confidence label. Predictions are not part of this report. I also keep the forensic evidence analysis (the actor's execution) and the malware analysis (scripts and binaries) in separate sections, so they do not mix, for the purpose of further investigation.

I would like to note that this is one of the earliest publicly documented LoongArch64 RAT implementations, identified within the EasyShell multi-platform Rust implant family.

■ 1.1 Executive summary

■ 1.2 Key points for busy readers

Short version of what each artifact does. Every point links to the chapter with the evidence. The executive summary in 1.1 is the one summary of the report; later chapters link back to it instead of repeating it.

It is an installer , not an uninstaller: Linux and macOS, root or user [ch. 2: Threat information and the stager scheme]

Finds a writable system bin directory with the writeablex probe (public VShell stager template) [ch. 3: Stager template versus public VShell reports]

Picks one of seven payloads by OS and CPU: Linux x86, x86_64, ARM, ARM64, LoongArch; macOS Intel and Apple Silicon [ch. 2: Threat information and the stager scheme]

Downloads from C2 IP 192[.]3.31[.]148:8443 with curl, wget or python, TLS checks off [ch. 12: Infrastructure used by the attacker]

Saves the payload as polkitd (fake system daemon name) [ch. 2: Threat information and the stager scheme]

macOS: hides the file, removes quarantine, ad-hoc signs it (Gatekeeper handling) [ch. 2: Threat information and the stager scheme]

What it is: statically linked Rust implant, built after 2026-04-14, framework name EasyShell in its own build paths [ch. 4: Binary information and major functionality] [ch. 5: Build provenance left in the binary] with the following hashes (below), and for your convenience I will snip analysis code of l32 binary file. $ date Fri Nov 20 22:52:03 JST 2026 $ $ rahash2 -a sha1 * a32: 0x00000000-0x0033252f sha1: 8b3d1d3ee8e3500c7115bba939e047450a0783ac a64: 0x00000000-0x00394c8f sha1: c1e9edbdc877a9365343dc0dfad9d1660073750a darwin_amd64: 0x00000000-0x003e255f sha1: c1762547592e298cabc0e90309180fa79247ebd3 darwin_arm64: 0x00000000-0x0034edbf sha1: 7e827b3a7ba5e5064018244cbf594d47a34aefae l128: 0x00000000-0x0037de1f sha1: 550bec09b879e0c8e07a9d58909e1fb5a4ac0c74 l32: 0x00000000-0x0039841b sha1: 1adfa421724d272d3e1a8f211bf948a55d4ad3fe l64: 0x00000000-0x0046af07 sha1: 547cc85bc060b6ebf220fbb82146476627150856 $

C2: 192[.]3.31[.]148 on tcp/8443, AS36352 ColoCrossing (HostPapa), US [ch. 12: Infrastructure used by the attacker]

Configuration: builder-patched !ES/ slots, C2 URL, keys, User-Agent, sandbox profile [ch. 6: Configuration block and the !ES slots]

Protocol: HTTPS POST /api/v2/sync , X-Client-Id header, Windows Chrome 131 UA, zh-CN Accept-Language [ch. 7: C2, protocol and network indicators]

Encryption and obfuscation: TLS (rustls), XOR 0x5A string pool, hashed relay-hop key label, 32-byte config value [ch. 8: XOR 0x5A string protection] [ch. 13: The 32-character constant]

RAT remote commands: PTY shell, plugin and script execution, file upload/download, folder zip, SOCKS5 and relay tunnels, outbound proxy, screenshot, process list and kill, self delete [ch. 11: Full list of impl-core modules] [ch. 6: Configuration block and the !ES slots]

Plugins: credential dumping, token elevation, browser passwords and file are not built in; they come from the "Extensions" plugin set [ch. 8: XOR 0x5A string protection]

Anti-sandbox: DMI, hypervisor names, mouse activity, CPU, RAM, uptime checks [ch. 9: Process name masquerade and anti-sandbox checks]

Stealth: kernel-thread process name table present ( [kworker/0:0] style, selection logic not traced), no shell history [ch. 9: Process name masquerade and anti-sandbox checks]

Overall implant design (diagram) [ch. 10: Implant overall design]

Framework identification: client of the EasyShell red team C2 framework; operator unknown [ch. 14: EasyShell public footprint versus this build] [ch. 17: Cross review of the analyst notes and final call]

Not VShell, not a miner, no Kinsing or SystemTen code [ch. 17: Cross review of the analyst notes and final call]

Payload set: all seven builds analysed, one shared config stamped into prebuilt templates; the macOS client takes silent screenshots and checks the mouse [ch. 15: Payload set compared: all seven builds]

How a Mac gets infected, step by step [ch. 18: CTI: Threat model]

Aim: hands-on access, credential collection and pivoting; intent and operator unknown [ch. 18: CTI: Threat model]

Why macOS too: generic framework one-liner and/or developer and admin Macs; vectors that reach both Linux and macOS [ch. 18: CTI: Threat model] [ch. 23: CTI: Targeted vulnerabilities and weaknesses]

The compromised host where the stager of this case was re-run (history line 333) was a central multi-tenant C2 server housing six co-located Android and iOS malware frameworks (including Fisher C2 and Caishen iOS C2 V2). [ch. 29: Inside the victim node: hot forensics]

The attacker used forged JWTs and direct SQLite/MySQL queries to enumerate and hijack active Android and iOS victim botnets. [ch. 29: Inside the victim node: hot forensics]

Full source code, APK builders, and iOS exploit chains were archived and exfiltrated before the attacker wiped staging files to free disk space. [ch. 29: Inside the victim node: hot forensics]

The attacker deployed ripgrep to systematically carve cryptocurrency seeds, EVM private keys, GitHub tokens, and SSH credentials from raw database tables and victim backups. [ch. 29: Inside the victim node: hot forensics]

Busy reader: 1.1 and 1.2.

Responder on shift: ch. 28 (quick card), then ch. 25 .

Incident responder and SOC: ch. 24 to ch. 27 , then ch. 29 .

CTI analyst: ch. 18 to ch. 23 ; the October 2026 vulnerability wave hypothesis is tested in 20.1 (not supported so far).

Student and reverser: ch. 4 to ch. 15 , with the text evidence in Appendix A .

Current version v11 (2026-11-21). The full revision history is in Appendix B .

IP addresses and URLs are masked ( w[.]x.y[.]z , hxxps ) and not linkable. The stager and any code that can be abused are shown as images only. Lab hosts, user names and analysis infrastructure are not shown. Credentials, device identifiers and victim addresses found in the chapter 29 evidence are masked.

■ 1.5 How to read this post

All disassembly views are produced from a static listing ( llvm-objdump -d -M intel ) with string references resolved by my own script against the i386 GOT base ( ebx = 0x083dff88 ). They are laid out in radare2 style ( pd , px , iI , iS ) so students can reproduce them with r2 on the same offsets.

A screenshot of a script is evidence of the stager only. The family call must come from the payload, not from the downloader layout.

Write confidence to each finding. It stops a first impression from turning into a conclusion.

《 2. Threat information and the stager scheme 》

Evidence: the original screenshot of the stager as served by the C2. The IP is masked in the image; nothing else is edited. The Chinese are the author originals (translated in the transcription above). The capture ends at the execute-permission line.

■ 2.1 What each block does

So the answer to the first question of this case is simple: it is not a macOS uninstaller. It installs, on both macOS and Linux.

■ 2.2 Chinese terms in the stager (glossary)

The stager are written in Simplified Chinese. The table lists every term used in them with pinyin and the meaning in this context, so readers can recognise the same wording in other samples. Line numbers refer to the stager image above.

Read rm lines in context. Here they only clean the probe files and a payload copy.

Gatekeeper handling in a downloader (hide, strip quarantine, ad-hoc sign) is a strong macOS hunting point by itself.

《 3. Stager template versus public VShell reports 》

The opening block (PATH extension plus the writeablex probe) is described in Trellix research on VShell, and a December 2025 incident write-up shows the same probe lines with l64/l32/a64/a32 variables on port 8443. NVISO documents the same short architecture labels in its VShell detection rules, plus d64 / m64 for Darwin.

Verdict: the stager shares the public VShell stager template High . The /file/ routes, the Darwin names, l128 and the macOS steps are not in the public VShell material I could check Confirmed . The template alone does not name the payload family, and chapter 4 shows the payload is not VShell. Whether this stager is generated by the EasyShell server itself is not proven: the l32 implant speaks of "listener payloads", but the /file/ routes and the stager text are not inside l32 Unverified .

Downloader templates are copied between toolkits. Treat a template match as a link to a layout , not to a malware family.

《 4. Binary information and major functionality 》

The l32 file is the payload of the stager: it is the object served at /file/l32 , it is saved as polkitd , and its embedded C2 is the same host and port Confirmed . It is a statically linked Rust binary (3,769,372 bytes), built after 14 April 2026 Confirmed . VShell clients are Go programs, so this payload is not a VShell client Confirmed . Six more builds from the same server (x86-64, LoongArch, ARM and macOS) are compared in chapter 15.

Major functionality, detailed in chapters 6 to 11: tagged config slots patched by a builder, HTTPS beacon to /api/v2/sync , XOR 0x5A string pool, kernel-thread name masquerade, anti-sandbox checks, PTY shell, plugin execution, chunked file transfer, SOCKS5 and relay tunnels, screenshot helper and self delete.

The . section survives stripping. Compiler and Rust versions there give you a lower bound for the build date.

《 5. Build provenance left in the binary 》

These are environment markers of the developer. They show a Chinese language build environment High . They do not identify a person or a named threat group, and I do not attribute this case to any group.

Cargo writes the registry path into panic metadata. A mirror name in that path tells you how the build host was configured.

《 6. Configuration block and the !ES slots 》

The builder patches fixed slots tagged !ES/ / / . Tags present in l32: PASS, PROXY, SBOX, BURI, UAGT, WAIT, JITR, CTYP, HDRS Confirmed . A slot that still shows its tag followed by underscores is unpatched. to them, a space padded block holds the live values.

When a config uses tagged placeholder slots, compare a patched and an unpatched slot. The padding style tells you which values the operator really set.

Do not name a value by its neighbour. Here the C2 URL is loaded by code, not by a tag, so the tag meaning stays unverified.

《 7. C2, protocol and network indicators 》

A Windows browser User-Agent sent by a Linux process is a mismatch you can hunt on any proxy log.

《 8. XOR 0x5A string protection 》

Part of the string pool is stored XOR encoded with one byte, 0x5A . Spaces become z (0x20 ^ 0x5A = 0x7A), which is why the encoded pool looks like ?(z 3*z noise Confirmed .

Operator messages (Simplified Chinese, translated) say that token elevation, credential dumping (via Mimikatz), browser password theft and sensitive file are not built into this implant and are offered through an "Extensions" plugin set Confirmed . ConPTY strings for Windows 10 1809 / Server 2019 sit in the same pool, so the framework has a Windows side Confirmed . The Windows implant itself is not in hand.

The same caller copies 32 raw bytes from 0x082afdc0 together with the decoded label es-hop-wire-v1 into a routine with 0x80 padding and a 64-byte block length, the shape of SHA-256 finalisation. This is consistent with a key derivation for the relay hop protocol Medium .

Single-byte XOR leaves the text length unchanged and turns spaces into one repeated byte. Count the most frequent byte in a "random" string pool before you reach for a debugger.

《 9. Process name masquerade and anti-sandbox checks 》

The names belong to procname.rs . Real kernel threads have no user space executable, so any of these names with a valid /proc/ /exe link is a strong host indicator Confirmed . The selection logic was not traced in this static pass Unverified .

The interactive shell prepares its environment with HISTFILE=/dev/null , HISTFILESIZE=0 and set +H so shell history is not kept Confirmed .

A sandbox that has no mouse and a small /tmp is easy to detect. Give your dynamic lab realistic resources if you want to see the beacon run.

《 10. Implant overall design 》

The diagram below is drawn only from what the stager text and the l32 binary show. Each box is a module or a string set confirmed in chapters 2 to 9; flows marked between the implant and the C2 come from the config builder and the beacon references.

Draw the design from confirmed parts only. A box you cannot point to in the binary does not belong in the diagram.

《 11. Full list of impl-core modules 》

No mining code, no wallet, no stratum strings, no competitor killer, no spreader and no persistence routine were found in l32 Confirmed . This is a remote access implant, not a miner.

Rust panic metadata keeps module file paths even in stripped builds. Use them as a free table of contents for the binary.

《 12. Infrastructure used by the attacker 》

One IP is used by the attacker in this case: it serves the stager, the seven payloads and the beacon. The other rows are context from the public record, with reverse DNS, ASN, prefix, AS name and country in the same line format.

A shared ASN or a shared /22 is hosting context, not attribution. A shared TLS certificate, a shared URL route or a shared payload hash is a real link.

Write the prefix to the IP. Abuse reports and blocklists work on prefixes, and the prefix tells you whom to .

《 13. The 32-character constant 》

The string 8M5c7faXc4Q8NdXgpCRiIdhhCTyAujKw is a hard-coded constant used by one lazy initialiser Confirmed . It is not stored in the !ES/1/PASS/ slot; that slot holds no value in this build Confirmed . Its role (password, pre-shared key or other) is Unverified . Treat it as a sample-specific string for retro-hunting, not as a credential.

Check where a value lives before you name it. A string near a slot tag is not automatically that slot value.

《 14. EasyShell public footprint versus this build 》

The OSINT notes pointed to a Chinese red team C2 framework called EasyShell. I read what was reachable and compared it with the l32 strings. Only what both sides show is used below.

■ 14.1 What the public pages show

■ 14.2 Match against l32

Result: l32 is a client of the EasyShell red team framework sold and trialled through these channels High . The framework developer is a tool author. Who operates 192[.]3.31[.]148 is not known, and the trial and member distribution means it can be any user of the tool Confirmed .

A commercial or trial red team kit found in the wild is a dual-use case. Separate three roles in your report: the tool author, the tool user (operator), and the victim.

Match features both ways. A public feature you cannot see in the binary is a gap, not a contradiction, and a binary feature missing from the public notes is new information.

《 15. Payload set compared: all seven builds 》

After the first draft, the six other payloads served by the same C2 were collected and analysed statically: /file/l64 , /file/l128 , /file/a32 , /file/a64 , /file/darwin_amd64 and /file/darwin_arm64 . All seven routes of the stager are now covered.

■ 15.1 One configuration in every build

All seven builds carry the same C2 (hxxps://192[.]3.31[.]148:8443), the same 32-byte base64 value, the same 32-character constant, the same /api/v2/sync path and the same !ES/ slot layout with UAGT and SBOX left unpatched Confirmed . The configuration was set once for this server Confirmed .

The builds were not compiled in one run: l128 was compiled with rustc 1.96.0 (released 2026-05-25), the other six with rustc 1.95.0 (2026-04-14), and four different C toolchains appear across the set Confirmed . With the tagged, padded !ES/ slots (chapter 6), this fits a builder that stamps the operator configuration into prebuilt client templates High . The compiler fingerprints then describe how the EasyShell developer builds the templates, not the machine of the operator Medium . Earlier drafts of this chapter said the set was built together; that is corrected here.

■ 15.2 Linux builds: x86-64, ARM and LoongArch

l64, l128, a32 and a64 have the same 27 impl-core module paths as l32, the same kworker name table, sandbox checks, XOR 0x5A pool and operator strings Confirmed . They are the same implant for other CPUs. The differences are in the toolchain: l64 is a static-pie build; a64 was linked with GCC 9.4.0 instead of the Ubuntu 22.04 GCC 11.4.0 of l32 and a32; l128 is the only dynamically linked build (glibc-style names, /lib/ld.so.1 , GCC 13.2.0) and the only one compiled with rustc 1.96.0 Confirmed .

The l128 loader path /lib/ld.so.1 , its libc.so NEEDED entry and its single GLIBC_2.0 version need do not match a real LoongArch glibc, which uses /lib64/ld-linux-loongarch-lp64d.so.1 , libc.so.6 and GLIBC_2.36 or later Confirmed . This points to linking against generic stub libraries instead of a LoongArch sysroot, and on a stock Debian loong64 or Kylin host the file would likely fail to load unless matching links or a compatible loader exist Medium . The build may never have been tested on real hardware Unverified .

LoongArch ( l128 ) is the CPU family of Loongson processors, used mainly in Chinese domestic computing platforms. Shipping a LoongArch client fits a Chinese red team product whose customers must cover those platforms Medium . It does not prove that this operator targets hosts in China Unverified .

The signature identifier shows the binary was linked under the name http-beacon-implant and signed without any developer identity Confirmed . The stager re-signs the file on the host ( codesign --force --sign - ), so the identifier on a victim may differ from the one served Unverified .

On current macOS, a screen capture and an AppleScript call to System Events by an unknown binary are subject to TCC privacy permissions (Screen Recording, Automation). The developer message TCC shows the author expects that friction Confirmed . For defenders this is useful: TCC prompts or denials for a binary named polkitd in a user cache folder are a detection point Medium .

■ 15.4 What the payload set changes in this report

The C2, key and constant are confirmed for all seven builds; the IOC and YARA content covers all seven.

The macOS client is built for a Mac with a logged-in user: silent screenshots and a mouse-based presence check. Together with both darwin builds being live on the C2, Macs are in scope of this campaign (18.2, 18.3).

Template builds come from several toolchains (Ubuntu 22.04 GCC, separate ARM64 and LoongArch toolchains, Apple linker with SDK 15.2), all with the USTC cargo mirror; l128 was rebuilt with a newer rustc after 2026-05-25 Confirmed .

When a stager serves several builds, collect them all. Shared config values prove one operator setup; platform-specific modules show what the operator wants on each platform.

On macOS, read the load commands and the code signature before the code. Minimum OS, SDK, linked frameworks and the signature identifier tell you how and where the binary was built.

《 16. What static analysis alone cannot dissect 》

All seven payloads were analysed statically; none was executed, so runtime behaviour (for example the AppleScript and TCC paths on macOS) is described from strings and code references only.

The stager execution tail (after the execute-permission line) is not in the screenshot.

The TLS certificate on port 8443 was not collected.

No Windows EasyShell implant, no Extensions plugin and no Go server or client component are in hand.

The crypto scheme behind the 32-byte value and the !inj: command path were not traced.

The EasyShell server side (admin console, listeners, notification features) is described only by OSINT notes and cannot be checked from l32.

No sample was executed or emulated: this report is static by policy. The questions below need a dynamic lab (fake network, QEMU user mode or a VM) or deeper control-flow tracing, and stay open until then:

How procname.rs picks one of the eleven kernel-thread names, and whether it renames through prctl(PR_SET_NAME) , argv[0] or both.

The key derivation and framing behind the 32-byte base64 value, crypto.rs and the es-hop-wire-v1 relay handshake.

What sandbox_guard.rs does when a DMI, hypervisor or /dev/input/mice check fails: silent exit, sleep or decoy behaviour.

Whether the rustls NoVerifier name is wired into a client configuration that skips certificate checks, or is only a library enum name.

What the !inj: command does on Linux.

These are listed as gaps, not as expectations. Any update will be added as an addendum.

《 17. Cross review of the reverse engineering notes and final call 》

I wrote four static analysis notes on the samples (#1 to #4), each from a different angle and with different tools, and two OSINT notes (A and B, written at different times). To stay self-critical I used my analysis claim-check playbook: every claim that changes the conclusion is checked below against the sample and the sources I could read. The objective is a verdict as objective as possible, with clear reasoning.

The confirmed and high-confidence results of this review are the ones listed in 1.1 .

■ 17.2 Not established

Who operates the C2. The tool author is not assumed to be the operator. The intruder of the chapter 29 host ran the stager from this C2, which does not name the operator either.

Initial access vector. The threat is new and its traffic is limited; the way it is distributed may still leave traces that lead analysts to similar threats.

Role of the 32-byte base64 value and of the 32-character constant.

Any second C2 node, leaked source code or paste for this implant: none found on 2026-11-20.

■ 17.3 Naming: Linux/EasyShell

The family is named after the strings the author left in the build: easyshell-http-beacon-implant , the !ES/ slot tags and ES_SHELL_BATCH_MS . "ESCH" is kept as an alias because it appears in the operator messages ( ESCH chunk: ); its expansion is not known Unverified . "VShell" is used only for the stager template, and "strain" is not used because no parent family is proven.

The name EasyShell is also used by unrelated, legitimate software. None of them is a Rust beacon and none shares the implant crate names Confirmed :

A cross review is not a vote. One note with evidence beats three notes repeating the same first impression.

Reject inference written as fact, even when it sounds plausible. "Scanners did not see it, so the port closed after 15 minutes" is a story, not evidence.

《 18. CTI: Threat model 》

■ 18.1 What the campaign aims at

Only the capabilities are proven; the intent behind this C2 is not. The l32 command set is built for a person at the keyboard: PTY shell, file upload and download, folder archiving, SOCKS5 and relay tunnels, outbound proxy, screenshot, process control, and plugins for credential dumping and browser passwords. There is no miner, no DDoS module, no ransomware and no spreader Confirmed . The aim class is therefore hands-on access : collect data and credentials and pivot into internal networks from a foothold High .

■ 18.2 Why macOS is in scope

The stager handles macOS with care, and its own (translated) explain why: it uses the user-level ~/Library/Caches folder because no root is needed and Finder hides it; it clears extended attributes so the file still runs "even if it was delivered by a browser or AirDrop"; and it ad-hoc signs the file because "Apple Silicon requires executables to carry a valid signature", skipping the step when Xcode Command Line Tools are missing "so no install prompt pops up" Confirmed .

Both readings are true at the same time: the framework makes a macOS client available (R1), and this operator chose to keep it live on the server (R2). Hosting a payload is an operator decision even when a builder generates it. What one server cannot show is whether Macs are the main target or one platform among all of them; macOS EDR telemetry for ~/Library/Caches/polkitd and TCC prompts naming it would answer that. Chapter 23.8 lists the October and November 2026 vectors that can reach Linux and macOS together.

■ 18.3 Practical macOS infection chain

Nothing in the stager or the clients exploits macOS. The Mac is infected when one shell command runs as the user; from there each step below is in the stager text or the darwin binaries.

What the TCC hint tells us the launch. On macOS, a program started from a Terminal session is normally checked against the privacy permissions of that terminal app. A developer who writes "run from Terminal once" expects the client to be started from an interactive Terminal or SSH session Medium . That fits the Terminal paste lure and the operator over SSH better than a silent drive-by. It also means the first AppleScript or screen capture can raise a visible prompt such as "Terminal wants to control System Events", which a careful user or an MDM log can catch Medium .

What they gain on a Mac. Developer and admin Macs hold source code, SSH keys, cloud tokens and VPN access. With no persistence in the client, the pattern that fits is a short hands-on session: take keys and tokens, look at the screen, then move to servers through the tunnels Medium .

On macOS, ask first how the first command ran. A kit without an exploit still works on a Mac if a user or an SSH session runs one line.

Quarantine, signature and TCC are separate controls. Check each one in your logs: missing quarantine, ad-hoc signature without Team ID, and TCC prompts naming an unknown binary.

Capabilities tell you what an implant can do, not what its operator wants. Write the aim as a capability class and keep intent as a separate, rated reading.

left in a stager often explain design choices. Read them as the developer voice, not as campaign intelligence.

《 19. CTI: Actors and attribution 》

■ 19.1 Analyst note on the "doki-byte" link

■ 19.3 Source reliability and information credibility (Admiralty code)

Grade the source and the information separately. A good source can carry an unchecked claim, and that is what the 6 means.

《 20. CTI: Timeline and related public research 》

Legend: blue = public VShell research, purple = public EasyShell framework notes, red = October 2026 vulnerability wave (context, see 20.1), yellow = this analysis. Only dated, sourced events are listed.

■ 20.1 Hypothesis check: did Linux/EasyShell ride the October 2026 vulnerability wave?

Hypothesis tested: the October 2026 wave of AI-found vulnerabilities, starting with the PHP mass exposure (PHP2Shell), was taken by the EasyShell operator as the chance to start this campaign. I tested it against three readings, in ACH style, with only sourced or sample-based evidence.

■ 20.2 What would confirm or reject the hypothesis

Web server logs from a victim showing PHP2Shell-style multipart requests (hundreds of empty fields, deep nested names, upload-progress field) followed within minutes by a fetch of /file/ .

A process tree apache2 / httpd / php-fpm → sh → curl -k or wget --no-check-certificate to the C2 (Sigma rule added to the pack, chapter 27).

First-seen dates for 192[.]3.31[.]148:8443 in scan, certificate or passive DNS history: a first sighting before October weakens H1, a first sighting after 21 October supports it.

First-submission dates of the seven payload hashes in malware repositories.

Honeypot captures that carry the writeablex probe or the /file/ routes in an exploit body.

Two events in the same month are a timeline overlap, not a cause. Write the hypothesis, list what would disprove it, then look for that first.

An evidence row that fits every reading has no diagnostic value. Keep it in the table, but do not count it as support.

■ 20.3 What this post adds to the public reports

First public analysis of an EasyShell client binary: config slots, beacon protocol, XOR 0x5A pool, module list, anti-sandbox and masquerade.

First public link between the EasyShell red team framework and an in-the-wild C2 and stager.

A VShell-template stager variant with /file/ routes, LoongArch and macOS Gatekeeper handling.

YARA, Sigma, Snort, Suricata, osquery and STIX content for the stager and the implant.

《 21. CTI: Kill chain of the attack scheme 》

《 22. CTI: TTP — MITRE ATT&CK matrix 》

Only techniques seen in the stager text or the l32 binary are mapped.

■ 22.1 Framework techniques not seen in l32

《 23. CTI: Targeted vulnerabilities and weaknesses 》

■ 23.1 Weaknesses abused in this case

■ 23.2 Vulnerability triage (October to November 2026)

■ 23.3 Selection rules

Published, or added to KEV, from 2026-10-01 to 2026-11-19.

Outcome is code or command execution on a Linux or Unix server, or a login shell.

Windows-only, client-side and appliance-only flaws are left out (example: Cisco Expressway CVE-2026-76466, a root RCE on an appliance, does not match the generic uname based stager).

■ 23.4 Weight model (100 points)

Product: OpenSSH sshd 96th percentile (value n/c)

Fit to this threat: High: PHP web servers on Linux, unauth

Product: REDCap >= 13.3.0

Fit to this threat: Medium: needs a valid public survey hash; Unit 42 tracked an XMRig campaign through it (2026-10-07)

Fit to this threat: Medium: Linux AI inference hosts; unauth admin access to code execution; in-the-wild report credited in the advisory

EUVD: EUVD-2026-123532

Product: Apache httpd 2.4.55 to 2.4.70, mod_http2

CVSS: 9.8 (Red Hat) / 8.1 (CSA, CISA)

CISA KEV: not listed at check

CSAF: Red Hat RHEL packages listed (CSAF VEX: verify)

Fit to this threat: High: Linux web servers with HTTP/2; Singapore CSA reported exploitation 2026-11-17

Product: SiteGuard Server Edition (host WAF in Apache, Nginx, IIS)

CVSS: 7.8 (v3.0) / 8.5 (JVN v4.0, local, PR:L)

EPSS: 0.66% (51st pct)

Fit to this threat: Medium: root command execution on Linux web servers, widely used in Japan; local vector per JVN

EUVD: EUVD-2026-116495

Product: Puppet Server / OpenVox (report deserialization)

CVSS: 9.4 (v4.0, PR:L)

SSVC: Expl. none*, Auto no, Total

CSAF: Red Hat CVE page (verify)

Fit to this threat: Medium: Linux management servers; needs an agent certificate (autosign can expose it)

Product: SignalWire FreeSWITCH

Fit to this threat: Medium: Linux VoIP servers, command execution

Product: Apache Roller 4.0.0 to 6.1.4 (XML-RPC)

CISA KEV: not listed at check

Fit to this threat: Medium: Java blog servers, unauth; ASF confirmed exploitation

Product: Linux kernel (local)

Fit to this threat: Post-access only: privilege escalation after a foothold (lets the stager write into /usr/bin)

The matrix is also kept as triage_matrix.csv in the detection pack folder.

■ 23.6 Score breakdown

■ 23.7 Reference case (outside the window)

CVE-2025-55182 (React2Shell, CVSS 10.0, disclosed December 2025) is the only public case where the same writeablex stager template was documented after exploitation. It is listed for context and not scored, because it is outside the October to November window.

■ 23.8 Vectors that reach both Linux and macOS (October to November 2026)

Most flaws in 23.5 hit Linux servers only. The stager also serves macOS, so I checked which published October and November 2026 vectors run on both. None of them is linked to this C2; this is a list of candidates to check, ranked by fit.

■ 23.9 How to use this matrix

Score 75 and above: patch or isolate now, then hunt with chapter 25 on hosts that were exposed before the patch.

Score 55 to 74: patch in the current cycle and confirm exposure (internet facing, feature enabled).

Below 55: confirm you do not run the product, then close the row.

A KEV listing proves exploitation somewhere, not on your host and not by this actor.

Keep the evidence fields (KEV, EPSS, SSVC) separate from your own judgement (fit). Then anybody can rerun the score when EPSS or KEV changes.

Record when each value was collected. EPSS and KEV status change daily, so an undated score cannot be checked.

《 24. CTI: IOC triage (enriched) 》

■ 24.1 Copy-friendly IOC list (defanged)

《 25. Playbook for IR responders and DFIR 》

Golden rule: do not kill the fake kernel thread first. Collect its process state and memory, freeze it, cut its network, then clean. Killing it first loses the live config, the session keys and the tunnel table.

■ 25.1 Hot forensics 0: confirm the alert

One command decides the case: a kernel-thread name whose /proc/ /exe points to a file is a user process in disguise.

■ 25.2 Hot forensics 1 to 3: observe and acquire

■ 25.3 Hot forensics 4 and 5: freeze and contain

■ 25.4 Cold forensics 1 and 2: image and timeline

Image the disk; keep the frozen process memory with the image.

Timeline /usr/bin , /usr/local/bin , /usr/libexec , /tmp around the polkitd birth time; look for the short-lived writeablex in audit logs.

Find the parent of the stager: web server, application runtime or SSH session logs at the same time.

Check /etc/ld.so.preload , cron, systemd units and shell profiles as a standard step (no persistence was found in l32, but plugins can add it).

■ 25.5 radare2 on the evidence

Same offsets, same views as chapters 6 to 9. If your build differs, the strings first and follow the cross references.

■ 25.6 Hunting at scale with osquery

The full pack (six queries) is in the GitHub detection pack, chapter 27.

■ 25.7 If the host runs PHP: check the entry point

Apache or PHP error bursts with "Allowed memory size exhausted" and worker segfaults around the polkitd birth time are a PHP2Shell sign.

Shells, curl or wget started by the web server user ( www-data , apache , nobody ) toward a raw IP on 8443.

Patch PHP to 8.5.12, 8.4.27, 8.3.36, 8.2.35 or the distribution backport; rotate secrets that lived in PHP worker memory.

Report any match: it is the evidence 20.2 asks for.

Run the same /proc/*/exe check inside each container namespace; kernel-thread names never appear inside a container.

Compare the image layer with the running file system for new files in bin directories.

Rebuild from a clean image; do not clean a container in place.

■ 25.9 Tabletop exercise (30 minutes)

■ 25.10 Who does what (RACI)

■ 25.11 Contain, eradicate, recover

《 26. Detection and mitigation checklist 》

Processes: kernel-thread names with an exe link (the name table is in the binary; the selection logic was not traced); polkitd outside the package path; shells with HISTFILE=/dev/null .

Files: polkitd in /usr/bin , /usr/local/bin , /tmp ; hidden ad-hoc signed ~/Library/Caches/polkitd .

Persistence: none in l32; still check /etc/ld.so.preload , cron, systemd and shell profiles after plugin use.

Network: downloads from /file/ ; POST /api/v2/sync with X-Client-Id ; Windows Chrome UA from servers; raw IP on tcp/8443.

Hardening: server egress allow-list; no shell for web service accounts; FIM on system bin directories; patch chapter 23 rows.

macOS: polkitd (macOS has none) in a user Caches folder; screencapture -x or osascript mouse queries from it; TCC prompts or denials naming it; code signature identifier http-beacon-implant-* .

Developer and admin workstations: check Macs and Linux laptops for ~/Library/Caches/polkitd or polkitd in user folders; review LiteLLM 1.107.0 and the October npm/PyPI incidents in 23.8; rotate SSH keys and cloud credentials exposed by them.

Web servers: web server user spawning sh , curl -k or wget --no-check-certificate ; PHP patched for PHP2Shell (25.7).

Response: follow chapter 25, freeze before kill.

Detection example: YARA family rule MMD_Linux_EasyShell_Rust_Implant on memory dumps and new binaries.

《 27. Detection content: YARA, Sigma, Snort, Suricata, osquery, STIX 》

The full pack is published on the MalwareMustDie GitHub . The YARA rules and the macOS Sigma and osquery content are printed here (27.1).

■ 27.1 macOS chain: Sigma and osquery

The rules below cover the macOS chain in 18.3: the Gatekeeper handling by the stager and the client behaviour that raises TCC prompts. The Linux rules are in the pack.

Pair a narrow rule (this build) with a family rule (any build) and a technique rule (template). Each one fails differently, so together they last longer.

《 28. Responder quick card 》

For the findings see 1.1 . This card lists only what to look for and what to do.

Respond: freeze before kill, take memory, block egress, hunt the fleet with the kernel-thread exe check, rebuild, rotate credentials, report the tool and the infrastructure, not a guessed actor (chapter 25).

《 29. Inside the victim node: hot forensics 》

This chapter is a forensic examination of one compromised host, not static analysis, so it stands apart from Parts I to III. The evidence is the root shell history of the host, captured while the host was running and during the period of the intrusion (hence hot forensics). It records a multi-session "black-on-black" (黑吃黑, hēi chī hēi) intrusion: one criminal operation robbed by another, with source code theft and a hunt for cryptocurrency seeds, keys and tokens.

■ 29.1 Link to this case

History line 333 fetches the stager from 192[.]3.31[.]148:8443/file and pipes it to sh , with curl and a wget fallback, both with TLS checks off. This is the only link between the intrusion and the EasyShell case.

■ 29.2 What the host is

The host is not an enterprise server. It is a multi-tenant Chinese mobile malware server that hosts Android and iOS C2 panels, exploit kits and their build pipelines. The table lists what the history shows; roles come from names, paths and the files the intruder opened Confirmed for presence, High for the role.

Claude Code and Codex CLI directories ( /root/.claude/ , /root/.codex/ ) with prompt histories and session transcripts were on the host (L48 to L50, L584 to L595). That the panel operators built their code with these tools Medium is read from the directories only. The intruder read them and also started both tools (L215 to L219) Confirmed . The host also seems to match a server in a Censys open directory report on DarkSword and Coruna of 7 October 2026 (hostname C2026**********) Unverified .

■ 29.3 Activity by session

Ten exit lines split the history into eleven sessions. Two working styles appear: one inventories and packs the hosted kits, the other hunts wallets and keys. They may be one actor or two actors sharing the shell Unverified .

■ 29.4 What the intruder searched for

The ripgrep sweeps in session 11 used these patterns Confirmed :

■ 29.5 Tools and infrastructure on the host

■ 29.6 Limits of this evidence

A shell history records commands, not their output. What was found, copied out and where it went is not shown.

The two working styles cannot be split into two people from the history alone.

The roles of the hosted kits come from names, paths and files the intruder opened, not from analysis of those kits.

■ 29.7 The intrusion history evidence

Keep forensic evidence and malware analysis apart, and state the one fact that links them. Here it is a single history line.

Shell history shows intent, not results. Rate each reading and say what the history cannot prove.

《 Appendix A. Text evidence for chapters 4, 5, 6 and 9 》

The views in chapters 4 to 9 are images. This appendix gives the same evidence as text, so students can copy strings, them and check offsets in radare2. Source: the l32 payload (sha256 fe1666de...e81d4 ), static listing with llvm-objdump -d -M intel and string references resolved against the GOT base ebx = 0x083dff88 . The C2 is masked everywhere.

■ A.1 Chapter 4: file information and sections

■ A.2 Chapter 5: project source paths

■ A.3 Chapter 6: configuration builder, slot bytes and User-Agent check

■ A.4 Chapter 9: anti-sandbox inputs and the process-name table

Reproduce each block with the radare2 command on its first line. If your offsets differ, the string first ( izz~ ) and follow the cross references.

《 Appendix B. Revision history 》

The lesson of this case is small but important. The downloader in a glimpse looked like another threat's binary (VShell, Kinsing etc), and the payload was none of them. 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.

The shell history suggests that the attacker(s) installed and used agentic AI CLI sessions during the intrusion. Defenders should be alert to what such sessions can execute on a compromised host.

Not only Linux environments are targeted, macOS is too. The intention is remote access (RAT functionality), but the infection route is unclear. So yes, we have a macOS malware case here too, with no confirmed macOS infection so far.

This sample series includes a LoongArch (258) build. It is one of the earliest publicly documented LoongArch64 RAT implementations I could find in public reporting (as of 2026-11-21). In practice it targets Loongson 3A5000, 3A6000 and 3C/3D-series machines running a new-world distribution (Debian loong64, Loongnix, Kylin, UOS and so on). I have not run it, and its loader path suggests it may not load on a stock system as served. Its fingerprint is in 15.1 and 15.2 .

If you are a student, take the offsets in this post and reproduce each view in radare2 ( pd , px , izz ) on your own copy, in an isolated environment. If you are a defender, start with the kernel-thread name check in chapter 25.

■ Related posts references

Trellix: The Silent, Fileless Threat of VShell

NVISO: Decoding VShell (PDF)

iYoRoy: server compromise via CVE-2025-66478 / CVE-2025-55182

GTIG: Multiple Threat Actors Exploit React2Shell

EasyShell v1.9 release note (gm7.org copy) , cn-sec.com copy

EasyShell trial note (gm7.org copy)

SOCRadar: LiteLLM 1.107.0 supply chain attack

October 2026 supply chain incident tracker

Safeguard: 106 malicious npm and PyPI packages

CSA: agent-framework PyPI compromise

Censys: Java4Shell CVE-2026-114938

watchTowr: PHP2Shell FAQ

CrowdSec: PHP2Shell first five days

The Register: PHP2Shell and Fragnesia chain (Dream research)

Ellio: PHP2Shell payloads observed

F5 Labs: PHP2Shell exploitation attempts

SOCRadar: PHP2Shell credential-harvesting campaign

Microsoft: ARTEX abuse and Storm-3358

Help Net Security: GTIG data on AI-found vulnerabilities