How to Prevent Ransomware - Backups, Patching and the Garmin Case Study
Ransomware encrypts your files and demands payment for the key. Increasingly it also steals data first and threatens to publish it, so even victims who can restore from backup face a second demand. CISA and the FBI describe this as “double extortion.”
Most ransomware gets in through a small number of doors: phishing emails, unpatched software, exposed remote access and stolen passwords. Close those, keep backups the attacker cannot reach, and you have dealt with the bulk of the risk. This guide follows CISA’s #StopRansomware Guide, adapted for homes and small businesses, and ends with what the 2020 Garmin attack shows about recovery.
1. Backups you can restore when everything else fails
Backups are the defence that turns a ransomware attack from a disaster into an inconvenience. CISA’s first recommendation is to “maintain offline, encrypted backups of critical data,” and it warns why: “many ransomware variants attempt to find and subsequently delete or encrypt accessible backups.”
Follow the 3-2-1 rule
CISA describes the 3-2-1 rule as:
- 3 copies of important files: the original plus two backups
- 2 different types of storage, such as an external hard drive and a cloud service
- 1 copy kept off-site
Make at least one copy offline or immutable
A backup drive that stays plugged in is just another drive for the ransomware to encrypt. At least one copy should be:
- Offline: an external drive you connect for the backup, then unplug and put away.
- Immutable or versioned: a cloud or network backup service that keeps older versions and does not let the computer being backed up delete or overwrite them. Check that the deletion protection cannot be turned off with the same password the computer uses.
Test restores
A backup you have never restored from is a hope, not a plan. Every few months, restore a handful of files, and once a year try restoring a whole folder to a different computer. Businesses should also keep what CISA calls “golden images,” preconfigured system templates that let you rebuild machines quickly.
Sync is not backup
OneDrive, iCloud Drive, Google Drive and Dropbox sync folders copy every change, including encryption. Their version history and recycle bin can rescue you, and Microsoft’s ransomware protection settings in Windows can help with OneDrive recovery. But treat sync as a convenience, and keep a separate backup.
2. Patch, and patch internet-facing systems first
Attackers routinely exploit known vulnerabilities in software that was never updated. CISA’s advice is to keep operating systems and software current, giving priority to internet-facing systems and to vulnerabilities already known to be exploited.
For a home or small office:
- Turn on automatic updates for Windows, macOS, browsers and Office.
- Update your router’s firmware, or replace a router that no longer gets updates.
- Update or remove network storage devices, cameras and other connected devices.
- For small business servers, VPN appliances, firewalls and remote access gateways are the most targeted and should be patched first.
3. Close remote desktop and other exposed services
Remote Desktop Protocol (RDP) left open to the internet is a well-known ransomware entry point, because attackers can guess or reuse passwords against it from anywhere. CISA’s guidance is direct: “Do not expose services, such as remote desktop protocol, on the web.”
- Do not forward port 3389, or any remote desktop port, through your router.
- If you need remote access, put it behind a VPN or a remote access service with multi-factor authentication.
- Enforce account lockout after repeated failed logins.
- Remove remote support tools you no longer use. Attackers abuse legitimate remote access software as a backdoor.
4. Leave Office macros blocked
Malicious macros in Word and Excel files have long been used to deliver ransomware. Microsoft changed Office so that VBA macros in files from the internet are blocked by default, stating that macros “are a common way for malicious actors to gain access to deploy malware and ransomware.”
When you open such a file you now see a red SECURITY RISK banner with no option to enable content. Leave it that way. If a file you received by email really needs macros, confirm with the sender by another channel, and ask for the data in a format that does not need them. CISA’s guide likewise advises keeping macros disabled in Office files received by email.
5. Protect accounts with multi-factor authentication
Stolen passwords let attackers log in as you, through email, VPNs or cloud services, without needing any malware at first. Turn on multi-factor authentication for email, remote access and any administrator accounts. CISA recommends phishing-resistant methods such as hardware security keys and passkeys where you can. Using a password manager stops one breached password from unlocking everything else, and helps against keyloggers too.
6. Reduce what one infection can reach
- Use standard accounts. Day-to-day use on an administrator account lets malware change anything. Keep a separate admin account for installs.
- Turn on controlled folder access on Windows. In Windows Security > Virus & threat protection > Manage ransomware protection, controlled folder access blocks untrusted apps from changing files in protected folders such as Documents, Pictures and Desktop. Some legitimate apps will need to be allowed.
- Segment business networks. CISA recommends separating systems and business units so an attacker cannot move freely. For a small office, that can mean keeping guest Wi-Fi, cameras and point-of-sale systems on separate networks.
7. Train for phishing
Phishing is still the most common first step. Teach everyone to check the sender’s real address, distrust urgency (“your account will be closed today”), and report suspicious messages rather than delete them quietly. Businesses should filter email at the gateway, flag messages from outside the organisation, block risky attachment types and set up DMARC for their domains, all in CISA’s guide.
Case study: the 2020 Garmin attack
On 23 July 2020, Garmin, the GPS and fitness device maker, was hit by an attack that, in the company’s words, “encrypted some of our systems.”
What went down: Garmin.com and the Garmin Connect app, customer support by phone, email and chat, the flyGarmin and Garmin Pilot aviation services, and inReach activation were all affected. BleepingComputer reported, citing a Taiwanese outlet, that production lines at Garmin’s factories in Taiwan were shut for two days. Garmin’s statement said its products kept working apart from their online features, and that inReach SOS and messaging were not affected.
What it was: Garmin’s public statement did not name the malware. BleepingComputer identified it as WastedLocker, based on a source in the incident response, an employee’s photo of encrypted files with a .garminwasted extension, and a matching sample. WastedLocker was linked to Evil Corp, a criminal group the US Treasury had sanctioned in December 2019, which made any payment legally risky for a US company.
Data: Garmin said on 27 July 2020 that it had “no indication that any customer data, including payment information from Garmin Pay, was accessed, lost or stolen.” Fitness data recorded during the outage was stored on users’ devices and synced later.
Recovery: Garmin said affected systems were being restored and expected normal operation “over the next few days.”
Lessons from Garmin
- Shutting down limits damage but causes the outage. BleepingComputer reported that Garmin’s IT staff shut down networked computers and data centre equipment to stop the spread, which is what took services offline worldwide. Having an isolation plan ready, and knowing which systems can be disconnected safely, shortens that phase.
- Data on the device survived. Watches kept recording and synced later. Designing systems so that local data is not lost when central services fail is a form of resilience too.
- Big companies are not immune. Garmin had the resources of a large multinational. The same entry points, phishing, exposed services and stolen credentials, are used against small businesses, which usually have fewer people to respond.
- Sanctions make paying harder. When the attacker is a sanctioned group, paying can itself be illegal. A recovery plan that does not depend on paying is the only reliable one.
If you are hit
- Disconnect the affected computers from the network and Wi-Fi. Do not wipe them yet if you may need evidence.
- Disconnect backup drives immediately if they are still attached.
- Report it. In the US, file at ic3.gov or contact a local FBI field office. CISA and the FBI ask victims to report whether or not they pay. Law enforcement may know of a free decryptor.
- Do not rush to pay. The FBI says it “does not support paying a ransom,” because payment does not guarantee you will get data back and it encourages more attacks.
- Change passwords from a clean device, starting with email and admin accounts, because attackers often steal credentials before encrypting.
- Rebuild, then restore. Wipe and reinstall affected computers, check the backups are clean, then restore data. Look for anything else the attackers left behind using how to check for malware and, for machines that showed signs of hidden tools, how to detect a rootkit.
Frequently asked questions
- What is the best way to prevent ransomware?
- There is no single fix, but offline backups matter most, because they let you recover without paying. After that, keep software patched, do not expose remote desktop to the internet, use multi-factor authentication and leave Office macros blocked in files from the internet.
- Is a cloud sync folder a backup against ransomware?
- Not on its own. Sync services copy changes, so encrypted files can sync over the good copies. Version history or a recycle bin can save you, but a true backup is a separate copy that the infected computer cannot change.
- Should I pay a ransomware demand?
- The FBI does not support paying, because payment does not guarantee you get your data back and it encourages more attacks. Paying some groups can also break US sanctions law. Report the attack to the FBI at ic3.gov whatever you decide.
- What happened in the Garmin ransomware attack?
- On 23 July 2020 an attack encrypted some of Garmin's systems, taking Garmin Connect, its website, call centres and aviation services offline for several days. Reporting by BleepingComputer, citing sources and an employee photo of encrypted files, identified the ransomware as WastedLocker. Garmin said it saw no sign that customer data was accessed.
- Can antivirus stop ransomware?
- It stops much of it, and Windows includes an extra layer called controlled folder access. But no scanner catches everything, and attackers who get into a network may try to switch security tools off, which is why backups and access controls carry most of the weight.