Threat analysis
Synology NAS ransomware and what service hiding changes
A NAS carries file sharing, backup, collaboration and remote administration all at once, and so it ends up holding a large share of a company’s important data. Once an attacker takes control of the device, the damage can reach production documents, application data, and the backups stored on that same device.
HKEPC recently reported that some Synology NAS devices were hit by ransomware, with files renamed to carry a “.L0CK3D” extension. On 29 October 2026 Synology issued a statement saying it had found attackers exploiting a vulnerability patched in December 2024 to go after devices still running outdated DSM. Because the media and the vendor describe the point of entry differently, not every reported case can be attributed to the same exploit chain.
From an architecture point of view, the question this incident raises is this: before authentication has happened, can an outside source already reach the NAS’s services?
Exposed services mean an attack surface exists before login
To provide remote access, companies often use NAT and port forwarding to publish the NAS’s admin interface or application services to the internet.
In that setup, an outside source needs no valid account to open a network connection to the service and send requests to the web server, the API or other protocol handlers. The username-and-password check is just one control further down the line.
If the flaw sits in the request handling that runs before authentication, an attacker may trigger it directly without going through the normal login. So even with MFA switched on, a company cannot treat it as protection against every unauthenticated remote vulnerability.
Two layers need to be told apart here: the application’s login decides whether a user can operate its functions; network- and service-layer access control decides whether the other side gets the chance to reach the application at all.
- Reachable before authentication
- Application login
- Network / service-layer access control
Text version of this diagram
A NAS published through port forwarding is already handling requests from outside sources before the login check runs.
The request path, five stops left to right
- Any internet source: no account needed.
- Router: NAT / port forwarding.
- Web server · API: protocol handlers.
- Login: password + MFA.
- DSM functions: files, apps, administration.
Markers
- Red bracket over the first three stops: before authentication, any source can send a request this far.
- Under the third stop: a flaw here never goes through login.
- Above the fourth stop: MFA sits only here.
The two bands underneath
- First three stops: network- and service-layer access control, which decides whether the other side can reach the application at all.
- Last two stops: the application login, which decides which functions they may use.
Merak moves access control ahead of the service connection
Merak’s service-hiding architecture denies unauthorised connections by default, placing authentication and authorisation before a connection to the protected service is set up.
Taking a NAS as the example, a deployment can bring the DSM admin interface, file services and related apps under protection and remove the old direct public entrance. Users must first pass Merak’s authentication and authorisation before they can set up an encrypted connection to the designated service.
The point of the design is that the NAS no longer has to take application requests directly from arbitrary internet sources. Attacks that rely on public reachability for scanning and exploitation can have their connection path restricted before the request reaches the NAS.
In this architecture, each control does a different job:
- Default-deny for unauthorised connections: keeps outside sources from reaching protected services directly.
- mTLS mutual authentication: verifies certificates and identity between both ends of the connection.
- MFA: strengthens user authentication and reduces the risk of a single stolen password.
- RBAC service-level authorisation: opens only the services a role needs and limits what can be connected to.
- Authenticated, authorised connection
- Unauthorised source
- Merak authentication and authorisation
Text version of this diagram
Merak authenticates and authorises before any connection is set up and the old public entrance is removed, so the NAS no longer takes application requests from arbitrary sources.
Left: two sources
- Employee / operator: authenticated and authorised; the path passes through Merak and becomes an encrypted connection to the designated service.
- Any internet source (scanning · exploitation): refused in front of Merak, never reaches the NAS.
Middle: Merak service hiding, authenticate before connecting
- Default-deny for unauthorised connections.
- mTLS mutual authentication.
- MFA.
- RBAC service-level authorisation.
Right: the Synology NAS services brought under protection
- DSM admin interface.
- File services.
- Related apps.
Along the bottom
- The old public entrance (NAT / port forwarding): removed, drawn as a crossed-out grey dashed line.
For example, regular employees can be authorised to use NAS file services without being allowed to connect to the DSM admin interface, while operators are given access to the management services according to their role. Passing authentication does not mean being able to reach every internal service.
This kind of service-level authorisation still has to be paired with the NAS’s own accounts, shared folders and file permissions to fully limit what a user can do.
- Can connect
- No path
- Merak service-level authorisation
Text version of this diagram
Service-level authorisation decides which service someone can connect to; the NAS’s own permissions decide what they can do once connected. They are two layers.
Layer 1 · Merak RBAC: which service can they connect to
- Employee → NAS file services: can connect.
- Employee → DSM admin interface: no path.
- Operator → NAS file services: granted by role.
- Operator → DSM admin interface: granted by role.
Layer 2 · The NAS itself: accounts · shared folders · file permissions
- Decides what data they can act on once connected.
- Only both layers together fully limit what a user can do.
Reducing exposure depends on leaving no bypass path
Whether service hiding works depends on whether every access path has been brought under control.
If the NAS is under Merak’s protection but the router still keeps a port forward straight to it, outside sources may be able to bypass authentication. Other remote access entrances, reverse proxies and internal network paths also need to be inventoried alongside it.
A deployment should confirm that the protected services accept connections only from authorised paths, and check network segmentation and firewall rules. Changing the port, hiding the URL or not publishing the DNS name is not, on its own, enough to establish this kind of access restriction.
- Authorised path through Merak
- Path that bypasses authentication
Text version of this diagram
For service hiding to hold, Merak has to be the only way in; any path that reaches the NAS directly lets authentication be bypassed.
The intended path (green)
- Authorised user → Merak (authenticate · authorise) → Synology NAS protected services.
Bypasses authentication, reaches the NAS directly (red dashed)
- Leftover router port forward.
- Other remote access entrances.
- Reverse proxy.
- Internal network paths.
The strip at the bottom
- Changing the port, hiding the URL or not publishing the DNS name does not, on its own, restrict access.
Service hiding reduces reachability; patching and backups handle the rest
Merak reduces the chance that an unauthorised source exploits a NAS service flaw directly, and it is especially suited to protecting services meant only for employees, operators or specific partners.
But service hiding does not remove the device’s own vulnerabilities. If the attack comes from an authorised endpoint that has been compromised, or the ransomware is already running on the NAS, the job still falls to endpoint protection, least privilege, system patching and incident response. And for a legitimate connection with write access, service-level authorisation cannot judge by itself whether each file change is malicious.
NAS protection therefore has to handle three things at once: limit who can reach the services, keep patching exploitable vulnerabilities, and keep backups an attacker cannot easily rewrite or delete.
- The three jobs of NAS protection
- Not covered by service hiding
- Controls it still relies on
Text version of this diagram
Service hiding is the first of the three jobs in NAS protection; the scenarios it cannot cover still need other controls.
Top row: the three things NAS protection has to handle together
- 1. Limit who can reach it (Merak service hiding): open only to verified, authorised identities.
- 2. Keep patching (system patching): hiding does not remove the device’s own flaws.
- 3. Keep hard-to-alter backups: an attacker cannot easily rewrite or delete them.
Below: what service hiding cannot cover → still relies on
- Authorised endpoint, compromised → endpoint protection · least privilege.
- Ransomware already running on the NAS → patching · incident response.
- Legitimate write access modifying files → least privilege · backups.
Merak’s part in this is to shrink the range from which the services can be reached first. Opening the NAS’s management and file services only to authenticated and authorised identities reduces the risk of staying exposed to attacks from the public internet after a vulnerability is announced and before the patch is in.
Terms and further reading
| Term | In one sentence | Source |
|---|---|---|
| NAS | Storage device serving files over a network | Network-attached storage |
| Ransomware | Malware that encrypts data and demands payment | How ransomware gets in |
| Synology-SA-24:20 | Vendor advisory for a critical DSM flaw | Synology security advisory |
| NAT | Translates between private and public addresses | RFC 3022 |
| Port forwarding | Rule sending outside traffic to an inside host | Port forwarding |
| Multi-factor authentication | A second factor on top of the password | NIST SP 800-63B |
| Exploit public-facing app | Breaking in through a flaw in an exposed service | MITRE ATT&CK T1190 |
| Service hiding | Unauthorised parties can neither see nor reach it | What a software-defined perimeter is |
| Default deny | Any connection not allowed is refused | What is zero trust |
| Mutual TLS (mTLS) | Both ends verify each other’s certificates | Mutual authentication |
| Role-based access control | Access granted according to role | NIST RBAC |
| External remote services | Services exposed for remote login | MITRE ATT&CK T1133 |
| Reverse proxy | Takes outside requests on a backend’s behalf | Reverse proxy |
| Attack surface inventory | Listing every externally reachable entrance | Attack surface inventory |
| Network segmentation | Splitting a network into non-routable zones | Network segmentation |
| Endpoint protection | Controls that protect the user’s device itself | Endpoint security |
| Least privilege | Only the access the job actually needs | Principle of least privilege |
| Patch management | Deciding when and in what order to update | NIST SP 800-40 Rev. 4 |
| Incident response | Detecting, containing and recovering from incidents | NIST SP 800-61 Rev. 3 |
| Immutable backup | A copy of data an attacker cannot alter | CISA ransomware guide |