Home Tech & ScienceHow Ransomware Attacks Work: Inside the Five Stages of an Attack

How Ransomware Attacks Work: Inside the Five Stages of an Attack

by Leo
0 comments
How Ransomware Attacks Work: Inside the Five Stages of an Attack

On a Friday afternoon, an employee in accounts payable opens a PDF invoice that looks exactly like the dozens she processes every week. She clicks ‘Enable content’, the document loads, and nothing else happens. She moves on with her day. Sixteen days later, 4,000 servers stop responding at once and a note appears on the office printer.

That gap between the click and the chaos is the part most people never see. Ransomware isn’t a single nasty file that arrives and locks your drive. It’s a campaign run by people who have done this many times, and it moves through predictable stages. Knowing those stages tells you where you still have a chance to break the chain.

Stage one: getting a foothold

Almost no ransomware crew starts with ransomware. The first job is simply to get one valid username, one unpatched doorway, or one machine that will run their code. The most common cybersecurity threats businesses face all feed into this stage because they all lead to the same outcome: initial access.

Typical entry points look like this:

banner
  • Phishing and malvertising. A malicious attachment, a fake login page, or a poisoned search ad pushing a bogus installer.
  • Stolen credentials. Usernames and passwords harvested by infostealer malware on employees’ personal devices, then sold on criminal marketplaces.
  • Unpatched edge devices. VPN appliances, firewalls and file-transfer tools that face the internet and lag behind on security updates.
  • Exposed remote access. RDP or a management port left open to the world with weak or reused passwords.
  • MSP and vendor access. Attackers compromise a supplier with trusted access and ride that trust inward.

There’s a whole criminal economy here. Initial access brokers specialize in breaking in and then selling that foothold to ransomware operators, who never touch the phishing email themselves.

Patching is not a housekeeping task

When an exploit becomes public, the race starts immediately. Attackers scan the entire internet for vulnerable systems within hours. Modern defensive approaches, including the memory-safe coding practices described in this look at AI-driven attacks and memory-safe code, reduce how many of those holes exist in the first place, but the operational fix is still boring and urgent: know what’s exposed and patch it fast.

Stage two: the quiet part

Once inside, the attacker’s job becomes invisibility. They escalate from a standard user account to administrator, dump credential hashes, and move sideways from workstation to server using tools that already exist on the network. PsExec, PowerShell, scheduled tasks, remote management software. Nothing looks exotic, which is exactly why it slips past antivirus.

This is the longest phase. Security teams call it dwell time, and in many investigations it runs from a handful of days to several weeks. Attackers map the network, find the backup servers, identify the domain controllers, and figure out which machines run the business. They also disable endpoint protection and logging where they can. Every one of those steps is a moment where an alert could have ended the story early.

Stage three: steal the data before locking it

Encryption alone stopped being enough years ago. Backups got better, so attackers adapted by adding a second lever: exfiltration. Before touching a single file, they copy gigabytes of customer records, HR files, contracts and financial data out of the network, often to cloud storage or a file-sharing service that looks legitimate.

That haul becomes the ‘double extortion’ threat. Pay up, or we publish the data and tell your customers, your regulator and your local newspaper. For a hospital, that second threat often matters more than the encrypted servers, because patient data carries legal and reputational weight that systems don’t.

Stage four: the encryption itself

The detonation usually happens at night, on a weekend, or right before a public holiday, timed to maximize the hours before anyone can respond. The technical sequence is fast and methodical:

  • Delete or corrupt shadow copies and Windows recovery partitions so local restore points vanish.
  • Disable or uninstall backup agents and security tooling.
  • Push the encryptor through group policy or a management tool so it runs everywhere at once.
  • Encrypt files with a fast symmetric cipher such as AES, then wrap that key with public-key cryptography so only the attacker can unlock it.
  • Target virtual infrastructure directly, encrypting VMware ESXi datastores and taking down dozens of servers in one move.

Speed matters to them, so many strains use partial or ‘intermittent’ encryption, scrambling only the first chunk of each file. The file is still unusable, but the job finishes in a fraction of the time. Then the ransom note lands in every folder and the systems go dark.

Stage five: the negotiation

Extortion is a business with a help desk. Victims typically find a link to a Tor chat portal where they can talk to a ‘support agent’. The crew offers proof: a decryptor tested on two or three files, a sample of stolen records, a countdown timer. Demand sizes vary wildly, from a few thousand dollars aimed at a small clinic to seven figures aimed at a manufacturer.

Discounts are routine. Negotiators report that crews will drop their price 30 to 50 percent if the victim stalls, claims insurance limits, or shows genuine inability to pay. Affiliates take a cut, often 70 to 80 percent, which explains why the same leaked toolkit shows up under different gang names.

Downtime is the real bill

The ransom is rarely the biggest number. Lost production, idle staff, legal fees and regulatory penalties stack up hour by hour. Research into hospital cyber attacks and their $600K-per-hour cost makes the point brutally clear: a two-week outage can dwarf any payment demand.

Why paying is a coin flip

Law enforcement agencies discourage payment for good reason. Roughly a third of victims who pay never get fully working decryption, and a meaningful share get hit again because paying marks them as a customer who pays. Restoring from clean backups is slower and uglier, but it’s the only path that doesn’t fund the next attack.

Good backups fail for boring reasons: they lived on the same domain the attacker controlled, or nobody had tested a restore since the system was installed. An untested backup is a hope, not a plan.

What actually shortens the damage

Every stage above leaves traces. The work of defense is stacking small obstacles so the attacker trips on one before reaching encryption.

  • Phishing-resistant MFA on email, VPN and admin accounts, so a stolen password alone is useless.
  • Offline or immutable backups, tested quarterly with an actual restore, not a green tick in a dashboard.
  • Least privilege and a hard separation between admin accounts and daily-use accounts.
  • Network segmentation so that one compromised laptop can’t reach the backup server.
  • Alerting on the boring things: mass file deletion, new service accounts, shadow copy removal, unusual outbound transfers.
  • An offline incident playbook with phone numbers, because your email and intranet will be gone.

For individuals, the same logic applies at smaller scale. Learning to protect your personal information reduces what a phisher can use against you, and fixing the common cybersecurity mistakes people make online closes doors that attackers scan for automatically. It also helps to separate what actually protects you from what is just marketing, since a lot of paid ‘protection’ does nothing against a stolen session token.

Ransomware crews are not unstoppable geniuses. They are opportunists running a repeatable process, and they abandon targets that look expensive to crack. The organization that patches within 48 hours, segments its network and can restore a domain controller from tape in four hours is a worse bet than the one next door. That’s the whole game: be harder to finish.

You may also like

Leave a Comment