Digital Forensics Fundamentals

๐Ÿ“ Concept Note โ€” DFIR Unit I | Source: MCA Sem III Syllabus


What is Digital Forensics?

Definition: The application of scientific methods to identify, collect, preserve, examine, analyse, and present digital evidence in a way that is legally admissible.

Types of Digital Forensics

TypeFocusExamples
Disk ForensicsHard drives, SSDs, USBRecovering deleted files, timeline analysis
Memory ForensicsRAM analysisDetecting running malware, extracting credentials
Network ForensicsTraffic capturesReconstructing attacks, finding C2 channels
Mobile ForensicsPhones, tabletsCall logs, messages, app data
Cloud ForensicsCloud infrastructureAWS/Azure/GCP logs, virtual disk images
Email ForensicsEmail headers and contentTracing phishing, proving spoofing

Goals of a Forensic Investigation

  1. What happened?
  2. When did it happen?
  3. Who did it (or which account/system)?
  4. How was it done?
  5. What data was affected?

Locardโ€™s Exchange Principle

โ€œEvery contact leaves a trace.โ€

In the physical world: A burglar leaves fingerprints, footprints, fibres. In the digital world: Every action leaves artefacts โ€” log entries, timestamps, registry changes, network connections, file metadata.

Implication: An attacker cannot interact with a system without leaving evidence. The forensic investigatorโ€™s job is to find, preserve, and interpret that evidence.


The Digital Forensics Investigation Process

1. Identification โ†’ 2. Preservation โ†’ 3. Collection โ†’ 4. Examination โ†’ 5. Analysis โ†’ 6. Reporting

1. Identification

  • Recognise that an incident has occurred
  • Identify potential sources of evidence (which systems, which devices)
  • Determine scope of investigation

2. Preservation

  • Protect evidence from modification โ€” this is critical
  • Use write blockers, create forensic images (not original)
  • Maintain chain of custody
  • Document everything

3. Collection

  • Create forensic images (bit-for-bit copies)
  • Capture volatile data (RAM) before itโ€™s lost
  • Record hashes for integrity verification
  • Fill out chain of custody forms

4. Examination

  • Use forensic tools to extract data from images
  • Recover deleted files, extract metadata
  • Parse structured data (registry, event logs, browser history)

5. Analysis

  • Interpret findings in context
  • Build timelines of events
  • Correlate evidence from multiple sources
  • Form conclusions supported by evidence

6. Reporting

  • Document findings in a legally defensible report
  • Write for technical AND non-technical audiences
  • Include all evidence with proper references

Chain of Custody

What is it?

A documented, unbroken trail showing who had possession of evidence, when, and what they did with it.

Why it Matters

  • Legal requirement โ€” Evidence without chain of custody can be thrown out of court
  • Proves evidence hasnโ€™t been tampered with
  • Shows continuous accountability

Chain of Custody Fields

FieldPurpose
Case numberUnique identifier
Evidence descriptionWhat the item is
Date/time collectedWhen evidence was obtained
Collected byWho obtained it
Location foundWhere it was
Hash values (MD5 + SHA-256)Integrity verification
Transfer logEach person who handled it, with dates/times
Storage locationWhere evidence is kept

Common Pitfalls

  • โŒ Booting suspectโ€™s computer before imaging โ†’ changes timestamps
  • โŒ Not recording hash values โ†’ canโ€™t prove integrity
  • โŒ Gaps in custody log โ†’ evidence may be challenged
  • โŒ Using original evidence for analysis โ†’ risk of modification

IT Act 2000 (India)

SectionRelevance
Section 65BElectronic records as evidence (certificate required)
Section 43Unauthorised access penalties
Section 66Computer-related offences

Indian Evidence Act โ€” Electronic Records

  • Section 65B certificate required for electronic evidence
  • Printouts/copies must be certified as accurate
  • Original storage medium should be preserved when possible

DPDP Act 2023 (Digital Personal Data Protection)

  • Regulates how personal data is collected, processed, stored
  • Forensic investigators must handle discovered PII carefully
  • Breach notification requirements

Admissibility Standards

  • Daubert Standard: Is the forensic method scientifically valid and reliable?
  • Frye Standard: Is the method generally accepted by the forensic community?

Forensic Operating Systems

OSTypeKey Feature
CAINELinux Live CDWrite-blocking built in, forensic tools preinstalled
SIFTUbuntu-based VMSANS-maintained, comprehensive forensic toolkit
Kali LinuxDebian-basedPrimarily offensive, but includes forensic tools

Anti-Forensics Awareness

Techniques attackers use to hinder investigation:

  • Log deletion โ€” Clearing event logs, bash_history
  • Timestamp manipulation โ€” Changing file modification times
  • Encryption โ€” Encrypting evidence
  • Steganography โ€” Hiding data inside images/files
  • Secure deletion โ€” Overwriting files to prevent recovery
  • Living off the land โ€” Using legitimate system tools to avoid detection

๐Ÿ’ก Investigators must be aware of anti-forensics techniques to look for evidence of evidence destruction itself.