PlugX is a remote access tool for Windows, built from plugins. It lets an operator run commands, capture screens and keystrokes, and move files on an infected computer. MITRE lists many threat groups that have used it, and the FBI has observed it since at least 2012.
What it does
PlugX is built from plugins, so an operator can choose which functions to run. CISA’s 2017 analysis says the plugins can be added, removed or updated while the tool is running, and that the modules differ between variants. In the sample CISA studied, plugins covered files, keystrokes, screenshots, processes, the registry, services, a remote shell, SQL queries and a Telnet interface.
CISA also reported that PlugX is never stored on disk in an unencrypted or decoded form. In a court affidavit the FBI says PlugX has infected thousands of Windows computers worldwide and that owners of infected computers are typically unaware of it.
Names
Public sources use several names for this malware.
What it can do
The ATT&CK techniques the cited sources map to this tool, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
Execution
Persistence
Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder T1547.001
It adds Run key entries in the registry so it starts again with the computer.[1]
Create or Modify System Process: Windows Service T1543.003
It can be installed as a service, and has a module to change, start, control and delete services.[1]
Scheduled Task/Job: Scheduled Task T1053.005
It has created a scheduled task to run more malicious software and to stay on the machine.[1]
Stealth
Hijack Execution Flow: DLL T1574.001
It starts by DLL search order hijacking or by side-loading a malicious DLL through a signed program.[1]
Reflective Code Loading T1620
It loads its payload into memory instead of leaving it readable on disk.[1]
Masquerading: Match Legitimate Resource Name or Location T1036.005
It has been disguised as Adobe and PotPlayer files and copies the names of real software folders and files.[1]
Indicator Removal: File Deletion T1070.004
It can remove itself and other files it created.[1]
Collection
Command And Control
Application Layer Protocol: Web Protocols T1071.001
It can be set up to talk to its server over HTTP, and has also used HTTPS.[1]
Non-Application Layer Protocol T1095
It can be set up to use raw TCP or UDP for command and control.[1]
Ingress Tool Transfer T1105
A module downloads files to the machine and runs them.[1]
Encrypted Channel: Symmetric Cryptography T1573.001
It can use RC4 encryption in its command and control traffic.[1]
Exfiltration
How it spreads
MITRE says PlugX has used a first file made to look like a normal document so the target opens it, and has copied itself to infected removable drives to reach other devices. The FBI describes one variant that spreads through a computer's USB port, infecting attached USB devices and then potentially other Windows computers they are later plugged into. In the 2017 CISA alert, where PlugX was one of the malware seen, CISA says the main way in was user impersonation with compromised credentials, and that malware implants were a secondary way to stay in the network.
How an infection runs
The order of steps in a typical infection, as the sources describe it.
Three files arrive
PlugX typically installs from three parts: a harmless program, a malicious DLL and an encoded payload.[3]
Harmless program starts
The program is launched. It sits in a folder not normally linked to it, and may be signed with a valid certificate.[3]
Malicious DLL loads
The DLL has the name of one the program normally loads, so it is loaded in its place. It decodes and installs the payload.[3]
Payload runs in memory
The payload is unpacked in memory and the operator has command and control of the computer.[3]
Staying on the machine
In the variant the FBI describes, registry keys start PlugX again when the computer starts.[2]
Contact with the server
In that variant, PlugX can ask its hard-coded command server for instructions when the computer is online.[2]
Timeline
- 2012
- 2014
State-sponsored use
The FBI affidavit says China-based state-sponsored hackers have used PlugX since at least 2014.[2]
- 27 April 2017
CISA alert TA17-117A
CISA posts an alert on a campaign running since at least May 2016, in which PLUGX/SOGU was among the malware observed.[3]
- 20 December 2018
Alert updated with attribution
CISA updates the alert with the US Government's attribution of the activity it covers to Chinese cyber actors associated with the Chinese Ministry of State Security.[3]
- July 2023
RedDelta campaign begins
MITRE dates the start of a Mustang Panda campaign built around a modified PlugX infection chain, which ran to December 2024.[5]
- September 2023
Contacts with FBI-observed server begin
The FBI says at least 45,000 US IP addresses have contacted the command server of one PlugX variant since this month.[2]
- 28 August 2024
First warrant
The affidavit says the warrant to remove PlugX from US computers was first issued on this date and reissued on a rolling basis.[2]
- 17 December 2024
Thousands cleaned
The affidavit says the self-delete command had been sent to thousands of unique IP addresses by this date, and asks for another 14-day warrant.[2]
- 11 January 2025
End of delayed notice
The FBI asked the court to delay notice of the warrant until this date.[2]
Who uses it
- Threat group APT41 MITRE describes APT41 as a Chinese state-sponsored espionage group, as researchers have assessed it, that also runs financially motivated operations. China · Since 2012
- Threat group menuPass Attributed by the US, UK and EU governments to a China-based group working with the Ministry of State Security, menuPass (APT10) is known for reaching companies through their managed service providers. China · Since 2006
- Threat group Mustang Panda MITRE ATT&CK describes Mustang Panda as a China-based cyber espionage threat actor, and the US Department of Justice, citing court documents, says the PRC government paid the group to develop a version of PlugX. China · Since 2012
Detection and defense
What Brandefense can do
- Scan your domain in Brandefense Atlas, free
Atlas checks public sources for leaked credentials, phishing domains, dark web mentions and data sales, then gives your domain a risk grade. Free, no sign-up.
- Cyber Threat Intelligence
Brandefense Cyber Threat Intelligence tracks malware families and the infrastructure they use, and shares indicators your team can check against its own systems.
Frequently Asked Questions
What is PlugX?
MITRE describes it as a remote access tool with modular plugins that has been used by multiple threat groups. It runs on Windows.
Who uses PlugX?
MITRE lists many groups, including Mustang Panda, APT41 and menuPass. The FBI affidavit says it assesses Mustang Panda is the user of the variant it targeted.
How does PlugX spread?
MITRE says it has copied itself to removable drives. The FBI describes a variant that spreads through USB devices to other Windows computers.
Did the FBI remove PlugX from computers?
The FBI affidavit describes a court-authorized command, sent through a French law enforcement agency's access to the command server, that made PlugX delete itself. By 17 December 2024 it had been sent to thousands of unique IP addresses.
How does PlugX hide?
CISA says it runs through DLL side-loading, is unpacked in memory and is never stored on disk in decoded form.
Sources
- PlugX, Software S0013MITRE ATT&CK · Supports: Names, platform, techniques, groups and campaign for PlugX
- Affidavit in support of an application for a ninth search and seizure warrant (PlugX)U.S. Department of Justice, FBI · Supports: USB spread, command server, self-delete command, Mustang Panda assessment, dates
- Intrusions Affecting Multiple Victims Across Multiple Sectors (TA17-117A)CISA · Supports: PlugX plugin framework, DLL side-loading, signatures, mitigations, 2018 attribution update
- Mustang Panda, Group G0129MITRE ATT&CK · Supports: Associated names including Twill Typhoon
- RedDelta Modified PlugX Infection Chain Operations, Campaign C0047MITRE ATT&CK · Supports: Mustang Panda campaign, July 2023 to December 2024
- menuPass, Group G0045MITRE ATT&CK · Supports: menuPass and its alias APT10
- APT41, Group G0096MITRE ATT&CK · Supports: APT41 use of a PlugX variant
