UNC4540
- Origin
- 🇨🇳 China
- Motivation
- Espionage
- Capabilities
- Credential theftPersistencePost exploitationDefense evasion
UNC4540 is an uncategorized threat actor tracked by Mandiant for compromises of unpatched SonicWall Secure Mobile Access (SMA) 100 Series appliances, with activity dating to at least 2021. Its operations involve appliance-specific malware designed to steal user credentials, provide remote shell access, and maintain long-term persistence. No additional aliases or subgroups are established. The actor's tooling combines Bash scripts with a TinyShell ELF backdoor supporting reverse-shell and bind-shell access. The malware queries the appliance's session database to extract usernames and hashed passwords belonging to logged-in users. Redundant scripts monitor and restart malware components, while boot-time execution mechanisms preserve access across restarts. A firmware-monitoring component modifies incoming firmware packages before installation, embedding the malware and adding a privileged backdoor account so access survives firmware upgrades. This modification occurs on already compromised appliances rather than through a software supply-chain compromise. The initial compromise vector has not been established. Although affected appliances had known vulnerabilities, no specific vulnerability has been conclusively linked to the campaign. The actor's geographic origin and state sponsorship remain unconfirmed, and no high-confidence connection to ransomware activity has been established.
Targeting
Who, where, and from where this actor operates. Pulled from open-source reporting and Mallory's analyst review.
Where they're from
Attributed origin per open-source reporting.
- China
Tradecraft
10 distinct techniques observed across reporting, grouped by tactic. Hover any cell for the evidence excerpt.
Associated malware families
4 malware families Mallory has associated with this actor across public reporting.
Frequently asked questions
- What malware does UNC4540 use?
- UNC4540 is associated with TINYSHELL, firewalld, geoBotnetd, and iptabled.
- Where is UNC4540 from?
- Mallory's sources associate UNC4540 with China.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.