Collecting evidence from Windows machines
Step-by-step collection of memory, triage artefacts, event logs and disk images from Windows, in the right order.
Collect in order of volatility (RFC 3227): what disappears first is collected first. Write every file to an external drive or a network share that is not on the affected machine, and record the SHA-256 of each file you produce.
1. Memory (first, while the machine is still running)
Use one of these tools from a USB stick, running as administrator:
- DumpIt or Magnet RAM Capture: one click, produce a raw memory image.
- WinPmem: command line:
winpmem_mini_x64.exe E:\host01.raw
Expect a file the size of the installed RAM. Note the exact capture time.
2. Triage collection (artefacts that answer most questions)
A triage collection gathers event logs, registry hives, $MFT, prefetch, Amcache, browser history and similar files in minutes instead of imaging the whole disk.
- KAPE: target
!SANS_Triage, output to a container (VHDX or ZIP).kape.exe --tsource C: --tdest E:\host01 --target !SANS_Triage --zip host01 - Velociraptor offline collector: build a collector with the
Windows.KapeFiles.Targetsartefact (_SANS_Triage) and run the produced executable on the machine.
Upload the resulting ZIP as it is. VamiBlue unpacks it and analyses every file inside.
3. Event logs only (if triage tools cannot be used)
From an administrator command prompt:
wevtutil epl Security E:\host01\Security.evtx wevtutil epl System E:\host01\System.evtx wevtutil epl "Microsoft-Windows-PowerShell/Operational" E:\host01\PowerShell.evtx wevtutil epl "Microsoft-Windows-Sysmon/Operational" E:\host01\Sysmon.evtx
Or copy the whole folder C:\Windows\System32\winevt\Logs with a tool that can read locked files.
4. Full disk image (when asked for)
Use FTK Imager from external media: Create Disk Image → physical drive → E01 format, with verification enabled. FTK Imager records the source and image hashes in a text file next to the image; upload that file too.
What to send with the evidence
- Host name, IP address, role of the machine and its time zone.
- When each file was collected and by whom.
- The hash list produced during collection.