Ransomware: What Really Happens When Hackers Lock Your Files
The locked-screen moment is the loud part. Understanding what happens before it is where defenders find their advantage.
2 min readIntermediate Aug 24, 2026
Explain Like I'm Not a Hacker
Ransomware is like a burglar who quietly copies your keys, checks every room, and only locks the doors on the way out.
The 30-second explanation
Attackers get in quietly, look around, find what matters, and only then lock everything and demand money. The loud part is the end, not the beginning.
How it works
- 1
1. Get in
Phishing, an exposed service, or a stolen login.
- 2
2. Look around
Find servers, data and backups.
- 3
3. Take data
Copy sensitive files out first.
- 4
4. Lock files
Encrypt systems and leave a ransom note.
When people picture ransomware, they picture a screen suddenly saying files are locked. That moment is real, but it is usually the end of a story that started days or weeks earlier. First, the attacker gets a foothold, often through a stolen password or a malicious attachment. Then they explore quietly, working out where the important files and backups are. Often they copy data out before locking anything, so they can threaten to publish it. Only then do they lock the files and leave a note demanding payment.
Real-world example
A staff member's password is stolen through a fake sign-in page. Over several days, someone signs in, browses file shares, and tests access to servers. On a weekend evening, many machines start showing a ransom note at once โ the culmination of access the attacker had held quietly for days.
How to spot it
Unfamiliar admin activity
Administration tools running on machines that don't normally use them.
Large, unexplained transfers
A sudden burst of data leaving to an unfamiliar destination.
Security tools going quiet
Backup jobs or protection software being disabled without a reason.
Mass file changes
Many files being renamed or modified in a short window.
What to do
- 1Isolate affected machines from the network as soon as something looks wrong โ don't wait for confirmation.
- 2Preserve evidence and involve incident response before restoring from backup.
- 3Keep backups offline or immutable, so they cannot be reached from a compromised account.
Stay curious. Stay safer.
This is one piece of a bigger picture. Explore more real-world examples, concepts and tips to build your cybersecurity awareness.
Keep reading
- AI + SOC Workflows
AI in Incident Response: How I Use It During Real Investigations
2 min read - SOC & Blue Team
SIEM: The Security Camera System for Your Entire Network
2 min read - Credential Attacks
Credential Theft: How One Stolen Password Opens Every Door
2 min read - Security Basics
MFA: The Second Lock That Hackers Can Still Pick
3 min read