Ransomware
Ransomware is malware that encrypts an organization's systems and demands payment, usually after stealing data to threaten a leak as well.
What is Ransomware?
Ransomware is malicious software that encrypts an organization's files and servers and then demands payment for the key to unlock them. Most groups now steal data before they encrypt anything and threaten to publish it if the victim does not pay. This is called double extortion, and it means good backups alone no longer remove the pressure to pay.
The business impact is an operational outage. Order systems, production lines, hospital records, and email can stop at the same moment, and full recovery often takes weeks. The ransom is usually a smaller part of the total cost than downtime, incident response, rebuilding systems, legal advice, and regulatory notification.
Leaders should treat ransomware as a resilience problem as much as a security problem. The questions that decide the outcome are whether backups survive an attacker with domain admin rights, how fast core systems can be rebuilt, and who has authority to make decisions in the first hours. Paying may also be restricted by sanctions rules in some countries, which makes legal advice part of the plan before an incident, not during one.
How Ransomware works
A modern ransomware attack is a hands-on intrusion that ends with encryption. The encryption itself takes minutes. The days before it are where defenders can win.
- Initial access: Phishing, stolen VPN or remote desktop credentials, an exploited edge device, or access bought from an initial access broker.
- Discovery and credential theft: The attacker maps Active Directory, dumps credentials from memory, and targets privileged and service accounts.
- Lateral movement: They reach file servers, hypervisors, and domain controllers using RDP, SMB, and remote management tools.
- Data theft: They copy data to cloud storage, often with legitimate tools such as rclone.
- Sabotage of recovery: They delete shadow copies, wipe or encrypt backup servers, and stop database and backup services.
- Encryption: They push the encryptor to many systems at once, often by group policy or remote execution, usually at night or over a weekend, and leave a ransom note.
flowchart LR A["Initial access"] --> B["Credential theft"] B --> C["Lateral movement"] C --> D["Data theft to cloud"] D --> E["Backups and shadow copies destroyed"] E --> F["Mass encryption and ransom note"]
Under the hood
How the encryption works
Ransomware uses hybrid encryption. Each file gets a random symmetric key, usually AES or ChaCha20, because symmetric ciphers are fast. That key is then encrypted with the attacker's public key (RSA or an elliptic curve key), so only the attacker's private key can recover it. Without that private key, decryption is not practical, which is why recovery depends on backups or on the attacker.
Many families use intermittent encryption, scrambling only parts of each file to finish faster while still making it unusable. Variants built for VMware ESXi encrypt virtual machine disk files directly, which takes down dozens of servers by attacking one host.
The window before detonation
Most families run a predictable set of commands to stop recovery. These strings are among the most reliable detection signals in Windows environments:
vssadmin delete shadows /all /quiet
wmic shadowcopy delete
bcdedit /set {default} recoveryenabled No
wbadmin delete catalog -quiet
Around the same time you often see new services installed on many hosts, security tools being stopped or uninstalled, large outbound transfers to cloud storage, and one account authenticating to an unusual number of servers.
During encryption, file servers show mass renames to a new extension, a spike in writes with high entropy, and the same ransom note file appearing in many folders. On the network, one host writing to many SMB shares in a short time is a strong sign.
Framework mapping
T1486 is the encryption step. T1490 covers deleting shadow copies and backups. T1489 covers stopping services so files are unlocked for encryption. T1567 covers data theft to web services and cloud storage before the encryption starts.
Common attack scenarios
- A regional hospital's VPN account for a former contractor still works and has no MFA. Attackers use it, spend four days moving through the network, and encrypt the electronic health record servers on a Saturday night.
- A logistics company patches its remote access appliance but does not end active sessions. An affiliate replays a stolen session token, reaches the domain controller, and pushes the encryptor by group policy.
- A software firm's backups run on a server joined to the same domain with the same admin password. The attackers wipe the backups first, so the company has no clean restore point when encryption starts.
Framework mappings
Latest real-world attacks using this technique
News stories tagged with Ransomware. This list updates on its own while the page is open.
- High Foxconn Servers Hacked, $15 Million Ransom DemandedSecurityWeek
- Info UK government moves forward with ransomware payment banThe Record
- Info UK bans ransom payments for hospitals, schools, and infrastructureHelp Net Security
- High INC Ransomware Group Claims Data Theft from AccentureSecurityWeek
- Info UK bans ransomware payments for public sector organizationsBleepingComputer
- Info Cybersecurity expert shares hour-by-hour incident response planHelp Net Security
- High Ransom demands double to $2 million for enterprisesHelp Net Security
- High Foxconn and Accenture confirm ransomware breachesThe Record
Prevention, hardening and detection
Prevention and hardening
- Require phishing-resistant MFA on email, VPN, remote desktop gateways, and admin portals. Remove accounts nobody uses.
- Patch internet-facing devices first. CISA's Known Exploited Vulnerabilities catalog is a good priority list.
- Keep at least one backup copy offline or immutable, protected by separate credentials, and test full restores of core systems.
- Separate backup infrastructure from the main domain, and give it its own admin accounts.
- Use tiered administration and unique local admin passwords (for example with Windows LAPS) so one stolen credential does not open every server.
- Turn off remote desktop where it is not needed and restrict it to a jump host where it is.
- Run EDR with tamper protection on every server and workstation, including hypervisors where supported.
- Write and practice an incident plan that names who decides on isolation, restoration, communication, and legal questions.
Detection
| Data source | What to look for | Example |
|---|---|---|
| EDR process events | Shadow copy and recovery tampering commands | vssadmin delete shadows /all /quiet |
| Windows logs | New services on many hosts in a short time | Event 7045 (System) or 4697 (Security) on 30 servers in 10 minutes |
| Network or proxy logs | Large uploads to cloud storage from servers | rclone traffic to a storage provider at 3 a.m. |
| Authentication logs | One account logging on to an unusual number of hosts | Admin account touching 200 servers in an hour |
| File server telemetry | Mass renames and identical ransom note files | 10,000 files renamed to .locked in 5 minutes |
The earlier stages are where detection pays off. An alert on credential dumping or a burst of new services gives you hours or days. An alert on mass encryption gives you minutes.
Frequently asked questions
Should an organization pay the ransom?
It is a business and legal decision, not only a technical one. Payment does not guarantee working decryption or deletion of stolen data, and sanctions rules can make some payments illegal. Get legal advice and involve law enforcement early.
Are backups enough to recover from ransomware?
Backups let you restore systems, but they do not stop a leak of stolen data. They only help if attackers cannot reach them, so keep an offline or immutable copy and test restores regularly.
What is Ransomware-as-a-Service?
A business model where a core group builds and maintains the ransomware and leak site, and affiliates carry out the intrusions. Affiliates pay the group a share of each ransom, which is why the same ransomware brand can come with very different attack methods.
How long do attackers stay before encrypting?
It varies from hours to weeks. Many intrusions take only a few days from first access to encryption, which is why detection of early steps such as credential theft and lateral movement matters most.
References and further reading
- T1486: Data Encrypted for Impact
- T1490: Inhibit System Recovery
- T1489: Service Stop
- T1567: Exfiltration Over Web Service
- CISA #StopRansomware Guide
- CISA #StopRansomware
- CISA advisory AA23-325A: LockBit 3.0 affiliates exploit Citrix Bleed
- MITRE ATT&CK Enterprise matrix
- MITRE CWE list
- NIST Computer Security Resource Center glossary
Found a technical error in this entry? Tell us and we will fix it.