← All posts
Threats

What is ransomware? How it gets in, what it does, and what actually stops it

Ransomware as an operator sees it: the entry points, the days before encryption, why backups get deleted first, and the controls that stop it in cost order.

Ransomware is malware that encrypts your files and sells you the key. That's the last ten minutes of it. The part that matters is the days or weeks before: an attacker got onto one machine, worked their way to every machine, found your backups and deleted them, copied your data out, and only then pressed the button. Once you see what is ransomware as an intrusion rather than a file encryptor, the defences stop looking like a shopping list and start looking like an order of operations.

What ransomware actually is: an intrusion with a billing step

The encryptor is a small program. What makes ransomware a business is everything that gets it onto hundreds of machines at once, with the backups already gone.

  1. Initial access. One foothold. A phishing email that lands a credential, a remote desktop or VPN gateway on the internet with a password and no MFA, or an edge device (firewall, VPN appliance, file transfer server) with a published bug nobody patched. Boundary crossed: outside the network to inside it.
  2. Privilege escalation and lateral movement. The foothold is one user on one laptop. The attacker wants domain admin. They dump credentials from memory or find a service account with a reused password, then move over RDP, SMB, WMI, whatever is already allowed between machines. Boundary crossed: one machine to every machine.
  3. Finding and deleting backups. With admin rights they locate the backup server, the NAS, the cloud bucket. They delete snapshots, wipe repositories, and run vssadmin delete shadows /all on endpoints so Windows' own restore points go too.
  4. Exfiltration. Before encrypting, they copy data out. This is the second lever of double extortion: pay or we publish. A perfect restore doesn't end the incident.
  5. Encryption and the note. Pushed to every reachable host at once, usually out of hours, with the admin rights collected in stage two.

Stages one to four can take hours or weeks. That window is where you win or lose.

Why "just restore from backup" fails

"Keep backups and you can ignore the ransom" is correct only with one extra word: unreachable backups.

Your backup server sits on the same network as everything else, with an admin account in the same directory as every other account. When the attacker has domain admin, they have your backup server. Backups on a network share, a mounted volume, or a bucket the service account can delete from are not backups in the sense that matters. They are files the attacker deletes at stage three. Replication is no better: a replica of an encrypted volume is an encrypted volume twice.

The test I use: holding every credential in the directory, can the attacker delete this copy? If yes, it's a convenience, not a recovery plan.

What stops ransomware, in cost order

Cheapest and highest impact first, each tied to a stage above. I've put the friction in, because friction is why these don't get done.

1. MFA on every remote entry point

Closes stage one for the credential path. Every VPN, RDP gateway, webmail login and admin panel reachable from the internet. Not "MFA for the admins". Everyone, because the foothold is usually a normal user's password.

Cost: a few days to roll out and a stream of "I got a new phone" tickets. Push-based MFA is weak against fatigue attacks; number matching or hardware keys are better. Passkeys vs passwords vs 2FA covers which stops what.

2. Patch edge devices fast, and know what you have

Closes stage one for the exploit path. Edge devices are internet-facing, often unmanaged, and on old firmware because "it works". When a bug is published, scanning starts within hours. What is a zero-day explains why the name tells you the clock has already started.

First, know what's exposed. From outside your network:

nmap -Pn -p 22,443,3389,8443 your.public.ip.range/28

Anything answering on 3389 that isn't behind a VPN with MFA is a stage-one entry point waiting for a password. Then check each device's firmware against the vendor's advisory page, monthly, on a calendar entry.

Cost: a maintenance window per device per patch, sometimes a reboot that takes the office offline for five minutes. Pay it.

3. Offline or immutable backups that you have actually restored from

Closes stage three. "Offline" means not reachable from the network: rotated disks, tape, or a cloud copy written with credentials that have no delete permission. "Immutable" means object lock or the vendor's equivalent: a retention period during which nobody, including your own admin, can delete it.

Then test it. Pick a server, pretend it's gone, rebuild it from backup onto a fresh VM, and time it. Every backup I've seen that was never restored had a surprise in it.

Cost: storage for the extra copy, a quarterly afternoon for the restore test, and you can't delete a mistake until retention expires.

4. Least privilege and segmentation

Slows stage two. Local admin removed from daily accounts. Separate admin accounts never used for email. Service accounts with the one permission they need. Workstations that can't reach each other on SMB and RDP, because they have no business doing so.

Cost: the expensive one in friction. Users can't install things, every rule between segments is a ticket. Do workstation-to-workstation first, then servers by role.

5. EDR with someone watching it

Catches stages two to five when the rest fails. EDR sees credential dumping, odd process chains and mass file operations, but an alert at two in the morning has to reach a human who can isolate the host. An EDR licence with nobody on the console is an audit log for your post-incident report.

Cost: the licence, plus a managed service or a rotation. SOC analyst burnout is about what happens when that rotation is designed badly.

Detection signals an operator can watch for

You don't need a SIEM to notice the loud ones.

SignalStageWhere to look
Shadow copy deletion (vssadmin, wmic shadowcopy delete, wbadmin delete)Backup deletionProcess creation logs, EDR
Backup repository deletions you didn't scheduleBackup deletionBackup console, alert on delete
Unusual outbound volume from a server at nightExfiltrationFirewall or NetFlow, cloud egress metrics
Archive or sync tools appearing on servers (rclone, 7-Zip, WinSCP)ExfiltrationSoftware inventory, EDR
Mass file renames in a short windowEncryptionFile server audit logs, a canary share
One account logging in to many hosts in minutesLateral movementDomain controller logon events

The cheapest alarm I know is a canary share: a few hundred documents nobody uses, with auditing on. On a Linux file server, a crude version:

inotifywait -m -r -e moved_to,create,delete /srv/canary --format '%T %e %w%f' --timefmt '%H:%M:%S'

A burst of events there is not a user. Isolate first, investigate second.

If it's already happening: disconnect affected hosts rather than powering them off, and don't restore anything until you know the entry point, or they'll be back on the restored systems. The first hour of a hacked account is about one account, but the principle holds: contain, change the credentials the attacker holds, then rebuild. Report it at cybercrime.gov.in or the 1930 helpline in India, or your national cybercrime line elsewhere.

Frequently asked questions

Does antivirus stop ransomware? Sometimes, at the last stage. It catches known encryptors and misses new ones, and by the time the encryptor runs the attacker has had admin for days. Worth having; not the control that decides the outcome.

We're small. Are we really a target? You're not a target, you're a result. Attackers scan the whole internet for exposed RDP and unpatched appliances and work through whatever answers. Size changes the amount they ask for, nothing else.

Is OneDrive or Google Drive a backup? Partly. Synced folders sync the encrypted versions over the good ones. Version history helps if you notice fast, but it fails the "can the attacker delete it" test once they hold the account.

Should we pay? That's a legal and business decision that varies by jurisdiction. Technically: a decryptor may not work, it doesn't undo exfiltration, and the entry point is still open. Fix that regardless.

Run the nmap scan above against your own public range this afternoon. Whatever answers on 3389 or an admin port without MFA is your stage one. Close it before someone else finds it.

Threats
Why the company threatens the person who reported its bugPolicy

When responsible disclosure gets you a lawyer's letter

Why a company threatens the person who reported its bug, why the researcher is still partly right, and the procedural fix on both sides that makes the letter unnecessary.

Zero days for the vendor to fix it. The name tells you what to do.Threats

What is a zero-day? And why the name tells you what to do

A zero-day is a vulnerability the vendor has had zero days to fix. Here is how the term splits three ways, how the clock runs, and what a defender can do with no patch.

One unauthenticated request. Any PHP that serves the web. Patch tonight.Web security

PHP2Shell: two unauthenticated RCE flaws in PHP, and what to patch tonight

CVE-2026-109618 and CVE-2026-109619 let an attacker run code on a PHP web server with a single unauthenticated request. Here is the mechanism, the fixed versions, and why mod_php setups are in the most danger.