Ransomware
Threats & Attacks

Ransomware

A complete guide to Ransomware: encryption mechanisms, double and triple extortion, the 3-2-1 backup rule, and incident recovery steps.

Imagine arriving at work on a Monday morning, turning on your computer, and finding that none of your files will open. Instead of your normal desktop, a warning screen appears informing you that all your documents, databases, and backup files have been encrypted. A countdown timer warns that unless you pay a ransom in cryptocurrency within 72 hours, the decryption key will be destroyed and confidential company files will be posted publicly on the internet. This is Ransomware. It is one of the most disruptive and financially damaging cyber threats facing organizations today. Ransomware attacks have disrupted hospital emergency rooms, delayed manufacturing plants, and knocked municipal government services offline.

Definition

Ransomware is a form of malicious software that encrypts a victim's files or locks their computer systems, demanding a ransom payment in exchange for the decryption key or to prevent stolen data from being leaked.

Why It Matters

Ransomware has grown from simple individual scams into an organized criminal industry. Many groups operate under a Ransomware-as-a-Service (RaaS) model, where core developers build the encryption software and extortion websites, while independent affiliates carry out the network break-ins. Ransomware causes costly business downtime, recovery expenses, and reputational damage. Security and law enforcement agencies strongly advise against paying ransoms: paying funds criminal activity, does not guarantee you will get your data back, and makes an organization a prime target for future attacks.

How It Works

Modern ransomware uses advanced encryption techniques and multi-stage extortion tactics: 1. Hybrid Encryption: Encrypting gigabytes or terabytes of data using slow public-key algorithms would take too long. Modern ransomware uses hybrid encryption to work quickly: • Step 1: The malware generates a fast symmetric encryption key (such as AES-256) directly on the victim's device. • Step 2: It rapidly encrypts local files and database storage using this symmetric key. • Step 3: It encrypts the symmetric key using the attacker's public asymmetric key. • Step 4: The plaintext symmetric key is erased from memory. Now, only the attacker's private key can unlock the files. Without that key, mathematically recovering the data is virtually impossible. 2. Stages of Extortion: • Single Extortion: The attacker encrypts files and demands payment for the decryption tool. This tactic can be defeated if the organization maintains reliable, isolated backups. • Double Extortion: Before encrypting any files, attackers quietly copy and steal sensitive company data over several weeks. If the organization restores its systems from backups and refuses to pay, the attackers threaten to publish the stolen records on the dark web, triggering regulatory fines and public embarrassment. • Triple Extortion: Attackers combine file encryption and data leak threats with denial of service (DDoS) attacks against company websites, or by contacting the victim's customers and business partners directly to demand payment. 3. Targeting Backups: Modern ransomware specifically searches for and deletes local backups, shadow copies, and shared network drives before starting encryption. This is why having offline or immutable backups is essential.

The Multi-Stage Enterprise Ransomware Attack Sequence

1. Initial Network Access
Attackers gain access using stolen remote desktop credentials, a phishing email, or an unpatched VPN device
2. Silent Data Exfiltration
Attackers copy sensitive company databases to external servers over several weeks for double extortion
3. Backup Sabotage
Attackers locate and delete volume shadow copies, local network shares, and accessible backup catalogs
4. Rapid Mass Encryption
The ransomware is distributed across directory servers, rapidly encrypting files across the entire environment
5. Extortion Note Left
The software replaces desktop backgrounds, stops services, and leaves instructions for payment on a private portal
6. Multi-Prong Pressure
Attackers apply pressure using countdown clocks, threats to leak private data, and direct communications to leadership

Key Points

  • Ransomware uses hybrid encryption (such as AES-256 with RSA) to lock files quickly and securely.
  • Double extortion involves stealing confidential data before encrypting it, meaning backups alone do not stop public leaks.
  • Attackers actively seek out and delete connected network backups before beginning encryption.
  • Offline, air-gapped, and immutable backups are the most dependable protection against ransomware.
  • Paying ransoms funds criminal groups, does not guarantee file recovery, and invites future attacks.

Steps

  1. Follow the 3-2-1-1-0 Backup Rule

    Keep 3 copies of critical data, on 2 different storage types, with 1 copy kept offsite, 1 copy stored offline or in immutable storage, and 0 errors confirmed during regular recovery tests.

  2. Use Immutable Cloud Backup Storage

    Configure backup repositories with Object Lock (Write Once, Read Many) so that even compromised administrator accounts cannot delete or modify backup files for a set retention period.

  3. Segment Enterprise Networks

    Separate user workstations from core production databases and block workstation-to-workstation file-sharing traffic to limit lateral spread.

  4. Isolate Affected Systems Immediately

    If active file encryption is detected, disconnect network cables and wireless connections immediately to prevent the malware from reaching other servers.

  5. Rebuild and Restore from Clean Backups

    Work with incident response specialists, notify authorities, identify how the intrusion occurred, and restore systems cleanly from verified offline backups.

Examples

The Lock and Blackmail Analogy

Single extortion is like someone putting a padlock on your office door and asking for money to remove it. If you have a spare key (backups), you unlock the door and ignore them. Double extortion is when the intruder also photographed all your confidential client files before locking the door, threatening to post them online if you do not pay. Even with your spare key, you face a serious privacy dilemma.

Real-World Examples

The Colonial Pipeline Disruption (2021)

The DarkSide ransomware group gained access to Colonial Pipeline using compromised credentials on an older VPN account that did not require multi-factor authentication. As a precaution, Colonial Pipeline temporarily shut down 5,500 miles of fuel pipelines that supply major parts of the US East Coast. The incident caused regional fuel shortages and highlighted the importance of securing legacy access points.

Technical Examples

Automated Canary File Tripwire Script for Ransomware Detectionpowershell
# Automated Ransomware Canary File Tripwire (Detects rapid mass-renaming)
# Deployed on file servers monitoring a hidden 'Canary' bait directory

$canaryPath = "C:\CanaryShare"
$filter = "*.*"

$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = $canaryPath
$watcher.Filter = $filter
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $true

$action = {
    $changeType = $Event.SourceEventArgs.ChangeType
    $fileName = $Event.SourceEventArgs.FullPath

    # Identify known ransomware extension append patterns
    if ($fileName -match "\.(locked|crypto|enc|lockbit|crypted)$" -or $changeType -eq "Renamed") {
        Write-Warning "[CRITICAL ALERT] Rapid File Encryption Detected on: $fileName"

        # AUTOMATED DEFENSE ACTION: Sever network interface immediately!
        Disable-NetAdapter -Name "Ethernet" -Confirm:$false
        Write-Host "[EMERGENCY ACTION] Host network adapter disabled to halt lateral ransomware propagation."

        # Trigger security alert notification
        # Invoke-RestMethod -Uri "https://siem.corp.internal/api/alert" -Method Post ...
    }
}

Register-ObjectEvent $watcher "Changed" -Action $action
Register-ObjectEvent $watcher "Renamed" -Action $action
Write-Host "Canary tripwire active. Monitoring $canaryPath for ransomware tampering..."
Canary file shares act as early tripwires. Placed in directories that ransomware typically encrypts first, any rapid renaming or modification of canary files triggers automated local network isolation, stopping lateral spread before entire disks are encrypted.

Single Extortion vs Double / Triple Extortion

AspectSingle ExtortionDouble / Triple Extortion
Primary Pressure PointVictim files are encrypted and inaccessibleStolen confidential data will be published online on leak sites
Are Backups Enough?Yes: Restore data from backups and ignore payment demandsNo: Restoring backups recovers operations, but does not stop data publication
Regulatory ImpactGenerally low if no sensitive data was stolen or leakedHigh, as public disclosure of sensitive records triggers privacy regulations
Attacker Time on NetworkOften short, encrypting files soon after entryLonger, spending weeks mapping networks and copying valuable data

Incident Response Steps for Ransomware Outbreaks

When active ransomware is discovered, security teams follow structured incident response steps: 1. Detection and Verification: Identify affected computers, determine the ransomware strain, and locate the initial entry point. 2. Containment: Disconnect network cables and wireless adapters immediately on infected machines. Do not immediately power off machines if memory needs to be captured for forensic analysis. 3. Eradication: Wipe compromised machines and reinstall operating systems from clean, trusted images. Reset passwords and security tokens across administrative accounts. 4. Recovery: Restore data from verified offline, immutable backups in an isolated environment before reconnecting systems to the primary network. 5. Post-Incident Review: Document how the attack occurred, fix the root vulnerabilities, and report the incident to relevant law enforcement agencies.

Advantages

  • Resilient Architecture: Defending against ransomware pushes organizations to implement strong, tested, immutable backup practices.
  • Improved Awareness: Highlights the real-world value of basic security practices like multi-factor authentication and network segmentation.

Limitations

  • Strong Cryptography: Once files are encrypted with strong modern algorithms, they cannot be unlocked without the matching decryption key or clean backups.
  • Extortion by Publication: Backups restore business operations, but they cannot undo the theft and public exposure of sensitive business data.

Interview Questions

What is the 3-2-1-1-0 backup rule and why is it important against ransomware?

The 3-2-1-1-0 backup framework recommends: keeping 3 copies of important data, stored across 2 different media types, with 1 copy stored in an offsite location, 1 copy kept completely offline or in immutable storage (where data cannot be edited or deleted for a set period), and 0 errors verified through regular restore drills. This is critical because modern ransomware specifically searches for and destroys connected network backups before beginning encryption.

Practice Questions

  1. Check your organization's backup retention policy: Are any backup copies stored in immutable storage or completely disconnected from the network?
  2. Explain how enforcing multi-factor authentication on all remote access accounts helps prevent initial ransomware intrusions.