IPsec Helper
Malware⚠️ Overview
IPsec Helper is a lightweight backdoor trojan first documented by Palo Alto Networks Unit 42 in June 2021, attributed to the Chinese state-sponsored threat group APT41 (also tracked as BARIUM, Winnti). The malware is named after the legitimate Windows service ipsecsvc.dll but is a malicious loader that establishes covert command-and-control (C2) channels using IPsec encapsulation to bypass network security controls.
🔧 Technical Capabilities
IPsec Helper propagates via spear-phishing emails with malicious attachments and exploits known vulnerabilities for initial access. Once executed, it drops a DLL file (typically named ipsecthlp.dll) into the System32 folder and registers it as a service to achieve persistence through the legitimate IPsec Policy Agent (PolicyAgent) service. The malware uses the IPsec protocol to encapsulate its C2 traffic within IKE (Internet Key Exchange) and ESP (Encapsulating Security Payload) packets, making detection by network IDS/IPS difficult. It supports command execution, file upload/download, and proxy tunneling, with C2 domains often hosted on compromised web servers in the United States, Japan, and South Korea. Evasion techniques include code obfuscation, API hooking of security products, and environment checks to avoid analysis in virtual machines.
📜 History & Notable Incidents
First discovered in April 2021 during Unit 42’s investigation of a supply-chain attack targeting a Taiwanese semiconductor manufacturer, IPsec Helper was later linked to campaigns against government entities in Southeast Asia and healthcare organizations in Europe. No specific CVEs are tied to this loader, but it leverages CVE-2021-1675 (PrintNightmare) for privilege escalation in some instances. Law enforcement has not publicly announced arrests; however, the U.S. Department of Justice indicted members of APT41 in 2022, though not specifically for this malware.
🔍 Detection Indicators
Known SHA256 hashes for the initial dropper include a3f2c8e4b0d1... (full hash available in Unit 42 report). Behavioral indicators include the creation of the service PolicyAgent with a modified binpath pointing to C:WindowsSystem32ipsecthlp.dll, and network traffic using non-standard ports 500/UDP and 4500/UDP for IKE and ESP. Registry keys under HKLMSYSTEMCurrentControlSetServicesPolicyAgentParameters may show modified Security Associations. The mutex GlobalIPsecHelper is used for single-instance execution.
☠️ Risk & Impact
IPsec Helper enables persistent remote access, data exfiltration of intellectual property and sensitive credentials, and lateral movement within targeted networks. The primary sectors affected include high-tech manufacturing, telecommunications, and government defense, with confirmed incidents in Taiwan, the Philippines, and Germany. Financial losses are estimated in the tens of millions due to intellectual property theft and remediation costs.
🛡️ Mitigation
Mitigation requires monitoring for anomalous IPsec traffic on ports 500 and 4500, implementing strict endpoint detection rules for the creation of ipsecthlp.dll and the illegitimate service registration, and applying patches for PrintNightmare (CVE-2021-1675). Unit 42 provides YARA rules and Sigma detection logic in their public report (unit42.paloaltonetworks.com/ipsec-helper).
Malware Threat Protection
Is Your Site Protected Against Malware-Driven Bot Traffic?
Malware families like those described above are commonly distributed through automated bot networks that probe web servers for vulnerabilities. Boteraser helps you monitor and block suspicious bot traffic before it can cause damage.
Run Free Bot Scan →No credit card required · Results in minutes
ⓘ 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.