# Linux/EasyShell: Rust HTTPS Beacon RAT (Linux, macOS, LoongArch64) from the EasyShell C2 Framework, Stager at 192.3.31.148:8443

> MalwareMustDie (MMD-073-2026) documented Linux/EasyShell, a Rust HTTPS beacon implant from the Chinese-developed EasyShell red-team C2 framework, with builds for Linux (x86, x86-64, ARM, AArch64, LoongArch64) and macOS (x86-64, arm64). A shell stager on 192.3.31.148:8443 drops a payload named polkitd that provides remote shell, file transfer, SOCKS5/relay tunnelling, screenshots and sandbox checks.

- **Published:** 2026-11-26T15:53:02Z
- **Last reviewed:** 2026-11-26T15:53:02Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6940
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6940.png
- **ID:** TL-2026-6940
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 22 (3 shown free below)

## Description

Linux/EasyShell is the name MalwareMustDie gave to a Rust-based HTTPS beacon implant, taken from build-path strings such as easyshell-http-beacon-implant and impl-core. The case began with a stager shell script found on a victim node. The script lives on a C2/stager host, 192.3.31.148 on TCP/8443 (ColoCrossing, AS36352, US). It selects a payload by uname -s / uname -m and downloads it from /file/<arch> (l32, l64, a32, a64, l128, darwin_amd64, darwin_arm64) with TLS verification disabled (curl -k, wget --no-check-certificate, or Python with an unverified SSL context). The payload is saved as polkitd, one of eight service-like names (rsyslogd, dbus-daemon, systemd-logind, crond, agetty, sshd, polkitd, udevd) that the server picks at random. On Linux the stager probes for a writable directory among /usr/local/bin, /usr/libexec and /usr/bin using a short-lived writeablex file, and falls back to /tmp. On macOS the payload lands in ~/Library/Caches/polkitd, is hidden with chflags hidden, has its quarantine attribute cleared with xattr -c, and is ad-hoc code-signed.

The implant is a Rust HTTPS beacon with its libraries built in. It beacons with HTTPS POST /api/v2/sync, an X-Client-Id header and a Windows Chrome 131 user agent, with a JSON envelope. Configuration lives in builder-patched slots (!ES/<n>/<TAG>/) holding the C2 URL, beacon URI, user agent, content type, sandbox thresholds and a TeamServer X25519 public key. The server writes random bytes into one slot (!ES/6/ENTR/) of every payload it generates, so each download has a different hash and hash-based detection fails for other victims. Capabilities are a PTY remote shell, plugin and script execution, chunked file upload and download, folder zipping, SOCKS5 and relay-hop tunnelling, an outbound proxy, screenshots, process listing and killing, and self-deletion. Credential dumping, token elevation and browser password theft are not built in. They come from a separate Extensions plugin set that MMD did not have. The l32 build has no persistence routine, so persistence would come from operator actions or plugins. Sandbox checks cover DMI product/vendor strings, hypervisor names, /proc/xen, mouse activity (/dev/input/mice), DISPLAY/WAYLAND_DISPLAY, CPU, RAM and uptime. The process masquerades as a kernel thread (for example [kworker/0:0] or [rcu_sched]) using prctl while keeping a real /proc/<pid>/exe. The stager disables shell history (HISTFILE=/dev/null). Sensitive strings are XOR-protected with 0x5A.

The LoongArch64 build (l128, rustc 1.96.0) is described by MMD as one of the earliest publicly documented RATs for that architecture, meaning only that MMD found no earlier public analysis as of 2026-11-21. MMD assesses with medium confidence that it is dynamically linked against glibc-style names that do not match real LoongArch glibc, so it may not load on stock loong64 hosts and may never have been tested on real hardware. The macOS and LoongArch builds are framework defaults offered by every EasyShell stager, not a choice of this operator. A Joe Sandbox run of an l32 copy on 2026-11-21 (Ubuntu 20.04) showed three TCP connections to the C2, a forked child calling prctl and uname, and an empty hidden file, scoring 2/100 with no YARA or Suricata match.

Attribution: MMD identifies EasyShell as a Chinese red-team C2 framework distributed to trial and paying users. The public repository (doki-byte/EasyShell) matches the samples. It is not VShell and has no Kinsing or SystemTen link, although the stager reuses a public VShell template. No operator is named, operator intent is unknown, and no monetisation code was found. MMD describes a separate forensic case in which an intruder's shell history on a Chinese mobile-malware hosting server re-ran the same EasyShell stager from this C2. MMD rates the link between that intruder and the C2 operator as medium confidence. No CVE or CVSS is assigned. The report states no vulnerability exploitation tied to this campaign.

## MITRE ATT&CK

- T1059.004 Unix Shell
- T1071.001 Web Protocols
- T1573.002 Asymmetric Cryptography
- T1090.001 Internal Proxy
- T1572 Protocol Tunneling
- T1036.004 Masquerade Task or Service
- T1036.005 Match Legitimate Resource Name or Location
- T1497.001 System Checks
- T1690 Prevent Command History Logging
- T1564.001 Hidden Files and Directories
- T1553.001 Gatekeeper Bypass
- T1070.004 File Deletion
- T1027 Obfuscated Files or Information
- T1113 Screen Capture
- T1057 Process Discovery
- T1082 System Information Discovery

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**EasyShell Stager Payload Download With TLS Verification Disabled (192.3.31.148:8443 /file/<arch>)** (`TL-2026-6940-SPL-001`)

Detects the Linux/EasyShell shell stager (MMD-073-2026) fetching its payload with curl -k, wget --no-check-certificate or a Python unverified SSL context from the C2/stager host 192.3.31.148:8443 or from a /file/<arch> route (l32, l64, l128, a32, a64, darwin_amd64, darwin_arm64). Behaviour-first: the insecure-TLS download plus the EasyShell route pattern fires even if the stager moves to a new IP. Also flags HISTFILE=/dev/null history suppression used by the stager.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1105, T1059.004, T1562.003
- **Data sources:** sysmon_for_linux, auditd, defender_for_endpoint_linux
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=linux sourcetype="sysmon:linux" EventCode=1 (Image="*/curl" OR Image="*/wget" OR Image="*/python*" OR Image="*/sh" OR Image="*/bash")
| eval cmd=lower(CommandLine)
| where (match(cmd,"curl\\s.*(\\s-[a-z]*k[a-z]*(\\s|$)|--insecure)") OR match(cmd,"wget\\s.*--no-check-certificate") OR match(cmd,"_create_unverified_context")) AND (match(cmd,"192\\.3\\.31\\.148") OR match(cmd,"/file/(l32|l64|l128|a32|a64|darwin_amd64|darwin_arm64)(\\s|$|\\?|\")"))
| eval history_suppression=if(match(cmd,"histfile=/dev/null"),"yes","no")
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as commands values(history_suppression) as history_suppression by host, User, ParentImage
| convert ctime(first_seen) ctime(last_seen)
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("curl","wget","python","python3","sh","bash","dash")
| where ProcessCommandLine matches regex @"(?i)(curl\s.*(\s-[a-z]*k[a-z]*(\s|$)|--insecure)|wget\s.*--no-check-certificate|_create_unverified_context)"
| where ProcessCommandLine has "192.3.31.148" or ProcessCommandLine matches regex @"(?i)/file/(l32|l64|l128|a32|a64|darwin_amd64|darwin_arm64)(\s|$|\?|"")"
| extend HistorySuppression = ProcessCommandLine has "HISTFILE=/dev/null"
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, HistorySuppression
```

### Sigma

```yaml
title: EasyShell Stager Payload Download With TLS Verification Disabled
id: 3f6a1c52-8b7e-4d19-9a3c-5e2d7b814a01
status: experimental
description: Detects the Linux/EasyShell stager downloading a payload with curl -k or wget --no-check-certificate from 192.3.31.148 or a /file/<arch> route.
references:
    - https://blog.malwaremustdie.org/2026/11/mmd-073-2026-linuxeasyshell-new-rust.html
    - https://securityaffairs.com/204067/malware/linux-easyshell-malwaremustdie-identifies-one-of-the-earliest-publicly-documented-rats-built-for-loongarch-linux.html
author: Threadlinqs Team
date: 2026-11-26
tags:
    - attack.command_and_control
    - attack.t1105
    - attack.execution
    - attack.t1059.004
    - attack.defense_evasion
    - attack.t1562.003
logsource:
    category: process_creation
    product: linux
detection:
    selection_curl_insecure:
        Image|endswith: '/curl'
        CommandLine|re: '\s-[a-zA-Z]*k[a-zA-Z]*(\s|$)|--insecure'
    selection_wget_insecure:
        Image|endswith: '/wget'
        CommandLine|contains: '--no-check-certificate'
    selection_c2_ip:
        CommandLine|contains: '192.3.31.148'
    selection_route:
        CommandLine|re: '/file/(l32|l64|l128|a32|a64|darwin_amd64|darwin_arm64)(\s|$|\?)'
    condition: (selection_curl_insecure or selection_wget_insecure) and (selection_c2_ip or selection_route)
falsepositives:
    - Administrators fetching internal artefacts from self-signed servers that happen to use a /file/<arch> route
    - Lab or CI hosts using curl -k against test servers
level: high

```

**Known false positives:**

- Administrators using curl -k against internal self-signed artefact servers with a /file/<arch> style route
- CI/CD or lab hosts that routinely disable TLS verification

**Tuning notes:** Add the 192.3.31.148 IOC list from research as a lookup. Exclude known internal artefact servers and build accounts. Alert at high priority when the destination is a raw IP on 8443, and enrich with history_suppression=yes.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- EasyShell Stager History Suppression (HISTFILE=/dev/null) With Download Or C2 Context (locked: unlock with TL Creds)
- EasyShell Service-Named Payload (polkitd, sshd, crond ...) Executing From Non-Standard Path (locked: unlock with TL Creds)
- EasyShell C2 Connection [indicator]:8443 Or Service-Named Process Beaconing To Port 8443 (locked: unlock with TL Creds)
- EasyShell Writable-Directory Probe ([indicator]) And Service-Named Payload Drop (locked: unlock with TL Creds)
- EasyShell macOS Payload Hidden And Quarantine Cleared In ~/Library/Caches (polkitd) (locked: unlock with TL Creds)
- EasyShell C2 Firewall Flow To [indicator] Port 8443 (Stager And Beacon Channel) (locked: unlock with TL Creds)
- EasyShell Kernel-Thread Masquerade ([kworker/0:0], [rcu_sched]) On A Real Executable (locked: unlock with TL Creds)
- EasyShell HTTPS Beacon POST [indicator] With X-Client-Id To Raw IP On TCP/8443 (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 22)

Defanged, TLP:CLEAR.

- IP address: `192.3.31[.]148`
- File hash: `fe1666de877da2680ebd637387d9700482425d5d93947202a48af247305e81d4`
- IP address: `119.45.243[.]154`

Full set of 22 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Linux/EasyShell: MalwareMustDie Identifies One of the Earliest Publicly Documented RATs Built for LoongArch Linux (Security Affairs)](https://securityaffairs.com/204067/malware/linux-easyshell-malwaremustdie-identifies-one-of-the-earliest-publicly-documented-rats-built-for-loongarch-linux.html)
- [MMD-073-2026 Linux/EasyShell new Rust implant (MalwareMustDie primary report)](https://blog.malwaremustdie.org/2026/11/mmd-073-2026-linuxeasyshell-new-rust.html)
- [EasyShell framework v1.9 note (gm7.org)](https://www.gm7.org/archives/109900)
- [EasyShell framework note (cn-sec.com mirror)](https://cn-sec.com/archives/5266611.html)
- [EasyShell trial note (gm7.org)](https://www.gm7.org/archives/138707)
- [EasyShell tool author GitHub profile (doki-byte)](https://github.com/doki-byte)
- [Trellix: The Silent Fileless Threat of VShell (related stager template)](https://www.trellix.com/blogs/research/the-silent-fileless-threat-of-vshell/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6940
