0Pricing
Cyber Security Academy · Lesson

How Ransomware Works

Encryption, extortion and double-extortion.

How Ransomware Works is a free Cyber Security Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Ransomware Is

Ransomware is malware that denies access to data or systems, typically by encrypting files, then demands payment for restoration. Modern campaigns are run by organized criminal enterprises with affiliates, support desks, and negotiation playbooks.

Understanding the mechanics defensively, not to build it, lets you break the attack chain at multiple points.

The Attack Lifecycle

Ransomware rarely encrypts the instant it lands. It follows a chain you can interrupt:

  • Initial access — phishing, exposed RDP, vulnerable VPN
  • Foothold and persistence — backdoor, scheduled task
  • Privilege escalation and lateral movement — spreading to more hosts
  • Discovery and exfiltration — finding and stealing data
  • Impact — mass encryption and ransom note

Detection during the early dwell time is far cheaper than recovery after encryption.

Common Initial Access Vectors

Most intrusions start with a small number of predictable entry points:

  • Phishing with malicious attachments or links
  • Exposed remote services like RDP with weak or reused passwords
  • Unpatched internet-facing software (VPN, mail, web apps)
  • Valid credentials bought from access brokers

Closing these is the highest-leverage prevention, covered in the next lesson.

How Encryption Is Used

Modern ransomware uses hybrid cryptography. It generates a fast symmetric key (AES) per file or per host to encrypt data quickly, then encrypts that symmetric key with the attacker's public key (RSA or elliptic curve).

Only the attacker holds the matching private key, so victims cannot recover the symmetric keys without it. Poorly built strains sometimes reuse or leak keys, which is why decryptors occasionally exist, but you should never rely on that.

Targeting Backups First

Sophisticated operators know backups are your escape route, so they hunt them before encrypting.

  • Deleting or encrypting backup repositories
  • Deleting Windows Volume Shadow Copies
  • Targeting backup admin credentials

This is why immutable, offline, or air-gapped backups (next lesson) are decisive: they cannot be reached and destroyed even with domain admin.

# attackers commonly run commands like this to remove local recovery points
# vssadmin delete shadows /all /quiet
# wbadmin delete catalog -quiet
# Detecting these commands is a strong early indicator

Single vs Double Extortion

Encryption alone fails against good backups, so attackers escalated leverage.

  • Single extortion — encrypt and demand payment for the decryption key
  • Double extortion — also exfiltrate data first, then threaten to publish it

Double extortion means restoring from backup is no longer enough: the data breach already happened. Treat every ransomware case as a potential data breach with legal and notification obligations.

Triple Extortion and Pressure Tactics

Beyond encryption and leaks, crews add pressure to force fast payment:

  • Triple extortion — threatening the victim's customers or partners directly
  • DDoS against the victim during negotiation
  • Contacting media or regulators to amplify reputational damage

These tactics target the business, not just the systems, which is why response must involve legal, communications, and leadership, not only IT.

Ransomware-as-a-Service

The ecosystem is industrialized. RaaS operators build and maintain the malware and leak site, then rent it to affiliates who carry out intrusions and split the profit.

Implications for defenders:

  • Many different intruders use the same toolkit, so shared indicators help
  • Affiliates have varying skill; some are noisy and detectable
  • Disrupting one operator displaces but does not eliminate the threat

Why Paying Is Risky

Payment is not a clean fix and is sometimes legally restricted.

  • No guarantee the decryptor works or is provided at all
  • Decryptors are often slow or corrupt files
  • Stolen data may be leaked or resold anyway
  • Paying funds future attacks and may violate sanctions law
  • Marks you as a payer, inviting repeat targeting

The defensible position is to be able to recover without paying, through preparation.

Living-off-the-Land

To evade detection, operators abuse legitimate built-in tools rather than dropping obvious malware. This is living-off-the-land.

  • Native admin tools for remote execution and discovery
  • Legitimate remote-access software repurposed for control
  • Built-in scripting to disable defenses and spread

Because the binaries are trusted, detection shifts from signatures to behavior: unusual use of admin tools by unexpected accounts.

Breaking the Chain

Every stage offers a defensive opportunity:

  • Initial access — MFA, patching, phishing resistance
  • Lateral movement — segmentation, least privilege
  • Exfiltration — egress monitoring, DLP
  • Impact — immutable backups so encryption cannot be permanent

You do not need to win every stage; interrupting any one can stop the operation. The next lessons build these layers.

Quick Check: Double Extortion

Apply the lifecycle to a recovery decision.

Recap: How Ransomware Works

You now understand the mechanics well enough to defend against them.

  • Ransomware follows a lifecycle: access, persistence, lateral movement, exfiltration, then impact
  • It uses hybrid encryption and deliberately destroys backups first
  • Double and triple extortion add data leaks and external pressure, making it a breach too
  • RaaS industrializes attacks; living-off-the-land evades signatures
  • Paying is risky; the goal is recovery without paying

Next: preventing the attack from ever taking hold.

Frequently asked questions

Is the “How Ransomware Works” lesson free?

Yes — the full text of “How Ransomware Works” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “How Ransomware Works”?

Encryption, extortion and double-extortion. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “How Ransomware Works” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. How Ransomware Works
  2. Prevention and Hardening
  3. Detection and Early Indicators
  4. Incident Response and Recovery
← Back to Cyber Security Academy