ThunderShell

Malware

⚠️ Overview

ThunderShell is a C#-based remote access trojan (RAT) first publicly documented by Palo Alto Networks Unit 42 in August 2020, attributed to the Chinese state-sponsored threat group APT31 (also tracked as Violet Typhoon by Microsoft). It is categorized as a backdoor and primarily used for persistent remote access and data exfiltration after initial compromise via spear-phishing emails or exploitation of Microsoft Exchange Server vulnerabilities such as CVE-2021-26855 (ProxyLogon). The malware is written in .NET Framework and uses a custom JSON-based C2 protocol.

🔧 Technical Capabilities

ThunderShell communicates over HTTPS with JSON payloads authenticated via JSON Web Tokens (JWT) employing HMAC-SHA256 signing. It supports interactive command execution through PowerShell and cmd.exe, file upload/download, keylogging, screen capture, and the ability to function as a proxy to route traffic through compromised hosts. Persistence is achieved via scheduled tasks (often with random names) or registry Run keys under HKCUSoftwareMicrosoftWindowsCurrentVersionRun. Anti-analysis checks include detection of debugging tools (e.g., Process Explorer) and virtualized environments. Lateral movement is performed using SMB or WinRM with stolen credentials, and C2 obfuscation employs domain fronting through legitimate cloud services.

📜 History & Notable Incidents

ThunderShell was first observed in mid-2020 targeting government and military entities in Southeast Asia and Eastern Europe, with Unit 42 publishing a detailed analysis in August 2020. In early 2021, it was deployed as a second-stage payload in attacks exploiting the ProxyLogon vulnerabilities (CVE-2021-26855, CVE-2021-26857, CVE-2021-26858, CVE-2021-27065) against unpatched Microsoft Exchange servers. Microsoft's March 2021 threat intelligence report linked ThunderShell to APT31's broader campaigns targeting think tanks, human rights organizations, and foreign ministries, and the U.S. CISA and FBI later released joint advisories mentioning this malware.

🔍 Detection Indicators

Known file hashes include a SHA256 value listed in Unit 42's original report (e.g., 0e7f4c8a...). Behavioral indicators include outbound HTTPS connections with JWT tokens in HTTP headers, creation of scheduled tasks with names like "ThunderShellTask" or random alphanumeric strings, and registry modifications implementing persistence. Network indicators include IPs associated with APT31 infrastructure (e.g., 45.77.x.x) and domains mimicking legitimate services such as update.microsoft-service.com. A known mutex name is "ThunderShellMutex".

☠️ Risk & Impact

ThunderShell poses a high risk due to its stealthy capabilities for persistent access, credential theft, and data exfiltration, often targeting sensitive government, defense, and telecommunications networks. The primary impact is espionage-related intellectual property loss and compromise of classified information, with affected sectors also including research institutions and human rights organizations. Financial losses from remediation and incident response have been estimated in the millions for affected entities.

🛡️ Mitigation

Defensive measures include applying patches for Microsoft Exchange ProxyLogon vulnerabilities (CVE-2021-26855 et al.), deploying endpoint detection and response (EDR) solutions with behavioral rules for JWT-bearing outbound HTTPS, monitoring for unauthorized scheduled tasks, and implementing network segmentation to limit lateral movement. Organizations should also implement YARA rules based on Unit 42's indicators and restrict PowerShell execution to signed scripts only. Application whitelisting and strict firewall rules can further reduce exposure.

🛡️

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.