Join our Newsletter — 33% off our NHI Course
Home› Guides› Ransomware Forensic Investigation Guide: Finding Patient Zero, Dwell…
Guide Incident Response & Forensics

Ransomware Forensic Investigation Guide: Finding Patient Zero, Dwell Time and Exfiltration Evidence

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 16 min read
On this page

A ransomware forensic investigation works backwards from the encryption event to answer three questions that decide everything after it: where the intrusion started, how long the attacker was inside, and whether data left the network. Encryption is the loudest moment of a ransomware incident but rarely the most informative. By the time files are renamed and ransom notes appear, the attacker has usually gained access, moved between hosts, collected credentials and, in many cases, staged and removed data. The forensic job is to reconstruct that earlier story from evidence that the attacker may have tried to destroy.

This guide is for incident responders and forensic analysts who already have a response running and now need to establish facts that will stand up in a report to leadership, insurers, regulators or law enforcement. It covers evidence preservation in the order that matters for ransomware, the reasoning used to find patient zero, how to measure dwell time honestly, and where exfiltration evidence tends to survive. Containment, rebuilding identity and restore priorities are covered in the Ransomware Response and Recovery Guide, so this page does not repeat them.

Key takeaways

  • The encryption timestamp is the end of the story, not the start. Treat it as an anchor and work backwards through every host that touched the earliest encrypted data.
  • Volatile and short-retention evidence goes first. CISA's #StopRansomware Guide advises taking a system image and memory capture of a sample of affected devices and preserving evidence that is volatile or limited in retention.
  • Patient zero is a conclusion you reach from converging evidence, not a host you name on the first day. Record competing hypotheses and the evidence that would separate them.
  • Dwell time should be reported as a range bounded by evidence, with the reason for each bound. An earliest confirmed date and an earliest possible date are different findings.
  • Absence of exfiltration evidence is not evidence of no exfiltration. Say what was examined, for which period, and what retention gaps exist.
  • Most ransomware intrusions run on stolen credentials. Every account and non-human identity seen in the timeline needs a scope decision, not just the malware.

The questions a ransomware investigation must answer

Ransomware investigations drift when the team has no agreed list of questions. A short, written set of investigative questions, owned by the lead analyst and revisited daily, keeps the work focused and makes the final report easier to structure. A practical set for most cases is:

  1. Initial access: which system, account and method gave the attacker their first foothold, and when.
  2. Scope: which hosts, accounts, cloud tenants and data stores the attacker touched, with confidence levels.
  3. Dwell time: the earliest and latest evidence of attacker activity before encryption.
  4. Credential exposure: which human and non-human credentials were used, created or could have been harvested.
  5. Exfiltration: whether data left the environment, which data, how much, by which channel and to where.
  6. Persistence: what the attacker left behind that could let them return after recovery.
  7. Impact mechanics: how the encryptor was deployed, what it encrypted, and what recovery mechanisms were tampered with.

CISA's #StopRansomware Guide frames the same priorities in its detection and analysis checklist: determine which systems were impacted, identify the systems and accounts involved in the initial breach, and look for signs of data exfiltration. It also warns that a ransomware event may be evidence of a previous, unresolved network compromise, which is the reason initial access and dwell time questions deserve real effort rather than a guess.

Each question should have an owner, a list of evidence sources that could answer it, and a status of open, partially answered or answered with a stated confidence. That structure carries straight into the Forensic Timeline Analysis Guide approach and the final report.

Preserve before you analyse

Ransomware creates pressure to restore quickly, and restoring overwrites evidence. Agree with the recovery lead, before any rebuild starts, which systems will be preserved and in what form. CISA's guide lists the core preservation actions: for cloud resources, take a snapshot of volumes to get a point in time copy for later forensic review, and take a system image and memory capture of a sample of affected devices. It also notes that powering devices down loses volatile memory and with it ransomware infection artefacts, which is why isolation is usually preferred to shutdown where the response plan allows it.

A workable preservation order for ransomware is:

  1. Memory of still running hosts that show attacker activity, especially any host where the encryptor or remote access tooling may still be resident. See the Memory Forensics Guide for acquisition practice.
  2. Short retention logs held outside the hosts: identity provider sign-in logs, VPN and remote access gateway logs, firewall and proxy logs, EDR telemetry and cloud audit logs. These often roll over in days or weeks and cannot be recovered later.
  3. Domain controllers and identity infrastructure, because they hold the authentication record for the whole estate and are frequent targets.
  4. The earliest encrypted hosts and any host suspected as patient zero, imaged in full.
  5. A representative sample of other encrypted hosts, chosen to cover each operating system, business unit and network segment.
  6. Backup and virtualisation management systems, which hold their own logs of who accessed and deleted what.

Record hashes, collection times, collector names and the chain of custody for every item. NIST SP 800-86 describes integrating forensic techniques into incident response and remains a sound reference for the collection, examination, analysis and reporting phases. If ransomware is still running, imaging an encrypted host can still be valuable: the file system metadata that records the encryption sequence and the attacker's tooling is often intact even when file contents are not.

Working backwards from the encryption event

The encryption event gives you hard anchors. On each encrypted host, establish when the first and last files were changed by the encryptor, which process did it, which account the process ran as, and how the process arrived on the host. Across hosts, the pattern of first encryption times often shows whether deployment was pushed centrally, run from one staging host or executed by hand.

Useful evidence at this stage includes:

  • Process creation records. Windows Security event 4688, documented by Microsoft as "A new process has been created", records the New Process Name and, on newer versions, the Creator Process Name. The Process Command Line field is empty unless the Group Policy setting "Include command line in process creation events" is enabled, so check whether it was configured before relying on it.
  • Logon records. Event 4624 records the Logon Type, Workstation Name, Source Network Address, Logon ID and Authentication Package. The Logon ID lets you link a logon to later activity in the same session, which is how you tie an encryptor process back to the account and source host that launched it.
  • File system change records. Microsoft documents that NTFS keeps an update sequence number (USN) change journal for each volume, updated with a description of each change and the name of the file or directory. Where it survives, it can show the encryptor's rename and write sequence and the arrival of tooling. The Windows Forensic Artefacts Guide covers interpretation.
  • Deployment channels. Group Policy changes, remote service creation, scheduled tasks, remote management tooling and hypervisor management consoles. The Lateral Movement Artefacts Cheat Sheet lists the events to check for each remote execution method.

Once you know which account and host deployed the encryptor, that host becomes the next investigation target. Repeat the same questions there: how did the attacker get onto this host, with which account, and from where. Each step back is a hop in a chain that should eventually end at initial access.

Finding patient zero

"Patient zero" means the first system where the attacker gained execution or interactive access in your environment. It is often not the first encrypted host, and in identity led intrusions it may not be a host you own at all: the first foothold can be a VPN session, a remote access gateway or a cloud identity that was then used to reach internal systems.

Three lines of reasoning help narrow it down:

  • Follow the hops back. Each lateral movement hop has a source. Keep walking back through logon source addresses and workstation names until you reach a system whose inbound access came from outside, from a remote access service or from a user action such as opening a file.
  • Look for precursor malware. CISA advises looking for evidence of precursor "dropper" malware and names families such as Bumblebee, Dridex, Emotet, QakBot and Anchor. A host with loader activity that predates the rest of the intrusion is a strong candidate. The How to Hunt for Ransomware Precursors guide covers the discovery and credential theft activity that typically follows.
  • Review exposed services. CISA advises reviewing the TerminalServices-RemoteConnectionManager event log for successful RDP network connections. Internet facing remote access, unpatched edge devices and accounts without strong authentication are frequent entry points. If the evidence points to exposed RDP, the Exposed RDP Compromise guide covers that scenario.

Write down candidate hypotheses explicitly, for example "phishing to workstation A", "VPN account B with reused password" and "exploited edge appliance C", and for each one list the evidence that would confirm or rule it out. This prevents the common failure of anchoring on the first plausible story. When evidence is missing for the earliest period, the honest finding may be "initial access most likely via X, not confirmed because logs before date Y were not retained".

Establishing dwell time

Dwell time is the period between the attacker's first activity in the environment and detection or impact. Leaders, insurers and regulators will ask for it, so it needs a defensible method.

Report dwell time as two bounds:

  • Earliest confirmed activity: the earliest timestamp where you have direct evidence of attacker action, such as a malicious logon, tool execution or configuration change.
  • Earliest possible activity: the earliest point you cannot rule out, usually set by the start of your log retention or the creation of an account or artefact linked to the attacker.

Tie each bound to its evidence and note gaps. If authentication logs only reach back 30 days and the earliest malicious logon is on day 29, the true start could be earlier, and the report should say so. Normalise every timestamp to UTC and record the source time zone and any clock skew you observed, because mixed time zones are one of the most common causes of wrong dwell time figures.

Look for slow, low noise activity in the early period: reconnaissance commands, new accounts or group membership changes, installation of remote management software, new scheduled tasks or services, and authentication from unusual source addresses. Credential use by service accounts and other non-human identities deserves particular attention because it often blends into normal automation.

Exfiltration evidence

Many ransomware operations steal data before encrypting and threaten to publish it. Whether data left, and what data, drives notification decisions, so this question needs evidence rather than assumption. CISA lists an abnormal amount of data outgoing over any port among the potential signs of exfiltration.

Where exfiltration evidence tends to survive:

  • Network telemetry outside the hosts. Firewall session logs, proxy logs, NetFlow and cloud egress logs show volume, destination and timing. The Network Forensics Guide covers analysis. Large transfers to cloud storage or file sharing services, often over HTTPS, are a common pattern described in ATT&CK technique T1567, Exfiltration Over Web Service.
  • Staging on hosts. Archives created shortly before large outbound transfers, often in temporary or unusual directories, and the tools used to create and send them. File system metadata and the change journal can show creation and deletion of staging archives even after cleanup.
  • Tool execution records. Process creation events showing archiving utilities, file synchronisation clients or command line transfer tools run by unexpected accounts.
  • Cloud and SaaS audit logs. Bulk downloads, new sharing links, new OAuth grants and API token use against document stores. These are easy to miss in an on premises focused investigation.
  • Attacker claims. A leak site listing or file tree sent by the attacker can help scope the data, but treat it as an unverified claim and test it against your own evidence. The Ransomware Negotiation Guide covers how proof of data is handled in negotiation.

State exfiltration findings carefully. "Approximately N gigabytes were transferred from file server F to an external address between dates D1 and D2" is a finding. "No exfiltration occurred" is only a finding if you have complete network telemetry for the whole dwell period and every egress path, which is rare. Usually the correct wording is that no evidence of exfiltration was found in the specific sources and periods examined.

Recovery tampering and anti-forensics

Ransomware operators commonly remove recovery options and clear evidence before encryption. ATT&CK groups these behaviours under T1490, Inhibit System Recovery, and T1070, Indicator Removal. Recognising them tells you when the attacker moved from preparation to impact, and their timing is often a sharp marker in the timeline.

  • Shadow copy deletion. Microsoft documents that vssadmin delete shadows deletes a volume's shadow copies, with options including /all and /quiet, and that deletion is permanent. A process creation record showing this command, and the account behind it, is strong evidence of pre-encryption preparation.
  • Security log clearing. Event 1102, "The audit log was cleared", is generated every time the Windows Security audit log is cleared and records the Security ID, Account Name and Logon ID of the account that did it. Microsoft notes there is usually no need to clear the Security log manually, so this event should always be explained.
  • Disabling security tooling. EDR tamper alerts, service stop events and policy changes. Check the EDR console's own audit log, which may survive when host logs do not.
  • Backup system access. Logons to backup consoles, retention changes and deletion jobs. These logs often record the exact account used.

Gaps are evidence too. A host where the Security log begins abruptly an hour before encryption is telling you something, and the Anti-Forensics Detection Guide covers how to reason about deliberately removed records.

Identities in the ransomware timeline

Ransomware investigations are identity investigations. Event 4624 tells you which account logged on, from where and with which authentication package; the Elevated Token field shows whether the session had administrative rights. Build an identity table alongside the host timeline with each account, the first and last time it was seen in attacker activity, the hosts it touched and how it was likely obtained.

Include non-human identities: service accounts, scheduled task accounts, backup and hypervisor service credentials, API keys and cloud access keys found on compromised hosts. Attackers favour them because they rarely have strong authentication and their use looks routine. Every credential in the table needs a decision on rotation or removal before the recovered environment reconnects, which the IAM and PAM Recovery After Ransomware guide covers in detail.

Building the timeline and report

Combine host, network, identity and cloud evidence into one timeline in UTC, with each entry linked to its source artefact and the analyst who verified it. Mark entries as confirmed, likely or possible. Group the timeline into phases: initial access, discovery, credential access, lateral movement, collection and exfiltration, recovery tampering, impact. The phase view is what leaders read; the detailed entries are what other analysts check.

The report should answer each investigative question with a finding, a confidence level, the supporting evidence and any limitations. Keep facts and interpretation separate, and avoid naming a threat group unless attribution is supported by your own evidence or a primary government or vendor source. The Forensic Report Writing Guide covers structure and language.

Common failure patterns

  • Restoring before preserving. Rebuilding patient zero candidates or domain controllers before imaging destroys the evidence needed to answer initial access and persistence questions.
  • Treating the first encrypted host as patient zero. The deployment host and the entry point are usually different systems.
  • Letting short retention logs expire. Identity provider, VPN and proxy logs are often the only record of initial access and exfiltration and may roll over during the incident.
  • Mixed time zones. Combining local time and UTC sources without normalisation produces wrong sequences and dwell time figures.
  • Overstating negative findings. Saying "no data was exfiltrated" when only part of the egress telemetry was reviewed.
  • Ignoring non-human identities. Service and backup accounts used by the attacker remain valid after recovery and allow re-entry.
  • Relying on command line logging that was never enabled. Check audit policy before concluding that a command was not run.

Practitioner checklist

  • Write the investigative questions down on day one, with owners and evidence sources for each.
  • Agree preservation scope with the recovery lead before any rebuild starts.
  • Capture memory from running hosts with attacker activity and export short retention logs immediately.
  • Image domain controllers, the earliest encrypted hosts, patient zero candidates and a representative sample.
  • Record hashes, collection times and chain of custody for every evidence item.
  • Anchor the timeline on encryption times and walk back hop by hop using logon sources and Logon IDs.
  • Check for precursor malware, exposed remote access and edge device compromise as initial access hypotheses.
  • Report dwell time as earliest confirmed and earliest possible, with the evidence for each.
  • Review network egress, host staging, tool execution and cloud audit logs for exfiltration.
  • Explain every shadow copy deletion, log clearing event and security tool tampering record.
  • Build an identity table that includes non-human identities and feed it into credential rotation.
  • State limitations and retention gaps plainly in the report.

Standards and references

Related NHI Mgmt Group resources: Ransomware Response and Recovery Guide · How to Hunt for Ransomware Precursors · Forensic Timeline Analysis Guide · Digital Forensics (DFIR) Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.