Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 36 ยท Getting Started

What Is Digital Forensics?

Learn what digital forensics is, what investigators look for, where it is used (crime, incidents, disputes) and how the field differs from incident response and hacking.

Digital forensics is the discipline of identifying, preserving, examining and presenting digital evidence in a way that other people can check and trust. The evidence might sit on a laptop disk, in a phone, in a cloud account, in server logs or in the memory of a running machine. The key word is evidence: a forensic examiner does not just find out what happened, they must be able to show how they know, so that a manager, a judge or another examiner can repeat the work and reach the same result.

This course is defensive and legal. You will learn how investigators read artifacts, never how to attack a system. Every example runs on small, made-up data inside your browser, and every tool output that cannot run here is labelled as read-only sample output.

What investigators actually do

A forensic investigation usually answers a handful of questions: what happened, when, how, who or which account was involved, and what was affected? To answer them, an examiner collects data without changing it, analyses it, and writes up findings that separate facts from opinions.

Typical situations:

  • Criminal cases: fraud, theft of data, harassment, threats. Police labs and private experts work under strict legal rules.
  • Corporate investigations: an employee leaving with confidential files, policy violations, insider threats.
  • Incident response: a company finds ransomware or a breached account and needs to know how far the intruder got.
  • Civil disputes: e-discovery (collecting email and documents for a lawsuit), contract disputes, intellectual-property claims.
  • Personal matters: only with proper authority and consent, and often through a professional.

Only examine devices and accounts that you own or are explicitly authorised in writing to examine. Looking at someone else's data without permission can be a crime in many countries, however curious or well-meaning you are.

Field Main question Typical result
Digital forensics What happened, and can we prove it? A defensible report and preserved evidence
Incident response (IR) How do we stop the damage and recover? A contained, restored system
Penetration testing Where are we weak? A list of vulnerabilities (authorised testing only)
E-discovery Which documents are relevant to a case? A reviewed set of documents
Data recovery Can we get the files back? Restored files, no legal chain needed

The fields overlap. Incident response often calls on forensic methods, and a forensic examiner may recover data. But forensics adds the requirement that evidence stay intact, documented and explainable.

Core principles in one page

  1. Do not alter the original. Work on a copy and use read-only access to the source (forensic imaging).
  2. Prove integrity. Use cryptographic hashes so anyone can verify the copy equals the original (hashing).
  3. Document everything. Who touched the evidence, when, with which tool and version (chain of custody).
  4. Stay objective. Report what the data shows, including facts that do not support the story you expected.
  5. Stay within the law and your authority (legal and ethical limits).

Evidence is rarely one thing

Digital evidence is a pile of small facts that support each other. A single timestamp proves little; a timestamp that matches a login record, a browser history entry and a file-system change tells a story. The program below holds three independent "sources" and merges them into one ordered list.

Python Corroboration: agreeing sources are stronger

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

None of these lines alone proves data theft. Together they form a timeline worth investigating, which is why timeline analysis is a skill of its own later in the course.

Facts versus conclusions

A good report keeps observations apart from interpretation. Compare:

  • Observation: "The file archive.zip was created at 10:02:05 UTC in the user profile of mia."
  • Interpretation: "Mia created the archive." This is a conclusion, because someone else could have been logged into her account, and the examiner must say what else would have to be true.

The next program labels statements in a very simple way: anything that claims intent or guilt is flagged for review.

Python Flag statements that go beyond the evidence

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A real review is done by a human, of course. The point is the habit: every claim in a report should point to a specific artifact.

Skills you will build

The course moves from foundations to practice: the investigation process, evidence handling, disks and file systems, memory, network and logs, mobile and cloud, timelines, reporting and a final set of projects. You do not need prior security experience; basic comfort with files, folders and a little Python is enough.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What distinguishes digital forensics from simple data recovery?

    Recovery just gets files back. Forensics must also show that evidence is intact and how conclusions were reached.
  2. 2. You are asked to look at a colleague's laptop out of curiosity, with no written permission. What should you do?

    Examining a system without authority can be illegal, and any evidence gathered would also be tainted.
  3. 3. Which statement is an observation rather than an opinion?

    A timestamp stored in a record is a checkable fact. Plans, guilt and identity need further support.
  4. 4. Why do investigators prefer several independent sources?

    One artifact can be mistaken or forged; independent artifacts that agree are far more convincing.

Summary

  • Digital forensics identifies, preserves, examines and presents digital evidence so others can verify it.
  • It overlaps with incident response and e-discovery but demands integrity and documentation.
  • Work only with legal authority and never alter the original evidence.
  • Separate observations from conclusions; support every claim with an artifact.
  • Several independent sources agreeing is the strongest kind of evidence.

Next: The forensic process and its branches