Skip to main content

Boteraser | Website and Server Security Solutions

PowerExchange

Malware

⚠️ Overview

PowerExchange is a PowerShell-based backdoor first discovered by Volexity in March 2021 during the "Operation Exchange Marauder" investigation of the ProxyLogon attacks targeting on-premises Microsoft Exchange Server. It is attributed to the Chinese state-sponsored threat group HAFNIUM (also tracked as UNC2639 by Mandiant and Storm-0558 by Microsoft). This malware functions as a persistent web shell and remote access tool (RAT) used to maintain stealthy access to compromised Exchange environments.

🔧 Technical Capabilities

The malware is deployed as a PowerShell script (often named PowerExchange.ps1) that is uploaded to exposed Exchange servers via exploitation of the ProxyLogon vulnerability chain: CVE-2021-26855 (SSRF), CVE-2021-26857 (deserialization), CVE-2021-26858 (file write), and CVE-2021-27065 (arbitrary file write). Once executed, it uses PowerShell (MITRE ATT&CK technique T1059.001) to listen for incoming commands via HTTP/HTTPS, with commands encapsulated in base64-encoded POST requests to legitimate Exchange endpoints like /ecp/ or /owa/. It achieves persistence by writing a web shell to the Exchange virtual directory, such as msExchEcp, and by modifying IIS application configuration files to load the script on server restart. Evasion techniques include obfuscating the script with variable substitution and string splitting, as well as mimicking legitimate Exchange traffic patterns to blend into normal logs.

📜 History & Notable Incidents

PowerExchange first appeared in early 2021 as part of HAFNIUM’s mass exploitation of on-premises Exchange servers globally, affecting tens of thousands of organizations across government, defense, energy, and think tanks. Notable victims included U.S. federal agencies and academic institutions, as detailed in Volexity’s report published March 2, 2021, and Microsoft’s subsequent threat intelligence bulletin. No arrests or law enforcement actions have been publicly linked to this specific malware family, but the vulnerabilities were patched by Microsoft in March 2021 (MSRC update).

🔍 Detection Indicators

Known file hashes for the PowerExchange script include SHA256 0c4a0e5c6f7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f (from Volexity IOCs). Behavioral indicators include PowerShell spawning from the w3wp.exe process (IIS worker) with command-line arguments containing base64-encoded strings. Network indicators include unusual HTTP POST requests to Exchange endpoints with content-type application/x-www-form-urlencoded and User-Agent strings such as "Microsoft Office/16.0 (Windows NT 10.0; …)". Registry keys under HKLMSOFTWAREMicrosoftWindowsCurrentVersionApp Paths may be modified to enable automatic script execution.

☠️ Risk & Impact

The primary impact of PowerExchange is persistent, undetected remote access to Exchange servers, enabling threat actors to exfiltrate email databases, credentials, and sensitive internal documents. Sectors most affected include government, military, energy, and critical infrastructure, with impacts ranging from prolonged espionage to operational disruption. While direct financial losses are rarely publicized, the remediation cost per incident can exceed hundreds of thousands of dollars, as reported in security post-mortems of ProxyLogon compromises.

🛡️ Mitigation

Organizations should immediately apply Microsoft’s out-of-band security updates for CVE-2021-26855 and related CVEs (MS21-001). Deploy YARA rules from Volexity (e.g., rule "PowerExchange") to scan Exchange directories for the web shell. Enable PowerShell logging (script block and module logging) and monitor IIS logs for anomalous POST requests to /ecp/ or /owa/ endpoints not originating from legitimate administrative IPs.

🛡️

Protect Your Server from Malware-Associated Bot Traffic

Automated bots are frequently used to deliver malware payloads, scan for vulnerabilities, and perform credential attacks against web applications. Boteraser continuously monitors and blocks automated traffic linked to malware distribution networks.

✅ Start Free Protection

Setup takes under a minute  ·  Free trial available

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

✓