What Is Ransomware?
Ransomware is malware that encrypts a victim’s files or locks a device and demands a ransom payment in exchange for restoring access. Ransomware combines encryption with extortion, holding data hostage until the victim pays or recovers from backup. The Cybersecurity and Infrastructure Security Agency (CISA), the Federal Bureau of Investigation (FBI), and security vendors including Kaspersky document ransomware as one of the most damaging malware categories.
This article defines ransomware, explains how it works through encryption and a ransom note, lists the types including crypto, locker, double extortion, and ransomware-as-a-service, describes major examples such as WannaCry, Ryuk, and LockBit, explains how ransomware spreads, sets out prevention and recovery, and explains why authorities discourage paying. Each section states one part of the topic and connects it to the encryption and extortion at the center of the definition. The result is a complete account of what ransomware is and how to prevent and recover from it.
What Is Ransomware?
Ransomware is malware that encrypts a victim’s files or locks a device and demands a ransom payment in exchange for restoring access. Ransomware holds data or a system hostage, targeting availability by making files unusable until payment. The defining traits of ransomware are listed below:
- Encryption or locking makes files or the device inaccessible to the owner.
- A ransom demand requests payment, usually in cryptocurrency, to restore access.
- A deadline pressures the victim, often threatening to delete or publish data.
- Extortion defines ransomware, separating it from malware that only steals or destroys.
Ransomware is one category within the broader set of malicious software described in the overview of malware. Ransomware targets availability by locking data, and the surest recovery method is restoring from a backup made before the infection.
How Does Ransomware Work?
Ransomware works by infecting a device, encrypting files with a key held by the attacker, and displaying a ransom note demanding payment for the decryption key. Ransomware follows a sequence from infection to encryption to extortion. The stages are listed below:
- Infection places the ransomware on a device through email, a download, or a network flaw.
- Encryption scrambles files with strong cryptography so they cannot open without the key.
- Ransom note appears on screen, demanding payment and giving instructions.
- Payment demand requests cryptocurrency in exchange for the decryption key, with no guarantee of recovery.
Ransomware uses strong encryption that cannot be reversed without the attacker’s key, according to CISA, which is why prevention and backups matter more than decryption. Some ransomware also steals data before encrypting, adding the threat of publication to the demand.
What Are the Types of Ransomware?
The types of ransomware are crypto ransomware, locker ransomware, double extortion ransomware, and ransomware-as-a-service. A ransomware type is defined by how it restricts access and how the attack is operated. The types are listed below:

- Crypto ransomware encrypts files so they cannot be opened without the decryption key.
- Locker ransomware locks the entire device, blocking access to the system rather than individual files.
- Double extortion ransomware steals data before encrypting and threatens to publish it.
- Ransomware-as-a-service (RaaS) rents the ransomware to affiliates for a share of the payments.
Crypto ransomware is the most common type, while ransomware-as-a-service has lowered the barrier to entry for attackers, according to reports from CISA and Kaspersky. Double extortion has grown because backups defeat encryption alone, so attackers add the threat of leaking stolen data.
What Are Examples of Ransomware?
Major ransomware examples include WannaCry, Ryuk, LockBit, and REvil. A ransomware example shows how the category operates in a real incident. The notable examples are listed below:
- WannaCry spread in 2017 as a ransomware worm, encrypting files across networks by exploiting a Windows vulnerability.
- Ryuk targeted organizations with large ransom demands, often delivered through other malware.
- LockBit operated as ransomware-as-a-service, becoming one of the most active strains.
- REvil used double extortion, encrypting data and threatening to publish stolen files.
WannaCry affected over 200,000 systems across 150 countries in 2017, according to CISA, showing how a ransomware worm spreads. WannaCry combined ransomware with worm self-replication, the spreading mechanism detailed in the guide to computer worms.
How Does Ransomware Spread?
Ransomware spreads through phishing email, malicious downloads, exploited network vulnerabilities, and compromised remote access. A spread method is the path ransomware uses to reach a device or network. The main methods are listed below:
- Phishing email delivers ransomware through a malicious attachment or link.
- Malicious downloads hide ransomware in fake software or compromised websites.
- Network vulnerabilities let ransomware worms spread between unpatched systems.
- Compromised remote access uses stolen credentials to reach and encrypt a network.
Phishing email and exposed remote access are the leading ransomware entry points, according to the FBI. A trojan often delivers ransomware as its payload, the deception method explained in the guide to the trojan horse, while a worm component spreads it across a network.
How Do You Prevent Ransomware?
Ransomware is prevented by maintaining offline backups, applying updates, using email caution, deploying antivirus, and restricting remote access. A preventive measure reduces either the chance of infection or the damage it causes. The core defenses are listed below:
- Offline backups keep copies of data unreachable by ransomware, enabling recovery without payment.
- Software updates patch the vulnerabilities ransomware worms exploit.
- Email caution avoids the phishing attachments and links that deliver ransomware.
- Antivirus software detects and blocks known ransomware before it encrypts files.
- Restricted remote access limits exposed services and uses strong authentication.
Maintaining tested offline backups is the single most effective defense, since it allows recovery without paying, according to CISA. The procedure to create reliable copies appears in the guide to backing up a computer, and patching closes the flaws ransomware exploits to spread.
Should You Pay the Ransom?
Authorities discourage paying the ransom because payment does not guarantee file recovery, funds further attacks, and marks the victim as willing to pay again. The decision to pay carries risk even when data is critical. The reasons against paying are listed below:
- No guarantee exists that the attacker provides a working decryption key after payment.
- Funding crime finances further ransomware operations and future attacks.
- Repeat targeting marks a paying victim as likely to pay again.
- Legal exposure may arise where payment goes to a sanctioned group.
The FBI and CISA advise against paying the ransom, since payment funds further crime and does not ensure recovery. Restoring from a clean backup remains the recommended response, avoiding both the payment and the uncertainty of decryption.
How Do You Recover From Ransomware?
Recovery from ransomware uses clean backups: isolate the device, remove the ransomware, and restore data from a backup made before the infection. Recovery repairs the damage without relying on the attacker. The recovery steps are listed below:
- Isolate the infected device from the network to stop the ransomware spreading.
- Report the incident to authorities such as CISA or the FBI.
- Remove the ransomware with antivirus software or a full system reinstall.
- Restore data from a clean backup made before the infection.
- Patch the vulnerability that allowed the infection to prevent recurrence.
A clean backup makes recovery possible without paying, which is why offline copies are the foundation of ransomware defense, according to CISA. The full backup procedure appears in the guide to backing up a computer, and the broader removal process is set out in the steps to remove malware from a PC.
Who Does Ransomware Target?
Ransomware targets hospitals, schools, government agencies, businesses, and individuals, with attackers favoring organizations that cannot tolerate downtime. A target is selected by the value of its data and its pressure to restore access quickly. The common targets are listed below:

- Healthcare organizations face attacks because patient care cannot pause during an outage.
- Schools and universities hold large data sets and often run limited security budgets.
- Government agencies manage critical services that pressure quick restoration.
- Businesses face encryption of operational data that halts revenue.
- Individuals face encryption of personal files such as photos and documents.
Ransomware operators target organizations under pressure to restore service, since that pressure raises the chance of payment, according to the FBI. Critical infrastructure and healthcare attacks drew increased federal attention after major incidents disrupted essential services.
How Does Ransomware Differ From Other Malware?
Ransomware differs from other malware because ransomware announces itself and demands payment, while most malware operates covertly to steal data or maintain access. The difference lies in visibility and goal. The distinctions are listed below:
- Ransomware reveals itself with a ransom note and targets availability by locking data.
- Spyware stays hidden and targets confidentiality by stealing information.
- A trojan hides its payload, which may include ransomware as the delivered malware.
- A botnet conceals control of a device to use it in coordinated attacks.
Ransomware is unusual among malware because it must be visible to demand payment, unlike the covert spyware that steals data silently. A trojan often delivers ransomware as its payload, the disguise mechanism explained in the guide to the trojan horse.
What Is the Cost and History of Ransomware?
Ransomware grew from the first documented attack in 1989 into a global threat that costs organizations billions of dollars annually in ransoms, downtime, and recovery. A cost category measures the damage beyond the ransom itself. The cost and history facts are listed below:
- The first ransomware, the AIDS Trojan, spread on floppy disks in 1989 and demanded payment by mail.
- Cryptocurrency enabled modern ransomware by allowing anonymous payment from the 2010s.
- Downtime costs often exceed the ransom, as operations halt during recovery.
- Recovery costs include rebuilding systems, restoring data, and improving defenses.
Ransomware damage costs reached billions of dollars per year by the 2020s, according to FBI and industry reports, with downtime often exceeding the ransom amount. Cryptocurrency made anonymous ransom collection practical, fueling the growth of ransomware-as-a-service operations.
Key Takeaways
- Ransomware encrypts files or locks a device and demands payment for access.
- Ransomware works by infecting, encrypting, and displaying a ransom note.
- Types include crypto, locker, double extortion, and ransomware-as-a-service.
- Examples include WannaCry, Ryuk, LockBit, and REvil.
- Prevention relies on offline backups, updates, email caution, and antivirus.
- Recovery uses clean backups, and authorities discourage paying the ransom.
What is ransomware in simple terms?
Ransomware is malware that encrypts a victim’s files or locks a device and demands a ransom payment to restore access. It holds data hostage until the victim pays or recovers from a backup.
How does ransomware work?
Ransomware infects a device, encrypts files with a key held by the attacker, and displays a ransom note demanding payment for the decryption key. Strong encryption cannot be reversed without that key.
What are examples of ransomware?
Major ransomware examples include WannaCry, Ryuk, LockBit, and REvil. WannaCry spread as a worm in 2017, while LockBit operated as ransomware-as-a-service rented to affiliates.
Should you pay the ransom?
Authorities such as the FBI and CISA discourage paying. Payment does not guarantee recovery, funds further attacks, and marks the victim as willing to pay again. Restoring from backup is recommended.
How do you prevent ransomware?
Prevent ransomware with offline backups, regular updates, email caution, antivirus software, and restricted remote access. Tested offline backups are the single most effective defense.
Can you recover files after ransomware?
Yes, by restoring from a clean backup made before the infection. Without a backup, encrypted files usually cannot be recovered, because the encryption cannot be reversed without the attacker’s key.
Last Thoughts on Ransomware
Ransomware is malware that encrypts files or locks a device and demands a ransom payment for access. Ransomware works by infecting, encrypting, and displaying a ransom note, and its types include crypto, locker, double extortion, and ransomware-as-a-service, with examples such as WannaCry, Ryuk, and LockBit.
Prevention relies on offline backups, updates, email caution, and antivirus, while recovery uses clean backups rather than payment, which authorities discourage. Readers can continue with the overview of malware, the complete list of malware types, the guide to backing up a computer, or the overview of cybersecurity.


