Digital Forensics Tutorial: Evidence Collection and Analysis Guide (2026)

Digital Forensics Tutorial
Digital Forensics Tutorial
By HOC Team  |  Last updated: July 2026  |  Read time: ~24 min

On a Tuesday afternoon in March 2024, a hospital network's security team detected ransomware detonating across fourteen servers. Within the first six minutes, a responder connected a laptop directly to the primary infected domain controller and ran a script that flushed the Windows Event Log.

They thought they were helping — "clearing the noise." What they actually did was destroy the primary record of how the attacker gained initial access, which accounts they used, and what they accessed before deploying the ransomware. The forensic investigation that followed cost six weeks instead of six days, and the question of whether patient data was exfiltrated before encryption — a notification obligation question worth millions in regulatory exposure — could never be definitively answered.

Digital forensics is the discipline that preserves, collects, and analyses digital evidence from computers, networks, and storage media to reconstruct what happened during a security incident. Done correctly, it answers the questions every organisation needs answered after a breach: What was the initial entry point? Which accounts were compromised? What data did the attacker access or exfiltrate? What systems were affected? When did each event occur? Done incorrectly — or skipped entirely — those questions may never be answerable.

This guide covers the complete digital forensics process for incident responders and security analysts: the evidence types and their volatility, chain of custody procedures, disk imaging with FTK Imager and dd, memory acquisition and Volatility analysis, Windows artefact locations and what they contain, log analysis techniques, and the free open-source toolchain used by professional DFIR teams.

📊 Digital forensics in 2026 DFIR (Digital Forensics and Incident Response) analyst roles up 34% in job postings year-over-year · Average data breach investigation costs $4.88M (IBM 2024) — DFIR reduces that by identifying scope faster · 68% of breaches go undetected for over a month without forensic capability · Memory forensics detects fileless malware that leaves no disk artefacts · Autopsy, Volatility, and FTK Imager remain the industry-standard free tools
1. DFIR fundamentals — what digital forensics is and is not

Digital forensics is the application of scientific methods to the preservation, collection, examination, and analysis of digital evidence. The goal is to produce findings that are accurate, repeatable, and defensible — meaning another qualified examiner working with the same evidence should reach the same conclusions, and the methodology must withstand scrutiny in legal proceedings.

The four principles of forensic soundness

1. Preservation — Evidence must be preserved in its original state. Any change to the original evidence — even reading a file, which updates its access timestamp — must be documented and minimised. This is why forensic examiners work from bit-for-bit copies (images) rather than the original media, and why write blockers are used during acquisition.

2. Integrity — The authenticity and completeness of evidence must be verifiable. Cryptographic hash values (MD5, SHA-256) are computed before and after any evidence handling operation. If the hashes match, the evidence has not been altered. If they do not match, the evidence has been tampered with or corrupted.

3. Chain of custody — A complete, unbroken record must exist of every person who had access to the evidence, what they did with it, and when. This chain documents that evidence was not altered or tampered with between collection and presentation.

4. Documentation — Every action taken during the investigation must be documented contemporaneously — what was done, when, by whom, and what was found. Forensic work that cannot be reproduced from its documentation has limited evidentiary value.

The most common forensics mistake: working on original evidence. Every action on a live system or original disk — even running a command to list processes — modifies some evidence. Professional forensic examiners acquire a forensic image first, verify it with hashes, and conduct all analysis on the image. In live response (where imaging is not immediately possible), every command run on the live system must be documented with timestamps and its effect on the evidence noted.
DFIR process — six phases from identification through presentation
Digital Forensics Process — Six Phases (NIST SP 800-86) PHASE 1 Identification Scope · Evidence type · Triage PHASE 2 Preservation Write-block · Isolate Hash · CoC begins PHASE 3 Collection Disk image · RAM Logs · Network cap PHASE 4 Examination Hash verify · Extract artefacts · Index PHASE 5 Analysis Timeline · TTP map Attribution · Scope PHASE 6 Presentation Report · Legal testimony · Debrief
2. Evidence types and order of volatility

Different types of digital evidence have vastly different lifespans. RAM contents vanish when power is removed — typically within seconds to minutes. Log files survive for days to years depending on retention policy. Understanding volatility determines the collection order: most volatile first, least volatile last. RFC 3227 (Guidelines for Evidence Collection and Archiving) defines this order and remains the field standard.

💾
RAM / System Memory
Lost on power-off
Running processes, network connections, encryption keys, injected code, registry hives loaded in memory, credentials in memory, clipboard contents. Contains evidence of fileless malware that has no disk presence. Must be captured first.
🔌
CPU Cache / Registers
Lost immediately
Current CPU state — practically never captured in routine incident response. Relevant only to highly specialised hardware forensics.
🌐
Network State
Minutes to hours
Active TCP/UDP connections, ARP cache, routing tables, DNS cache, firewall state. Captures live C2 connections before attacker disconnects. Collected via netstat, arp -a, and network tap.
📄
Running Processes
Minutes to hours
Process list including PID, parent PID, owner, memory maps, open file handles, loaded DLLs. Malware processes present here but not on disk indicate process injection or reflective loading.
🗂
Pagefile / Swap
Hours to days
Windows pagefile.sys and Linux swap partition contain memory pages spilled to disk. Can yield partial RAM contents — credentials, code fragments — that were in memory before the system last rebooted.
💿
Disk / Filesystem
Days to years
Files, directories, deleted file remnants (unallocated space), MFT records, shellbags, prefetch files, registry hives, browser history, event logs, $USNJrnl change journal. The primary evidence source for most investigations.
📋
Event Logs
Days to weeks
Windows Security, System, Application, and PowerShell event logs. Authentication events, process creation, service installs, policy changes. Subject to attacker log clearing — export immediately even before imaging.
📡
Network Logs / PCAP
Days to months
Firewall logs, DNS query logs, proxy logs, NetFlow data, full packet captures from TAPs or SPAN ports. Essential for reconstructing C2 communications and data exfiltration. Retention varies by organisation policy.
⚠ Order of volatility — collect most volatile first The correct collection order is: (1) RAM, (2) network state, (3) running processes, (4) disk image, (5) logs. A common mistake is imaging the disk first because it feels like "the real evidence" — but running processes, live network connections, and RAM contents that reveal attacker activity are gone the moment the machine is powered off or rebooted. Always collect RAM before anything else on a live system.
3. Chain of custody — the legal foundation

Chain of custody is the documented, unbroken record of who had control of evidence, when, and what they did with it. Its purpose is to prove that evidence has not been altered or tampered with between collection and presentation — in court, in a regulatory investigation, or in an insurance claim. A broken chain of custody can make otherwise solid evidence inadmissible.

📋
Chain of custody — what to document for every piece of evidence
Document contemporaneously — not from memory later
Evidence log fields (required for each item)
FieldWhat to recordExample
Case numberUnique identifier for the investigationIR-2026-0047
Evidence item numberSequential item ID within the caseE-001 (RAM image), E-002 (disk image)
Date and time collectedISO 8601 format, note timezone and offset2026-07-15T14:32:17+0000 (UTC)
Collected byFull name, role, and badge/employee IDJane Smith, Senior DFIR Analyst, ID 4821
Collection locationPhysical location and system identifierServer Room B, Rack 3, FINANCEDC01 (192.168.1.5)
System descriptionMake, model, serial number, OSDell PowerEdge R750, SN: CN0K4M7X, Windows Server 2022
Evidence descriptionWhat was collected and how16GB RAM image acquired using WinPmem, saved as IR-2026-0047-E001.raw
Hash valuesMD5 and SHA-256 of the acquired imageMD5: a3f8... SHA-256: 4d92...
Storage locationWhere evidence is physically storedEncrypted SSD in Evidence Locker 4, Key held by IR Lead
TransfersEvery time evidence changes hands — who gave it, who received it, when2026-07-15 16:00 — Transferred by Jane Smith to John Lee (Legal) for review
Physical evidence handling
  • Hard drives, USB drives, and laptops that are collected as physical evidence must be stored in anti-static bags with tamper-evident seals. Write the evidence item number, date, and your initials across the seal.
  • Disk images are typically stored on encrypted storage media (VeraCrypt or BitLocker encrypted drives). The encryption key is held by the IR lead and documented in the case file.
  • Evidence should be stored in a locked location with access limited to authorised personnel. Document every entry in an access log.
  • Create at least two copies of every forensic image — a primary working copy for analysis and a backup archive copy that is never used for analysis. If your working copy is corrupted, the archive preserves the evidence.
Notes on timestamps

Timestamp accuracy is critical in forensic timelines. Always note the difference between system time and actual UTC time — a system with an incorrectly set clock, or a system in a different timezone, will generate event log timestamps that appear incorrect when correlated with other systems. Document the system time vs. UTC delta at collection time.

# On Windows — capture current system time vs NTP reference at collection w32tm /query /status # Shows time sync status and offset Get-Date -Format "o" # Current system time in ISO 8601 [System.DateTime]::UtcNow # Current UTC time # Document the output — if system time shows 14:30 but UTC is 14:32, # all timestamps from this system are 2 minutes behind actual time # On Linux date -u # UTC time timedatectl status # Full timezone and NTP sync info
4. Disk imaging — acquiring a forensic copy

A forensic disk image is a bit-for-bit copy of a storage device — every sector, including unallocated space, deleted file remnants, and slack space. This is different from a file-level backup, which copies only files the operating system considers present. Forensic images capture deleted files, file fragments, and data left in previously used disk sectors that a file-level backup would miss entirely.

💿
FTK Imager — the standard free Windows imaging tool
Free from Exterro/AccessData — no installation required (portable)
Installing and running FTK Imager

FTK Imager Lite (the portable version) runs directly from a USB drive with no installation. Download from exterro.com/ftk-imager. Always run from external media — installing software on the target system modifies evidence.

1
Connect a write blocker
Before connecting the target drive to your forensic workstation, connect it via a hardware write blocker (Tableau T35u, WiebeTech UDRB). This prevents any write operations from reaching the drive — the OS cannot modify the drive, change access timestamps, or write swap data to it. Software write blockers exist but hardware blockers are preferred for court-admissible evidence.
2
Create image in FTK Imager
File → Create Disk Image → Physical Drive → select target drive. Image type: E01 (Expert Witness Format, most widely supported) or raw (.dd). E01 supports compression, splitting into multiple files, and embedded metadata. Raw (.dd) is simpler and compatible with more tools. Set segment size (recommended: 2GB segments to avoid filesystem size limits). Set destination to your evidence drive (separate from the source).
3
Enter case metadata
FTK Imager prompts for case number, evidence number, examiner name, notes, and destination. These are embedded in the E01 image header. Enter the chain of custody information exactly as it appears in your evidence log — this ties the image file directly to the case documentation.
4
Verify the image
FTK Imager automatically computes MD5 and SHA-1 hashes of the source drive and the resulting image, then compares them. If they match, the image is a verified bit-for-bit copy. Record both hash values in your chain of custody log. If they do not match, the imaging process failed — re-image from scratch.
Disk imaging with dd on Linux

The dd command is available on every Linux and macOS system and produces raw forensic images. Combine with dcfldd or dc3dd for progress display and built-in hashing:

# Basic dd imaging — /dev/sdb is the source drive, write to .dd image # Run as root. Source drive must NOT be mounted. dd if=/dev/sdb of=/mnt/evidence/case-001-disk.dd bs=512 conv=noerror,sync status=progress # dc3dd — dd replacement with hashing, progress, and logging (recommended) apt install dc3dd dc3dd if=/dev/sdb of=/mnt/evidence/case-001-disk.dd hash=sha256 log=/mnt/evidence/case-001-dc3dd.log # Verify image hash matches source sha256sum /dev/sdb sha256sum /mnt/evidence/case-001-disk.dd # Both outputs must match exactly # Create E01 image with ewfacquire (libewf package) apt install ewf-tools ewfacquire /dev/sdb -t /mnt/evidence/case-001 -C "IR-2026-0047" -e "Jane Smith" -E "E-001" # Mount image read-only for analysis (without modifying it) mkdir /mnt/image-readonly mount -o ro,noatime,loop /mnt/evidence/case-001-disk.dd /mnt/image-readonly # ro = read-only | noatime = don't update access times | loop = use loop device
Live imaging over the network

When physical access to the target system is not possible — remote servers, cloud instances — image over the network using netcat or SSH:

# Image remotely over SSH — on the target (source) system dd if=/dev/sda bs=512 | ssh forensic-workstation@192.168.1.200 "dd of=/mnt/evidence/remote-disk.dd" # Or use netcat for speed (no encryption overhead — use only on isolated network) # On the receiving workstation (listens for the image) nc -l -p 9999 | dd of=/mnt/evidence/remote-disk.dd # On the target system (sends the image) dd if=/dev/sda | nc 192.168.1.200 9999
5. Memory forensics with Volatility

Memory forensics is the analysis of a RAM dump to recover evidence of running processes, network connections, loaded code, injected shellcode, and credentials that exist only in memory. It is essential for detecting fileless malware — malware that executes entirely in RAM and writes nothing to disk, making it invisible to disk-based forensics and most antivirus products.

🧠
Memory acquisition — capturing RAM
Must be done on a live running system
WinPmem — Windows RAM acquisition (free)
# WinPmem — download from github.com/Velocidex/WinPmem # Run from USB on target system as Administrator winpmem_mini_x64_rc2.exe -o C:\Evidence\memory.raw # Creates a raw memory image — typically 4–128GB depending on RAM size # Document the hash: sha256 of memory.raw # Alternative: DumpIt (Magnet Forensics) — free, GUI + CLI DumpIt.exe /output C:\Evidence\memory.dmp
Linux memory acquisition
# LiME (Linux Memory Extractor) — kernel module method # Install build dependencies and compile apt install build-essential linux-headers-$(uname -r) git clone https://github.com/504ensicsLabs/LiME.git cd LiME/src && make insmod lime-$(uname -r).ko "path=/mnt/evidence/linux-memory.lime format=lime" # Creates /mnt/evidence/linux-memory.lime — raw RAM image in LiME format # Simpler: /dev/mem or /proc/kcore (limited, not recommended for full image) dd if=/dev/mem of=/mnt/evidence/memory.raw bs=1MB 2>/dev/null
Volatility 3 — memory analysis walkthrough
Free, open-source — volatilityfoundation.org
Installing Volatility 3
# Volatility 3 (Python 3) — the current version git clone https://github.com/volatilityfoundation/volatility3.git cd volatility3 pip3 install -r requirements.txt python3 vol.py --help # Volatility 3 does NOT need a profile — it auto-detects OS version from the image # (This is a major improvement over Volatility 2 which required manual profile selection)
Core Volatility plugins — the essential commands
# Process listing — see all running processes at time of capture python3 vol.py -f memory.raw windows.pslist # Output: PID, PPID, process name, start time, threads, handles # Process tree — reveals parent-child relationships (spot unusual parents) python3 vol.py -f memory.raw windows.pstree # Watch for: powershell.exe or cmd.exe spawned by winword.exe, outlook.exe # Watch for: svchost.exe with no parent or wrong parent # Hidden processes — processes hidden from the standard API (rootkits) python3 vol.py -f memory.raw windows.psscan # Compares pslist (API) vs psscan (direct memory scan) # Processes in psscan but NOT in pslist = hidden from OS API = rootkit indicator # Network connections — TCP/UDP connections at time of capture python3 vol.py -f memory.raw windows.netstat # Output: Protocol, local addr:port, remote addr:port, state, PID, process name # Look for: unexpected outbound connections from system processes (svchost, lsass) # Look for: connections to foreign IPs from unusual processes # DLL list for a specific process — what libraries were loaded python3 vol.py -f memory.raw windows.dlllist --pid 1234 # Malware often loads DLLs from temp directories or unusual paths # Detect process injection — find injected code in process memory python3 vol.py -f memory.raw windows.malfind # Scans for memory regions with execute+write permissions and MZ header (PE file) # These regions contain injected code — high-fidelity malware indicator # Output each suspicious region with hex dump and disassembly # Extract a specific process's memory to a file for further analysis python3 vol.py -f memory.raw windows.memmap --pid 1234 --dump # Dump all DLLs and executables from process memory python3 vol.py -f memory.raw windows.dumpfiles --pid 1234 # Extracted files can then be submitted to VirusTotal or run through AV # Windows registry hives loaded in memory python3 vol.py -f memory.raw windows.registry.hivelist # Extract a registry key value from memory python3 vol.py -f memory.raw windows.registry.printkey --key "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" # Command history — what commands were typed in cmd.exe sessions python3 vol.py -f memory.raw windows.cmdline # Bash history from Linux memory image python3 vol.py -f linux-memory.lime linux.bash # Detect API hooks — common rootkit technique python3 vol.py -f memory.raw windows.ssdt
Memory analysis investigation workflow
# Step 1: Triage — get the process tree and network connections first python3 vol.py -f memory.raw windows.pstree 2>/dev/null | tee pstree.txt python3 vol.py -f memory.raw windows.netstat 2>/dev/null | tee netstat.txt # Step 2: Look for process anomalies # Legitimate svchost.exe always has services.exe as parent # Multiple instances of svchost.exe is normal — but each should have a valid -k flag # cmd.exe or powershell.exe spawned by lsass, winlogon, or Office apps = suspicious # Step 3: Check all external connections grep -E "ESTABLISHED|LISTEN" netstat.txt | grep -v "127.0.0.1" | grep -v "::1" # Step 4: Run malfind on suspicious PIDs python3 vol.py -f memory.raw windows.malfind --pid 4812 --dump -o ./malfind_output/ # Step 5: Hash dumped PE files and check VirusTotal sha256sum ./malfind_output/*.dmp | while read hash file; do echo "Checking $hash..." curl -s "https://www.virustotal.com/vtapi/v2/file/report?apikey=YOUR_KEY&resource=$hash" done
6. Windows forensic artefacts — what survives and where

Windows leaves a rich trail of forensic artefacts — records of program execution, file access, user activity, and system changes that persist long after the events themselves. Knowing where these artefacts live and what they contain is the core knowledge that separates effective Windows forensic analysts from those who only look at obvious places.

🔍
Critical Windows forensic artefact locations
Know these paths — they answer most investigation questions
Execution artefacts — proof that a program ran
ArtefactLocationWhat it tells you
Prefetch filesC:\Windows\Prefetch\*.pfPrograms that were executed — filename, run count, last run time, files and directories accessed on each run. Exists even if the original executable was deleted. Disabled on servers by default.
ShimCache (AppCompat)HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCacheEvery executable that ran on the system — file path, size, last modified timestamp. One of the most reliable execution artefacts. Parse with ShimCacheParser.py.
AmCacheC:\Windows\AppCompat\Programs\Amcache.hveSHA-1 hash of every executed program, install time, first execution time, publisher info. The SHA-1 hash allows VirusTotal lookups even if the file was deleted.
BAM/DAM (Background Activity Moderator)HKLM\SYSTEM\CurrentControlSet\Services\bam\State\UserSettingsFull path of every executable run per user, with timestamp of last execution. Very reliable on Windows 10+.
UserAssistHKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssistGUI programs launched via Explorer — run count, last run time. ROT13-encoded. Useful for user activity analysis.
Jump ListsC:\Users\[user]\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinationsRecently opened files per application — contains file paths and access timestamps for files that no longer exist on the filesystem.
SRUM (System Resource Usage Monitor)C:\Windows\System32\sru\SRUDB.datNetwork usage per application (bytes sent/received), CPU and RAM usage per process. Up to 30-60 days of historical data. Excellent for detecting data exfiltration by process.
Account and authentication artefacts
ArtefactLocationWhat it tells you
SAM databaseC:\Windows\System32\config\SAMLocal user accounts and NTLM password hashes. Extract with samdump2 or Volatility. Requires SYSTEM hive for decryption key.
NTDS.ditC:\Windows\NTDS\NTDS.dit (Domain Controllers only)Active Directory database — all domain accounts, password hashes, group memberships. The crown jewel of credential data. Extract with ntdsutil, impacket-secretsdump, or DSInternals.
Windows Event Log — SecurityC:\Windows\System32\winevt\Logs\Security.evtxAuthentication events (4624/4625), account management (4720/4732), process creation (4688), privilege use. The primary authentication audit trail.
Logon sessions (memory)LSASS process memoryCurrently logged on users, their NTLM hashes, and Kerberos tickets. Extracted with Mimikatz or Volatility's hashdump/lsadump plugins.
File system artefacts
# $MFT — Master File Table — every file ever created on an NTFS volume # Contains: file name, timestamps (created, modified, accessed, MFT changed), # file size, attributes, and for small files — the file content itself python3 MFTECmd.exe -f "C:\Windows\$MFT" --csv . --csvf mft_output.csv # $USNJrnl — NTFS change journal — rolling log of all file system changes # Shows: file creates, modifies, deletes, renames with timestamps # Invaluable for finding deleted malware, attacker toolkits, and lateral movement artefacts python3 MFTECmd.exe -f "C:\Windows\$Extend\$UsnJrnl:$J" --csv . --csvf usn_output.csv # Timestamps — NTFS has four per file (MACB) # M = Modified (file content last changed) # A = Accessed (file last read — updated on access on many systems) # C = Changed (MFT entry changed — metadata changes like permissions) # B = Born/Created (file creation time) # Timestomping: attackers modify $STANDARD_INFORMATION timestamps # but cannot easily modify $FILE_NAME timestamps — compare both # Shellbags — records of directories browsed via Windows Explorer # Even for directories on removed drives and network shares ShellBagsExplorer.exe # SBECmd or ShellBagsExplorer GUI from EricZimmerman.com SBECmd.exe -d "C:\Users\jsmith\AppData" --csv .
Eric Zimmerman's tools — the free Windows forensics toolkit

Eric Zimmerman (a former FBI DFIR examiner) has released a suite of free Windows forensic tools that parse virtually every artefact type listed above. Download the full suite from ericzimmerman.github.io — it includes MFTECmd, PECmd (Prefetch), AmcacheParser, ShimCacheParser, SBECmd (ShimCache), RECmd (Registry), EvtxECmd (Event Logs), and Timeline Explorer for merging all outputs into a single timeline.

# Install all Eric Zimmerman tools at once (PowerShell) iex (new-object net.webclient).downloadstring("https://raw.githubusercontent.com/EricZimmerman/Get-ZimmermanTools/master/Get-ZimmermanTools.ps1") # Parse Prefetch files PECmd.exe -d "C:\Windows\Prefetch" --csv C:\Evidence\ --csvf prefetch.csv # Parse event logs — all .evtx files in a directory EvtxECmd.exe -d "C:\Windows\System32\winevt\Logs" --csv C:\Evidence\ --csvf evtlogs.csv # Parse AmCache AmcacheParser.exe -f "C:\Windows\AppCompat\Programs\Amcache.hve" --csv C:\Evidence\ # Merge all CSV outputs into a unified timeline in Timeline Explorer # Open TimelineExplorer.exe → File → Load CSV files → load all outputs above # Sort by timestamp to build chronological attack timeline
7. Log analysis for incident reconstruction

Windows event logs are the primary record of security-relevant activity on a Windows system. Knowing which Event IDs to look for and what they mean allows an investigator to reconstruct an attack timeline from authentication, to execution, to lateral movement, to persistence — entirely from log data.

📋
Critical Windows Event IDs for incident investigation
Memorise these — they appear in every investigation
Event IDLogWhat it recordsInvestigation value
4624SecuritySuccessful logon — includes LogonType, account name, source IP, workstationTrack attacker movement — which accounts logged in from which IPs, LogonType 3=network, 10=remote interactive
4625SecurityFailed logon — same fields as 4624 plus failure reasonBrute force detection, password spraying, invalid account usage
4648SecurityLogon with explicit credentials (runas) — shows both the running account and target accountLateral movement — attacker using stolen credentials to authenticate as different account
4688SecurityProcess creation — requires audit policy to be enabled, includes command line if configuredExecution tracking — every process run with its command line arguments
4698SecurityScheduled task createdPersistence — every new scheduled task creation
4720SecurityUser account createdPersistence — attacker creating backdoor accounts
4732SecurityMember added to security-enabled local groupPrivilege escalation — adding account to Administrators group
4776SecurityNTLM authentication — source workstation and accountPass-the-hash detection — NTLM auth from unexpected sources
4768Security (DC)Kerberos TGT requestedAS-REP Roasting detection, Golden Ticket detection
4769Security (DC)Kerberos service ticket requestedKerberoasting — unusual service ticket requests for SPNs
7045SystemNew service installed — service name, path, accountPersistence and lateral movement (PsExec installs PSEXESVC service)
1102SecuritySecurity audit log clearedAnti-forensics — attacker covering tracks. No false positives expected.
4104PowerShellScript block logged — full decoded PowerShell script contentExecution — captures PowerShell malware content including decoded payloads
1SysmonProcess creation with full command line, hashes, parent infoMost comprehensive execution record available — requires Sysmon deployment
3SysmonNetwork connection — process, source, destination, portC2 detection — which process made which outbound connection
10SysmonProcess access — one process opening another's memoryCredential dumping — LSASS being accessed by non-system processes
Log analysis with PowerShell
# Export all Security event log entries to CSV for analysis Get-WinEvent -LogName Security | Export-Csv -Path C:\Evidence\security_log.csv -NoTypeInformation # Filter for specific Event IDs (authentication events) Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624,4625,4648} | Select-Object TimeCreated, Id, Message | Export-Csv C:\Evidence\auth_events.csv -NoTypeInformation # Find all failed logins in the last 24 hours $start = (Get-Date).AddHours(-24) Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=$start} | ForEach-Object { $event = [xml]$_.ToXml() [PSCustomObject]@{ Time = $_.TimeCreated Account = $event.Event.EventData.Data | Where-Object Name -eq "TargetUserName" | Select-Object -ExpandProperty "#text" SourceIP = $event.Event.EventData.Data | Where-Object Name -eq "IpAddress" | Select-Object -ExpandProperty "#text" WorkStation = $event.Event.EventData.Data | Where-Object Name -eq "WorkstationName" | Select-Object -ExpandProperty "#text" } } | Sort-Object Time | Export-Csv C:\Evidence\failed_logins.csv -NoTypeInformation # Search for process creation events containing suspicious keywords Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688} | Where-Object {$_.Message -match "powershell|cmd|wscript|cscript|mshta|rundll32"} | Select-Object TimeCreated, Message | Export-Csv C:\Evidence\suspicious_processes.csv -NoTypeInformation
8. Autopsy — full disk analysis walkthrough

Autopsy is a free, open-source digital forensics platform with a graphical interface built on The Sleuth Kit. It is the most widely used free forensics GUI, used by law enforcement, corporate DFIR teams, and training courses globally. It automates many artefact extraction tasks that would otherwise require running individual tools manually.

Autopsy Digital Forensics Platform
Basis Technology · autopsy.com · Free and open-source
Best free forensics GUI
Platform
Windows (primary), Linux
Input formats
E01, .dd, raw, VMDK, VHD
Key modules
Hash lookup, keyword search, timeline, email, browser history
NSRL
Built-in known-good hash filtering
1
Create a new case
Open Autopsy → Create New Case. Enter case name (e.g. "IR-2026-0047"), case number, and examiner name. Choose a case directory on your evidence drive — Autopsy stores all its database files and reports here. These files are part of your case documentation.
2
Add a data source
Add Data Source → Disk Image or VM File → browse to your E01 or .dd image file. Autopsy will display the image's hash values — verify they match your chain of custody documentation. Select the timezone of the source system (critical for accurate timeline display). Autopsy mounts the image in read-only mode — it will never modify the evidence.
3
Configure ingest modules
Autopsy runs "ingest modules" that automatically extract and analyse artefacts. Key modules to enable: Hash Lookup (against NSRL known-good database — identifies OS and application files, letting you focus on unknown files), Keyword Search (search for keywords across all file content), Recent Activity (browser history, cookies, downloads), Windows Registry, Email Parser, File Type Identification, Interesting Files (flags files in suspicious locations), Extension Mismatch (files with wrong extensions — common malware technique), and Embedded File Extractor (extracts files from archives and Office documents).
4
Investigate the timeline
Tools → Timeline → generates a visual timeline of all filesystem events (file created, modified, accessed, deleted) with filtering by date range and activity type. This is the most powerful Autopsy feature for incident reconstruction — zoom in to the period of the suspected attack and observe every file system change. Unusual file creation in C:\Windows\Temp, C:\Users\Public, or C:\ProgramData during the incident window is a strong indicator of malware staging.
5
Analyse deleted files and unallocated space
In the left panel, expand the data source → $OrphanFiles to see deleted files still recoverable from MFT records. View unallocated space for file fragments — the Keyword Search module automatically searches unallocated space. Right-click any recoverable file → Extract File to save it to your evidence directory. Document every extracted file with its MFT record number, original path, and timestamps.
6
Generate the report
Generate Report → HTML Report or Excel Report. Autopsy generates a structured report including all flagged items, timeline events, keyword search hits, and browser history. This becomes part of the formal investigation documentation. The HTML report is self-contained and can be shared with legal counsel or regulatory investigators without requiring Autopsy to view.
9. Network forensics — PCAP analysis

Network packet captures (PCAPs) record every byte of network traffic passing through a network point. They are the ground truth for reconstructing attacker C2 communications, data exfiltration, and lateral movement over the network. Wireshark is the standard free tool; NetworkMiner extracts files and credentials from PCAPs automatically.

📡
PCAP analysis with Wireshark — forensic investigation workflow
Free — wireshark.org
Capturing traffic for analysis
# tcpdump — capture traffic on the target host or network tap tcpdump -i eth0 -w /mnt/evidence/capture.pcap # -i eth0 = interface | -w = write to file # Capture only traffic from/to a specific suspect host tcpdump -i eth0 host 192.168.1.105 -w /mnt/evidence/suspect-host.pcap # Capture only specific port (e.g. suspicious outbound 4444) tcpdump -i eth0 port 4444 -w /mnt/evidence/suspicious-port.pcap # On Windows — use WinDump or Wireshark's tshark tshark -i "Ethernet" -w C:\Evidence\capture.pcap
Wireshark forensic filters — the essential display filters
# Wireshark display filters for forensic investigation # Show only traffic to/from a specific IP (suspect host) ip.addr == 10.10.5.42 # DNS queries — look for DGA domains (random-looking names), unusual TLDs dns.flags.response == 0 # HTTP requests — look for suspicious User-Agents, POST to unusual URIs http.request http.request.method == "POST" # Large outbound data transfers (potential exfiltration) tcp.len > 10000 && ip.dst != 10.0.0.0/8 # Traffic on unusual ports (C2 often uses high ports) tcp.dstport > 1024 && !(tcp.dstport in {80 443 8080 8443 3389}) # Identify Cobalt Strike beacon (periodic HTTP/HTTPS to same IP) http.host && ip.dst == [suspected_c2_ip] # TLS without SNI (some C2 frameworks avoid SNI) tls.handshake.type == 1 && !tls.handshake.extensions_server_name # Command-line tshark for scripted PCAP analysis tshark -r capture.pcap -T fields -e frame.time -e ip.src -e ip.dst -e tcp.dstport -e http.request.uri
NetworkMiner — automatic file extraction from PCAP

NetworkMiner (netresec.com/networkminer — free version available) parses a PCAP file and automatically extracts: files transferred over HTTP/FTP/SMB, credentials sent in cleartext, X.509 certificates from TLS sessions, host operating system fingerprints, and reassembled message streams. Load a PCAP and within minutes you have a directory of all files that transited the network during the capture.

10. DFIR toolchain — the complete free toolkit
ToolCategoryPlatformWhat it doesGet it
FTK ImagerDisk imagingWindowsForensic disk imaging with hash verification, E01 and raw output, preview before imagingexterro.com/ftk-imager
dc3dd / dcflddDisk imagingLinux/Macdd replacement with hashing, progress display, and split outputapt install dc3dd
WinPmemMemory acquisitionWindowsRAM image acquisition — portable, no install neededgithub.com/Velocidex/WinPmem
LiMEMemory acquisitionLinuxKernel module for full Linux RAM image capturegithub.com/504ensicsLabs/LiME
Volatility 3Memory analysisWin/Linux/MacProcess analysis, network connections, malfind, registry extraction from RAM dumpsvolatilityfoundation.org
AutopsyDisk analysis GUIWindowsFull forensic GUI — timeline, artefact extraction, deleted file recovery, reportingautopsy.com
The Sleuth Kit (TSK)Disk analysis CLILinux/MacCommand-line disk analysis — fls, istat, mmls, sortersleuthkit.org
Eric Zimmerman ToolsWindows artefactsWindowsMFTECmd, PECmd, AmcacheParser, EvtxECmd, Timeline Explorer — complete Windows artefact suiteericzimmerman.github.io
Wireshark / tsharkNetwork analysisWin/Linux/MacPCAP capture and analysis with display filterswireshark.org
NetworkMinerNetwork analysisWindowsAutomatic file/credential extraction from PCAP filesnetresec.com/networkminer
KAPE (Kroll Artifact Parser)Triage / collectionWindowsRapid artefact collection from live systems — collects Prefetch, event logs, registry, browser history in minutesgithub.com/EricZimmerman/KapeFiles
VelociraptorEnterprise DFIRWin/Linux/MacEndpoint telemetry collection, remote forensic acquisition, threat hunting at scalevelocidex.com
Plaso / log2timelineTimelineLinuxCreates super-timeline from multiple artefact sources — merges all timestamps into chronological viewgithub.com/log2timeline/plaso
HayabusaEvent log analysisWin/LinuxFast Windows event log analysis using Sigma rules — generates timeline and ATT&CK-mapped findingsgithub.com/Yamato-Security/hayabusa
REMnuxMalware analysisLinux (VM)Complete malware analysis Linux distribution — static/dynamic analysis tools pre-installedremnux.org
💡 Build a forensic USB toolkit Prepare a forensic USB drive in advance — not during an incident. Include: WinPmem (RAM acquisition), FTK Imager Lite (disk imaging), Eric Zimmerman's tools (artefact parsing), KAPE with default targets (rapid collection), and a portable version of Wireshark. Label the drive clearly. When an incident occurs, you can begin collection immediately rather than spending the first hour downloading tools — during which time volatile evidence is degrading.
$0
cost of the complete professional DFIR toolchain — Autopsy, Volatility, FTK Imager, EZ Tools are all free
Seconds
RAM contents survive after power-off — collect memory first, always
68%
of breaches undetected for over a month without forensic capability
34%
YoY growth in DFIR analyst job postings 2025–2026

⚡ Getting started with digital forensics

  1. Set up a practice environment this week — download a vulnerable VM image from blueteamlabs.online or cyberdefenders.org (both free). These provide pre-built forensic challenge environments with disk images, memory dumps, and PCAP files to practise on without needing a real incident. Install Autopsy, Volatility 3, and Eric Zimmerman's tools on your analysis workstation and work through a challenge end-to-end.
  2. Build your forensic USB toolkit — download WinPmem, FTK Imager Lite, KAPE with default collection targets, and the Eric Zimmerman tool suite onto a dedicated USB drive. Test that every tool runs correctly. Label the drive and keep it accessible. You will regret not having it ready the first time you need to respond to an incident quickly.
  3. Connect forensics to your incident response plan — your IR plan should include explicit forensic collection steps: who collects RAM, who images the disk, who exports the logs, and in what order. Evidence collection decisions made in the first 15 minutes of an incident determine what you can and cannot prove for the entire investigation. Incident response plan guide →
  4. Learn the Windows artefact landscape — the most valuable investment for Windows DFIR is memorising the key artefact locations (Prefetch, ShimCache, AmCache, Event Log IDs) and what each one tells you. Eric Zimmerman's blog (binaryforay.blogspot.com) is the definitive reference and is free.
  5. Understand how forensics fits the full security stack — forensics answers the "what happened" question after detection. The complementary skills are threat hunting (proactive search before detection), SIEM (the detection layer), and MITRE ATT&CK (the framework that maps what you find to known attacker techniques). Threat hunting → | MITRE ATT&CK →
Frequently asked questions
What is digital forensics in cybersecurity?

Digital forensics is the discipline of preserving, collecting, and analysing digital evidence from computers, networks, and storage devices to reconstruct what happened during a security incident. It applies scientific methods — hash verification, chain of custody documentation, write-blocking — to ensure findings are accurate, reproducible, and legally defensible. In cybersecurity, it is most commonly applied during incident response (determining how an attacker gained access, what they did, and what they stole), insider threat investigations, and legal proceedings. The discipline is also called DFIR — Digital Forensics and Incident Response — reflecting how frequently forensics and IR are performed together.

What is order of volatility in digital forensics?

Order of volatility describes how quickly different types of digital evidence are lost — and therefore the priority order for evidence collection. The most volatile evidence (RAM contents, network connections, running processes) must be collected first because it disappears when the system is powered off or the network connection is terminated. Less volatile evidence (disk contents, log files) can wait longer but may be overwritten as the system continues running. The standard order per RFC 3227: (1) RAM, (2) network state and connections, (3) running processes, (4) disk image, (5) log files. The critical rule: always collect RAM before powering off or rebooting a compromised system.

What is a forensic disk image?

A forensic disk image is a bit-for-bit copy of every sector on a storage device — including unallocated space, deleted file fragments, and slack space that a normal file-level backup would miss. It is different from a backup, which copies only files the operating system considers present. Forensic images are created with tools like FTK Imager or dd, verified with cryptographic hashes (MD5, SHA-256) to confirm they are exact copies, and all analysis is performed on the image rather than the original device — preserving the original evidence unchanged. Common formats are E01 (Expert Witness Format, supports compression and metadata) and raw/dd (simple, maximum compatibility).

What is memory forensics and why is it important?

Memory forensics is the analysis of a RAM dump — a snapshot of a system's memory at a point in time — to recover evidence that exists only in memory. This includes: running processes (including malicious ones), active network connections, encryption keys, credentials cached in memory, injected shellcode in legitimate processes, and command history. Memory forensics is critical because fileless malware — malware that executes entirely in RAM without writing to disk — is invisible to disk-based forensics and most antivirus products. Volatility 3 is the standard free tool for memory analysis. RAM must be captured from a live running system before the system is powered off.

What is chain of custody in digital forensics?

Chain of custody is the documented, unbroken record of every person who had access to evidence, when, and what they did with it — from the moment of collection through to presentation. Its purpose is to prove evidence was not altered or tampered with at any point. A broken chain of custody — a gap in documentation, evidence that changed hands without being recorded, or a period where evidence location is unknown — can make otherwise solid evidence inadmissible in legal proceedings. Chain of custody documentation must include: evidence item description, collection date and time, collector identity, hash values, storage location, and a log of every transfer between individuals.

What free tools do professional DFIR analysts use?

Professional DFIR teams use a predominantly free toolchain: FTK Imager Lite for forensic disk imaging, WinPmem or DumpIt for Windows RAM acquisition, LiME for Linux RAM acquisition, Volatility 3 for memory analysis, Autopsy for disk analysis with a graphical interface, Eric Zimmerman's tools (MFTECmd, PECmd, AmcacheParser, EvtxECmd, Timeline Explorer) for Windows artefact parsing, Wireshark and tshark for PCAP analysis, NetworkMiner for automatic file extraction from network captures, KAPE for rapid live triage collection, and Hayabusa for Sigma-based Windows event log analysis. The complete professional toolkit is available at zero cost — the investment required is time learning how to use each tool effectively.

About the author Written by the HOC Team at Hackers Online Club — a cybersecurity community trusted by DFIR analysts, incident responders, SOC analysts, and cybersecurity students since 2010. 15+ years of practical cybersecurity tutorials, forensics guides, and security operations resources. Learn more about HOC →