What Is Ransomware? Definition, Attack Steps, Backups
Quick answer
Ransomware explained: what it is, how an attack unfolds, what double extortion means and why offline, tested backups matter most.
Ransomware is malicious software that locks a device or encrypts its files so the owner cannot use them, then demands payment to restore access. Attackers often also copy the data and threaten to publish it. The strongest defence is a tested backup copy kept offline, away from the network.
Key takeaways
- Ransomware encrypts files and demands payment; many attackers now also steal data (double extortion).
- Common entry points are phishing, stolen credentials, exposed remote access and unpatched systems.
- Attackers target backups, so a backup that stays plugged in is not safe.
- An offline backup you have actually restored from is the most useful single control.
On this page:
- What ransomware means
- How an attack unfolds
- Where it hits and how backups help
- Common mistakes and confusions
- Related terms
- Frequently asked questions
| Term | What it does | Needs payment? |
|---|---|---|
| Ransomware | Locks or encrypts files | Yes, demanded |
| Double extortion | Encrypts and threatens to publish stolen data | Yes, twice the pressure |
| Phishing | Tricks a user into giving access | No, it is a way in |
| Spyware | Quietly watches or collects data | No |
What is ransomware?
According to CISA, in its #StopRansomware Guide (September 2023), ransomware is a form of malware designed to encrypt files on a device, rendering them and the systems that rely on them unusable. Attackers encrypt files and demand payment for decryption, and have added data theft, which CISA calls double extortion.
The UK National Cyber Security Centre (NCSC) describes ransomware as a type of malware that prevents you from accessing your computer or the data stored on it. Its ransomware page says attackers will likely threaten to publish data if payment is not made.
How does a ransomware attack work?
An attack gets in, spreads, encrypts, then demands payment. CISA lists common entry points: internet-facing vulnerabilities and misconfigurations, compromised credentials, phishing, precursor malware, advanced social engineering, and third-party or managed service providers. The NCSC adds that attackers increasingly arrive through exposed services such as Remote Desktop Protocol (RDP), or unpatched remote access devices.
An invented timeline for a small office, using no real group:
- Day 1: a staff member opens a fake invoice email.
- Day 2: the attacker uses stolen credentials to log in.
- Day 3: the attacker moves across the office network and copies files.
- Day 4: files are encrypted, a note demands payment, and the attacker threatens to publish the copied files.
Defences map to each step: filter and report phishing, use strong sign-in, patch exposed systems, and keep backups that the attacker cannot reach.
Where does it hit, and how do backups help?
It can hit any organisation with files it needs, from a clinic to a school office. An invented India-context scenario: a clinic's front-desk PC is locked and appointment records will not open. The owner has no offline backup. Disconnecting the machine from the network is a sensible first step. The next is to report the incident to the national cyber agency and get professional help.
Backups matter because attackers know about them. The NCSC advises creating offline backups kept separate from your network, because ransomware actively targets backups to increase the likelihood of payment. It also says the devices holding your backup, such as external hard drives and USB sticks, should not be permanently connected to your network.
A common rule of thumb, which is the author's illustration and not a standard: keep three copies on two kinds of media, with one copy offline, and test a restore each month. This script flags a stale restore test using that 30-day rule and made-up dates.
from datetime import date
last_restore_test = date(2026, 10, 1)
today = date(2026, 11, 29)
days_since = (today - last_restore_test).days
print("Restore test overdue" if days_since > 30 else "Restore test is recent") # prints: Restore test overdueWhat are the common mistakes and confusions?
- Leaving the backup drive plugged in. It can be encrypted along with everything else.
- Never testing a restore. A backup you cannot restore is a hope, not a control.
- Assuming a virus scanner is enough. Many attacks use stolen logins and exposed remote access, not just a file.
- Treating payment as a fix. Paying does not remove the threat of published data. Check with a security professional before deciding.
Which terms are related?
Ransomware often begins with phishing, so read what phishing is. For the bigger picture see what cybersecurity is and what penetration testing is. If you are considering the field as a career, how to get into cybersecurity in India and SOC analyst vs penetration tester vs GRC are good starting points.
Next step
Check today whether you have one backup copy that is offline, and try restoring one file from it. Then read your national cyber agency's current guidance, such as the CISA and NCSC pages cited above, for updates.
Frequently asked questions
What is ransomware in simple words?
It is malware that locks your files or device and demands payment to restore access. Many attackers also steal copies of the data and threaten to publish it.
How does ransomware spread?
CISA lists internet-facing vulnerabilities, compromised credentials, phishing, precursor malware, social engineering and third-party providers. The NCSC adds exposed RDP and unpatched remote access devices.
What is double extortion?
CISA uses the term for attackers who encrypt files and also steal data. They demand payment to decrypt and threaten to publish the stolen data if payment is not made.
Should I pay the ransom?
Paying does not guarantee recovery and does not remove a threat to publish data. Disconnect affected machines and seek advice from a security professional or your national cyber agency first.
How do backups protect against ransomware?
An offline backup lets you restore files without paying. The NCSC says ransomware targets backups, so keep copies separate from your network and test that you can restore them.