PISA Pakistan — Community CERT

← ⚙️ Cyber Security Fundamentals

12. Digital Forensics & Chain of Custody for Pakistani Law Enforcement

⏱ 11 min

Digital Forensics & Chain of Custody for Pakistani Law Enforcement

When a cybercrime is reported in Pakistan, the integrity of digital evidence can make or break a prosecution. The Prevention of Electronic Crimes Act (PECA) obligates investigators to preserve evidence in a forensically sound manner. This lesson walks through the essential steps of imaging, preservation, and documentation, with examples drawn from real‑world cases like OLX marketplace fraud and WhatsApp forwards.

Legal Framework under PECA

  • Section 13 of PECA mandates that electronic evidence be stored without alteration.
  • Reporting to the NCCIA cybercrime helpline 1799 triggers an official response and evidence collection guide.

Forensic Imaging & Preservation

  1. Power off the device to avoid volatile memory loss.
  2. Use a write‑blocker (hardware or software) to connect the device to a forensics workstation.
  3. Create a bit‑for‑bit image with FTK Imager or dd.
  4. Generate SHA‑256 hashes of the source and image for verification.
  5. Store the original drive in a secure, labeled evidence bag.

Mobile Device Forensics

  • Extract WhatsApp chats from the SQLite database (msgstore.db) using ADB or Cellebrite.
  • Parse call logs, contacts, and deleted messages to reconstruct the timeline.
  • Document each step with screenshots and note the device model, IMEI, and seized date.

Chain of Custody Documentation

  • Fill out a Chain of Custody form for every transfer of the evidence.
  • Record: date/time, person handing over, person receiving, purpose of access, and signatures.
  • Keep the form attached to the evidence bag; digital copies go into the case management system.

Case Study: OLX Fraud Evidence from a Smartphone

  1. A victim reports sending money via JazzCash after receiving a fake OLX link.
  2. The investigator images the phone, extracts the WhatsApp chat showing the fraudulent link.
  3. Hashes are verified; the image is loaded into Autopsy for keyword search (JazzCash, OTP).
  4. The report is submitted to the court, referencing the NCCIA case number.

Do / Don't

  • Do: Keep the original device powered off; Don't: Plug it into the internet before imaging, as this can alter timestamps.
  • Do: Maintain a written log of every person who touches the evidence; Don't: Skip the chain‑of‑custody form, even for “minor” cases.

Takeaway

Follow the chain‑of‑custody form for any digital evidence you collect, and always create a forensic image before analysis. This protects the evidentiary value and supports successful prosecution under PECA.

← PrevNext →