Skip to main content
Mallory
Malware1 associated actor

EquationDrug

Tracked since May 26, 2026 · Updated 4 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK41Techniques
IOCs27Tracked
Type
Spyware
Capabilities
Credential theftKeyloggingExfiltrationPersistencePost exploitationDefense evasionReconnaissanceProcess injection
Platforms
Windows

EquationDrug is a long-running, highly modular cyberespionage platform associated with the Equation Group and in use since at least 2003. It is widely regarded as one of the group’s principal Windows espionage frameworks, succeeding EquationLaser and later being superseded for some operations by GrayFish. The platform is designed for selective, victim-specific deployment rather than indiscriminate mass infection and reflects the tradecraft of a mature nation-state intrusion capability.

Architecturally, EquationDrug combines kernel-mode and user-mode components with a plugin-based framework that allows operators to tailor functionality per target. Its startup chain includes low-level components for older and newer Windows generations, a user-mode loader, and a central orchestrator that manages configuration, module loading, and tasking. The platform uses encrypted configuration storage and an encrypted virtual file system to stage collected data prior to exfiltration. Multiple components implement stealth and survivability features, including rootkit functionality, hidden or protected objects, process injection, suppression of audit logging, and passive network backdoor behavior triggered by crafted traffic.

Observed capabilities include system profiling, file and directory collection, screenshot capture, keylogging, clipboard monitoring, browser activity monitoring, browser history and autofill theft, cached password collection, WMI-based collection, reverse DNS resolution, process and file management, network sniffing and interception, removable-media monitoring, NTFS-level access and disk forensics, and manipulation of HDD and SSD firmware. The framework’s plugin ecosystem also supports multiple communications methods and covert data handling. These features make EquationDrug a full espionage platform rather than a simple standalone Trojan.

EquationDrug primarily targets Windows systems, including legacy Windows families as well as NT-based versions. Reporting has also linked Equation Group tooling more broadly to Linux and Solaris operations, but the high-confidence characterization of EquationDrug itself is as a Windows espionage framework. The malware is notable for its longevity, engineering sophistication, and extensive modularity, and remains one of the best-known examples of advanced state-sponsored surveillance malware.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

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.

View more details →
Equation Group

EquationDrug is one of the main espionage platforms used by the Equation Group... EquationDrug, which is still in use, dates back to 2003, although the more modern GrayFish platform is being pushed to new victims.

via securelistsecurelist.com
MITRE ATT&CK

Techniques & procedures

41 distinct techniques documented for this family, organized by ATT&CK tactic.

Execution

5 techniques
T1047Windows Management InstrumentationEvidence2

WMI information gathering.

T1059.003Windows Command ShellEvidence1

Backdoor command is stored in the first byte of the decrypted request... 3 CallWinExec Disable Windows Audit and start new process via standard code injection in Winlogon.exe.

T1106Native APIEvidence1

The rootkit code in the driver hooks several Native API functions that lets it hide or protect registry keys, files and running processes.

T1129Shared ModulesEvidence2

Next, the module injects extra code into a newly started target process. The injected code loads the payload DLL (“mscfg32.dll”) into the target process

T1569.002Service ExecutionEvidence1

The injection of code into winlogon.exe and services.exe ensures that the newly started process will have SYSTEM user privileges.

Persistence

4 techniques
T1112Modify RegistryEvidence2

The module uses a unique algorithm for generating registry value names.

T1205Traffic SignalingEvidence2

Passive network backdoor (runs Equation shellcode from raw traffic).

T1542Pre-OS BootEvidence2

HDD and SSD firmware manipulation.

T1547Boot or Logon Autostart ExecutionEvidence1

The platform is started by the kernel mode driver component (“msndsrv.sys” on Windows 2000 or above and “mssvc32.vxd” on Windows 9x). The driver then waits for the system to start and initiates execution of the user-mode loader “mscfg32.exe”.

Privilege Escalation

2 techniques
T1055Process InjectionEvidence2

Next, it crafts and injects a shellcode in “services.exe” or “winlogon.exe”. The shellcode is designed to spawn the loader process from the executable called “mscfg32.exe”.

T1547Boot or Logon Autostart ExecutionEvidence1

The platform is started by the kernel mode driver component (“msndsrv.sys” on Windows 2000 or above and “mssvc32.vxd” on Windows 9x). The driver then waits for the system to start and initiates execution of the user-mode loader “mscfg32.exe”.

Stealth

9 techniques
T1014RootkitEvidence3

The driver acts as the first stage of the EquationDrug platform on Windows 2000+ and implements rootkit functions for hiding the components of the platform.

T1055Process InjectionEvidence2

Next, it crafts and injects a shellcode in “services.exe” or “winlogon.exe”. The shellcode is designed to spawn the loader process from the executable called “mscfg32.exe”.

T1070Indicator RemovalEvidence1

Code Patcher The driver patches OS code to dynamically disable or enable Windows audit logging.

T1070.004File DeletionEvidence1

Panic Disable packet filtering, securely delete driver file, clear related registry keys, set ClearPageFileAtShutdown flag, unbind adapters, delete devices and prepare for unloading.

T1205Traffic SignalingEvidence2

Passive network backdoor (runs Equation shellcode from raw traffic).

T1542Pre-OS BootEvidence2

HDD and SSD firmware manipulation.

T1564Hide ArtifactsEvidence1

The rootkit code in the driver hooks several Native API functions that lets it hide or protect registry keys, files and running processes.

T1564.001Hidden Files and DirectoriesEvidence2

The rootkit code in the driver hooks several Native API functions that lets it hide or protect registry keys, files and running processes.

T1564.003Hidden WindowEvidence1

If the module runs on Win9x, it executes Win9x-specific function RegisterServiceProcess to hide from the Windows Task Manager application.

Defense Impairment

3 techniques
T1112Modify RegistryEvidence2

The module uses a unique algorithm for generating registry value names.

T1685Disable or Modify ToolsEvidence1

The code also patches “SepAdtLogAuditRecord” inside “ntoskrnl.exe” to “retn 4” instead of the first opcode of the function.

T1685.005Clear Windows Event LogsEvidence1

Code Patcher The driver patches OS code to dynamically disable or enable Windows audit logging.

Credential Access

4 techniques
T1040Network SniffingEvidence2

Network traffic interception for stealing or re-routing.

T1056.001KeyloggingEvidence2

Keylogging and clipboard monitoring.

T1555Credentials from Password StoresEvidence2

Collection of cached passwords.

T1555.003Credentials from Web BrowsersEvidence1

Browser history, cached passwords and form auto-fill data collection.

Discovery

6 techniques
T1040Network SniffingEvidence2

Network traffic interception for stealing or re-routing.

T1057Process DiscoveryEvidence2

System information gathering: OS version Computer name User name Locale Keyboard layout Timezone Process list

T1082System Information DiscoveryEvidence2

System information gathering: OS version Computer name User name Locale Keyboard layout Timezone Process list

T1083File and Directory DiscoveryEvidence2

Computer management: Start/stop processes Load drivers and libraries Manage files and directories

T1120Peripheral Device DiscoveryEvidence1

Monitoring removable storage drives.

T1135Network Share DiscoveryEvidence2

Browsing network resources and enumerating and accessing shares.

Lateral Movement

1 technique
T1021.002SMB/Windows Admin SharesEvidence1

Browsing network resources and enumerating and accessing shares.

Collection

7 techniques
T1005Data from Local SystemEvidence1

These include common features such as file collection and the making of screenshots.

T1025Data from Removable MediaEvidence1

Monitoring removable storage drives.

T1056.001KeyloggingEvidence2

Keylogging and clipboard monitoring.

T1113Screen CaptureEvidence2

These include common features such as file collection and the making of screenshots.

T1115Clipboard DataEvidence2

Keylogging and clipboard monitoring.

T1185Browser Session HijackingEvidence1

Monitoring LIVE user activity in web browsers.

T1560Archive Collected DataEvidence2

A dedicated thread (“dumper”) gathers the collected data, compresses the results with LZO appends it every 30 minutes to a file

Command and Control

6 techniques
T1001Data ObfuscationEvidence1

Many encryption algorithms used in communication and information... Network communication encryption... This sub key is used for encrypting and decrypting to send and receive data.

T1071Application Layer ProtocolEvidence2

These include common features such as file collection and the making of screenshots. Sophistication is added by storing stolen data inside a custom-encrypted virtual file system before it is sent to the command and control servers.

T1071.001Web ProtocolsEvidence1

EquationDrug Plugins: Plugin ID File name Description 800C perfcom.dll HTTP communication ... 80BE vnetapi.dll C&C communication via WinHTTP API

T1071.004DNSEvidence1

Reverse DNS resolution (DNS PTR records).

T1090ProxyEvidence1

Passive network backdoor (runs Equation shellcode from raw traffic).

T1205Traffic SignalingEvidence2

Passive network backdoor (runs Equation shellcode from raw traffic).

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

Sophistication is added by storing stolen data inside a custom-encrypted virtual file system before it is sent to the command and control servers.

Impact

1 technique
T1486Data Encrypted for ImpactEvidence1

Sophistication is added by storing stolen data inside a custom-encrypted virtual file system before it is sent to the command and control servers.

Indicators of compromise

Observables

27 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+2 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching27Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping41Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.