FS01 Ransomware Staging Under Legal Hold
At 06:05 the EDR console flags FS01, a 4 TB Windows Server 2019 file server, for vssadmin.exe delete shadows /all /quiet launched by a process whose parent is wmiprvse.exe. At 06:07 a file named HOW_TO_RESTORE.txt appears in 12 shares. Shadow copies are gone. The backup agent last completed at 01:00 to a separate NAS with 30-day retention. FS01 is still powered on and serving SMB to about 260 mapped users. Legal has issued a hold because the affected shares contain contract data. The sysadmin wants to reboot into safe mode and run a full antivirus scan immediately. The CSIRT lead wants a memory capture first. The server has 64 GB of RAM, the IR toolkit is on a USB drive, and the EDR console shows an active outbound TLS session from FS01 to 45.9.148.x every five minutes. Full disk imaging at observed throughput would take roughly nine hours.
1. Set the immediate order of operations and defend it against the sysadmin's proposal.
Read the worked answer
Memory capture first, then network state, then a disk image or snapshot, then remediation. The sysadmin's plan is the worst option because reboot-into-safe-mode discards all RAM, and antivirus scanning writes to disk, changing timestamps and potentially triggering a staged second payload.
- Capture RAM with WinPmem from the vetted USB toolkit, recording the tool hash. The encryption process, its command line, and any key material exist only in RAM; the disk image will not contain them.
- Capture network and session state next: netstat, logged-on users, open SMB sessions, DNS cache, scheduled tasks, and the live TLS session details. The five-minute beacon proves the operator may still hold hands-on access, so this state explains what they are doing.
- Then image or snapshot. Nine hours is acceptable only if the machine is isolated so the attacker cannot detonate or wipe mid-acquisition; if it is not isolated, a storage-level snapshot is the pragmatic compromise and must be documented as such.
- Contain in parallel, not before. Block egress to 45.9.148.0/24 and 443 from FS01 at the perimeter while captures run; this costs the operator their channel but not the evidence.
Running the AV scan before acquisition converts a defensible case into an unrecoverable one.
2. Specify what you extract from memory and what question each item answers.
Read the worked answer
- Process tree with command lines and parents: confirms the wmiprvse.exe parentage, which suggests WMI or PsExec-style remote execution and answers how the encryptor was launched and from where.
- Loaded modules and injected regions: identifies the encryptor binary and any DLL side-loading, which the disk image may show only as an encrypted blob.
- Open file handles and the running process's memory space: may reveal the symmetric key or the seed used to derive it, which determines whether decryption without paying is possible.
- Network connections and TLS session data: correlates with the five-minute beacon to attribute the C2 infrastructure.
- Registry hives in memory (SAM, SECURITY, SYSTEM): cached credentials and service configuration before anything is cleaned.
- Logged-on sessions and SMB connection table: establishes which of the 260 users were active and how far the share enumeration reached, which supports the legal scope question.
Each item maps to a decision: how entry occurred, whether recovery is possible, who else is exposed, and what must be disclosed.
3. What evidence-handling requirements does the legal hold impose on how you take and store these artifacts?
Read the worked answer
- Hash every artifact at acquisition with SHA-256, record the hash in the evidence log, and re-verify after transfer. A memory image without a verified hash is not defensible.
- Work from copies only. All analysis runs on duplicates; the original image media stays sealed with the evidence custodian. Note that the machine itself remains the original evidence, so any change to it - including the AV scan - must be justified and logged.
- Document the decision to keep FS01 running. Legal hold does not mean freeze time. Write down who approved live acquisition, at what time, with what alternatives considered and rejected, because opposing counsel will ask why a 9-hour image was not taken.
- Maintain a continuous chain of custody: collector identity, timestamps with timezone, storage location, and every handoff.
- Preserve the volatile data even though it is ephemeral - the fact that RAM could not be preserved later is itself something to record.
- Restrict access to the evidence store to named individuals on the IR team, and keep the 260 users' activity logs, since their file access during the incident may be relevant.