Skip to content

Live Incident Response: Volatile Memory Acquisition and Triage

Admin
October 5, 2026
9 min read
Advanced
πŸ’» Target OS: Ubuntu 24.04+ / Windows Server 2025

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
Guide tools
0/0 Steps (0%)

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.

Workflow from approved live memory acquisition to hashing and protected evidence storage

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.



01

Document the System and Check Case Storage

Preparation

From 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.

Terminal window
$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, FileSystemType
❯ 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 documented

02

Capture the Live Memory Image

Acquisition

Run 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.

Terminal window
# 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 $Image
if ($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 Stop
if ($imageItem.Length -le 0) { throw 'WinPmem created an empty output file; treat the capture as failed.' }
$imageItem |
Select-Object Name, Length, LastWriteTimeUtc
❯ 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.

03

Calculate SHA-256 After the Capture Completes

Integrity

Hash 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.

Terminal window
$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
$Manifest
❯ 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.

04

Start Offline Analysis with Volatility 3

Triage

Analyze 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.

Terminal window
# Run these commands on the analysis workstation with Volatility 3 installed.
vol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.info
vol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.pslist
vol -f 'D:\Cases\INC-2026-1005\WORKSTATION-04-memory.raw' windows.netscan
❯ 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

Comments