How do you protect a NAS from ransomware?
Protect your NAS (Network-Attached Storage) by always keeping it up to date: bots search the internet for NAS devices with a known flaw that hasn't been fixed.
NAS
A NAS (Network-Attached Storage) is a small computer full of disks. It’s plugged into your router and shares the whole family’s files, like your photos. On a Synology NAS, the system is called DSM (DiskStation Manager). Your PC opens folders on it, and you configure it through a web page.
The risk shows up when the NAS becomes reachable from the internet. In late October 2026, Synology warned that attackers are exploiting a known flaw against NAS devices running an outdated DSM. Their goal: encrypt the data and demand a ransom. The flaw in question has been fixed since December 2024. So the protection already exists: it’s the update.
What a NAS actually does
Your PC opens the NAS’s folders with a sharing protocol: SMB (Server Message Block), on TCP (Transmission Control Protocol) port 445. With SMB 3.1.1, when SMB encryption is turned on, Windows negotiates AES-128-GCM by default. The traffic then travels as if in a sealed envelope on your home network. Be careful: this encryption protects the data during the trip, not once it’s stored on the disks.
To configure the NAS, you go through the DSM web administration page. It listens on port 5000 for HTTP (HyperText Transfer Protocol) and on port 5001 for HTTPS (HTTP Secure). This login page is what matters for the rest of the story.
How an exposed NAS gets attacked
- You open remote access. You want to see your photos while on vacation. Either you open a port forward on your router, or you turn on QuickConnect, Synology’s relay.
- The page becomes reachable. Either way, the NAS login page can be reached from the internet. QuickConnect relays the traffic without a port forward, but in 2024, NAS devices reachable this way were among the devices exposed to a flaw named RISK:STATION.
- Bots scan the internet. Bots scan the internet constantly. They look for NAS devices with a known flaw that hasn’t been fixed.
- The ransomware encrypts everything. On a NAS with an outdated DSM, the attackers exploit the flaw to encrypt the data and demand a ransom.
The weak point isn’t remote access itself. It’s the flaw left open. So a NAS reachable from the internet must always be up to date.
RAID is not a backup
Many people think: “My two disks in RAID (Redundant Array of Independent Disks) are my backup.” That’s wrong. Mirrored RAID writes the same files to every disk in the array. When ransomware encrypts your files, RAID also copies the encrypted files, onto both disks at once. So you have no clean copy set aside.
What you can do
- Open DSM, then go to Control Panel > Update & Restore > DSM Update, and install the latest version. Depending on the version, the tab’s name may be written a little differently.
- In Update Settings, turn on automatic updates.
- Check whether you’ve opened a port forward on your router or turned on QuickConnect. If so, your NAS is reachable from the internet and must always be up to date.
- Don’t count on RAID as a backup: it also copies the encrypted files.