Qlocker
- Type
- Ransomware
- Capabilities
- Initial accessScanningExtortion
- Platforms
- Linux
Qlocker is ransomware targeting QNAP network-attached storage devices, with a large-scale worldwide campaign beginning on April 19, 2021. It affects Linux-based NAS systems used by individuals and small businesses. Rather than implementing a custom file-encryption routine, its Python-based tooling invokes the built-in 7-Zip utility to place victims’ files into encrypted, password-protected archives. Recovery requires a password unique to the affected victim.
Operators scan for vulnerable QNAP devices and exploit exposed software to gain remote access and execute commands. Confirmed attacks abused CVE-2021-28799, an improper authorization vulnerability involving hardcoded credentials in QNAP HBS 3 Hybrid Backup Sync. This allows attackers to compromise vulnerable devices without obtaining legitimate user credentials.
Qlocker leaves ransom notes containing a unique client identifier and directs victims to a Tor-hosted payment service. Initial demands were typically 0.01 Bitcoin, approximately US$550 during the original campaign, in exchange for the archive password. Some victims subsequently received demands for additional payments after paying the initial ransom. The operation affected at least a thousand devices and collected approximately US$350,000 over about a month before its known payment sites became inaccessible.
Associated vulnerabilities
2 CVEs 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
10 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
It was later confirmed that Qlocker ransomware operators used the removed backdoor account to hack into some QNAP customers' NAS devices and encrypt their files.
On June 21, we caught an attack targeting QNAP HBS3 with an exploit of CVE-2021-28799.
Execution
1 technique
Execution
Once in, the ransomware uses the built-in tools to attack the system.
Persistence
2 techniques
Persistence
It was later confirmed that Qlocker ransomware operators used the removed backdoor account to hack into some QNAP customers' NAS devices and encrypt their files.
backup.php... executes the commands that are passed along in the command argument as this script is a common web shell.
Privilege Escalation
2 techniques
Privilege Escalation
Once the weakness is exploited, the malware could obtain the inappropriate permission level of the QNAP NAS involved.
It was later confirmed that Qlocker ransomware operators used the removed backdoor account to hack into some QNAP customers' NAS devices and encrypt their files.
Stealth
2 techniques
Stealth
After the encryption begins, Qlocker will leave a ransom note and delete itself to increase the difficulty for investigation.
It was later confirmed that Qlocker ransomware operators used the removed backdoor account to hack into some QNAP customers' NAS devices and encrypt their files.
Collection
1 technique
Collection
Qlocker is a Python-based ransomware that uses the 7-Zip utility to encrypt the files in the NAS with a generated password.
Command and Control
1 technique
Command and Control
QNAP owners found a !!!READ_ME.txt ransom note explaining that their files were encrypted and needed to visit a Tor site to pay a ransom to get their files back.
Impact
2 techniques
Impact
QNAP NAS device owners worldwide suddenly discovered that their device's files were replaced by password-protected 7-zip archives.
This script deletes snapshots of the NAS so that a user cannot recover files from those snapshots.
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.