Ransomware attack: from first compromise to discovery
· Updated · No. 230
Ransomware attacks typically develop over weeks, with attackers gaining access long before files are encrypted. Understanding the stages helps organisations identify and stop attacks earlier.
Let's follow a realistic ransomware incident at a medium-sized company. We'll trace what the attackers do, what the company's staff see, what investigators can discover from the evidence, and where the attack could have been stopped.
The central point is that the moment a company discovers ransomware is often not the moment the attack began. The attacker may have gained access days or weeks earlier.
Imagine a company with 150 employees. It operates a website, stores customer records in a database, uses a shared file server and relies on email and accounting software.
One Monday morning, employees find that they cannot open their files. A message appears demanding payment to restore access. The company suspects ransomware.
What happened before Monday?
The attack timelineDay −14 Stage 1 - Initial access
An employee receives a convincing email and enters their password on a fraudulent sign-in page. Alternatively, the attackers obtain credentials that were stolen in an earlier breach.
Possible evidence: email headers, sign-in records, suspicious IP addresses and reports of unusual messages.
Day −13 Stage 2 - An account is compromised
The attacker signs in using the stolen credentials. If the account has broad permissions or lacks multi-factor authentication, the attacker may gain access to email, shared files or remote-access services.
Possible evidence: a login at an unusual time, an unfamiliar device or unexpected access to sensitive records.
Days −12 to −7 Stage 3 - The attacker explores
The attacker attempts to discover other systems, obtain more powerful permissions and locate valuable data. They may also look for backups and ways to disable security monitoring.
Possible evidence: unusual administrative activity, new accounts, unexpected software and attempts to access multiple computers.
Days −6 to −1 Stage 4 - Data theft and preparation
Some ransomware groups copy sensitive information before encrypting files. They may try to weaken backups or prepare to affect multiple systems at once.
Possible evidence: unusual outbound data transfers, unexpected archive files, abnormal backup activity or security alerts.
Day 0 Stage 5 - Ransomware becomes visible
Employees discover inaccessible files and a ransom note. The company now has clear evidence of a major incident, but the attacker may already have stolen information or compromised other systems.
Possible evidence: ransom notes, renamed or encrypted files, endpoint security alerts and failed access to shared systems.
This timeline is illustrative, not a claim that every ransomware attack follows this exact sequence. Some attackers move much faster; others never steal data or spend much time inside a network. The NCSC and CISA describe these patterns in their ransomware guidance
Source: National Cyber Security Centre
The attack on Change Healthcare demonstrates how a weakness at the beginning can have consequences far beyond the affected computer.
The entry point
UnitedHealth's chief executive told a US congressional committee that the attackers used compromised credentials to access a remote-access portal that did not have multi-factor authentication enabled.
House Committee on Energy and Commerce
The consequences
The ransomware attack disrupted healthcare claims and payment processing across the United States, affecting providers and pharmacies that depended on the service.
Reuters
The key lesson is not simply that the organisation lacked a security feature. It is that an access-control weakness at a critical entry point can expose services on which many other organisations depend.
Once the incident is contained, investigators build a timeline by comparing evidence from different sources.
| Evidence | Question it helps answer |
|---|---|
| Email records | Was an employee targeted with a deceptive message? |
| Authentication logs | Which account was used, and when? |
| Server and endpoint logs | Which computers and files were accessed? |
| Network records | Was information transferred outside the organisation? |
| Backup records | Were backups accessed, altered or deleted? |
| Ransomware files and notes | Which systems were affected, and what demands were made? |
No single log usually tells the whole story. A login from an unfamiliar location is a warning sign, not proof of criminal activity. Investigators corroborate it with other evidence.
What should the company do when it discovers the attack?The first priority is to stop further damage, not to start deleting files or immediately rebuilding computers.
The NCSC provides a detailed ransomware response guide. It also advises that paying a ransom does not guarantee recovery or prevent stolen information from being disclosed.
Comments
No answered comments yet. Yours could be the first.
Add a comment
Your email address is needed so we can reply, and is never shown on the site. Comments appear here once they have been answered.