Linux/EasyShell
- Type
- RAT
- Capabilities
- ExfiltrationPost exploitationDefense evasionReconnaissance
- Platforms
- LinuxmacOS
Linux/EasyShell, also known as ESCH, is a Rust remote-access Trojan and beacon associated with the Chinese EasyShell red-team command-and-control framework. Its payloads support Linux on x86, x86-64, ARM, ARM64, and LoongArch, and macOS on Intel and Apple Silicon. Distribution uses a multi-platform shell stager resembling a publicly documented VShell downloader template, although the implant itself is EasyShell rather than VShell. Initial access and the deployment operator have not been established, and macOS infections have not been confirmed.
The implant communicates over HTTPS and supports interactive pseudo-terminal shells, execution of supplied native binaries and scripts, chunked file uploads and downloads, directory archiving, process enumeration and termination, host-information collection, and self-deletion. Its networking capabilities include SOCKS5 proxying, multiplexed tunnels, relay hops, and outbound proxies. Screenshot support uses a helper on Linux and native screen-capture functionality on macOS.
Defense-evasion features include XOR-obfuscated strings, Linux process masquerading using kernel-thread-style names, suppression of interactive shell history, and anti-analysis checks involving virtualization indicators, hardware resources, uptime, storage conditions, and user activity. The macOS stager hides the payload, clears extended attributes, and conditionally applies an ad-hoc signature. No persistence routine was identified in the examined Linux sample, and no launch-service persistence indicators were identified in the macOS clients. Links to a Chinese red-team development ecosystem do not establish the operator's identity, nationality, or affiliation.
Techniques & procedures
22 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
T1059.002 AppleScript osascript mouse check in the macOS client
T1059.004 Unix Shell Stager script; PTY shell in interactive.rs
Privilege Escalation
2 techniques
Privilege Escalation
Process injection (T1055) !inj: command marker only; behaviour not traced
Credential dumping, token elevation, browser passwords (T1003, T1134, T1555.003) Offered through the Extensions plugin set per operator text; plugins not in hand
Stealth
8 techniques
Stealth
Part of the string pool is stored XOR encoded with one byte, 0x5A .
T1036.005 Match Legitimate Name or Location polkitd file name; eleven kernel-thread process names
Process injection (T1055) !inj: command marker only; behaviour not traced
T1070.004 File Deletion delete_self.rs
Credential dumping, token elevation, browser passwords (T1003, T1134, T1555.003) Offered through the Extensions plugin set per operator text; plugins not in hand
T1497.001 System Checks DMI, hypervisor names, resources; sysctl hw.model on macOS
T1497.002 User Activity Based Checks /dev/input/mice on Linux; AppleScript mouse position on macOS
T1564.001 Hidden Files and Directories chflags hidden on macOS
Defense Impairment
2 techniques
Defense Impairment
T1553.001 Gatekeeper Bypass xattr -c and ad-hoc codesign
The interactive shell prepares its environment with HISTFILE=/dev/null , HISTFILESIZE=0 and set +H so shell history is not kept Confirmed .
Credential Access
2 techniques
Credential Access
Operator messages (Simplified Chinese, translated) say that token elevation, credential dumping (via Mimikatz), browser password theft and sensitive file search are not built into this implant and are offered through an "Extensions" plugin set Confirmed .
Credential dumping, token elevation, browser passwords (T1003, T1134, T1555.003) Offered through the Extensions plugin set per operator text; plugins not in hand
Discovery
4 techniques
Discovery
T1057 Process Discovery Process list in svc_ops.rs
T1082 System Information Discovery sysinfo.rs , uname in the stager
T1497.001 System Checks DMI, hypervisor names, resources; sysctl hw.model on macOS
T1497.002 User Activity Based Checks /dev/input/mice on Linux; AppleScript mouse position on macOS
Collection
2 techniques
Collection
T1113 Screen Capture screenshot_sidecar.rs on Linux; silent screencapture -x on macOS
T1560.002 Archive via Library Folder zip in folder_zip.rs
Command and Control
4 techniques
Command and Control
T1071.001 Web Protocols HTTPS POST /api/v2/sync
T1090 Proxy SOCKS5, relay hops, outbound proxy
T1105 Ingress Tool Transfer /file/<arch> downloads; plugin delivery
T1571 Non-Standard Port HTTPS on tcp/8443
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.