EN
  • English
  • Русский
  • ქართულიsoon
  • Українськаsoon
  • Shqipsoon
  • Azərbaycancasoon
  • Türkçesoon
Get in touch
Crypto exchangersHotels & apartmentsComputers & phonesIf you have been hacked

Ransomware Encrypted Files: What to Do in the First Hours

Ransomware encrypted your files? Disconnect from the network, preserve evidence, find a free decryptor, change passwords, notify and restore from backups.

Читать на русском →

On this page

One morning the files on the front desk or accounting computer won't open, they have a new extension, and there is a ransom note on the desktop. Below is what to do, in order: the first 15 minutes, the first hours, the first 72 hours and recovery. Print this in advance: on the day of the infection, the computer holding this article may be encrypted too.

Plan

Step What we do When
1 Disconnect infected computers from the network without shutting them down first 5 minutes
2 Stop the spread: shared folders, NAS, cloud storage first 15 minutes
3 Record the ransom note and assess the scope first hour
4 Identify the ransomware and look for a free decryptor first hour
5 Change passwords from a clean device first hours
6 Preserve evidence before recovery
7 Notify: data protection regulator, CERT, police, Booking.com, bank within 72 hours
8 Recover: clean install and backups days 1–3
9 Close the entry point and prepare for next time within a week

What real attacks have shown

  • Sophos, The State of Ransomware 2024: the most common root causes are exploited vulnerabilities in internet-facing systems and stolen credentials, followed by malicious emails. In almost every attack, the attackers also tried to get to the backups.
  • Maersk, NotPetya (2017): the company recovered thanks to a single domain controller that happened to be offline during the attack, a copy that couldn't be reached over the network.
  • Modern ransomware usually steals data first, then encrypts it, and threatens to publish it. In other words, it is also a leak of guests' or customers' personal data.

What follows from this:

  1. Encryption spreads over the network to shared folders and the NAS → disconnect the network and shared resources immediately (steps 1–2).
  2. A cloud folder syncs the encrypted files → stop syncing (step 2).
  3. Free decryptors exist for some families → identify the family before making any decisions (step 4).
  4. Passwords may already have been stolen → from a clean device, change everything that was entered on the infected computers (step 5).
  5. This is also a data breach → notification under the personal data law within 72 hours (step 7).
  6. What saves you is a backup that can't be reached over the network → restore from a removable drive or versioned cloud storage (step 8).
  7. If you don't find the entry point, you'll be hit again → close RDP and remote access, update systems before reconnecting (step 9).

Step 1. Disconnect infected computers from the network without shutting them down

How to do it.

  1. Unplug the network cable and turn off Wi-Fi on every computer where files won't open or the ransom note is shown. In Windows: network icon → Wi-Fi Off and Airplane mode.
  2. Don't shut down or restart: keys and traces may still be in memory, and some ransomware keeps running on boot.
  3. Don't delete the ransom note or the encrypted files, and don't run any "cleaners".
  4. If a server or the NAS is infected and you don't know where its cable is, unplug the cable at the switch or turn off the switch for that segment.

Done when: no infected computer is connected to the network and all of them are still on.

Step 2. Stop the spread: shared folders, NAS, cloud storage

How to do it.

  1. Network storage (NAS): disconnect it from the network (cable) if files with the new extension have already appeared on it; if not, turn off folder sharing for the duration of the investigation.
  2. Cloud folders (OneDrive, Google Drive, Dropbox) on the infected computers are already offline after step 1. From a clean device, sign in to the cloud's web version and check whether encrypted files have appeared there. Most cloud services can restore file versions or "roll back" a folder to a date before the infection. Don't touch anything yet, just confirm that this option is available.
  3. Removable backup drives: don't connect them to any computer until you have a clean machine (step 8).
  4. The other computers: go through them. If files open and there is no ransom note, disconnect them from the infected machines' shared folders and keep running only what you can't do without (POS, guest check-in; switch to paper mode under your business continuity plan, step 5).

Done when: the NAS and cloud storage aren't syncing with infected machines and the backups are disconnected.

Step 3. Record the ransom note and assess the scope

How to do it.

  1. Take a photo of the screen with the ransom note on your phone. Write down the time it was discovered, who discovered it and which computers are affected.
  2. Don't contact the attackers and don't follow any links in the note.
  3. Record each computer and the NAS in a table:
Device Encrypted? File extension Ransom note What's on it (PMS, accounting, logbook, guest data)
RECEPTION-01, front desk computer yes .k7x2q README-RESTORE.txt on the desktop and in every folder PMS client, email, Booking.com extranet, scans of guest passports
ACCOUNT-01, accounting computer yes, partly (drive D:) .k7x2q README-RESTORE.txt accounting software, online banking, contracts
Synology DS220+ storage (NAS) yes, folder \\NAS\share\reception .k7x2q README-RESTORE.txt in the folder shared documents, PMS exports
Manager's laptop no, files open — no email, Booking.com extranet; change passwords per step 5
NIGHT-01, night desk computer no, files open — no PMS client, shift log

Example — replace with your own data.

  1. From a clean computer, you can search the NAS for ransom notes (read-only, if the NAS isn't disconnected):
Get-ChildItem \\NAS\share -Recurse -File -Include *README*,*DECRYPT*,*RESTORE*,*HOW_TO* -ErrorAction SilentlyContinue |
  Select-Object -First 20 FullName, LastWriteTime

Done when: the table is filled in and you have a photo of the ransom note.

Step 4. Identify the ransomware and look for a free decryptor

How to do it.

  1. From a clean computer, open ID Ransomware (id-ransomware.malwarehunterteam.com): upload the ransom note file and one encrypted file without personal data (for example, an encrypted image from Pictures, not a passport scan). The service shows the family and whether a known decryption method exists.
  2. Check No More Ransom (nomoreransom.org) → Crypto Sheriff, or the list of decryptors by family name.
  3. If you find a decryptor, don't run it on the originals right away: try it on copies of a few files first.
  4. If there isn't one, restore from backups (step 8). We don't recommend paying the ransom: there's no guarantee you'll get the key or that the data won't be published, and the money may go to a sanctioned group. The decision is the owner's, together with a lawyer.

Done when: the family is identified and you've checked whether a decryptor exists.

Step 5. Change passwords from a clean device

Why: infostealers and ransomware grab saved passwords and sessions before encrypting.

How to do it. From a phone or an uninfected computer, in this order:

What Where
Company email change the password, sign out of all sessions, check forwarding rules
Booking.com extranet and other sales channels change the password, check users and phone numbers for codes (Booking.com extranet)
PMS, accounting software, online banking change passwords, check recent transactions
Exchanges, wallets (crypto exchange office) change passwords, sessions, address whitelists (cashier computer, step 6)
Admin accounts for Windows, the router, the NAS change
Telegram and other messengers terminate other sessions (exchange office Telegram)

Done when: every row of the table has been changed and the mailbox has no unknown forwarding rules.

Step 6. Preserve evidence

Why: without evidence you can't tell how they got in, and the police, the insurer and the data protection regulator all need facts.

How to do it. On the infected computer, without connecting it to the network, save to a clean USB stick (afterwards, never plug that stick into work computers again):

# PowerShell as administrator on the infected machine
New-Item -ItemType Directory E:\ir | Out-Null
wevtutil epl Security    E:\ir\Security.evtx
wevtutil epl System      E:\ir\System.evtx
wevtutil epl Application E:\ir\Application.evtx
wevtutil epl "Microsoft-Windows-Windows Defender/Operational" E:\ir\Defender.evtx
Get-Process | Export-Csv E:\ir\processes.csv -NoTypeInformation
Get-ScheduledTask | Where-Object State -ne Disabled | Export-Csv E:\ir\tasks.csv -NoTypeInformation

If you're bringing in an incident response company, do nothing more and wait for them: they will take a disk and memory image.

Done when: the logs and lists are saved to a separate drive, and the drive is labeled and stored separately.

Step 7. Notify: data protection regulator, CERT, police, Booking.com, bank

How to do it.

Who When Why
Personal data regulator within the deadline set by your law (in many countries, including the EU and Georgia, within 72 hours of becoming aware), if guest, customer or employee data is affected required by the personal data law; procedure: 72-hour plan, step 8
National computer incident response team (CERT) as early as possible help and information about the family
Police (cybercrime unit) in the first days a formal report, especially in case of extortion
Booking.com and other channels if the extranet was opened on the infected computer account check, warning guests
Bank if online banking was used on the computer transaction review, blocking access
Industry regulator for a licensed exchange office, under the regulator's rules incident report, if the rules require it
Insurer if you have a policy coverage terms often require immediate notice

Done when: every notification has been sent and recorded (date, recipient, reference number).

For a hotel or exchange office in Georgia

  • Personal data: State Audit Office, within 72 hours; procedure: 72-hour plan, step 8.
  • CERT: the Computer Incident Response Team of the Digital Governance Agency (CERT.GOV.GE); the current reporting contact is on the agency's website.
  • Police: the Cybercrime Division of the Ministry of Internal Affairs: line 112 or cybercrime@mia.gov.ge.
  • National Bank of Georgia (NBG): for a virtual asset service provider (VASP), check the procedure and deadlines for incident reporting against the current NBG rules and with your compliance officer.

Step 8. Recover: clean install and backups

How to do it.

  1. Infected computers: reinstall Windows from scratch (from an official image), rather than "removing the virus". Same principle for the server and the NAS.
  2. Before connecting the new system to the network: Windows updates, Defender, a standard user account, no remote access software (cashier computer, steps 2–4).
  3. Backups: connect the removable drive or restore from the cloud to a clean machine. Check that the backup contains no files with the ransomware's extension and that the backup date is before the infection. Restore procedure: backups, step 8.
  4. Bring systems back in the order set by your business continuity plan: POS and guest check-in first, then everything else.
  5. Records kept on paper during the downtime go into the logbook marked "transferred".

Done when: all systems are on a clean install, data is restored from backups and work is back to normal.

Step 9. Close the entry point and prepare for next time

How to do it.

  1. Find out how they got in, from the evidence in step 6 or with the help of a specialist. Common entry points for small hotels and exchange offices:
Entry point What to close
RDP exposed to the internet remove the port forward, access only via VPN (exchange office network, step 6)
AnyDesk, TeamViewer "from a contractor" uninstall, access on request only (AnyDesk scams)
Email with an attachment, or ClickFix Booking.com phishing emails, browser policies
Outdated router or VPN without two-factor sign-in update, turn on two-factor sign-in
  1. Turn on ransomware protection in Defender on every computer (PowerShell as administrator):
Set-MpPreference -EnableControlledFolderAccess Enabled
Add-MpPreference -AttackSurfaceReductionRules_Ids c1db55ab-c21a-4637-bb3f-a12568109d35 -AttackSurfaceReductionRules_Actions Enabled

Controlled folder access stops unknown programs from changing files in Documents, Pictures and on the Desktop. If it blocks a program you need: Windows Security → Virus & threat protection → Ransomware protection → Allow an app through Controlled folder access.

  1. A backup that can't be reached over the network: a removable drive on a schedule (backups, step 6).
  2. Print this article and keep it with your business continuity plan cards.

Done when: the entry point is found and closed, protection is on, and you have a removable backup.

Checklist

# What to check How to confirm ☐
1.1 Infected computers are offline network cable unplugged; network icon in the tray shows not connected, Airplane mode is on ☐
1.2 Computers are on and haven't been restarted the screen is on; ask staff, no one shut down or restarted them ☐
1.3 The ransom note and encrypted files are in place the note is open or on the desktop, files with the new extension weren't deleted, no "cleaners" were run ☐
2.1 The NAS is not reachable from infected machines the NAS cable is unplugged or sharing is off; \\NAS\share doesn't open from a clean computer ☐
2.2 Cloud storage checked from a clean device the cloud's web version shows whether there are encrypted files, and the version restore or folder rollback feature has been found ☐
2.3 Backup drives are disconnected removable drives are physically stored apart and haven't been connected to any computer ☐
2.4 Uninfected computers aren't connected to infected machines' shared folders net use on every work computer shows no connections to infected machines ☐
3.1 Ransom note photographed, time recorded photo of the screen on a phone; time of discovery, who found it and which computers are written down ☐
3.2 Scope is known the step 3 table is filled in for every computer and the NAS ☐
3.3 No one has contacted the attackers ask staff: no one wrote to the addresses or opened links from the note ☐
4.1 Family identified the name from ID Ransomware is written next to the scope table ☐
4.2 Decryptor searched for the family name checked on No More Ransom, result "yes / no" recorded ☐
4.3 Decryptor tested only on copies if found, several file copies were decrypted successfully and the originals weren't touched ☐
5.1 Passwords changed from a clean device every row of the step 5 table is ticked, with a note of which device was used ☐
5.2 No unknown forwarding rules in email mail settings → forwarding and rules: only rules you recognize ☐
5.3 Unknown sessions terminated the active sessions list in email and Telegram shows only your devices ☐
6.1 Logs saved the ir folder on the USB stick contains Security.evtx, System.evtx, Application.evtx, Defender.evtx, processes.csv, tasks.csv ☐
6.2 Drive labeled and stored separately the USB stick is marked with the date and computer name, kept in a safe and never plugged into work computers again ☐
7.1 Data protection regulator notified on time send date and reference number recorded; no more than 72 hours (or the deadline under your law) since you became aware ☐
7.2 Other notifications sent CERT, police, Booking.com, bank, insurer: for each one, the date, recipient and reference number ☐
8.1 Infected computers reinstalled from scratch systeminfo shows an Original Install Date after the day of the infection ☐
8.2 New system ready before connecting to the network Windows Update: all updates installed; Windows Security: protection on; the employee works under a standard user account ☐
8.3 Data restored from a pre-infection backup the backup date is before the infection; a search for the ransomware extension in restored folders returns nothing ☐
9.1 Entry point found and closed the post-incident review notes how they got in and what was closed (RDP, remote access, email, router or VPN) ☐
9.2 Controlled folder access is on Get-MpPreference | Select-Object EnableControlledFolderAccess returns 1 ☐
9.3 Ransomware protection rule is on (Get-MpPreference).AttackSurfaceReductionRules_Ids includes c1db55ab-c21a-4637-bb3f-a12568109d35 ☐
9.4 There is a backup that can't be reached over the network a removable drive with a backup no older than your schedule is stored away from the computers ☐

Questions

The antivirus found nothing. Does that mean everything is clean?

No. Ransomware often deletes itself after it finishes, but the entry point (a stolen password, exposed RDP) remains. That's why you reinstall and do step 9.

Wouldn't it be faster to just pay?

Not necessarily: decryption from the attackers is often slow and incomplete, the data may be published anyway, and you still have to notify the data protection regulator. Do steps 4 and 8 first.

There's no decryptor. Can I delete the encrypted files?

Don't rush: copy them together with the ransom note to a separate drive and keep them. No More Ransom warns that keys for a family are sometimes released in parts and later, so it's worth checking the site again (step 4).

Can I get my files back through Windows "Previous Versions"?

Usually not: many well-known ransomware families (Conti, LockBit, Ryuk and others) delete shadow copies and disable Windows recovery before encrypting; MITRE ATT&CK documents this as technique T1490. You can try after preserving evidence (step 6), but count on your own backups (step 8).

The computer has already been shut down or restarted. What now?

Don't connect it to the network. If an incident response specialist is coming, leave it off: they will take a disk image. If not, turn it on without the network cable, switch on Airplane mode immediately, preserve evidence per step 6, and then reinstall (step 8).

The backup was on a connected drive or the NAS. Is it intact?

Most likely not: anything reachable from the infected computer could have been encrypted along with everything else. In the 2024 Sophos survey, 94% of affected organizations said the attackers tried to get to their backups, and 57% of those attempts succeeded. Check the backup only from a clean machine (steps 2 and 8); going forward, you need a backup that can't be reached over the network (step 9).

A company promises to decrypt the files without a ransom. Should I trust it?

Be careful. A 2019 ProPublica investigation found that some "data recovery" firms were actually paying the attackers and charging the client a markup. Ask exactly how they will decrypt the files, and first check the family yourself on ID Ransomware and No More Ransom (step 4).

The attackers are threatening to publish guest data. What should I do?

Assume the breach has already happened: notify the data protection regulator and the others per step 7 without waiting for publication. Don't enter into correspondence with the attackers yourself (step 3); paying doesn't guarantee the data will be deleted.

How do I know the other computers aren't infected?

The absence of a ransom note proves nothing: modern ransomware steals data first and only encrypts later. On every remaining computer, run a full scan and a Microsoft Defender Offline scan (Windows Security → Virus & threat protection → Scan options) and look for remote access software (AnyDesk scams, step 1). A log review by a specialist is more reliable (step 6).

A week after recovery everything was encrypted again. Why?

Usually for one of three reasons: the entry point wasn't closed, such as exposed RDP, remote access software or an old VPN (step 9); stolen passwords weren't changed (step 5); or the system was restored from a backup made when the attacker was already inside, instead of being reinstalled from scratch (step 8).


Note: Check the notification procedure against current Georgian legislation.

Sources

  1. No More Ransom — free decryptors (Europol and partners)
  2. ID Ransomware — identify the family from the ransom note and a file
  3. Sophos — The State of Ransomware 2024
  4. WIRED — The Untold Story of NotPetya (Maersk)
  5. Microsoft — Controlled folder access
  6. Matsne — regulation on the Computer Incident Response Team of the Digital Governance Agency (Georgia)
  7. Ministry of Internal Affairs of Georgia — fighting cybercrime (contacts: 112, cybercrime@mia.gov.ge)
  8. No More Ransom — Q&A (keys are released in parts, check the site again)
  9. MITRE ATT&CK — T1490 Inhibit System Recovery (ransomware deleting shadow copies)
  10. Sophos — State of Ransomware 2024, press release (94% of attacks tried to reach backups, 57% succeeded)
  11. ProPublica — The Trade Secret: Firms That Promised High-Tech Ransomware Solutions Almost Always Just Pay the Hackers (2019)
↑