PISA Pakistan — Community CERT

← ⚙️ Cyber Threat Intelligence Foundations

31. Digital Forensics Fundamentals for CTI: Artifact Collection and Chain of Custody

⏱ 11 min

Bridging Forensics and CTI

Digital forensics provides the evidentiary foundation that transforms raw CTI findings into actionable, legally defensible intelligence. When NCCIA 1799 receives reports of OLX scam wallet drains or Daraz phishing campaigns, forensic artifacts—disk images, log files, browser histories—feed directly into MISP events, enriching your organization's threat picture. Every CTI analyst should understand basic forensic collection to ensure IOCs remain admissible if law enforcement acts.

Essential Forensic Artifacts for Pakistan-Themed Threats

Collect these artifacts from compromised systems:

  • Windows Event Logs (Security.evtx, System.evtx) — track lateral movement matching T1021 (Remote Services)
  • Prefetch files (C:\Windows\Prefetch) — reveal previously executed applications used by banking trojans
  • Registry hives (SAM, SYSTEM, SOFTWARE) — extract persistence mechanisms common in Pakistan-targeted malware
  • Browser artifacts — places.sqlite, cookies.sqlite from Chrome/Firefox reveal phishing page visits
  • Ramachandra traces for mobile forensics on Android devices used in WhatsApp-based scam campaigns

Chain of Custody Best Practices

Forensic integrity hinges on proper chain of custody:

# Generate SHA-256 hash immediately after acquisition
sha256sum /dev/sdb > evidence_hash.txt
# Verify hash before analysis
sha256sum -c evidence_hash.txt

Document:

  • Acquisition date/time and technician name
  • Source device serial number and model
  • Hash values at each transfer
  • Storage location and access controls

Forensic Timeline Reconstruction

Use Plaso (log2timeline) to build super timelines correlating artifacts across multiple sources:

log2timeline.py --storagefile timeline.plaso image.raw
psort.py -o L2tcsv timeline.plaso "date > '2026-01-01'" > timeline.csv

Import timelines into ELK to correlate with your CTI pipeline's network detection logs, linking disk artifacts to Zeek conn.log entries.

CTI Integration Points

Push forensic IOCs to MISP as STIX cyber observables:

  • Malicious IPs from prefetch/network logs → MISP network-socket observable
  • Malware file hashes → MISP file-hash observable
  • Registry run keys → MISP registry-key observable

Tag MISP events with TLP:AMBER+STRICT for internal forensics-derived intelligence sharing with trusted ISAC partners.

Do / Don't

  • Do use write-blockers during disk acquisition to prevent evidence alteration
  • Do photograph physical devices before unplugging—document LED states, connected cables
  • Don't analyze evidence on the original compromised system—always clone to forensic workstation
  • Don't skip browser history analysis; phishing victims often have clear visit records to fake easypaisa login pages

Takeaway

Today: Set up a basic forensic workstation with Ubuntu, install Plaso and Autopsy, and create a forensic acquisition checklist template for your SOC. Practice acquiring a USB disk image using dd and generating proper hash documentation—these skills directly support CTI evidence handling when NCCIA 1799 cases escalate.

← PrevNext →