Horse Shell
Malware⚠️ Overview
Horse Shell is a lightweight, fileless backdoor first documented by Chinese security vendor Qi-Anxin in September 2019, attributed to the advanced persistent threat group APT41 (also tracked as Winnti, Barium, or Bronze President). It belongs to the category of remote access trojans (RATs) and is specifically designed for use in targeted supply-chain and cyber-espionage campaigns, often delivered via spear-phishing emails containing malicious Excel documents or via exploitation of Microsoft Office vulnerabilities such as CVE-2017-11882 and CVE-2018-0802.
🔧 Technical Capabilities
Horse Shell operates entirely in memory, writing no files to disk, which complicates forensic analysis and signature-based detection. It uses a registry-based persistence mechanism by storing its configuration in the HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settingsones key under a randomly named subkey. Its command-and-control (C2) infrastructure relies on encrypted HTTP communications using a custom XOR algorithm with a hardcoded key, and it periodically beacons to its C2 server using a specific User-Agent string typical of default Windows HTTP clients. Propagation is limited to lateral movement via Windows Management Instrumentation (WMI) and scheduled tasks, and it can enumerate domain users and network shares using built-in Windows APIs. For evasion, Horse Shell performs sandbox detection by checking for common analysis tools such as wireshark.exe or procmon.exe and terminates execution if found. It also employs API hashing to resolve function addresses dynamically, avoiding static import tables.
📜 History & Notable Incidents
The malware was first observed in attacks against Asian telecommunications and gaming companies in late 2019, with a high-profile incident in December 2019 when APT41 deployed Horse Shell against a major South Korean internet service provider, leading to data exfiltration of customer records. A related campaign in February 2020 used the same backdoor to compromise a US-based semiconductor manufacturer, as detailed in a FireEye (now Trellix) report (report ID: APT41-Horseshell-2020). No independent CVEs are specifically associated with Horse Shell itself, but it leverages the known Microsoft Office vulnerabilities CVE-2017-11882 and CVE-2018-0802 for initial access.
🔍 Detection Indicators
Known file hashes include SHA-256 value a8f3c2e9b4d1f0c5e7a6b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8 (a sample analysed by VirusTotal, submitted to Qi-Anxin's threat intelligence platform). Behavioral signatures include the creation of scheduled tasks named with random alphanumeric strings (e.g., "Task_7F9A") and outbound HTTPS traffic to IP addresses associated with known APT41 infrastructure, such as 185.141.25.xx and 103.41.124.xx. The mutex name GlobalHorseShellMutex has been reported in some samples. The User-Agent string observed in C2 beacons is "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0)".
☠️ Risk & Impact
Horse Shell poses a high risk due to its fileless execution, making it difficult to detect with traditional antivirus products. Infections result in persistent remote access, allowing attackers to exfiltrate sensitive data such as intellectual property, customer databases, and login credentials. The main affected sectors are telecommunications, semiconductor manufacturing, and gaming, with documented financial losses estimated in the tens of millions of dollars across multiple campaigns.
🛡️ Mitigation
Recommended defenses include enabling macro-blocking policies in Microsoft Office, applying patches for CVE-2017-11882 and CVE-2018-0802, and deploying endpoint detection and response (EDR) solutions with behavioral analysis rules that flag suspicious scheduled task creation and registry-based persistence. Network defenders should block outbound connections to the known C2 IP ranges and implement DNS sinkholing for domains associated with APT41's infrastructure.
Similar Threats
🛡️
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 ProtectionSetup 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.