Ransomware Attack on Your Business: What to Do in the First Hours
Your company's files are encrypted and someone wants money. What to do in the first minutes, who to notify, why not to rush to pay and how to recover.
Published 10 min read
One morning, a colleague can’t open the invoices. The files have new names, and a document has appeared on the desktop demanding money for a “decryption key”. That’s a ransomware attack, and what you do in the first few hours has a big effect on how much you lose. Below are the steps in order: how to stop it spreading, who to notify in Romania, what not to do and how to recover from backup.
How to recognise a ransomware attack
Ransomware is a program that encrypts your files and demands a ransom for the key that would unlock them. The usual signs:
- documents, photos and spreadsheets won’t open or throw an error;
- files have a new, unfamiliar extension after
.docxor.pdf; - a text file or web page with payment instructions appears in every folder;
- the desktop wallpaper has been replaced with a message;
- computers and the server are very slow, and the disks are working constantly.
Sometimes the attack starts at night or over a weekend, when nobody is in the office. Sometimes encryption is only the last step, after the attackers have spent days inside the network copying data. So don’t assume the problem is limited to the computer where you noticed it.
The first minutes: isolate the computers
The goal is to stop the malware reaching other computers or your backup.
- Unplug the network cable from the affected computer and turn its Wi-Fi off. Don’t reinstall it and don’t delete anything.
- Disconnect backup drives and the NAS from the network, if they haven’t been touched yet. A backup saved at this moment can save the company.
- Check the other computers. If they also have renamed files, isolate them the same way. If you can’t tell how far it has spread, disconnect the router from the internet.
- Stop using the affected computers for email or for any accounts. Communicate from a phone or a device that wasn’t on the network.
- Photograph the ransom note and write down when you noticed the problem, which computers are affected and what you’ve done so far.
Folders synced to the cloud
If your company uses OneDrive, SharePoint or another sync service, encrypted files on the computer get uploaded to the cloud too, on top of the good versions. Stop syncing on the affected computers as quickly as you can. These services usually keep a version history from which you can restore files from before the attack, but only for a limited period. Tell your technician from the start that you use sync, so recovery can begin there while the old versions still exist.
When to switch the computer off
If you can see files being encrypted in front of you and you can’t disconnect the network, switch the computer off. Otherwise it’s better to leave it on and isolated, because a specialist may find useful traces in it showing how the attack got in.
What not to do
Panic pushes people towards decisions that are hard to undo. Avoid:
- contacting the attackers or replying to their message before you’ve spoken to someone who handles these incidents;
- downloading “decryption” tools from forums or ads, since many of them are more malware;
- reinstalling Windows straight away, before you know how the attack got in, because you lose the evidence and may reopen the same hole;
- plugging the backup drive into an infected computer to “see if it’s OK”;
- changing passwords from an infected computer, because the new passwords can be stolen too.
Who to notify in Romania
A ransomware attack isn’t only a technical problem. Depending on the situation, notify:
- The National Cyber Security Directorate (DNSC), Romania’s national authority for cyber security incidents in the civilian sector. DNSC runs the single number 1911, available 24/7, and the PNRISC incident reporting platform, where you enter your contact details, company details and the details of the incident.
- The police, by filing a criminal complaint. On the PNRISC page, DNSC states that reporting through the form does not replace a criminal complaint to the prosecuting authorities.
- Your bank, if the attackers could have reached your online banking accounts or payment details.
- The data protection authority (ANSPDCP), if personal data of customers or employees was affected. The European Data Protection Board’s guide for small businesses says that a personal data breach must be notified to the authority within 72 hours, unless it’s unlikely to pose a risk to people. The same guide uses data made unavailable by ransomware encryption as an example. For the exact decision, talk to your data protection officer or a lawyer.
- Customers and partners, if you might have sent them infected emails without knowing, or if their data was affected.
Write down every step and the time. You’ll need it for the reports and for the conversation with your insurer, if you have a policy that covers cyber incidents.
Should you pay the ransom?
Paying guarantees nothing. The No More Ransom project, backed by Europol and the Dutch police, advises against paying the ransom and explains that paying doesn’t guarantee you’ll get a key that works. The money funds the next attack, and a company that has paid once can be picked again.
Before any talk of money, check on the same site whether a free decryption tool exists for the type of ransomware that hit you. Its Crypto Sheriff tool helps you find out whether a known solution exists. For many new variants there isn’t one, but the check takes a few minutes.
The safe route is still your backup.
Recovering from backup, in the right order
A rushed restore can bring the malware back. An order that limits the risk:
- Find out how the attack got in, or at least close the likely routes: a Remote Desktop port open to the internet, a password stolen by email, a computer that wasn’t updated.
- Clean or reinstall the affected computers. A full reinstall is usually safer than trying to clean them.
- Change passwords from a clean device: email, administrator accounts, the bank, the accounting software, the router.
- Check the backup on a clean computer. Choose a copy from before the attack and open a few files from it before restoring everything.
- Restore data in order of priority: first whatever stops the business (invoicing, accounts, orders), then the rest.
- Watch the network for a few weeks after the restore, so you catch any sign that the attacker left a door open.
If the backup was encrypted as well, things get much harder. That’s why at least one copy has to be kept disconnected, or somewhere old versions can’t be deleted. The details are in our guide to small business backup and the 3-2-1 rule.
How the attack got in
Most ransomware attacks on small businesses start from a few well-known places:
- an email with a fake attachment or link that someone opened (the warning signs are in our article on how to spot phishing emails);
- a stolen or guessed password, especially on an account without two-factor authentication;
- Remote Desktop exposed directly to the internet, with no VPN;
- an outdated program or system with a publicly known vulnerability;
- pirated software, or a program downloaded from a dodgy site.
Finding the cause isn’t about blaming anyone. Without it, recovery puts you right back where you were, with the same door open.
The technician looks for traces in the Windows event logs, the sign-in history of the email accounts and the router settings. If the cause was a computer missing security updates, set up a monthly routine like the one in our article on Windows updates for business. If it was a password, check where else the same password was used and change it everywhere.
How to prepare in advance
The best day to think about ransomware is an ordinary one with no attack in sight:
- Backup with a disconnected copy, and a test restore every month.
- Two-factor authentication on email and administrator accounts. We explain how to roll it out in two-factor authentication for business.
- Monthly updates for Windows and your programs.
- Controlled folder access in Windows Security. When it’s on, only trusted apps can change files in protected folders such as Documents and Pictures. It’s off by default and only works when Microsoft Defender is the main antivirus. Microsoft recommends testing it first, because it can also block legitimate programs.
- A printed incident sheet: who calls whom, the 1911 number, and contact details for your technician, bank and insurer. When the network is down, a list stored on a computer won’t help you.
Frequently asked questions
Can I get my files back without a backup and without paying?
Sometimes. Free decryption tools exist for some types of ransomware and are published on No More Ransom. In other cases Windows has kept previous versions of files, although many ransomware variants delete them on purpose. If there’s no way back, keep the encrypted files, because a key may turn up later.
Shouldn’t the antivirus have stopped it?
Antivirus stops many known programs, but attackers change their tools often and sometimes use legitimate programs built into Windows. If they got in with a stolen password, to the antivirus they look like an ordinary user. That’s why antivirus is only one measure, alongside backup and two-factor authentication.
How long does recovery from ransomware take?
It depends on how recent and complete your backup is, how many computers were affected and how quickly you find out how the attack got in. A company with a recently tested backup can be back up and running in a few days. One without a good backup may need much longer, or lose some data for good.
Do we have to tell our customers?
If their personal data was affected and there’s a high risk to them, data protection rules usually require informing them without undue delay. Even when it isn’t required, a clear message tells them what happened and what to watch for, such as strange emails that seem to come from you.
Will our insurance cover it?
That depends on the policy. Some business policies include cyber incidents, others exclude them explicitly. Read the terms before an incident, not after, and check what they require: often the insurer must be told immediately and will want to know what protection you had, such as backup and two-factor authentication.
What does it mean if the attackers say they’ve copied our data?
Many groups don’t just encrypt. They copy the data first and threaten to publish it. In that case your backup gets you working again but doesn’t fix the data leak. Mention it when you report to DNSC and ANSPDCP.
When to call a technician
With a ransomware attack, call a technician as soon as you’ve isolated the computers, not after a few hours of trying on your own. The first job is to find out how far the attack has spread and whether the backup is intact. Only then does the recovery start.
The more useful part comes before an attack, though: a tested backup, updates, accounts with two-factor sign-in. The difference between preventive and corrective maintenance shows most clearly in situations like this. If you’d like all of this checked every month, see what IT maintenance for businesses includes.