Skip to main content
Mallory
Threat actor

UNC4540

Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVEs0Associated
Malware4Families
ATT&CK10Techniques
IOCs0Tracked
Origin
🇨🇳 China
Motivation
Espionage
Capabilities
Credential theftPersistencePost exploitationDefense evasion
Also known asUNC4540

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.

Are they targeting you?See whether this actor's campaigns touch your sector, your geography, or the products you run, and get alerted when that changes.
Check your exposure
Operational profile

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
MITRE ATT&CK

Tradecraft

10 distinct techniques observed across reporting, grouped by tactic. Hover any cell for the evidence excerpt.

6 of 15 tactics15 techniques
= intelligence reports citing the technique
TA0001Initial Access1 technique
T1190Exploit Public-Facing Application
TA0002Execution1 technique
T1059Command and Scripting Interpreter
T1059.004×2Unix Shell
TA0003Persistence4 techniques
T1037Boot or Logon Initialization Scripts
T1037.004RC Scripts
T1136Create Account
T1136.001Local Account
T1505Server Software Component
T1505.003Web Shell
T1543Create or Modify System Process
TA0004Privilege Escalation2 techniques
T1037Boot or Logon Initialization Scripts
T1037.004RC Scripts
T1543Create or Modify System Process
TA0006Credential Access1 technique
T1003×2OS Credential Dumping
TA0011Command and Control1 technique
T1219Remote Access Tools
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what's public. Mallory adds the parts that aren't: whether this actor's tooling has touched your footprint, the IOCs they're burning right now, and the detections to deploy next.
Target overlapMatch sector + geo + tech-stack targeting against your real footprint.
Tradecraft mapping10MITRE ATT&CK techniques reported for this actor, grouped by tactic.
Associated malware4Families linked to this actor, with IOCs and behavior.
Associated CVEsCVEs linked to this actor, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
ObservablesDomains, IPs, and hashes tied to this actor, refreshed continuously.