Digital Forensics MCQs for the NSCT
Digital forensics is the scientific collection, preservation, examination and reporting of digital evidence so that the evidence can stand up in court or in a disciplinary inquiry. The core skills are handling evidence in the right order, keeping an unbroken chain of custody, and making verified forensic images. It is topic 12 of the 16 in the Cyber Security area, which carries 5% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 47.2% accuracy in this area in 2026, per the HEC NSCT report and APP.
This page follows NIST SP 800-86 (Guide to Integrating Forensic Techniques into Incident Response), RFC 3227 on evidence collection, and Stallings. Hashing comes from Cryptography Basics.
Evidence handling
NIST SP 800-86 defines four phases:
| Phase | What happens |
|---|---|
| Collection | Identify sources, then acquire the data while preserving its integrity |
| Examination | Process the data: filter, decompress, carve and extract what is relevant |
| Analysis | Correlate the findings and draw conclusions, such as who did what and when |
| Reporting | Explain the tools, methods, findings and limits |
Collect the most short-lived data first. RFC 3227's order of volatility, from most to least volatile, is:
- CPU registers and cache
- Routing table, ARP cache, process table, kernel statistics and memory (RAM)
- Temporary file systems
- Disk
- Remote logging and monitoring data
- Physical configuration and network topology
- Archival media
So on a running machine you capture RAM before imaging the disk. This matters most when full-disk encryption is unlocked, because powering off loses the keys. Seized phones go into a Faraday bag so that no remote wipe or incoming data can change them.
Exam angle: "what to collect first" questions are always about volatility, never about which source looks most important.
Chain of custody
The chain of custody is the documented history of the evidence: who collected it, every hand-over, where it was stored, and why each person had it. Each entry needs a name, date, time, purpose and signature.
| Time | From | To | Note |
|---|---|---|---|
| 09:00 | Scene | Officer A | Seized, bagged, tagged, photographed |
| 09:30 | Officer A | Driver B | Signed |
| 11:00 | Driver B | Lab reception | Signed by B only |
| 13:00 | Reception | Analyst C | Signed by C |
The two hours between 11:00 and 13:00 have no named custodian. That gap lets the defence argue the drive could have been altered, even if its hash still matches. Locard's exchange principle (every contact leaves a trace) explains why investigators themselves must avoid touching original evidence.
Exam angle: a gap or unsigned transfer weakens admissibility; a matching hash alone does not cure poor custody records.
Imaging
A forensic image is a bit-stream copy of every sector, including deleted files, file slack and unallocated space. It is made through a write blocker so that the source is never modified. Formats include raw (dd) and E01, which adds case metadata, CRCs and compression.
The image is hashed at acquisition and re-verified before analysis. We ran this check in Python on sample bytes:
import hashlib
img = bytes(range(256)) * 4
copy = bytearray(img); copy[0] ^= 0x80 # one bit changed
print(hashlib.sha256(img).hexdigest() == hashlib.sha256(bytes(copy)).hexdigest())
# False
A single flipped bit produces a completely different SHA-256 digest. MD5 (128 bits) and SHA-1 (160 bits) still detect accidental changes, but both have practical collision attacks, so SHA-256 is the current choice.
Useful numbers: a 500,107,862,016-byte drive has 976,773,168 sectors of 512 bytes. A 10,000-byte file on 4,096-byte clusters uses 3 clusters and leaves 2,288 bytes of slack. Examiners also carve files by signature: FF D8 FF is JPEG, 25 50 44 46 is "%PDF" and 50 4B 03 04 is ZIP (including .docx).
Exam angle: analysis is always done on a verified working copy, never on the original.
Common traps
- Putting the NIST SP 800-86 phases in the wrong order, or mixing them with incident-response phases such as containment and eradication.
- Imaging the disk before capturing RAM on a live system.
- Building timelines without converting time zones to UTC. A PKT (UTC+5) log entry at 09:40 is 04:40 UTC.
- Reading "C" in MAC times the same way on every system. It is inode change time on Unix but usually Created on NTFS; textbooks differ, so check the file system in the question.
- Thinking an MD5 match proves identity against a determined adversary.
- Booting the suspect machine "just to look", which changes timestamps and logs.
Worked examples
1. Understanding. Which RFC 3227 source is less volatile than disk but more volatile than archival media? Answer: remote logging and monitoring data, and also physical configuration and network topology. Both sit between disk and archival media in the list.
2. Application. An image is split into 4 GiB (2^32-byte) segments. How many segments does a 256,060,514,304-byte drive need? Answer: 256,060,514,304 ÷ 4,294,967,296 ≈ 59.6, which rounds up to 60, because the last partial segment still needs its own file.
3. Analysis. A Windows file shows Modified 5 May and Created 20 June of the same year, and a USB device was first connected on 20 June. What happened? Answer: the file was most likely copied onto the system from the USB drive on 20 June. Copying sets a new Created time but keeps the original Modified time, and the matching USB date supports it.
Practise
The quiz below has 100 questions on digital forensics, filterable by tier and difficulty.
Practise: 100 questions
FAQs
What is the difference between digital forensics and incident response?
Incident response (NIST SP 800-61) aims to contain an attack and restore service quickly. Digital forensics (NIST SP 800-86) aims to collect and analyse evidence carefully enough to support legal or disciplinary action. They overlap: responders should preserve evidence while containing an attack. The next topic, incident response, covers the response side.
Why use SHA-256 instead of MD5 for evidence?
Both detect accidental changes. MD5 has practical collision attacks, so an adversary can create two different files with the same MD5 hash. SHA-256 has no known practical collisions, so it gives a stronger integrity claim in court. Many tools record both for compatibility with older case files.
What is a write blocker, and is software enough?
A write blocker lets the examiner read a drive while blocking any write command. Hardware blockers sit between the drive and the workstation and are the usual choice for court work. Software blockers, such as mounting read-only, can work but depend on the OS behaving correctly, so they need careful validation.
How is this topic tested in the NSCT?
HEC's report groups questions into understanding, application and analysis tiers. For this topic, expect definitions (chain of custody, slack space), ordering and calculation questions (order of volatility, timelines, image sizes) and scenario analysis such as hash mismatches. The practice quiz covers all three tiers.
Next step
Continue to Incident Response & Management MCQs, the next topic in the official order. Revisit the Cyber Security MCQs hub or test yourself in an NSCT mock test.