Fundamentals

T1486

Ransomware Fundamentals

A SOC analyst's introduction to ransomware --- how operators get in, how encryption works, the double-extortion model, and the major RaaS families dominating the threat landscape.

View on Graph

What Ransomware Is and How It Became an Industry

  • Ransomware is malicious software that encrypts files or locks systems and demands a ransom for the decryption key.
  • MITRE ATT&CK maps the encryption impact to T1486 (Data Encrypted for Impact).
  • Ransomware is not a new threat — the first documented ransomware (PC Cyborg/AIDS Trojan) appeared in 1989 — but it has evolved from opportunistic, low-value attacks into a multi-billion-dollar criminal enterprise run as a service.

The Ransomware Kill Chain — How Operators Get In

Ransomware is the final stage of a multi-phase intrusion. Understanding the path in is critical for detection:

StageWhat HappensHow Attackers Do ItDetection Opportunity
1. Initial AccessAttacker gains footholdPhishing (most common), RDP brute force, vulnerability exploitation, compromised VPN credentialsMalicious email attachment or link detection; failed RDP logins from unusual IPs
2. PersistenceAttacker ensures they can get back inScheduled tasks, WMI subscriptions, service installation, registry Run keysEvent ID 4698 (scheduled task), Sysmon Event 1 (new service), registry modification
3. ReconnaissanceAttacker maps the networkAD enumeration via BloodHound, net commands, LDAP queriesExcessive 4662 (directory service access), net.exe execution from non-admin workstation
4. Credential TheftAttacker steals credentials for lateral movementMimikatz (LSASS dump), credential harvesting from local SAM, NTDS.dit extractionEvent ID 4688 with lsass.exe in process access; Event ID 4663 with access to lsass.exe; Mimikatz signature detection (strings in memory)
5. Lateral MovementAttacker spreads across the networkRDP, SMB/PsExec, WMI, WinRMEvent ID 4624 logon type 3 from unusual source; Event ID 4648 (explicit credentials); Service Control Manager events
6. Data ExfiltrationAttacker steals sensitive data before encryptionLarge outbound file transfers to cloud storage, FTP, attacker C2NetFlow anomalies (spike in outbound volume), unusual S3/cloud API calls from workstation
7. EncryptionAttacker deploys ransomware across the domainPsExec, GPO push, scheduled task deployment, WMIC deploymentMass file rename events, EDR alerts for ransomware behavioral signatures, Event ID 4688 for ransomware binary execution across multiple hosts
8. ExtortionAttacker demands paymentRansom note, dark web leak site, email threatPost-incident — forensic analysis determines the variant

Major Ransomware Families and Their TTPs

FamilyFirst SeenInitial AccessLateral MovementNotable TTPs
LockBit2019Phishing, RDP brute force, compromised VPNPsExec, scheduled tasks, GPOFastest encryption speed. LockBit 3.0 introduced bug bounty program. Self-spreading via GPO.
BlackCat/ALPHV2021Phishing, compromised credentialsPsExec, WMI, WinRM, VSS deletionRust-based. Custom exfiltration tool (Munchkin). First major RaaS group to use Rust for cross-platform targeting.
Black Basta2022Phishing (Qakbot), RDP, Zoho vulnerabilityPsExec, RDP, SMBUses BITS for download. Very fast encryption. Known for exploiting ConnectWise vulnerabilities.
Clop2019Vulnerability exploitation (GoAnywhere MFT, MOVEit, Accellion FTA)N/A — exploits vulnerable public-facing applicationsExclusively uses zero-day vulnerabilities. Large-scale data theft (MOVEit impacted 2,000+ orgs).
REvil/Sodinokibi2019Phishing, RDP, managed service provider compromiseAD group policy, scheduled tasksFirst group to popularize “big game hunting” (>$1M ransoms). Automatic encryption on network shares.
Ryuk/Conti2018-2021Trickbot/Emotet initial access, then hands-on keyboardPsExec, WMI, RDPManual deployment — human-operated, not automated. High ransom demands ($500K-$5M). Conti chat logs leaked in 2022 revealing internal operations.
Akira2023VPN credential compromise (no MFA), CVE exploitationRDP, PsExecLinux variant targets ESXi hypervisors. Uses custom Rust encryption. Ransom note demands payment in Bitcoin.
Lorenz2021Phishing, RDP brute forcePsExec, RDP, Cobalt StrikeKnown for asymmetric encryption (fast encryption per file, slower for critical files). Uses command-line encryption.

The Double-Extortion Model

Modern ransomware attackers do not just encrypt data — they steal it first and threaten to publish it. This is the double-extortion model:

  1. Data exfiltration — before deploying encryption, attackers exfiltrate sensitive data to their servers
  2. Encryption — files are encrypted on each host
  3. Demand — ransom note demands payment for both: (a) decryption key, and (b) non-publication of stolen data

Why it changed the game: Organizations with good backups could recover from encryption without paying. With exfiltrated data, the attacker has a second bargaining chip — data breach notification laws, reputational damage, and customer notification costs create pressure to pay.

RaaS (Ransomware-as-a-Service) Economics

RoleResponsibilityCut of Ransom
DeveloperWrites and maintains the ransomware code20-30%
AffiliateConducts the intrusion — gains access, moves laterally, deploys ransomware70-80%
Initial Access BrokerSells access to networks (bypass, VPN, RDP credentials)Flat fee per access (varies by network size)
Money LaundererManages cryptocurrency payments, mixing, and conversion3-5% (plus layering costs)
NegotiatorProfessional ransom negotiator (sometimes third-party IR firms)Hourly or % of reduction

Analyst implication: Disrupting any role in the chain affects the economics. Catching the affiliate during lateral movement prevents the encryption. Taking down the developer or infrastructure (leak site, payment portal) disrupts the entire model. This is why law enforcement operations target infrastructure and developers (e.g., REvil takedown, Hive takedown, LockBit takedown).


Detection — Ransomware at Each Stage

StageWhat to MonitorKey Indicator
Initial AccessEmail gateway, VPN logs, RDP logsPhishing URL click, failed VPN login followed by success, user-reported suspicious email
Post-compromiseEDR, process creation (4688), PowerShell logspowershell -EncodedCommand, wget/curl downloads, scheduled task creation
Credential TheftEvent 4663 (handle to lsass.exe), Sysmon Event 10 (process access)Access to lsass.exe from non-standard process (not svchost, winlogon, LogonUI)
Lateral MovementEvent 4624 (logon type 3 or 9), Event 4648 (explicit credentials)Service account logging on to workstations, PSExec service creation (Event 7045)
Data ExfiltrationNetFlow, proxy logs, cloud API callsOutbound traffic spike, large file uploads to cloud storage, HTTP POST to uncommon IP
EncryptionEDR alerts, file audit events, high CPUMass .encrypted file creation, process with high CPU across multiple hosts, Event 4656 on file handles

SPL query — detect credential theft (lsass.exe access from non-standard process):

index=windows sourcetype="WinEventLog:Security" EventCode=4663
| search ObjectName="*lsass.exe"
| eval standard_processes = "svchost.exe,winlogon.exe,LogonUI.exe,csrss.exe,lsm.exe"
| where NOT (ProcessName IN (standard_processes))
| stats values(ProcessName) as AccessingProcess, values(AccessMask) as Mask by SubjectUserName, ComputerName
| eval alert = "HIGH — non-standard process " . AccessingProcess . " accessed lsass.exe on " . ComputerName

SPL query — detect lateral movement via service creation:

index=windows sourcetype="WinEventLog:System" EventCode=7045
| search ServiceName IN ("*PSExec*", "*psexesvc*", "*WMI*", "*WinRM*")
| stats values(ServiceAccount) as ServiceAccount, values(ServiceType) as Type by ComputerName, _time
| eval alert = "HIGH — remote service created on " . ComputerName . " — possible lateral movement"

Sources