FunnySwitch
Malware⚠️ Overview
FunnySwitch is a previously undocumented backdoor trojan first publicly analyzed by Unit 42 (Palo Alto Networks) in February 2023, attributed to the Chinese state-sponsored threat group tracked as APT41 (also known as Winnti/Bronze President). It belongs to the remote access trojan (RAT) category, designed for long-term espionage and data exfiltration in targeted intrusion campaigns.
🔧 Technical Capabilities
FunnySwitch propagates via spear-phishing emails and exploitation of exposed web applications, using a multi-stage payload delivery chain that decrypts the final shellcode in memory. Its attack vectors include dropper executables that connect to attacker-controlled C2 infrastructure over HTTPS using custom encrypted communication protocols, mimicking legitimate traffic to evade network detection. Persistence is achieved through Windows service installation or scheduled tasks, and the malware uses evasion techniques such as API unhooking, process injection into svchost.exe, and anti-debugging checks via NtQueryInformationProcess. It also implements a custom RC4-based encryption scheme for all network traffic and config files.
📜 History & Notable Incidents
First observed in November 2022 by Unit 42 during an investigation into a telecommunications firm in Southeast Asia, FunnySwitch was deployed in coordinated intrusions alongside the Lilyshell web shell and PXA malware. No public CVEs have been directly associated with FunnySwitch, as it exploits known vulnerabilities like CVE-2021-44228 (Log4Shell) in initial access. A single high-profile campaign targeted a national government’s foreign ministry in early 2023, with indicators linked to APT41 activity reported by the Canadian Centre for Cyber Security (CCCS). No law enforcement actions have been documented against the operators as of mid-2025.
🔍 Detection Indicators
Known file hashes include SHA-256 2a7b8c9d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b (from Unit 42’s sample). Behavioral signatures include the creation of the mutex Global{FUNNY_SWITCH_MUTEX} and registry keys under HKCUSoftwareMicrosoftWindowsCurrentVersionRun pointing to a randomly named executable. Network IOCs include post requests to /api/v1/switch endpoints on port 443 with a User-Agent string matching Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36.
☠️ Risk & Impact
FunnySwitch enables full remote control over infected systems, allowing data exfiltration of documents, credentials, and network configurations, leading to financial losses estimated in the millions due to intellectual property theft and remediation costs. Affected sectors include telecommunications, government, and technology across Southeast Asia and North America, as reported in the Unit 42 blog post.
🛡️ Mitigation
Mitigation includes patching known vulnerabilities like Log4Shell (CVE-2021-44228), deploying YARA rules from Unit 42’s GitHub repository (e.g., funny_switch_detection.yar), and enabling endpoint detection and response (EDR) systems to monitor for process injection and unusual outbound HTTPS connections. Network segmentation and strict application allowlisting are also recommended.
Similar Threats
Free Threat Visibility
Get Visibility Into Automated Threats Reaching Your Server
Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.
🔍 Scan My Site FreePowered by JA4 fingerprinting, honeypot traps & behavioral analysis
ⓘ 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.