Live Incident Response: Volatile Memory Acquisition and Triage
Before you begin
- Applies to:Authorized volatile memory collection during live incident response.
- Where to start:Start with the incident lead and confirm the collection order before touching the affected system.
- What you need:Have approved acquisition tools, sufficient space in a restricted evidence destination, and a way to record custody and collection time.
Guide tools
Volatile memory can contain process state, loaded code, network details, and other data that may disappear when a host is shut down. A memory capture is a point-in-time acquisition: it changes the live system, can miss inaccessible pages, and may be affected by the acquisition tool and operating system.
Use your incident plan to decide what to collect and in what order. RFC 3227 recommends collecting evidence from more volatile to less volatile and gives a typical example; it does not replace incident-specific safety, containment, or evidence-handling decisions.
Memory acquisition workflow: capture to a writable case destination, calculate a hash after the capture, record it with the case notes, then protect the evidence copy.
Document the System and Check Case Storage
PreparationFrom an elevated PowerShell session, use trusted, pre-positioned acquisition tools where possible. Keep the tool media separate from the evidence destination. The destination must be writable during capture and have enough free space for the memory image, notes, and hash manifest. Restrict the new case directory to Local System and local Administrators before writing the sensitive image. After acquisition and verification, protect the evidence copy according to your process.
$CaseDir = 'E:\DFIR_Case_001'if (Test-Path -LiteralPath $CaseDir) { throw "Case directory already exists: $CaseDir. Choose a new case path to protect prior evidence." }New-Item -ItemType Directory -Path $CaseDir -ErrorAction Stop | Out-Null& icacls.exe $CaseDir /inheritance:r /grant:r '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F'if ($LASTEXITCODE -ne 0) { throw "Could not restrict access to the case directory; do not capture memory there. icacls exit code: $LASTEXITCODE" }Get-Acl -LiteralPath $CaseDir | Format-List Owner, AccessToString
$os = Get-CimInstance Win32_OperatingSystem -ErrorAction Stop[pscustomobject]@{ CapturedUTC = [DateTime]::UtcNow.ToString('o') Hostname = $env:COMPUTERNAME OS = $os.Caption Architecture = $os.OSArchitecture RAM_GiB = [math]::Round($os.TotalVisibleMemorySize / 1MB, 2)}
Get-Volume -DriveLetter E -ErrorAction Stop | Select-Object DriveLetter, SizeRemaining, FileSystemTypeCASE_DIR=/mnt/forensics/DFIR_Case_001umask 077mkdir -m 0700 "$CASE_DIR" || { printf 'Case directory already exists or cannot be created; choose a new path.\n' >&2; exit 1; }
date -u '+Captured UTC: %Y-%m-%dT%H:%M:%SZ'hostnamectl --staticuname -afree -hdf -hT "$CASE_DIR"β― Illustrative Output (Results Vary)
Confirm before continuing:- Host name, OS, architecture, and UTC collection time recorded- Case destination is writable and has sufficient free space- Case ID and evidence handling owner are documentedCapture the Live Memory Image
AcquisitionRun only the command for the tool version you have validated. The Windows example uses the WinPmem mini executableβs documented positional output path. Linux examples use Microsoftβs AVML or a LiME kernel module prepared for the running kernel. Prepare LiME on a trusted matching build system before an incident; do not install compilers or build the module on the suspected host.
# Run from an elevated PowerShell session with the approved tool available.$Tool = 'E:\IR-Tools\winpmem_mini_x64.exe'$Image = 'E:\DFIR_Case_001\WORKSTATION-04-memory.raw'
if (-not (Test-Path -LiteralPath $Tool -PathType Leaf)) { throw "Approved acquisition tool not found: $Tool" }if (Test-Path -LiteralPath $Image) { throw "Output already exists; choose a new image path to avoid overwriting evidence: $Image" }& $Tool $Imageif ($LASTEXITCODE -ne 0) { throw "WinPmem failed with exit code $LASTEXITCODE." }
# Confirm that a non-empty output file was created.$imageItem = Get-Item -LiteralPath $Image -ErrorAction Stopif ($imageItem.Length -le 0) { throw 'WinPmem created an empty output file; treat the capture as failed.' }$imageItem | Select-Object Name, Length, LastWriteTimeUtc# Use a trusted, pre-positioned AVML binary and a writable case destination.IMAGE=/mnt/forensics/DFIR_Case_001/host-memory.limeif [[ -e "$IMAGE" ]]; then printf 'Output already exists; choose a new image path to avoid overwriting evidence: %s\n' "$IMAGE" >&2 exit 1fisudo /mnt/ir-tools/avml acquire "$IMAGE" || exit 1
# Confirm the output exists and is non-empty.sudo test -s "$IMAGE" \ && sudo stat -c 'Image: %n | Bytes: %s' \ "$IMAGE"# The module must be built and validated for this exact running kernel in advance.CASE_DIR=/mnt/forensics/DFIR_Case_001MODULE="/mnt/ir-tools/lime-$(uname -r).ko"IMAGE="$CASE_DIR/host-memory.lime"
if [[ -e "$IMAGE" ]]; then printf 'Output already exists; choose a new image path to avoid overwriting evidence: %s\n' "$IMAGE" >&2 exit 1fiif ! sudo insmod "$MODULE" "path=$IMAGE format=lime"; then printf 'LiME did not load; leaving any previously loaded module untouched.\n' >&2 exit 1fi
capture_status=0sudo test -s "$IMAGE" && sudo stat -c 'Image: %n | Bytes: %s' "$IMAGE" || capture_status=$?if ! sudo rmmod lime; then printf 'Could not unload the LiME module; escalate under the incident plan.\n' >&2 exit 1fiif (( capture_status != 0 )); then printf 'LiME output verification failed.\n' >&2 exit "$capture_status"fiβ― Illustrative Output (Results Vary)
Verify the tool reports completion, the destination file exists, and its size is plausible for the host.Record the exact tool version, command, start/end times, errors, and output path.Calculate SHA-256 After the Capture Completes
IntegrityHash the completed image and store the hash in the case record. A SHA-256 hash helps detect later changes; it is not a digital signature and does not by itself prove who collected the file or that the acquisition was complete. Keep the notes and manifest with the case, and restrict write access to the evidence copy after verification.
$Image = 'E:\DFIR_Case_001\WORKSTATION-04-memory.raw'if (-not (Test-Path -LiteralPath $Image -PathType Leaf)) { throw "Memory image not found: $Image" }$ManifestPath = 'E:\DFIR_Case_001\manifest.txt'if (Test-Path -LiteralPath $ManifestPath) { throw "Manifest already exists; inspect it instead of overwriting it: $ManifestPath" }$Hash = Get-FileHash -LiteralPath $Image -Algorithm SHA256 -ErrorAction Stop$ImageItem = Get-Item -LiteralPath $Image -ErrorAction Stop
$Manifest = [pscustomobject]@{ CaseID = 'INC-2026-1005' SourceHost = $env:COMPUTERNAME CapturedFile = $ImageItem.Name FileSizeBytes = $ImageItem.Length Algorithm = 'SHA256' Hash = $Hash.Hash HashedUTC = [DateTime]::UtcNow.ToString('o')}
$Manifest | Format-List | Out-File -LiteralPath $ManifestPath -Encoding utf8 -NoClobber -ErrorAction Stop$ManifestCASE_DIR=/mnt/forensics/DFIR_Case_001IMAGE="$CASE_DIR/host-memory.lime"MANIFEST="$CASE_DIR/host-memory.lime.sha256"
if [[ ! -s "$IMAGE" ]]; then printf 'Memory image is missing or empty: %s\n' "$IMAGE" >&2 exit 1fiset -o noclobbersha256sum -- "$IMAGE" > "$MANIFEST" || { printf 'SHA-256 calculation failed or the manifest already exists.\n' >&2; exit 1; }set +o noclobbercat -- "$MANIFEST" || exit 1sha256sum --check "$MANIFEST" || { printf 'The memory image does not match its SHA-256 manifest.\n' >&2; exit 1; }stat -c 'Image bytes: %s' "$IMAGE" || exit 1set -o pipefaildate -u '+Hashed UTC: %Y-%m-%dT%H:%M:%SZ' \ | tee -a "$CASE_DIR/acquisition-notes.txt" || { printf 'Could not append the hash timestamp to the case notes.\n' >&2; exit 1; }β― Illustrative Output (Results Vary)
Record the actual 64-character SHA-256 value printed for this image.Compare the file size and hash with the case manifest before moving or analyzing it.Start Offline Analysis with Volatility 3
TriageAnalyze a verified working copy on a separate, trusted workstation. Do not run string searches or memory-analysis tools on the suspected endpoint as part of this step. Start with system and process context, then investigate network artifacts and suspicious processes. Plugin availability and symbol requirements vary by operating system and image format.
# Run these commands on the analysis workstation with Volatility 3 installed.vol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.infovol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.pslistvol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.netscan# Run these commands on the analysis workstation with Volatility 3 installed.vol -f ./host-memory.lime bannersvol -f ./host-memory.lime linux.pslistvol -f ./host-memory.lime linux.sockstatβ― Illustrative Output (Results Vary)
Save the tool version, command lines, plugin output, and any symbol or parsing errors in the case notes.Treat extracted strings, addresses, and process names as leads to validate, not confirmed indicators by themselves.Tool references
Your feedback keeps these production procedures accurate and battle-tested.