Skip to main content

Hit by ransomware? Isolate affected systems now. Do not reboot or reformat.

SheMo Noransom舍末无勒

Scenario solution

File Servers and NAS Encrypted by Ransomware

  • Windows Server 文件服务
  • Linux Samba / NFS
  • 通用 NAS 与 iSCSI 存储
  • DFS 命名空间
  • 共享盘映射
  • SVN / Git 服务器
  • 图纸与档案共享库

When shared folders on a file server or NAS are encrypted, drawings, contracts, archives, quotations and design sources all become unusable at once — and mapped drives spread the impact to every endpoint. This page covers how to gauge spread, what shadow copies and snapshots realistically offer, and how to sequence recovery by business value.

Typical symptoms

  • Files across shared folders carry appended extensions — .locked, .phobos, .[email].makop, .[8 random chars] — with a ransom note dropped in each directory level
  • On endpoints, files on mapped drives (Z:, Y:) show blank icons and will not open, and Office reports an invalid file format
  • The file server's disk IO is saturated for a long period, or the event log shows mass file rename and delete activity
  • Shadow copies (Previous Versions) have been cleared, with vssadmin activity visible in the logs
  • Shared folders and the recycle bin on the NAS are encrypted together, and the NAS's own backup jobs fail or have been disabled
  • Unknown administrator accounts appear on the server, RDP logons originate from external IPs, and antivirus has been uninstalled or given directory exclusions

Business risk & common mistakes

File-server encryption damages differently from a database: it is not one large broken file but thousands of business documents failing at once, with value distributed very unevenly — a single tender package, an as-built drawing set or one client contract may matter more than the rest of the share combined. Recovery here is therefore less a single technical problem than a prioritisation problem.

The spread pattern is distinctive too. Having gained access to one domain endpoint or server, attackers enumerate network shares and encrypt outward through mapped drives, DFS namespaces and any share with write permission. Where the compromised account is a domain administrator or holds broad share rights, one execution can cover an entire file-service cluster. Public reporting shows the Phobos lineage — including its Makop derivative — breaks in chiefly through weak-password RDP exposed to the internet, and CISA has issued a dedicated Phobos advisory; GlobeImposter and Crysis/Dharma spread similarly. These families appear persistently in Chinese file- and application-server encryption cases.

Business risks and mistakes:

  • Backups destroyed alongside. Where the backup target is a shared folder on a NAS to which the server has write access, backup files are encrypted with everything else — the single most common cause of backup failure.
  • Everyone reconnecting shares, causing a second wave. Restoring the network before the source is eradicated lets still-infected endpoints re-encrypt recovered files.
  • Running recovery software on the original volume and writing back to the same disk.
  • Deleting encrypted files to free space. Those files may be the only remaining material; deleting them removes both repair and carving options.
  • Rebuilding the RAID, initialising the storage pool or resetting configuration on a NAS, destroying recoverable underlying data.
  • Believing that "files come back once antivirus cleans it." Eradicating malware and recovering data are two separate jobs.

We do not recommend paying, and we do not negotiate on your behalf.

Our response plan

  1. Disconnect shares and map the blast radius

    Immediately disconnect the file server and NAS from the network, or at minimum stop SMB / NFS services, and map the blast radius at the same time: which endpoints are still running the encryptor, which shares carry write permission, and which hosts the DFS and mapped-drive topology reaches. Do not rush to power off. Then image or snapshot the storage volumes read-only. Evidence includes encrypted samples, ransom notes, event logs (4624 / 4625 / 4720 / 7045), SMB session records, share permission configuration, and antivirus logs plus any exclusions that were added.

  2. Identify the family and encryption characteristics

    Determine the family from extension naming conventions, ransom note filenames and contact-address patterns — Phobos, Makop, GlobeImposter and the Crysis/Dharma lineage feature heavily here — and check whether a public decryptor exists. At the same time, sample different file types for entropy: many families encrypt only the header, or in segments, above a certain file size. That means large design sources, video, archives and VM images may carry real repair value, while small files such as Office documents and PDFs are usually encrypted in full.

  3. Assess recoverability and build a business priority list

    Two tables are essential here. First a technical recoverability table: surviving shadow copies and NAS snapshots, backups and offline copies, the repair value of partially encrypted large files, the scope for carving deleted files, and whether a public decryptor applies. Second a business priority table: confirm with each department which directories and files matter most — active project documentation, current contracts, accounting vouchers, live tender packages — and direct effort there first, rather than working through directories in order.

  4. Recover in batches and prevent re-encryption

    Recover onto a clean new server or in an isolated environment: build a clean share first, then load data in priority batches. For sequencing, grant a small group read-only access for verification, and open write access only once the content checks out. Keep source endpoints off the network throughout, until the estate has been swept and cleaned. Validate every batch by opening samples — do the drawings open, are the documents complete, do the archives extract — rather than counting files.

  5. Govern permissions, rebuild backups, and sign off

    Hardening here centres on permissions and backup architecture. Tighten share permissions to the minimum per department and project, removing Everyone / Full Control; stop forwarding 3389 publicly in favour of a jump host with MFA; remove rogue accounts and persistence; and close patch and EDR coverage gaps. Rebuild backups so the target is not a share the production server can write to — use an independent backup host or immutable storage, and enable read-only or immutable snapshots on the NAS. Sign off item by item against the business list, with an incident report and remediation plan.

Recovery paths

In file-share incidents the value density is more dispersed than in database cases, so assessment must run in two directions: by file type and by directory value.

Path 1: shadow copies and snapshots. Check first, but set expectations. Windows shadow copies are almost always deleted with vssadmin by the encryptor, so the success rate is low. By contrast, read-only NAS snapshots, storage array snapshots and hypervisor snapshots survive far more often, because they sit outside the permission scope of the encrypted filesystem. This is the resource most worth verifying first.

Path 2: backups and offline copies. The question is reachability. A backup written to an SMB share the production server can write to has very likely been encrypted; one written to an independent backup host, immutable storage, tape or a periodically detached external drive is worth a great deal. Entropy-check the backup files themselves, to confirm they are not present-but-header-encrypted.

Path 3: partial-encryption repair on large files. For speed, many families encrypt only the header or selected segments of files above a size threshold. That matters here: CAD / BIM sources, video assets, database exports, archives and VM images often carry substantial repair value, recoverable by rebuilding headers and extracting unencrypted segments. Small files such as Office documents and PDFs are usually fully encrypted, leaving limited room.

Path 4: carving and residual recovery. Encryptors typically read the original, write a new file, then delete the original — and deleted originals can be carved from unallocated space while they remain unoverwritten. This path works comparatively well for small files, which is why stopping all writes to the affected volume immediately is so important: it directly determines how much of this path survives.

Path 5: distributed and endpoint-local copies. Do not overlook local copies and caches on staff laptops, version history in OneDrive or enterprise sync folders, email attachments, files transferred over messaging apps, print server spool caches, SVN / Git history, and archived project media. In drawing and contract recovery these frequently supply the critical missing files.

Path 6: public decryptors, depending on family and version, validated against a copy.

Stated plainly: where small files were fully encrypted, snapshots and backups both failed, and the original volume has since been heavily written, the recoverable proportion drops noticeably. We do not promise "100% recovery"; the assessment sets expectations per directory and file type. No ransom payment, no negotiation.

Common ransomware families

Hardening recommendations

  • Minimise share permissions. Scope shares by department and project, remove Everyone / Full Control, and give ordinary users read-only access to archive directories. The narrower write access is, the smaller a single encryption run's reach.
  • Keep 3389 and SMB ports off the public internet. Public reporting shows weak-password RDP is the principal entry point for Phobos, Makop and GlobeImposter; route all remote access through VPN plus a jump host with MFA.
  • Separate backup targets from production permissions. Never write backups to a share the production server can write to; use an independent backup host, immutable storage or tape, and detach one copy regularly.
  • Enable read-only or immutable snapshots on the NAS or storage. This is the most effective single defence here, because it sits outside the permission scope of the encrypted filesystem. Close NAS internet access and port forwarding at the same time.
  • Shadow copies must not be the only line of defence, but enable them alongside tamper protection, and turn on shadow-copy protection and ransomware behaviour blocking in EDR.
  • Manage endpoints too. Mapped drives are the spread channel, so endpoints need EDR, macro restrictions and no standing local administrator rights; local data on key staff machines belongs in the backup scope as well.
  • Patch the file server and govern its accounts. Regularly remove departed and dormant accounts, disable unnecessary local administrators, and enable failed-logon alerting and account lockout.
  • Drill recovery. Every six months, fully restore one department's directory tree, verifying the backup chain, permissions and real usability while recording actual RTO.

Emergency response

Data already encrypted? Stop and let an engineer look first

We do not pay ransoms and we do not negotiate with attackers. Engineers run a free assessment first, then propose a recovery plan and a firm quote.

Related questions

Related industries

FAQ

Frequently asked questions

  • Hundreds of thousands of files on our share are encrypted — how much can be recovered?

    The recovery rate varies sharply by file type, so a single blanket percentage is meaningless. The general pattern: large files — CAD/BIM sources, video, archives, database exports — have more room, because many families encrypt only headers or segments above a size threshold. Small files (Office, PDF, images) are usually fully encrypted, and depend instead on snapshots, backups, carving the deleted originals, and endpoint-local copies. So during assessment we sample encryption coverage across file categories and give expectations per directory and type rather than one number.

  • Previous Versions is empty — is there anything left?

    Deleted shadow copies are the norm — virtually every major family removes them — so this does not mean recovery is over. The copies worth checking are those outside the same permission domain: read-only NAS snapshots, storage array snapshots, hypervisor snapshots, backups on an independent backup host, and offline media. There is also a commonly overlooked category: copies on endpoints and sync services, email attachments, version control history and archived project media. All of these are inventoried during assessment.

  • Can we delete the encrypted files to free up space?

    Do not delete them. Encrypted files retain value in two situations: if the family has a public decryptor, or keys later leak, they are the only material that can be decrypted; and where large files were only partly encrypted, content can be recovered by rebuilding headers and extracting unencrypted segments. More importantly, deletion writes to the original volume and overwrites the fragments of the originals the encryptor deleted, directly reducing what carving can recover. Keep things as they are, image the volume, and work on the copy.

  • Why were our backups encrypted as well?

    Usually for one reason: the backup target was a shared folder the production server had write access to. As the encryptor enumerates network shares it follows write permissions outward, and the backup directory sits squarely in that path. Other causes include a backup server joined to the same domain using domain administrator credentials, a NAS backup job that dutifully synchronised the already-encrypted files, and theft of the backup software's own credentials. The remediation is clear: the backup target must not be writable from production, immutable backups should be enabled, and one genuinely offline copy retained.

  • Could it be encrypted again after recovery?

    If the source is not eradicated first, very likely. The typical pattern: endpoints or servers still carrying the payload and its persistence, attacker accounts or SSH keys still present, and the entry point — exposed RDP, an unpatched flaw, leaked VPN credentials — still open. Our process requires three things before recovery begins: a full sweep and eradication, a complete credential reset, and closing the entry point with patching. Recovery then validates in an isolated segment, returns to production in batches, and keeps heightened monitoring in place afterwards.

Updated