PISA Pakistan — Community CERT

← ⚙️ SOC Analyst Foundations

13. Digital Forensics Essentials for SOC Analysts

⏱ 9 min

Overview

SOC analysts are often the first responders when an incident is confirmed. Being able to collect and preserve digital evidence properly bridges the gap between detection and a successful prosecution. This lesson introduces the forensic mind‑set, core tools, and a practical workflow you can start using today.

Why Forensics Matters for a SOC

When an alert turns into a confirmed breach, the SOC must answer three questions: What happened?, How did it happen?, and Who is responsible? Without proper evidence, remediation is guesswork and legal action stalls. Preservation of chain‑of‑custody is mandatory under Pakistan’s NCCIA guidelines and for compliance with NADRA data‑protection requirements.

Key Forensic Artifacts and Tools

  • Disk Images: FTK Imager, dd – creates a bit‑exact copy of the storage device.
  • Memory Capture: Volatility – extracts running processes, network connections, and injected code.
  • File‑System Analysis: Autopsy – navigates NTFS/Alpine file structures, timelines, and deleted files.
  • Registry Parsing: RegRipper – pulls userassist, run keys, and USB device history.
  • Timeline Creation: Plaso/log2timeline – builds a unified chronological view of events.

Hands‑On: Creating a Forensic Image

  1. Shut down the system using a live USB (avoid altering the disk).
  2. Attach a hardware write‑blocker to the target drive.
  3. Run FTK Imager → Create Image → choose Raw (DD) format.
  4. Verify the image with a SHA‑256 hash; record the hash in the case ticket (theHive).
  5. Store the image on an encrypted external drive and document the acquisition in the incident timeline.
  6. Tag the case as Evidence – Forensics for downstream analysis.

Real‑World Example: POS Malware in a Karachi Market

A neighbourhood grocery shop in Saddar, Karachi reported fraudulent card transactions. The SOC used FTK Imager to capture the POS terminal’s disk, then Autopsy uncovered a memory‑resident keylogger injected via a USB drive. The forensic image was handed to NCCIA 1799 for criminal investigation, illustrating how SOC‑driven forensics can directly support law‑enforcement.

Do / Don't

  • Do create a forensic image before any remediation steps.
  • Don't power off a live machine without first capturing volatile memory if possible.
  • Do use write‑blockers to preserve evidence integrity.
  • Don't ignore chain‑of‑custody documentation; it can invalidate evidence in court.

Takeaway

Today, set up a test Windows VM, install FTK Imager, and create a raw image of the VM’s virtual disk. Verify the SHA‑256 hash and note it in a simple spreadsheet. This habit will make you ready to collect evidence properly when a real incident occurs.

← PrevNext →