Comprehensive Study Notes: Digital Forensics for Investigators and Prosecutors
The Three-Pronged Process of Digital Forensics
Digital forensics is defined as a specialized three-part methodology involving acquisition, data analysis, and reporting.
Acquisition: This phase involves taking a digital device—such as a mobile phone, a Digital Video Recorder (DVR), or a computer hard drive—and extracting the information into a format that a digital forensic examiner can analyze. This process ensures the integrity of the data remains intact for investigation.
Data Analysis: An examiner takes the acquired data, scrutinizes it, and makes determinations about what occurred on the device based on their specialized training and experience. This involves looking for specific artifacts that signify user behavior.
Reporting: The final phase involves documenting findings into formal reports. The most common modern forensic reports are generated using specific automated tools, though the examiner's expertise is required to interpret the raw data.
Binary and Hexadecimal Systems in Computing
Computers do not process data as human-readable text (e.g., the letter "a" or number "5"). Instead, they utilize a numbering system called binary, consisting exclusively of zeros and ones.
Bits and Bytes:
A bit is a single switch representing a zero (no electricity) or a one (electricity flowing).
A byte is formed by combining eight bits (e.g., ).
A megabyte is approximately one thousand bytes, and a gigabyte is approximately one thousand megabytes.
Hexadecimal System: Because binary is difficult for humans to read, forensic tools often use hexadecimal (base-16).
Hexadecimal uses digits through and letters through .
, , , , , and .
Two hexadecimal characters make up one byte ( bits).
File Signatures: Every file type has a specific header or "signature" that tells the computer what it is.
Example: A JPEG image always begins with the file signature .
In a forensic context, an examiner can prove a file is a JPEG even if the extension has been changed to something else by reading the hex raw data.
Decoders: Hexadecimal can also represent timestamps. A value like can be put into a decoder to reveal a specific date and time.
Major Forensic Tools and Software
Magnet Axiom: Formerly known as "Internet Evidence Finder" (IEF), it has become the leading producer of forensic software over the last five years. It allows examiners to combine evidence from computers, external media (USB drives), and mobile phones. It facilitates timelines, reconstruction of events, and the recovery of deleted data.
Cellebrite: A primary tool used for mobile device forensics.
GrayKey: A specialized tool for unlocking and extracting data from mobile devices (now owned by Magnet).
Other Tools: Oxygen Forensics, EnCase, FTK (Forensic Toolkit), iLeap (iOS logs), and aLeap (Android logs).
The Windows Registry and User Activity Artifacts
The Windows Registry is a hierarchical database used to store central system and application settings. It acts like a structured notebook that the operating system reads constantly.
Registry Structure:
Hives: Top-tier portions of the database.
Keys: Folders within the hives.
Subkeys: Specific settings inside keys.
Forensic Utility: The registry reveals recently run programs, connected USB devices, opened files, and user preferences even after a file has been deleted.
Key Registry Artifacts:
OpenSaveMRU (Most Recently Used): Tracks files opened or saved via common Windows dialogue boxes. It records the file name, extension, and the order of use. This data persists even if the original file is deleted.
UserAssist: Records every GUI (Graphic User Interface) application executed by the user. It tracks the Run Count (number of times opened) and the Focus Time (how long the app was actively in the foreground). Data is encoded in ROT13 but easily decoded by forensic tools.
Typed URLs: Records any website or search term typed directly into the address bar of Internet Explorer or Microsoft Edge.
Visual Persistence: ThumbCache
ThumbCache is a hidden database used to store preview images (thumbnails) created by Windows for the user's convenience.
Mechanism: When a user browses a folder in "Thumbnail View," Windows generates a small version of the image or video (often the first frame). This is stored as a "sticky note" so the system doesn't have to re-render the image next time, improving "user experience."
Persistence: If a user deletes a CSAM (Child Sexual Abuse Material) file and empties the recycle bin, the thumbnail image still remains within the ThumbCache database file (e.g., ). This proves the file once existed on the system and was browsed by the user.
Execution Artifacts: Windows Prefetch
Prefetch is a system enhancement designed to speed up application launch times. Within the first seconds of a program's initial execution, Windows monitors the required resources and creates a .pf file.
Forensic Value: Prefetch files prove an application was run. They store:
The executable name and path (e.g., ).
The total Run Count.
Timestamps for the last eight executions.
Volume serial numbers of the drive where the file was launched.
Specific files or directories loaded within the first seconds, which might include titles of specific media files being viewed.
Physical Storage and the Challenges of Modern Drives
Unallocated Space: This is the part of a storage device not actively used by the file system. It often contains data from deleted files that haven't been overwritten yet.
Spinning Platters (HDD): Older mechanical drives are excellent for data recovery. Data remains on the disk in unallocated space until new data physically overwrites it. Items can often be recovered years later.
Solid State Drives (SSD) and M.2: These use NAND flash memory and present significant recovery hurdles due to automated maintenance processes:
Trim: The operating system tells the drive that specific cells are no longer needed.
Garbage Collection: The "Busboy Analogy." A background process that clears data out of cells previously marked for deletion to make room for new data. This happens on the drive's own schedule (seconds to days) and makes data unrecoverable once wiped.
Wear Leveling: A controller strategy that spreads data writes evenly across all cells to prevent individual cells from wearing out. This scatters file data across the drive, making traditional "file carving" nearly impossible once the file map is deleted.
Link Files, Jump Lists, and ShellBags
Link Files (.lnk): Automatically created when a user opens a non-executable file (document, image, or video). They are stored in the "Recent Items" folder and serve as shortcuts. They record the creation, modification, and access dates of the shortcut, as well as the file path and volume serial number of the source drive.
Jump Lists: A specialized link file system that allows a user to "jump" to recently or frequently opened files by right-clicking an app in the taskbar. They persist even if the target file is deleted, proving the specific application (e.g., VLC Media Player) was used to view a specific file.
ShellBags: Registry keys that store folder view preferences (e.g., icon size, window position). ShellBags prove a user navigated to a specific folder, even if that folder was on an external drive or has been deleted. Evidence of specific folder names like "Very Little Ones" demonstrates deliberate collection activity.
Browser Forensics and SQLite
Modern browsers (Chrome, Edge, Brave, Opera) are built on the Chromium engine and store data in SQLite databases.
Database Structure: Data is organized into tables (categories), rows (individual events), and columns (details like URL, Title, and Timestamps).
Artifacts Captured:
Browsing History: Lists URLs and page titles.
Keyword Search Terms: Tracks exact text typed into search engines. These often survive even if the user clears their browsing history.
Downloads: Records the source URL, destination path on the disk, file size, and completion status.
Incognito/Private Mode: While it clears history upon closing the browser, data remains in the RAM (Random Access Memory) while the session is active. It is critical to capture RAM at the scene to recover private browsing data.
Mobile Device Forensics: iOS and Android
Sandboxing (iOS): Apple isolates every application in its own "virtual playpen" or sandbox to prevent it from interacting with the system. Each app has a unique Application ID (a long string of numbers and letters). Examiners can use this ID to find all related artifacts (photos, logs, chats) associated with a specific app like Mega.
Extraction Methods:
Logical: Simplest method; gets what the user sees (texts, calls).
Advanced File System: The current standard; extracts deep application data and some deleted items.
Physical: A bit-for-bit copy. Increasingly rare because modern phone encryption makes the raw physical data unreadable.
App Focus Logs: Primarily an Android feature (though possible on iOS via iLeap), these logs show exactly what app was on the screen and "in focus" for the user, and for how long. This proves a user was actively looking at a specific application.
Notification History: Stores previews of messages (Kik, WhatsApp, etc.) that appeared on the screen as notifications. This can recover snippets of conversations even if the main chat history was deleted.
Emulated Storage: Android devices often create a virtual "SD Card" or emulated storage area internally. An examiner might see "SD Card" in a report even if no physical card is present in the phone.
Questions & Discussion
Question: Can you charge for Child Sexual Abuse Material (CSAM) found only in the ThumbCache if the original file is missing?
Response: It is difficult but possible. Defense attorneys often argue the user encountered the file accidentally and deleted it immediately. However, combining ThumbCache with other artifacts—like ShellBags showing a specific folder navigation or Browser History showing a deliberate search—can prove intent and knowledge.
Question: How do we defeat the "it's not my device/friend used it" defense?
Response: Use timelines. If a file was downloaded at , and the device also shows a login to the suspect's personal bank account or a text to a spouse at , it is highly likely the suspect was the one using the device.
Question: Can link files be used for a cyber-tip involving an image that was later deleted?
Response: Yes. If a NCMEC (National Center for Missing & Exploited Children) tip provides a specific filename, and that filename is found in a Link File or Jump List, it proves the file was present and opened on the system, even if the image itself is gone.
Question: What if a suspect claims data was automatically uploaded/downloaded to a cloud account they didn't access?
Response: Link files, ShellBags, and Jump Lists specifically track user interaction (double-clicking, navigating). Automatic background syncing does not typically generate these specific user-driven artifacts, allowing examiners to distinguish between automated processes and deliberate actions.