Ransomware-Encrypted File Server Recovery: Shared Folders, Shadow Copies and What Can Be Saved
The shared folder on the office file server is where most businesses keep their working documents: accounts, invoices, contracts, drawings, scans. When ransomware reaches it, thousands of files get a new extension overnight, ransom notes appear in every folder, and nobody can open anything.
What can be saved depends less on the ransomware family than on how the encryption reached the server, what recovery points the server had, and how large the files are. This guide goes through each, in the order worth checking.
First: did the encryption run on the server, or over the network?
There are two very different cases. In the first, the attackers had administrator access to the server itself and ran the ransomware there. They then usually delete the server's shadow copies and backups before encrypting. In the second, the ransomware ran on one user's PC and encrypted the shares that PC had mapped, over the network. The PC's user has no right to delete the server's shadow copies, so they are often still intact.
A quick clue is the owner of the ransom note files in the shared folders: in the file properties, under Security and Advanced, the owner is the account that created them. If it is an ordinary user account, the encryption most likely came from that user's PC, which should be disconnected first.
Check the server's own recovery points
Before anything else, and before anyone restores or cleans anything, check what the server still has. Previous Versions (right-click a folder, Properties, Previous Versions) shows the Volume Shadow Copies of that volume; if versions from before the attack are listed, whole folders can be copied out from them. On a NAS, check the storage snapshots, such as Btrfs snapshots on Synology or snapshots on QNAP, which ransomware on a PC cannot reach.
Also check copies that live outside the server: OneDrive and SharePoint keep earlier versions of synced files, DFS replicas may sit on another server, and the backup system may still hold a clean set if its repository was not reachable from the network. Copy anything you find to separate storage at once: shadow copies are deleted automatically when the volume runs short of space.
Deleted originals on the server's disks
Some families do not overwrite each file in place. They write an encrypted copy as a new file and then delete the original. The original's data stays on the disk until the space is reused, so on a server with hard disks that has not been written to much since the attack, a part of the originals can often be recovered with their folder structure. On SSDs, TRIM usually clears deleted space within minutes, so this works far less often.
This is the main reason to stop using the volume immediately: every new file written after the attack can overwrite an original that was still recoverable.
What partial encryption leaves in large files
Most families encrypt small files completely and large files only in part, often only the start, or the start and the end. Large PDFs, videos, Outlook PST files, CAD drawings and archives therefore often keep most of their content. PDFs can be rebuilt page by page from the clear middle of the file, videos made playable again, and Office documents and ZIP archives, which keep their index at the end of the file, partly rebuilt when only the start was encrypted.
Small files are the hard part. A Word document or a spreadsheet of a few hundred kilobytes is usually encrypted from the first byte to the last, and with a strong cipher it cannot be recovered without the attackers' key or another copy.
A real case: 26,695 encrypted files on one shared folder
In one case, a company's shared tax and invoice folder was encrypted with the .habanero11 extension. Measured file by file, every file up to 2 MB, 26,417 of them, was encrypted completely, and larger files had their first and last 2 MB encrypted. We said at the start that the fully encrypted files could not be recovered without the key.
From the larger files, 78 PDF documents with 1,062 pages were rebuilt and checked as readable, three spreadsheets were partly rebuilt and two screen recordings were made playable again. It was a small part of the folder, and the report listed exactly which files were rebuilt and which needed the key or another copy. That is what an honest file server assessment looks like.
What to do in the first hours
Disconnect the infected PCs and the server from the network, but leave the server switched on and do not restore, clean or reinstall anything yet. Check and copy out the Previous Versions and NAS snapshots first. Do not rename encrypted files, do not run decryptors found online, and keep one ransom note and a few encrypted samples for identification. In India, report the incident to CERT-In within six hours of noticing it.
Questions and answers
Can files on a ransomware-encrypted file server be recovered?
Often a good part of them. Check Previous Versions and NAS snapshots first, since they are often intact when the encryption came from a PC over the network. Deleted originals and the clear parts of large files can also be recovered. Small files encrypted completely need the key or another copy.
Why are the shadow copies still there after the attack?
When ransomware runs on a user's PC and encrypts mapped network shares, it has no right to delete the server's shadow copies. When the attackers run it on the server itself with administrator rights, they usually delete them first.
Should we restore from Previous Versions straight away?
Copy them out to separate storage first rather than restoring over the encrypted folders. Shadow copies can disappear when the volume runs short of space, and a restore writes to the disk that may still hold recoverable deleted originals.
Our documents are all small Word and Excel files. What are the chances?
Without a shadow copy, snapshot, backup or synced version, low: small files are usually encrypted completely. That is why the recovery points are checked first. We tell you after a free assessment what is realistic before any paid work.
Ransomware data recovery service →
Facing this problem? Contact us now.
We have already solved 656+ ransomware and data recovery cases: encrypted and corrupted SQL Server, Oracle and MySQL databases, Tally, Busy and Marg ERP data, Veeam backups, VMware and Hyper-V virtual machines, RAID and NAS. Send us the details and we tell you what we can recover.
- ✓ Free assessment before you pay anything
- ✓ No data, no charge
- ✓ NDA on request
Email: info [at] asittech.com · Mon–Fri, 9:00–18:00 IST