Live lesson · progress saved to your account

Incident Response & Digital Forensics

Breaches are a question of when, not if. Learn the NIST incident response lifecycle, first-response choices, order of volatility and chain of custody, memory forensics with Volatility, Windows disk artefacts and super-timelines, then lead a 3 AM ransomware response from first alert to the report.

advanced150 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Mission briefing: 3 AM, the files are turning into .locked

PHONE CALL · 03:07 AM · night shift supervisor, Nagpur hub "Sir, the dispatch screens say file not found. Every folder on the shared drive has a file called README_RESTORE.txt. It says pay 18 BTC in 72 hours or the data gets published."

Sarthi Logistics (fictional) moves freight for 1,400 businesses across central India from its Nagpur hub. Tonight its file server, its domain controller and dozens of PCs are being encrypted, one share after another:

03:00 AM: ransomware spreads over SMB 02:58
0/12 hosts encrypted

FILE-SRV01

DC01

ERP-APP01

BKP-NAS01

DISP-PC02

DISP-PC04

DISP-PC07

DISP-PC11

ACC-PC01

ACC-PC03

HR-PC01

WH-SCAN05

README_RESTORE.txt

Your network has been encrypted.

Files renamed *.locked · shadow copies deleted

Pay 18 BTC within 72 hours or your data will be published.

Do not rename files. Do not contact police.

Note DISP-PC07: never encrypted. The attacker needs it as a foothold. Remember it.

You are the incident lead. Panic is the attacker's best friend: people pull plugs, wipe machines, pay quickly and destroy the evidence that explains how it happened. A calm, methodical response limits the damage, and good forensics answers the questions everyone will ask in the morning: how did they get in, what did they take, and are they still here?

In this room you'll learn the incident response lifecycle, first-response decisions, evidence handling, memory and disk forensics and timelines. Then you'll analyse a memory image, rebuild the attack timeline and run the full 3 AM tabletop.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 02The incident response lifecycle

For years the reference model was NIST SP 800-61 Rev. 2 (2012) with a four-phase loop: Preparation → Detection & Analysis → Containment, Eradication & Recovery → Post-Incident Activity. You'll still hear those names in every SOC.

In April 2025 NIST published SP 800-61 Rev. 3, which re-aligns incident response with the six functions of the Cybersecurity Framework (CSF) 2.0:

Incident response lifecycle: SP 800-61 Rev. 3 + CSF 2.0 click a function
Governpolicy · roles · riskIdentifyProtectDetectRespondRecoverINC-1

Detect

Find and analyse anomalies: SIEM alerts, EDR, user reports. Decide: is this an incident?

INC-1 collects: EDR alert, triage notes

Identify, Protect and Govern prepare; Detect, Respond and Recover handle the incident; improvement loops it back.

  • Govern, Identify, Protect: the preparation side. Policies, roles, asset inventory, backups, hardening and an incident response plan that people have actually rehearsed.
  • Detect: noticing and analysing anomalies (Rooms 16 and 17).
  • Respond: triage, containment, eradication, evidence, communication and reporting.
  • Recover: restoring systems and services safely and confirming they're clean.
  • Improvement (part of Identify) runs through all of it: every incident's lessons learned feed back into preparation.

Whatever the model, the order of thinking is the same: contain the damage, understand it, remove the attacker, recover, and learn.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 03First response: containment, communication and reporting

The first hour decides how bad the next month will be. Every containment choice trades stopping the spread against preserving evidence and keeping the business running:

First hour: every containment choice is a trade-off pick an action

Spread stopped95%

Evidence preserved90%

Business kept running55%

Spread stops; RAM survives for forensics. Dispatch runs on paper for a few hours.

Do:

  • Isolate affected hosts and segments (switch ports, VLANs, EDR network containment) but keep them powered on, so memory survives.
  • Disable compromised accounts and block known attacker IPs and domains at the firewall and proxy.
  • Switch to out-of-band communication (a phone bridge or a separate messaging group). If the attacker owns Active Directory, they may be reading your email.
  • Protect the backups: disconnect them before the attacker finds them.
  • Keep a written log of every action with its time: it becomes evidence too.

Don't: pull power on everything, wipe and reinstall before imaging, run "cleaner" tools on suspected hosts, or negotiate and pay on your own. Paying funds crime, doesn't guarantee a working decryptor, and doesn't remove the attacker.

Reporting in India. The CERT-In directions of 28 April 2022 require organisations to report listed cyber incidents, ransomware included, to CERT-In within 6 hours of noticing them (incident@cert-in.org.in), and to keep ICT system logs for 180 days. Personal data breaches must also be notified to the Data Protection Board under the DPDP Act, and regulated sectors (banking, insurance, markets) have their own regulator timelines. Involve legal early.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 04Evidence: order of volatility and chain of custody

Digital evidence evaporates. RFC 3227 (Guidelines for Evidence Collection and Archiving) lists the order of volatility: collect the most fragile first.

Order of volatility: evidence evaporates saved 0%

Click a source to capture it (freezing what's left). Each capture takes a moment; which order saves the most?

Responders capture RAM before imaging the disk: a 1 TB disk image takes hours, and memory would be gone.

  1. CPU registers and cache
  2. Routing table, ARP cache, process table, kernel statistics, memory (RAM)
  3. Temporary file systems
  4. Disk
  5. Remote logging and monitoring data
  6. Physical configuration and network topology
  7. Archival media and backups

That's why responders capture RAM first (with tools such as WinPmem, Magnet RAM Capture or DumpIt) and only then image the disk, ideally through a write blocker into a forensic format like E01 or a raw dd image.

Chain of custody proves the evidence in court is exactly what was collected. Every image is hashed (SHA-256) at acquisition; every hand-over is logged with who, when, where and why; and every analysis works on a verified copy, never the original.

Chain of custody: hash, log, hand over, verify verified

$ sha256sum memdump.raw

································································

custody form (acquired 03:58):

9f2c41d07be83a6c15e0d4f7a29b6c83e1f0574d2a8b9c6e3f1d0a7b5c4e2918

Match: this is the image that was collected

Change one byte and the hash changes completely (the avalanche effect from Room 09), so any tampering or corruption is obvious.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Memory forensics: what was running

RAM holds what disk often doesn't: running and recently exited processes, network connections, command lines, decrypted payloads and code injected into legitimate processes that never touched disk ("fileless" malware).

Volatility 3 is the standard open-source framework. You point it at an image and run plugins:

PluginWhat it shows
windows.infoOS version and build of the image
windows.pslist / windows.pstreeProcesses, and who started whom
windows.psscanProcesses found by scanning memory, including hidden or exited ones
windows.cmdlineThe command line of each process
windows.netscanTCP/UDP connections and listeners with owning PIDs
windows.malfindMemory regions that are executable and writable and not backed by a file: classic signs of injection

Analysts look for parent-child anomalies. Office apps don't start PowerShell; svchost.exe is always started by services.exe; system binaries don't run from C:\Users\Public.

windows.pstree on DISP-PC07: spot the anomalies click a process

Click any process. Red ones break the rules a healthy Windows tree follows.

windows.netscan

TCPv4 10.20.4.57:49822 → 203.0.113.88:443 ESTABLISHED rundll32.exe 6104

A malfind hit with a region marked PAGE_EXECUTE_READWRITE that starts with the bytes MZ (the start of a Windows executable) inside a process like rundll32.exe is a strong sign that a payload was injected into it.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 06Disk and artefact forensics

Windows quietly records evidence of almost everything a user or program does. Each artefact proves something different:

Windows artefacts: what each one proves Prefetch

C:\Windows\Prefetch\EXCEL.EXE-4C1F2A7B.pf

The program ran: run count and up to 8 last-run times (Win 8+).

Executable: EXCEL.EXE

Run count: 41

Last run: 2026-11-24 10:14:05 IST

Files referenced: …\Downloads\Freight_Invoice_Nov.xlsm

  • Prefetch (C:\Windows\Prefetch\*.pf): proves a program ran, with its run count and, on Windows 8 and later, up to the last 8 run times. It is often disabled by default on Windows Server, so workstations are richer.
  • Amcache (C:\Windows\appcompat\Programs\Amcache.hve): records executables present on the system with their path and SHA-1 hash, great for matching threat intel.
  • Browser history: SQLite databases showing what was visited and downloaded, and when.
  • Event logs: 4624 (successful logon, with logon type: 3 network, 10 RDP), 4625 (failed logon), 4688 (process created), 7045 (new service installed), 1102 (security log cleared).
  • $MFT: the NTFS Master File Table. Every file has two sets of MACB timestamps (Modified, Accessed, MFT-changed, Born): one in $STANDARD_INFORMATION and one in $FILE_NAME.

Attackers use timestomping to make malware look old: tools easily rewrite the $STANDARD_INFORMATION times through normal APIs, but $FILE_NAME times are harder to change. When $SI says 2019 and $FN says last night, someone has been lying.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 07Timelines and the incident report

Each artefact is one witness. A super-timeline puts all witnesses in one room: every timestamp from the $MFT, Prefetch, event logs, browser history, proxy and email logs, normalised to one time zone and sorted. Tools like Plaso (log2timeline and psort) build them automatically; analysts then filter around pivot points.

Super-timeline: many witnesses, one clock (IST) 0/8 merged
Email
Prefetch
EVTX
Proxy
$MFT

log2timeline extracts · psort sorts · you filter around pivots

Rules that keep timelines honest:

  • Normalise everything to UTC (or state the zone). Indian logs in IST are UTC+5:30, and an event at 21:28Z on 30 November is 02:58 IST on 1 December.
  • Watch for clock drift between systems and for timestomped files.
  • Work outwards from pivot points (the first encrypted file, the first malicious logon) to find patient zero and the initial access vector.

The incident report turns the timeline into decisions: an executive summary, scope and impact, the timeline, the root cause, the actions taken, the indicators of compromise, and lessons learned with owners and dates. The time from initial access to detection is the dwell time.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 08Hands-on: analyse the dispatch PC's memory with Volatility

The SOC's EDR flagged DISP-PC07, a dispatch workstation that was not encrypted. Your colleague captured its RAM at 03:52 and logged the image on the custody form. Verify it, then analyse it with a simulated Volatility 3.

Lab · Memory forensics with Volatility 3 0/5 goals
forensic workstation · read-only evidence
dfir@sarthi-forensics:~/case-INC1$ evidence EV-07 working copy mounted · type 'help'
$

Goals

Verify the image hash against the custody form

List the process tree

Read the suspicious command lines

Find the C2 connection

Dump the injected region and hash it

Hints: start with ls and sha256sum memdump.raw and compare it with cat custody.txt. Then vol -f memdump.raw windows.pstree, windows.cmdline, windows.netscan and windows.malfind. Plugins accept --pid N, malfind accepts --dump, and output can be piped to grep.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP

TASK 09Hands-on: rebuild the attack timeline

Your team pulled artefacts from the email gateway, DISP-PC07, the domain controller and FILE-SRV01. Some tools log in UTC, some in IST. Normalise them, put them in order, and name patient zero and the entry point.

Lab · Rebuild the timeline (normalise to IST) 0/9 placed

Artefacts (click in chronological order)

Your timeline (IST)

(empty)

Patient zero

Initial access

Tip: convert every UTC time by adding 5 hours 30 minutes, and watch for the date rolling over at midnight.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP

TASK 10Final mission: the 3 AM ransomware tabletop

Time to lead. It's 03:10 AM. You have six hours: CERT-In needs a report, the CEO needs answers by the 09:00 board call, and 1,400 customers need their freight moving again.

Final mission · The 3 AM ransomware tabletop 03:10 AM

03:10 AM · inject 1/7

Encryption is still spreading. Night shift asks what to do.

A tabletop exercise is how real teams rehearse this night before it happens: a facilitator reads injects, the team decides, and the gaps become next quarter's preparation work. Every choice here has a consequence. Read them, and get the whole night right.

Complete the mission for the First Responder badge and the room's XP.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+30 XP