The ransomware lifecycle, end-to-end
The ransomware process is a complex, multi-stage journey that can take weeks. Learning to recognize the behaviors that make up each step is essential for distinguishing normal administrative activity from shady activity masquerading as such.
1. Initial access
Rather than attempting to break in through time-consuming technical exploits or noisy brute-force attacks, threat actors are increasingly focusing on logging in using valid credentials. Social engineering remains a go-to for initial access, while “AI is increasingly being used to craft highly convincing, hyper-personalized phishing messages.
In other cases, attackers purchase stolen credentials on the dark web. If a remote access tool, such as Remote Desktop Protocol (RDP), is exposed directly to the internet without a VPN or multi-factor authentication (MFA), an attacker with stolen credentials can access that endpoint with ease.
2. Defense evasion
Once attackers are inside, they work to make sure they aren’t discovered. They do this by hijacking legitimate system tools (e.g., Windows Management Instrumentation [WMI], PowerShell) and injecting malicious code into legitimate running processes. This approach, known as living off the land (LotL), disguises hacker activity (disabling detection tools, clearing system logs) as legitimate activity.
Another sophisticated approach is "bring your own vulnerable driver" (BYOVD), in which attackers drop and load a legitimate, digitally signed driver with a known security flaw. They exploit this vulnerability to disable EDR, hide their activity, and harvest credentials.
3. Persistence
To ensure long-term access even after a system reboot, attackers use persistence mechanisms. They will often inject malicious scripts into scheduled tasks or modify registry “Run” keys to execute malware every time a user logs in. They may also create new admin accounts in case their primary credentials are revoked.
4. Privilege escalation
An attacker’s initial point of access will often have limited, user-level permissions. To move throughout the network and access sensitive servers, they must escalate their privileges to administrator or SYSTEM levels. They do this by using tools like Mimikatz to harvest the credentials of every user who has recently logged into that machine. If they fully compromise the Domain Controller, they can use Active Directory (AD) to get the "keys to the kingdom."
5. Discovery and lateral movement
Once an attacker has admin rights, they can map the environment to identify high-value targets like backup servers, financial databases, and sensitive intellectual property. They move laterally across the network using Server Message Block (SMB) or RDP to blend in with normal traffic.
6. Data staging and exfiltration
In most modern attacks, attackers quietly exfiltrate sensitive data before encrypting it, enabling double extortion if the victim has reliable backups. Before exfiltrating data, attackers will move it to a central staging area for compression. From there, they can upload it to the cloud or their own servers.
7. Encryption and impact
Since encryption is the most visible stage of a ransomware attack, threat actors will often wait until after business hours or during holidays to launch payloads. This capitalizes on the fact that many organizations’ IT and security teams will be offline or short-staffed during those windows.
Before deploying encryption, attackers often delete local backups so victims can’t easily restore their data. They will then encrypt files and drop the ransom note demanding payment in exchange for the decryption key and a promise not to leak the stolen data.