QSnatch
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasion
- Platforms
- LinuxNetwork device
QSnatch is a QNAP-focused malware family targeting network-attached storage devices. It has been active in multiple campaigns since at least 2014 and became widely known for large-scale compromises of internet-exposed QNAP NAS systems. The malware is commonly characterized as a backdoor trojan and has been associated with long-term, stealth-oriented access rather than overt monetization.
QSnatch infects QNAP NAS devices and establishes persistence by modifying system behavior to interfere with legitimate firmware updates, helping compromised devices remain vulnerable and under attacker control. It has been reported to disable or evade security tooling on affected systems and to use a domain generation algorithm to locate command-and-control infrastructure. Samples have been described as shell scripts, including SHC-compiled ELF shell scripts, and the malware appears to integrate into device firmware execution flow.
Its capabilities include credential theft through fake administrative login mechanisms and credential-scraping components, collection and exfiltration of files such as configuration and log data, remote code execution through an SSH backdoor, and webshell-style remote access. QSnatch can also retrieve and execute additional malicious code from its command-and-control infrastructure, making it a flexible post-compromise platform. Reporting has additionally noted theft of user data including passwords and multifactor-related settings.
The initial infection vector has not been conclusively identified in the available reporting, though unpatched or exposed QNAP devices have been repeatedly highlighted as at risk. Victimology has been broad and opportunistic, with infections observed globally and especially high counts in North America and Europe. Public reporting has not conclusively attributed QSnatch to a known threat actor, and the operators' objectives have remained unclear, though some assessments have suggested an espionage-oriented design due to its emphasis on persistence, credential capture, and data theft.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Stealing credentials by installing a fake login web app
Execution
1 technique
Execution
Once in, the ransomware uses the built-in tools to attack the system.
Persistence
2 techniques
Persistence
The attacker modifies the system host’s file, redirecting core domain names used by the NAS to local out-of-date versions so updates can never be installed.
Webshell functionality for remote access
Stealth
1 technique
Stealth
before anything else, it clears out the related MalwareRemover rules to remain undetected.
Defense Impairment
2 techniques
Defense Impairment
The attacker modifies the system host’s file, redirecting core domain names used by the NAS to local out-of-date versions so updates can never be installed.
To start things out, it disables both the embedded ClamAV antivirus shipped with QNAP and the McAfee Antivirus...
Credential Access
1 technique
Credential Access
CGI password logger This installs a fake version of the device admin login page, logging successful authentications and passing them to the legitimate login page.
Collection
1 technique
Collection
CGI password logger This installs a fake version of the device admin login page, logging successful authentications and passing them to the legitimate login page.
Command and Control
5 techniques
Command and Control
QSnatch is a malware that infects QNAP NAS devices. It collects and exfiltrates user credentials from vulnerable devices, and can also load malicious code from its command and control (C2) servers.
using the following HTTP GET request: HTTP GET https://[generated-address]/qnap_firmware.xml?=t[timestamp]
It collects and exfiltrates user credentials from vulnerable devices, and can also load malicious code from its command and control (C2) servers.
README.md ... Domain Generation Algorithms (DGAs) of Malware reimplemented in Python.
Using encryption for all network communications
Exfiltration
1 technique
Exfiltration
When run, QSnatch steals a predetermined list of files, which includes system configurations and log files. These are encrypted with the actor’s public key and sent to their infrastructure over HTTPS.
Observables
62 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.