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.

The request reaches the NAS before anyone logs inA request path running left to right through five stops: any internet source (no account needed), the router (NAT / port forwarding), the web server and API (protocol handlers), login (password plus MFA), and DSM functions (files, apps, administration). The first three stops sit under a red bracket labelled “before authentication: any source can send a request this far”, and the third is marked “a flaw here never goes through login”. MFA is marked on the fourth stop only. Two bands underneath: the first three stops belong to network- and service-layer access control, which decides whether the other side can reach the application at all; the last two belong to the application login, which decides which functions they may use.Before authentication: any source can send a request this farMFA sits only hereAny internet sourceno account neededRouterNAT / port forwardingWeb server · APIprotocol handlersLoginpassword + MFADSM functionsfiles · apps · adminA flaw here never goes through loginNetwork / service-layer control: can they reach the app at allApp login: which functions they may use
  • Reachable before authentication
  • Application login
  • Network / service-layer access control
FIG 01 All three stops under the red bracket come before login. MFA guards only the fourth; a flaw in the third means the request never has to face it.
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.
Merak moves access control ahead of the service connectionTwo sources on the left: at the top, an employee or operator who has passed authentication and authorisation; at the bottom, an arbitrary internet source (scanning and exploitation). In the middle, Merak service hiding, which authenticates and authorises before a connection is set up, listing four controls in order: default-deny for unauthorised connections, mTLS mutual authentication, MFA, and RBAC service-level authorisation. On the right, the Synology NAS, holding the DSM admin interface, file services and related apps. The authorised user’s path passes through Merak and becomes an encrypted connection to the designated service; the arbitrary source is denied by default in front of Merak and never reaches the NAS. A grey dashed line along the bottom stands for the old public entrance (NAT / port forwarding), crossed out as removed.Employee / operatorauthenticated, authorisedAny internet sourcescanning · exploitationMerak service hidingauthenticate before connectingDefault-denymTLS mutual authenticationMFARBAC service authorisationSynology NASDSM admin interfaceFile servicesRelated appsencryptedRefused in front of MerakOld public entrance (NAT / port forwarding): removed
  • Authenticated, authorised connection
  • Unauthorised source
  • Merak authentication and authorisation
FIG 02 All four controls finish before the NAS. A request from an arbitrary source stops in front of Merak, and the old port-forwarding entrance is taken away too.
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.

Service-level authorisation and the NAS’s own permissions are two layersThe upper layer is Merak’s RBAC service-level authorisation, which decides which service someone can connect to. The grid has two roles and two services: a regular employee is “can connect” to NAS file services and has “no path” to the DSM admin interface; an operator is “granted by role” for both. The lower layer is the NAS’s own accounts, shared folders and file permissions, which decide what data can be operated on once connected. The line at the bottom: only both layers together fully limit what a user can do.Layer 1 · Merak RBAC: which service can they connect toNAS file servicesDSM admin interfaceEmployee✓ Can connect✕ No pathOperator✓ Granted by role✓ Granted by roleLayer 2 · The NAS itself: accounts · shared folders · file permissionsdecides what data they can act on once connectedOnly both layers together fully limit what a user can do
  • Can connect
  • No path
  • Merak service-level authorisation
FIG 03 The upper layer decides which service you can reach; the lower one decides what data you can touch once there. Drop either and permissions only cover half the job.
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.

One bypass left open and service hiding no longer holdsAlong the top, one green path: an authorised user reaches the NAS after Merak authenticates and authorises them. On the left, four red dashed lines each reach the same NAS directly from a separate entrance without passing through Merak: leftover port forwarding on the router, other remote access entrances, a reverse proxy, and internal network paths, labelled “bypasses authentication and reaches the NAS directly”. The strip at the bottom: changing the port, hiding the URL or leaving the DNS name unpublished does not, on its own, create this kind of access restriction.Authorised userMerakauthenticate · authoriseSynology NASprotected servicesBypasses authentication, reaches the NAS directlyLeftover router port forwardOther remote access entrancesReverse proxyInternal network pathsChanging the port, hiding the URL or not publishing DNS does not, alone, restrict access
  • Authorised path through Merak
  • Path that bypasses authentication
FIG 04 All four red lines land on the NAS, not on Merak. As long as any one of them remains, the authentication in front can be walked around.
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, and what service hiding cannot coverThe top row lists the three things NAS protection has to handle together: one, limit who can reach the services (Merak service hiding, open only to authenticated and authorised identities); two, keep patching exploitable flaws (the device’s own flaws are still there); three, keep backups an attacker cannot easily rewrite or delete. Below, three scenarios service hiding cannot cover, each paired with the controls that handle it: an authorised endpoint that has been compromised, handled by endpoint protection and least privilege; ransomware already running on the NAS, handled by patching and incident response; a legitimate connection with write access modifying files, handled by least privilege and backups.1Limit who can reach itMerak service hidingopen only to verified, authorised identities2Keep patchingsystem patchinghiding does not remove the device’s flaws3Keep hard-to-alter backupsbackupsan attacker cannot easily rewrite themWhat service hiding cannot coverStill relies onAuthorised endpoint, compromisedEndpoint protection · least privilegeRansomware already running on the NASPatching · incident responseLegitimate write access modifying filesLeast privilege · backups
  • The three jobs of NAS protection
  • Not covered by service hiding
  • Controls it still relies on
FIG 05 Service hiding is only the first of the three columns. The three scenarios below are already inside the door, and patching, permissions and backups take over.
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

TermIn one sentenceSource
NASStorage device serving files over a networkNetwork-attached storage
RansomwareMalware that encrypts data and demands paymentHow ransomware gets in
Synology-SA-24:20Vendor advisory for a critical DSM flawSynology security advisory
NATTranslates between private and public addressesRFC 3022
Port forwardingRule sending outside traffic to an inside hostPort forwarding
Multi-factor authenticationA second factor on top of the passwordNIST SP 800-63B
Exploit public-facing appBreaking in through a flaw in an exposed serviceMITRE ATT&CK T1190
Service hidingUnauthorised parties can neither see nor reach itWhat a software-defined perimeter is
Default denyAny connection not allowed is refusedWhat is zero trust
Mutual TLS (mTLS)Both ends verify each other’s certificatesMutual authentication
Role-based access controlAccess granted according to roleNIST RBAC
External remote servicesServices exposed for remote loginMITRE ATT&CK T1133
Reverse proxyTakes outside requests on a backend’s behalfReverse proxy
Attack surface inventoryListing every externally reachable entranceAttack surface inventory
Network segmentationSplitting a network into non-routable zonesNetwork segmentation
Endpoint protectionControls that protect the user’s device itselfEndpoint security
Least privilegeOnly the access the job actually needsPrinciple of least privilege
Patch managementDeciding when and in what order to updateNIST SP 800-40 Rev. 4
Incident responseDetecting, containing and recovering from incidentsNIST SP 800-61 Rev. 3
Immutable backupA copy of data an attacker cannot alterCISA ransomware guide

Back to the blog