NAS Codex › QNAP › Files on your QNAP NAS encrypted by ransomware: what QNAP says to do
Files on your QNAP NAS encrypted by ransomware: what QNAP says to do
QNAP says ransomware has widely targeted NAS devices exposed to the internet without protection. This page puts together QNAP's FAQs on recognizing an infection, recovering files from snapshots, and securing the NAS before you restore data to it. QNAP is clear that it cannot decrypt the files itself.
Written against: QTS and QuTS hero (QNAP FAQs last modified 2022-08-24, 2022-12-16 and 2025-07-02). Last Updated: November 2026. Vendor menus and wording change between versions; if yours differ, follow the vendor page linked under Sources.
Before anything else: if the data on this NAS is not backed up somewhere else, copy it off first. Do not continue with any step on this page until you have.
Fast Answer
Disconnect the NAS from the internet; QNAP suggests removing the default gateway or connecting your computer to the NAS directly with a network cable. If you have snapshots, open Snapshot Manager, find one whose files are not encrypted, set it to Permanent and turn off the snapshot schedule, then restore the folders to an external drive. Without valid snapshots, QNAP says decrypting is generally impossible and you will need your backup.
How to tell it is ransomware
QNAP lists these signs:
- Some files cannot be opened.
- All the files that cannot be opened have the same extension added, for example
.encrypt,.7zordeadbolt. - A README text file appears in every folder, for example
!!!READ_ME_txtorREADME_FOR_DECRYPT.txt.
QNAP says the files are encrypted with a key known only to the ransomware's author, so it cannot decrypt them. To identify the ransomware, it suggests the ID Ransomware service from MalwareHunterTeam or searching for the file extension and the README file name. If the ransomware ran on Windows and encrypted the NAS files through File Explorer, QNAP points to Kaspersky No Ransom and the No More Ransom project. If it runs on the NAS itself, search QNAP's security advisories and FAQ for its name.
For Qlocker specifically, QNAP says the QRescue tool may recover files. For other ransomware, it says the files cannot be recovered and you will need your backup.
Recovering files from a snapshot
QNAP's snapshot recovery FAQ applies to QTS models with snapshots:
- Cut the NAS off from the internet before and after recovery, for example by removing the default gateway or connecting a computer directly with a standard Ethernet cable and no other networks.
- Open Snapshot Manager and confirm the files in the snapshot are not encrypted: their extensions should look normal.
- Set that snapshot's retention to Permanent so it is not deleted automatically.
- Disable the snapshot schedule so new snapshots do not use up storage pool space before your backup is done.
- Restore:
- If you have a USB drive larger than your data, select the folders and use Restore > Restore Folder to, choosing the external drive. QNAP recommends restoring to an external drive or restoring the volume so a large restore does not exhaust the storage pool.
- If the data is large and no external drive is available, use Restore Volume Snapshot. QNAP warns all changes made after the snapshot date are lost, so first back up any files created or changed since then that are not encrypted. Afterwards, restart the NAS, update the firmware, and back up your files (HBS 3 can do this).
- Once the files are backed up, QNAP recommends reinitializing the attacked NAS, updating it to the latest version, securing it, and then copying the files back with HBS 3 or File Station.
Before you put data back: secure the NAS
QNAP says the highest security risks to a NAS are malware and ransomware from the internet. Before copying backup data back, it recommends:
- Turn off port forwarding on your router for the NAS management ports (8080 and 443 by default).
- Turn off UPnP: in myQNAPcloud, go to Auto Router Configuration and deselect Enable UPnP Port forwarding. For remote access, QNAP suggests myQNAPcloud Link or QVPN Service instead.
- Update firmware and apps: Control Panel > System > Firmware Update, and Install Updates > All in App Center.
- Install Malware Remover from App Center and run a scan. QNAP also suggests installing QuFirewall.
- Use strong passwords: at least 8 characters with upper and lower case, a number and a special character, not containing the username. Remove user accounts and apps you do not recognize.
- Change the system port from the defaults (80, 8080 to 8090, 443, 8443) to an unusual number.
QNAP adds that if you are still worried, you can completely reinitialize the NAS before restoring the backup.
Protecting your data from now on
QNAP recommends a 3-2-1 backup strategy with at least one offline backup (an external drive) and one online backup (cloud), using Hybrid Backup Sync, and regular snapshots: Storage & Snapshots > Storage/Snapshots, select the volume, open Snapshot Manager and enable Schedule Snapshot.
When to stop and get help
Check a snapshot before restoring it: QNAP says to confirm its files are not encrypted, and restoring a whole volume snapshot loses every change made after that snapshot. QNAP cannot decrypt the files, so a clean snapshot or a backup is the way back. Keep the NAS off the internet until it is secured.
Questions
Can QNAP decrypt files encrypted by ransomware?
No. QNAP says the files are encrypted with a key only the ransomware author knows. For Qlocker it points to the QRescue tool; for other ransomware it says you will need a backup or a clean snapshot.
How do I recover ransomware-encrypted files on a QNAP NAS?
QNAP says to disconnect the NAS from the internet, find a snapshot whose files are not encrypted, set it to Permanent, disable the snapshot schedule, and restore the folders to an external drive or restore the volume snapshot.
How did ransomware get onto my QNAP NAS?
QNAP says ransomware has widely targeted NAS devices exposed to the internet without protection, and recommends turning off router port forwarding and UPnP and using myQNAPcloud Link or QVPN for remote access.
Sources
Every fact on this page comes from the vendor documents below, opened on 2026-11-17.