ZxShell
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- Spearphishing
- Platforms
- Windows
ZxShell, also known as Sensode, is a Windows remote access trojan used in cyberespionage operations by multiple threat actors, including APT27 (Emissary Panda), Axiom (Group 72), PoisonVine, and GreenSpot. Its capabilities include remote command execution, interactive remote desktop access, screenshot capture, keylogging, file deletion, process enumeration, and collection of workstation owner and organization information. It can create local user accounts to maintain access and has been observed executing within a shared Windows service-host process and abusing a trusted Windows utility to execute DLL payloads.
ZxShell includes a rootkit component that conceals network connections and redirects requests for malicious files to benign files, obstructing inspection. Updated rootkit variants have used string and API-name obfuscation to reduce detection. A digitally signed variant was demonstrated to function on Windows 10.
Publicly available ZxShell source code has enabled actors to develop customized variants. GreenSpot variants added targeted document collection and theft of browser-saved email account passwords, with some selecting documents using military- and aviation-related keywords. These variants appeared in spearphishing campaigns using malicious attachments and exploit documents against Chinese government, aviation, military, and research organizations. ZxShell's use across distinct intrusion sets means its presence alone does not establish attribution to a particular actor.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
10 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The ZXShell rootkit is a powerful remote access tool designed for stealth and persistence.
Axiom Derusbi 9002 RAT BLACKCOFFEE Derusbi Ghost RAT HiKit PlugX ZXShell APT17
First variant of ZxShell was found. Several military and government targets was attacked.
+4 more in the app. View in Mallory
Techniques & procedures
50 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
该组织擅长对目标实施鱼叉攻击和水坑攻击,植入修改后的ZXShell、Poison Ivy、XRAT商业木马,并使用动态域名作为其控制基础设施。
[ZxShell](https://attack.mitre.org/software/S0412) has been dropped through exploitation of CVE-2011-2462, CVE-2013-3163, and CVE-2014-0322.(Citation: Talos ZxShell Oct 2014)
该组织通过鱼叉式钓鱼邮件附加漏洞文档或捆绑可执行文件进行传播。
Execution
5 techniques
Execution
[ZxShell](https://attack.mitre.org/software/S0412) can launch a reverse command shell.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)(Citation: Secureworks BRONZEUNION Feb 2019)
[ZxShell](https://attack.mitre.org/software/S0412) can leverage native API including <code>RegisterServiceCtrlHandler </code> to register a service.RegisterServiceCtrlHandler
另一种是格式攻击文档,利用漏洞CVE-2012-0158来释放并执行可执行文件。
Tactics, techniques and procedures • ATT&CK Matrix • T1204 User Execution
[ZxShell](https://attack.mitre.org/software/S0412) can create a new service for execution.(Citation: Talos ZxShell Oct 2014)
Persistence
5 techniques
Persistence
[ZxShell](https://attack.mitre.org/software/S0412) can create Registry entries to enable services to run.(Citation: Talos ZxShell Oct 2014)
APT3 has been known to create or enable accounts, such as support_388945a0 . ... APT5 has created Local Administrator accounts to maintain access ... DarkGate creates a local user account, SafeMode, via net user commands.
[ZxShell](https://attack.mitre.org/software/S0412) has a feature to create local user accounts.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can create a new service using the service parser function ProcessScCommand.(Citation: Talos ZxShell Oct 2014)
其他均为C:\Documents and Settings\All Users\「开始」菜单\程序\启动\update.exe,来达成开机执行的持久化效果。
Privilege Escalation
5 techniques
Privilege Escalation
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[ZxShell](https://attack.mitre.org/software/S0412) is injected into a shared SVCHOST process.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has a command called RunAs, which creates a new process as another user or process context.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can create a new service using the service parser function ProcessScCommand.(Citation: Talos ZxShell Oct 2014)
其他均为C:\Documents and Settings\All Users\「开始」菜单\程序\启动\update.exe,来达成开机执行的持久化效果。
Stealth
6 techniques
Stealth
该组织对这些公开的RAT程序进行修改和加密使用... 样本在其行动的一段时间内的整体检出率不到8%。
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[ZxShell](https://attack.mitre.org/software/S0412) is injected into a shared SVCHOST process.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can delete files from the system.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has a command called RunAs, which creates a new process as another user or process context.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has used rundll32.exe to execute other DLLs and named pipes.(Citation: Talos ZxShell Oct 2014)
Defense Impairment
4 techniques
Defense Impairment
[ZxShell](https://attack.mitre.org/software/S0412) can create Registry entries to enable services to run.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can kill AV products' processes.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has a command to clear system event logs.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can disable the firewall by modifying the registry key <code>HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile</code>.(Citation: Talos ZxShell Oct 2014)
Credential Access
3 techniques
Credential Access
[ZxShell](https://attack.mitre.org/software/S0412) has a feature to capture a remote computer's keystrokes using a keylogger.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) hooks several API functions to spawn system threads.(Citation: Talos ZxShell Oct 2014)
获取IE自动保存的邮箱账户密码和对应网址。
Discovery
7 techniques
Discovery
[ZxShell](https://attack.mitre.org/software/S0412) can check the services on the system.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can query the netsvc group value data located in the svchost group Registry key.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can collect the owner and organization information from the target workstation.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can launch port scans.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has a command, ps, to obtain a listing of processes on the system.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can collect the local hostname, operating system details, CPU speed, and total physical memory.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has a command to open a file manager and explorer on the system.(Citation: Talos ZxShell Oct 2014)
Lateral Movement
2 techniques
Lateral Movement
[ZxShell](https://attack.mitre.org/software/S0412) has remote desktop functionality.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) supports functionality for VNC sessions.(Citation: Talos ZxShell Oct 2014)
Collection
7 techniques
Collection
[ZxShell](https://attack.mitre.org/software/S0412) can transfer files from a compromised host.(Citation: Talos ZxShell Oct 2014)
案例6只收集网络磁盘、U盘、CDROM中的文件。
[ZxShell](https://attack.mitre.org/software/S0412) has a feature to capture a remote computer's keystrokes using a keylogger.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) hooks several API functions to spawn system threads.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can capture screenshots.(Citation: FireEye APT41 Aug 2019)
[ZxShell](https://attack.mitre.org/software/S0412) has a command to perform video device spying.(Citation: Talos ZxShell Oct 2014)
通过Rar.exe收集指定的文件并打包... 并使用RAR打包。
Command and Control
9 techniques
Command and Control
svchost.exe 是一个远控木马,其启动后连接myaccount.emailsevr.net 的80 端口,创建C&C 信道
[ZxShell](https://attack.mitre.org/software/S0412) has used HTTP for C2 connections.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) has used FTP for C2 connections.(Citation: Talos ZxShell Oct 2014)
[ZxShell](https://attack.mitre.org/software/S0412) can set up an HTTP or SOCKS proxy.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."
Aria-body has the ability to use a reverse SOCKS proxy module... BADHATCH can use SOCKS4 and SOCKS5 proxies... GoBear implements SOCKS5 proxy functionality... Neo-reGeorg has the ability to establish a SOCKS5 proxy... Remcos uses the infected hosts as SOCKS5 proxies...
[ZxShell](https://attack.mitre.org/software/S0412) has a command to transfer files from a remote host.(Citation: Talos ZxShell Oct 2014)
主要投放RAT(Remote Administration Tool,远程管理工具)程序对目标主机进行控制和信息窃取。
[ZxShell](https://attack.mitre.org/software/S0412) can use ports 1985 and 1986 in HTTP/S communication.(Citation: Talos ZxShell Oct 2014)
Exfiltration
1 technique
Exfiltration
自动回传Profiles.log文件和RAR打包文件。
Impact
1 technique
Impact
[ZxShell](https://attack.mitre.org/software/S0412) has a feature to perform SYN flood attack on a host.(Citation: FireEye APT41 Aug 2019)(Citation: Talos ZxShell Oct 2014)
Observables
17 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
81 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.