Lecture 4 - Data Acquisition

Updated 14 Oct 2026

Objectives

  • List digital evidence storage formats
  • Explain ways to determine the best acquisition method
  • Describe contingency planning for data acquisitions
  • Explain how to use acquisition tools

[Image]

DF Principles

  • Principle 1: Keep all data in its original form
    • Only work on a copy or image, never the original
  • Principle 2: Ensure the competence of the investigator
    • Their evidence needs to reassure the Court
  • Principle 3: Document everything in your investigation
    • A clear chain of custody is required

Think of it like a crime scene — you never touch the original evidence directly. You photograph it, bag it, and only handle the copy. The original stays sealed and untouched so it can always be verified later.


Understanding Storage Formats for Digital Evidence

Two Types of Data Acquisition

  • Static acquisition
    • Copying a hard drive from a powered-off system
    • Used to be the standard
    • Does not alter the data, so it's repeatable
  • Live acquisition
    • Copying data from a running computer
    • Now the preferred type, because of hard disk encryption
    • Cannot be repeated exactly — alters the data
    • Collecting RAM data is becoming more important
      • But RAM data has no timestamp, which makes it much harder to use

Static acquisition is like photocopying a document that's just sitting on a desk — nothing changes while you copy it. Live acquisition is like photographing a moving river — every second you wait, the water (data) has already shifted, so you can never get the exact same shot twice.


Full Disk Encryption (FDE)

  • Encryption of an entire partition or drive
  • Encryption at the block level, rather than file level
  • Happens on the drive or by the operating system — "on-the-fly"
    • Encrypt and decrypt, while the computer is reboot
  • When the system is started, the user is prompted for the encryption key, which enables the system to decrypt enough to boot and run normally
  • Often required by security frameworks and regulations (e.g. HIPAA)

ก็พวก Bitlogger ไรงี้ทำ FDE ไง
Encrypt ด้วย Symmetric key เพราะเร็ว

While the computer is running, does FDE useless?


TRUE according to Somchart

How FDE Works

  • As information is read from the disk, it is decrypted on the fly and stored in memory
  • Any information written to the disk is also encrypted on the fly
  • Without the encryption key, the data stored on the disk remains inaccessible to thieves and hackers
  • FDE is good for stolen devices, but it does nothing against hackers or malware with access to the live system

FDE is like a vault door that only locks when the whole building is powered down. If someone steals the vault while it's still open (system running), the lock does nothing to stop them.

Scope of FDE

Unlike file-level encryption (which only encrypts specific files/folders), FDE covers the entire disk, including:

  • Operating system files
  • Applications
  • User data
  • Temporary files and swap space
  • This means that if the disk is removed and accessed outside its original system, the raw data appears as unreadable ciphertext

How It Works (Technical)

  • Encryption Algorithm
    • Commonly uses symmetric encryption (e.g., AES-256)
    • The same secret key is used for both encryption and decryption
  • Key Management
    • A secret encryption key is generated and securely stored (often protected by a password, passphrase, hardware token, or TPM chip)
    • At boot time, the system requires user authentication (password, PIN, smart card, biometric) to unlock the key
  • Transparent Operation
    • Once unlocked, the encryption/decryption process is transparent to the user
    • Performance impact is usually minimal due to hardware acceleration (AES-NI in CPUs or hardware-based encryption in SSDs)

Examples

  • Software-Based:
    • BitLocker (Windows)
    • FileVault 2 (macOS)
    • LUKS/dm-crypt (Linux)
  • Hardware-Based:
    • Self-Encrypting Drives (SEDs) with built-in encryption controllers

BitLocker

  • Microsoft's proprietary disk encryption software for Windows
  • Can encrypt your entire drive
  • Also protects against unauthorized changes to your system like firmware-level malware

FDE Shortfalls

  • Accessing the encryption key
    • If users store a USB drive containing the key alongside the computer, accessing the key becomes trivial for a thief
    • Users can also be fooled into revealing their password through social engineering
  • Theft of the laptop while it is running
    • FDE only protects data when the computer is turned off
    • If stolen while running but unattended (or user is distracted), data is fully accessible to the thief
  • Advanced in-memory techniques
    • FDE systems require encryption keys to be held in memory while running
    • DRAM contents persist for seconds to minutes after shutdown
    • An attacker can cut power, boot from USB/CD into another OS, and read the DRAM contents to extract the key

FDE Attack Table

  • Cold-boot attack = turn off and turn on
  • Warm boot = restart
AttackMain targetBasic ideaTypical mitigation
Cold-boot attack (turn off and turn on)Encryption key in RAMRecover residual key material from memory after shutdown/rebootMemory clearing, rapid power-off response, modern hardware protections
DMA attackRAM / keyAbuse DMA-capable interfaces to access system memoryIOMMU, Kernel DMA Protection, disable unnecessary external interfaces
Evil-maid attackPre-boot environmentTamper with bootloader or hardware while device is unattended to capture credentialsSecure Boot, TPM/measured boot, physical security
Bootkit / pre-boot malwareAuthentication pathModify early boot components so credentials are interceptedSecure Boot, signed boot chain, TPM measurements
TPM-related attackAutomatic key releaseExploit weak TPM-only configurations or exposed communication pathsTPM+PIN, measured boot, modern integrated TPM
Credential attackPassword/PINObtain the FDE password through phishing, observation, malware, or weak credentialsStrong PIN/password, MFA where applicable
Offline password guessingKey derivationCopy encrypted media and guess weak passwords offlineStrong passphrases and appropriately expensive KDFs
Live-system attackUnlocked volumeAccess data after the legitimate user has already unlocked the diskEndpoint security, screen locking, least privilege
Memory acquisitionEncryption keyObtain keys from a running/unlocked system's memoryMemory protections and minimizing unlocked exposure
Sleep-state attackKeys retained in RAMTarget a suspended machine where encryption keys remain availablePrefer shutdown/hibernate where appropriate
Recovery-key compromiseRecovery mechanismObtain escrowed or poorly protected recovery credentialsSecure recovery-key storage and access controls
Supply-chain/firmware attackTrusted computing baseCompromise firmware or hardware below the operating systemFirmware verification, updates, Secure/Measured Boot

Terms for a File Containing Evidence Data

  • Bit-stream copy
  • Bit-stream image
  • Image
    • Bit-by-bit copy of data
    • Not รูปภาพ at all
  • Mirror
  • Sector copy
  • They all mean the same thing

A bit-stream copy is different from a regular file copy. A regular copy only grabs the "visible" files, like packing only the clothes you can see in a closet. A bit-stream copy grabs literally everything — every bit, including deleted files, hidden folders, and empty space — like scanning the entire closet at the atomic level, including the dust in the corners.


Three Storage Formats

  1. Raw format
  2. Proprietary formats
  3. Advanced Forensics Format (AFF)

Raw Format

  • This is what the Linux dd command makes
  • Bit-by-bit copy of the drive to a file
  • Advantages
    • Fast data transfers
    • Can ignore minor data read errors on source drive
    • Most computer forensics tools can read raw format

dd is a command-line utility for Unix and Unix-like operating systems whose primary purpose is to convert and copy files.

  • Disadvantages
    • Requires as much storage as original disk or data
    • Tools might not collect marginal (bad) sectors
      • Low threshold of retry reads on weak media spots
      • Commercial tools use more retries than free tools
    • Validation check must be stored in a separate file
      • Checksum
      • Message Digest 5 (MD5)
      • Secure Hash Algorithm (SHA-2)
      • Cyclic Redundancy Check (CRC-32)

Proprietary Formats

  • Features offered
    • Option to compress or not compress image files
    • Can split an image into smaller segmented files (e.g. for CDs/DVDs), with data integrity checks in each segment
    • Can integrate metadata into the image file:
      • Hash data
      • Date & time of acquisition
      • Investigator name, case name, comments, etc.
  • Disadvantages
    • Inability to share an image between different tools (เพราะมัน proprietary ไง)
    • File size limitation for each segmented volume
      • Typical segmented file size is 650 MB or 2 GB
    • Expert Witness format is the unofficial standard
      • Used by EnCase, FTK, X-Ways Forensics, and SMART
      • Can produce compressed or uncompressed files
      • File extensions .E01, .E02, .E03, …

Advanced Forensics Format (AFF)

  • Developed by Dr. Simson L. Garfinkel of Basis Technology Corporation
  • Design goals
    • Provide compressed or uncompressed image files
    • No size restriction for disk-to-image files
      • Disk-to-image: copy data from the drive, and extract into image files????
      • = Hardware to Soft file!!!!
    • Provide space in the image file or segmented files for metadata
    • Simple design with extensibility
    • Open source for multiple platforms and OSs
    • Internal consistency checks for self-authentication
  • File extensions include .afd for segmented image files and .afm for AFF metadata
  • AFF is open source

[Image] — AFF File / AFF Segment structure diagram


2-Copy Law

Empirical Law of Digital Evidence Collection and Preservation: If you only make one copy of digital evidence, that evidence will be damaged or completely lost.

Basically Murphy's Law for forensics — always assume your one and only copy will fail somehow (corruption, drive failure, accidental overwrite), so always make at least two.


[Image]

Determining the Best Acquisition Method

Types of Acquisitions

  • Static acquisitions and live acquisitions

Four Methods

  1. Bit-stream disk-to-image file
  2. Bit-stream disk-to-disk
  3. Logical
  4. Sparse

Bit-stream Disk-to-Image File

  • Most common method
  • Can make more than one copy
  • Copies are bit-for-bit replications of the original drive
  • Tools: ProDiscover, EnCase, FTK, SMART, Sleuth Kit, X-Ways, iLook

Bit-stream Disk-to-Disk

  • Used when disk-to-image copy is not possible
    • Because of hardware or software errors or incompatibilities
    • More common when acquiring older drives
  • Adjusts target disk's geometry (cylinder, head, and track configuration) to match the suspect's drive
  • Tools: EnCase, SafeBack (MS-DOS), Snap Copy

Logical Acquisition and Sparse Acquisition

  • Used when time is limited and evidence disk is large
  • Captures only specific files of interest to the case
    • Such as Outlook .pst or .ost files
    • .pst = personal storage folder — stores archived items
    • .ost = offline storage folder — maintains offline availability of items
  • Very useful when it is not necessary to inspect the entire drive

Compressing Disk Images

  • Lossless compression might compress a disk image by 50% or more
    • But files that are already compressed (like ZIP files) won't compress much more
    • Every single bit of data that was originally in the file remains after uncompression — all information is completely restored
  • Lossy compression reduces a file by permanently eliminating certain information, especially redundant information
    • When uncompressed, only part of the original information is still there (user may not notice)
    • Generally used for video and sound, where a certain amount of information loss won't be detected by most users

Lossless or Lossy?

  • If you need to significantly reduce file size to save storage space, or boost UX/SEO on a website → lossy is probably your best option
  • If you need to maintain the highest possible standards of quality → lossless might be your answer

Forensic evidence should almost always be lossless — you can't afford to lose even a single bit that might later matter in court.


Tape Backup

  • When working with large drives, an alternative is using tape backup systems
  • No limit to size of data acquisition — just use many tapes
  • But it's slow

[Image]


Returning Evidence Drives

  • In civil litigation, a discovery order may require you to return the original disk after imaging it
  • If you cannot retain the disk, make sure you make the correct type of copy (logical or bit-stream)
    • Ask your client attorney or your supervisor what is required — you usually only have one chance!

[Image]

Contingency (แผนฉุกเฉิน) Planning for Image Acquisitions

  • ต้องเป็น plan อะไรบางอย่างที่ทำให้ business ดำเนินต่อไปได้

  • Create a duplicate copy of your evidence image file

  • Make at least two images of digital evidence

    • Use different tools or techniques
  • Copy the host protected area (HPA) of a disk drive as well

    • HPA contains a preloaded OS for install and recovery purposes
    • Consider using a hardware acquisition tool that can access the drive at the BIOS level
  • Be prepared to deal with encrypted drives

    • Whole disk encryption feature in newer Windows 10 Ultimate and Enterprise editions

The host protected area (HPA) is an area of a hard drive or solid-state drive that is not normally visible to an operating system.


HPA (Host Protected Area)

  • Creation of an HPA — the diagram shows how a host protected area is created:
    • IDENTIFY DEVICE returns the true size of the hard drive
    • READ NATIVE MAX ADDRESS returns the true size of the hard drive
    • SET MAX ADDRESS reduces the reported size of the hard drive
      • READ NATIVE MAX ADDRESS still returns the true size → an HPA has been created
    • IDENTIFY DEVICE now returns the fake (reduced) size of the hard drive
      • READ NATIVE MAX ADDRESS returns the true size → the HPA is in existence

HPA size=True Drive Size−Reported (Fake) Drive Size\text{HPA size} = \text{True Drive Size} - \text{Reported (Fake) Drive Size}

Think of HPA like a hidden compartment in a suitcase. The airline scale (OS) only weighs what's declared (reported size), but the true weight (native max address) reveals there's a hidden compartment stashing extra stuff.

HPA Identification Tools

  • ATATool by Data Synergy
  • The Sleuth Kit (free, open software) by Brian Carrier — HPA identification is currently Linux-only
  • EnCase by Guidance Software
  • Forensic Toolkit by AccessData
  • HPA-Aware => software or firmware that is able to use/detect the HPA

Encrypted Hard Drives

  • Windows BitLocker
  • TrueCrypt
  • If the machine is on, a live acquisition will capture the decrypted hard drive (True)
  • Otherwise, you will need the key or passphrase
    • The suspect may provide it
    • There are some exotic attacks:
      • Cold Boot — attackers execute cold boot attacks by forcefully and abruptly rebooting a target machine, then booting a pre-installed OS from a USB flash drive, CD-ROM, or over the network
      • Warm boot = Restart
  • Passware = password recovery software

Using Acquisition Tools

Acquisition Tools for Windows

  • Advantages
    • Make acquiring evidence from a suspect drive more convenient
      • Especially when used with hot-swappable devices
  • Disadvantages
    • Must protect acquired data with a well-tested write-blocking hardware device
    • Most tools can't acquire data from a disk's host protected area

Windows Write-Protection with USB Devices

  • USB write-protection feature — blocks any writing to USB devices
  • Some USB flash drives have a write protection switch on the side or bottom
    • Useful for keeping the contents of your drive safe from malware when viewing on a public computer
    • If your device has this switch, move it to the "Lock" position
    • This sets all files and the device to read-only mode
  • Ref: https://www.computerhope.com/issues/ch001617.htm


Acquiring Data with a Linux Boot CD

  • Forensic Linux Live CDs mount all drives read-only
    • Which eliminates the need for a write-blocker
  • Contain additional utilities

Forensic Linux Live CDs

  • Configured not to mount, or to mount as read-only, any connected storage media
  • Well-designed options:
    • Helix
    • Penguin Sleuth
    • FCCU (French interface)
  • Modern Linux distributions can use Microsoft FAT and NTFS partitions

Preparing a Target Drive in Linux

  • fdisk — lists, creates, deletes, and verifies partitions in Linux
  • mkfs.msdos — formats a FAT file system from Linux

Acquiring Data with dd in Linux

dd create raw format, not proprietary

  • dd ("data dump") command
    • Can read and write from media device and data file
    • Creates a raw format file that most computer forensics analysis tools can read
  • Shortcomings
    • Requires more advanced skills than average user
    • Does not compress data
  • dd combined with the split command → segments output into separate volumes
  • dd is intended as a data management tool, not designed for forensics acquisitions specifically

Acquiring Data with dcfldd in Linux

  • dcfldd (enhanced version of dd for forensics and security)
  • Can verify that a target drive is a bit-for-bit match of the specified input file or pattern
  • Additional functions:
    • Specify hex patterns or text for clearing disk space
    • Log errors to an output file for analysis and review
    • Use several hashing options
    • Refer to a status display indicating acquisition progress in bytes
    • Split data acquisitions into segmented volumes with numeric extensions
    • Verify acquired data with original disk or media data

Capturing an Image with ProDiscover Basic

Connecting the Suspect's Drive to Your Workstation

  • Document the chain of evidence for the drive
  • Remove the drive from the suspect's computer
  • Configure the suspect drive's jumpers as needed
  • Connect the suspect drive to a write-blocker device
  • Create a storage folder on the target drive

Using ProDiscover's Proprietary Acquisition Format

  • Image file will be split into segments of 650 MB
  • Creates image files with:
    • .eve extension (image file)
    • .log extension (log file)
    • .pds extension (special inventory file)

[Image] — Split Image dialog box (Figure 4-4)

[Image] — Capture Image dialog box (Figure 4-5)

Using ProDiscover's Raw Acquisition Format

  • Select the UNIX-style dd format in the Image Format list box
  • Raw acquisition saves only the image data and hash value

Capturing an Image with AccessData FTK Imager

  • Included on AccessData Forensic Toolkit

  • View evidence disks and disk-to-image files

  • Makes disk-to-image copies of evidence drives

    • At logical partition and physical drive level
    • Can segment the image file
  • Evidence drive must have a hardware write-blocking device

    • Or the USB write-protection Registry feature enabled
  • FTK Imager can't acquire drive's host protected area (but ProDiscover can)

  • https://www.youtube.com/watch?v=TkG4JqUcx_U

  • https://www.exterro.com/ftk-imager

[Image] — FTK Imager main window (Figure 4-6)

Steps

  1. Boot to Windows
  2. Connect evidence disk to a write-blocker
  3. Connect target disk
  4. Start FTK Imager
  5. Create Disk Image
    • Use Physical Drive option

[Image] — Select Source dialog box (Figure 4-7)

[Image] — Select Image Type dialog box (Figure 4-8)

[Image] — Select Image Destination dialog box (Figure 4-9)

[Image] — Creating Image progress / completion (Figure 4-10)