Lecture 3 - Computer Forensics
Introduction
- Topics to be covered:
- Defining Computer Forensics
- Reasons for gathering evidence
- Who uses Computer Forensics
- Steps of Computer Forensics
- Handling Evidence
- Investigation initiation / response
- Handling Information
- Requirements
- Anti-Forensics
- Evidence processing guidelines
- Methods of hiding Information/data
- Methods of discovering information/data
History of Digital Forensics
- Hans Gross (1847–1915): First use of scientific study to head criminal investigations
- FBI (1932): Set up a lab to offer forensics services to all field agents and other law authorities across the USA
- 1978: First computer crime recognized in the Florida Computer Crime Act
- Francis Galton (1822–1911): Conducted first recorded study of fingerprints
- 1992: The term "Computer Forensics" was used in academic literature
- 1995: International Organization on Computer Evidence (IOCE) was formed
- 2000: First FBI Regional Computer Forensic Laboratory established
- 2002: Scientific Working Group on Digital Evidence (SWGDE) published the first book about digital forensics, "Best Practices for Computer Forensics"
- 2010: Simson Garfinkel identified issues facing digital investigations
Analogy Think of this like the evolution of medical forensics (CSI-style) — it started with basic scientific observation (Hans Gross), grew into institutional labs (FBI), then became standardized with formal terminology, organizations, and published "best practice" manuals, just like how medicine moved from folk remedies to standardized clinical guidelines.
History of Digital Forensics — Timeline (Detailed)

- 1970s – Emergence of Digital Data: Earliest forms of digital forensics traced to the 1970s when digital data became more prevalent. Computers were primarily mainframes and minicomputers.
- 1980s – Growth of Personal Computers: Rise of PCs increased the need for methods to investigate computer-related crimes. Early efforts focused on analyzing computer systems to recover evidence.
- 1990s – Establishment of Techniques: Foundational techniques and tools established. Law enforcement and cybersecurity experts began developing protocols and methodologies.
- Late 1990s – Internet and Cybercrimes: As the internet became widespread, cybercrimes emerged as a major concern (hacking, identity theft, online fraud).
- Early 2000s – Formalization and Standardization: Greater formalization occurred. Organizations like IACIS(International Association of Computer Investigative Specialists) and NIST (National Institute of Standards and Technology) began providing guidelines and best practices.
- Mid 2000s – Mobile Devices and Digital Media: Increase of mobile devices and digital media storage expanded forensics scope — cell phones, USB drives, memory cards.
- Late 2000s – Cloud Computing and Virtualization: New challenges from decentralized data storage and virtual environments.
- 2010s – Big Data and Advanced Techniques: Explosion of big data, machine learning, and AI influenced digital forensics, allowing more efficient analysis of large data volumes.
- Present and Beyond – Evolving Landscape: Continues evolving with encryption, IoT, blockchain, and other emerging technologies — presenting both opportunities and challenges.
Definition
What is Computer Forensics?
- Involves the preservation, identification, extraction, documentation, and interpretation of computer media for evidentiary and/or root cause analysis
- Evidence might be required for a wide range of computer crimes and misuses
- Multiple methods of:
- Discovering data on a computer system
- Recovering deleted, encrypted, or damaged file information
- Encryption Strength
- Key Size
- Algorithm
- Monitoring live activity
- Detecting violations of corporate policy
- Information collected assists in:
- Arrests
- Prosecution
- Termination of employment
- Preventing future illegal activity
Analogy
Computer forensics is like being a detective who specializes in "reading the scene" left behind on a hard drive — instead of fingerprints and footprints, you're looking at file timestamps, deleted data remnants, and encrypted "locked boxes" that need to be picked open (decrypted) using known keys or algorithms.
Definition (cont.) — What Constitutes Digital Evidence?
- Any information (whether subject to human intervention or not) that can be extracted from a computer
- Must be in human-readable format, or capable of being interpreted by a person with expertise in the subject
Computer Forensics Examples
- Recovering thousands of deleted emails
- Performing investigation post employment termination
- Recovering evidence post formatting hard drive
- Performing investigation after multiple users had taken over the system

Objectives of Digital Forensics
- Recover, analyze, and preserve computer and related materials in a manner that helps the investigation agency present them as evidence in a court of law
- Postulate the motive behind the crime and identity of the main culprit
- Design procedures at a suspected crime scene to ensure digital evidence obtained is not corrupted
- Data acquisition and duplication: Recovering deleted files and deleted partitions from digital media to extract and validate evidence
- Identify evidence quickly, and estimate the potential impact of malicious activity on the victim
- Produce a computer forensic report offering a complete account of the investigation process
- Preserve the evidence by following the chain of custody

- Branches of Digital Forensics:
- Network Forensics
- Computer Forensics
- Mobile Forensics
- Database Forensics
- Live Forensics
What’s the most important
A. Data acquisition
B. Data interpretation
C.Data maintenance
Reasons for Evidence
Non-Business Environment
- Evidence collected by Federal, State, and local authorities for crimes relating to:
- Theft of trade secrets
- Fraud
- Extortion
- Industrial espionage
- Possession of pornography
- SPAM investigations
- Virus/Trojan distribution
- Homicide investigations
- Intellectual property breaches
- Unauthorized use of personal information
- Forgery
- Perjury
Business Environment
- Computer related crime and violations include a range of activities including:
- Theft of or destruction of intellectual property
- Unauthorized activity
- Tracking internet browsing habits
- Reconstructing events
- Inferring intentions
- Selling company bandwidth
- Wrongful dismissal claims
- Sexual harassment
- Software piracy
Who Uses Computer Forensics?
- Criminal Prosecutors
- Rely on evidence obtained from a computer to prosecute suspects and use as evidence
- Civil Litigations
- Personal and business data discovered on a computer can be used in fraud, divorce, harassment, or discrimination cases
- Insurance Companies
- Evidence discovered on a computer can be used to mollify costs (fraud, worker's compensation, arson, etc.)
- Private Corporations
- Obtained evidence from employee computers can be used in harassment, fraud, and embezzlement cases
- Law Enforcement Officials
- Rely on computer forensics to back up search warrants and post-seizure handling
- Individual/Private Citizens
- Obtain the services of professional computer forensic specialists to support claims of harassment, abuse, or wrongful termination from employment
(Image: eye with binary code overlay / redacted document background — leave as image)
FBI Computer Forensic Services
- Content
- Comparison against known data
- Transaction sequencing
- Extraction of data
- Recovering deleted data files
- Format conversion
- Keyword searching
- Decrypting passwords
- Analyzing and comparing limited source code
Computational Forensics

- Process overview shown in the diagram:
- Face enhancement and skull modeling → 2D image processing & landmark location / 3D model reconstruction & landmark location
- Skull-Face overlay → 3D model translation, rotating, scaling, and 2D projection
- Decision making → Identification with confidence levels (Positive / Negative / Likely Positive / Likely Negative / Undetermined)
Advantages of DF (Digital Forensics)
- To ensure the integrity of the computer system
- To produce evidence in court, which can lead to the punishment of the culprit
- Helps companies capture important information if their computer systems or networks are compromised
- Efficiently tracks down cybercriminals from anywhere in the world
- Helps protect the organization's money and valuable time
- Allows extraction, processing, and interpretation of factual evidence, so it proves the cybercriminal's actions in court
Disadvantages of DF
- Digital evidence accepted into court must be proved that there is no tampering
- Producing electronic records and storing them is an extremely costly affair
- Legal practitioners must have extensive computer knowledge
- Need to produce authentic and convincing evidence
- If the tool used for digital forensics is not according to specified standards, the evidence can be disapproved by justice in court
- Lack of technical knowledge by the investigating officer might not offer the desired result
Analogy It's like a chain of custody in a hospital blood test — if the sample isn't properly sealed, labeled, and tracked, a defense lawyer can argue it was tampered with, regardless of how accurate the actual test result is.
Digital Investigation Function

- The Investigations Triad consists of three pillars:
- Vulnerability/Threat Assessment and Risk Management
- Network Intrusion Detection and Incident Response
- Digital Investigations (base of the triangle)
Detailed Digital Forensics Process

- Identification
- Identification of parties
- Definition of goals
- Suspect–victim
- Witnesses
- Preparation
- List of digital carriers
- Paperwork
- Logging of events
- Chain of custody
- Approach Strategy
- Define methods to be used
- Specify tools needed
- Describe collection
- Thorough documentation
- Preservation
- Restrict access
- Define order of volatility
- Plan data processing
- Read-access
- Collection
- Data aggregation
- Formats unification
- Information fusion
- Handle Big Data
- Examination
- Data transformation
- Normalization
- Improving quality
- Feature selection
- Analysis
- Events mining
- Structures discovery
- Heuristic search
- Association, linkage
- Data Presentation
- Explainable reasoning
- Visualization
- Result implementation
- Forensically sound conclusions
Steps of Computer Forensics
- According to many professionals, Computer Forensics is a four (4) step process:
- Acquisition
- Physically or remotely obtaining possession of the computer, all network mappings from the system, and external physical storage devices
- Identification
- Identifying what data could be recovered and electronically retrieving it by running various Computer Forensic tools and software suites
- Evaluation
- Evaluating the information/data recovered to determine if and how it could be used against the suspect for employment termination or prosecution in court
- Presentation
- Presenting evidence discovered in a manner understood by lawyers, non-technical staff/management, and suitable as evidence as determined by U.S. and internal laws
Handling Evidence
Related
Admissibility of Evidence
Related
- Legal rules which determine whether potential evidence can be considered by a court
- Must be obtained in a manner which ensures authenticity and validity (usable) and that no tampering had taken place
- No possible evidence is damaged, destroyed, or otherwise compromised by the procedures used to search the computer
- Preventing viruses from being introduced to a computer during the analysis process
- Extracted/relevant evidence is properly handled and protected from later mechanical or electromagnetic damage
Handling Evidence (cont.)
- Establishing and maintaining a continuing chain of custody
- Limiting the amount of time business operations are affected
- Not divulging (เปิดเผย - disclose) and respecting any ethically [and legally] client-attorney information that is inadvertently acquired during a forensic exploration
Definition — Chain of Custody
A process that tracks the movement of evidence through its collection, safeguarding, and analysis lifecycle by documenting each person who handled the evidence, the date/time it was collected or transferred, and the purpose for the transfer.
- เส้นทางที่ evidence ที่ข้อมูล มันไหลไปทุกจุด ใครบ้าง ๆ ก็ ต้องบันทึกไว้หมด ต้อง documented/collected
Analogy
Chain of custody is like a relay race baton — every single hand that touches it must be logged. If the baton disappears for even one unaccounted moment between runners, the whole race result can be disqualified.
Initiating an Investigation
- DO NOT begin by exploring files on the system randomly
- Establish an evidence custodian — start a detailed journal with the date, time, and information discovered
- If possible, designate suspected equipment as "off-limits" to normal activity — this includes back-ups, remotely or locally scheduled house-keeping, and configuration changes
- Collect email, DNS, and other network service logs
Initiating an Investigation (cont.)
- Capture exhaustive external TCP and UDP port scans of the host
- Could present a problem if TCP is wrapped
- TCP wrapper = public domain computer system that provides firewall services for UNIX servers
- Monitors incoming packets → grants/denies access permission
- Contact security personnel [CERT], management, Federal and local enforcement, as well as affected sites or persons
(Image: person touching digital fingerprint scan icon — leave as image)
TCP Wrapper
Techiqnue used by software (e.g. xinetd, Demon) used to install in Unix, in order to allow service to be used or not in internal system
- TCP Wrappers add an additional layer of protection by defining which hosts are or are not allowed to connect to "wrapped" network services
- Wrapped network service is the xinetd super server
- Called a "super server" because it controls connections to a subset of network services and further refines access control
Definition
xinetd xinetd (Extended Internet Service Daemon) is an open-source super-server daemon which runs on many Unix-like systems and manages Internet-based connectivity.
(Image: TCP Wrapper flow diagram — Incoming Request → Firewall → TCP Wrappers → xinetd → TCP Wrapped Network Service / xinetd Controlled Network Service — leave as image)

Analogy
Think of TCP Wrappers like a building's front desk security guard (firewall) plus a secondary badge-checker (TCP Wrapper) before you even reach the elevator (xinetd) that routes you to the correct floor/service.
Incidence Response
- Identify, designate, or become the evidence custodian
- Review any existing journal of what has been done to the system already and/or how the intrusion was detected
- Begin new or maintain existing journal
- Install monitoring tools (sniffers, port detectors, etc.)
- Without rebooting or affecting running processes, perform a copy of the physical disk
- Capture network information
- Capture processes and files in use (e.g., DLL, EXE)
- Capture configuration information
- Receipt and signing of data
Handling Information
- Information and data being sought after and collected in the investigation must be properly handled
Volatile Information
- Network Information
- Communication between the system and the network
- Active Processes
- Programs and daemons currently active on the system
- Logged-on Users
- Users/employees currently using the system
- Open Files
- Libraries in use; hidden files; Trojans (rootkits) loaded in the system
Analogy
Volatile information is like the steam rising off a freshly cooked meal — it disappears the moment the "stove" (power) turns off, so you must capture it immediately, before it evaporates.
Handling Information (cont.) — Non-Volatile Information
- Includes information, configuration settings, system files, and registry settings that are available after reboot
- Accessed through drive mappings from the system
- This information should be investigated and reviewed from a backup copy

Grand Father – Father – Son (GFS) Backup
Related
we need to seprate copy from different period of time, freshness of the data must be retained
- Different generations of backup copies
- Different location
- Different frequency (Yearly, Monthly, Daily)

Analogy
GFS backup is like keeping photo albums at three levels: a daily "snapshot" album (Son), a weekly "family" album (Father), and a yearly "archive" album (Grandfather) — so even if you lose recent photos, older generations of backups are still safely preserved.
Computer Forensic Requirements
Hardware
- Familiarity with all internal and external devices/components of a computer
- Thorough understanding of hard drives and settings
- Understanding motherboards and the various chipsets used
- Power connections
- Memory
BIOS
- Understanding how the BIOS works
- Familiarity with the various settings and limitations of the BIOS
Computer Forensic Requirements (cont.)
Operating Systems
- Windows
- DOS
- UNIX
- LINUX
- VM
- iOS/Android
Software
- Familiarity with most popular software packages such as Office
Forensic Tools
- Familiarity with computer forensic techniques and the software packages that could be used
Anti-Forensics
Try to prevent the foresnice process difficult
- Software that limits and/or corrupts evidence that could be collected by an investigator
- Performs data hiding and distortion
- Exploits limitations of known and used forensic tools
- Works both on Windows and LINUX based systems
- Can be put in place prior to or post system acquisition
Anti-Forensics Techniques
- Encryption
- Steganography
- A technique where information or files are hidden within another file in an attempt to hide data by leaving it in plain sight
- Disk cleaning utilities
- Use a variety of methods to overwrite existing data on disks
- Widely used tools: DBAN, srm, BCWipe Total WipeOut, KillDisk, PC Inspector, CyberScrub's cyberCide
- CMRR Secure Erase — approved by NIST and NSA, uses the Secure Erase command
- File wiping utilities
- Delete individual files from an operating system
- Pro: Relatively short amount of time
- Con: Requires user involvement and doesn't always correctly/completely wipe file information
- Disk degaussing / destruction techniques
- A magnetic field is applied to a digital media device, resulting in a device entirely clean of any previously stored data
Analogy
Steganography is like hiding a secret note inside the pages of an ordinary book on a public shelf — it's not locked away (encrypted), it's just cleverly disguised so no one thinks to look there at all.
HDD Destruction
- NSA requires that hard drives must first be purged or degaussed before the media is released for physical destruction
NIST Recommendations for Physical Destruction
- Disintegration — e.g., Shred (disintegrate) to 2 mm size on edge
- Incineration (the high-temperature burning) — e.g., Incinerate at temps greater than 670° C (1,238° F)
- Pulverizing
- Melting — e.g., dipping them in acid to destroy their platters and housing

Anti-Forensics Tools
- Steganography Studio — http://stegstudio.sourceforge.net
- CryptaPix — http://www.briggsoft.com
- GiliSoft File Lock Pro — http://gilisoft.com
- wbStego — http://wbstego.wbailer.com
- Data Stash — http://www.skyjuicesoftware.com
- OmniHide PRO
- Masker
- Deep Sound
Evidence Processing Guidelines
- New Technologies Inc. recommends following 16 steps in processing evidence
- They offer training on properly handling each step
- Shut down the computer
- Considerations must be given to volatile information
- Prevents remote access to the machine and destruction of evidence (manual or anti-forensic software)
- Document the Hardware Configuration of the System
- Note everything about the computer configuration prior to re-locating
Evidence Processing Guidelines (cont.)
- Transport the Computer System to a Secure Location
- Do not leave the computer unattended unless it is locked in a secure location
- Make Bit Stream Backups of Hard Disks and Removable Drives/Disks
- Exactly replicate all sectors on a given storage device
- Mathematically Authenticate Data on All Storage Devices
- Must be able to prove that you did not alter any of the evidence after the computer came into your possession
- Document the System Date and Time
- Make a List of Key Search Words
- Evaluate the Windows Swap File
- Evaluate File Slack
- File slack is a data storage area of which most computer users are unaware — a source of significant security leakage
- The unused space within a file's allocated storage on a disk
- Evaluate Unallocated Space (Erased Files)
- Search Files, File Slack, and Unallocated Space for Key Words
- Document File Names, Dates, and Times
- Identify File, Program, and Storage Anomalies
- Evaluate Program Functionality
- Document Your Findings
- Retain Copies of Software Used
(Image: single cluster / file slack diagram — Single Cluster (8 Sectors, 4096 Bytes): File Data 2248 bytes, RAM Slack 312 Bytes, Cluster Slack 1536 Bytes — leave as image)
Analogy File slack is like a shipping box that only needs to hold a small item, but the box itself is a fixed larger size — the empty leftover space in the box (which might still contain bits of packing material from a
previous shipment) is the "slack," and forensic investigators check that leftover space for traces of old, deleted data.
Taking a Systematic Approach for Problem Solving
- Make an initial assessment about the type of case you're investigating
- Determine a preliminary design or approach to the case
- Create a detailed checklist
- Determine the resources you need
- Obtain and copy an evidence drive
- Identify the risks
- Mitigate or minimize the risks
- Test the design
- Analyze and recover the digital evidence
- Investigate the data you recover
- Complete the case report
- Critique the case
(Image: risk gauge meter — LOW / MEDIUM / HIGH — leave as image)
Assessing the Cases
- Systematically outline the case details — Situation
- Nature of the case
- Specifics of the case
- Type of evidence
- Operating system
- Known disk format
- Location of evidence
- Based on case details, you can determine the case requirements
- Type of evidence
- Computer forensics tools
- Special operating systems
- Possible incident response plan
Planning Your Investigation
- Acquire the USB drive from the IT Department, which bagged and tagged the evidence
- Complete an evidence form and establish a chain of custody
- Transport the evidence to your digital forensics lab
- Place the evidence in an approved secure container
- Prepare your forensic workstation
- Retrieve the evidence from the secure container
- Make a forensic copy of the evidence drive (in this case, the USB drive)
- Return the evidence drive to the secure container
- Process the copied evidence drive with your digital forensics tools
Planning Your Investigation (cont.)
- An evidence custody form helps you document what has been done with the original evidence and its forensics copies
- Two types:
- Single-evidence form — Lists each piece of evidence on a separate page
- Multi-evidence form


Securing Your Evidence
- Use large evidence bags, tape, tags, labels, and other products available from police supply vendors or office supply stores
- Use computer-safe products — Antistatic bag (a bag used for storing electronic components, which are prone to damage caused by electrostatic discharge / ESD)
- Antistatic pads
- Use well-padded containers
- Placing evidence tape over drive bays, insertion slots for power supply cords and USB cables, and any other openings ensures the security of evidence
- As a standard practice, you should write your initials on the tape before applying it to the evidence
Employee Termination Cases
- Majority of investigative work for termination cases involves employee abuse of corporate assets
- Internet abuse investigations
- To conduct an investigation you need:
- Organization's Internet proxy server logs
- Suspect computer's IP address
- Suspect computer's disk drive
- Your preferred computer forensics analysis tool
Internet Abuse Investigations
- Use standard forensic analysis techniques and procedures
- Use appropriate tools to extract all Web page URL information
- Contact the network firewall administrator and request a proxy server log
- Compare the data recovered from forensic analysis to the proxy server log
- Continue analyzing the computer's disk drive data
E-mail Abuse Investigations
- To conduct an investigation you need:
- An electronic copy of the offending e-mail that contains message header data
- If available, e-mail server log records
- For e-mail systems that store users' messages on a central server, access to the server
- Access to the computer so that you can perform a forensic analysis on it
- Your preferred computer forensics analysis tool
Steps
- Use the standard forensic analysis techniques
- Obtain an electronic copy of the suspect's and victim's e-mail folder or data
- For Web-based e-mail investigations, use tools such as FTK's Internet Keyword Search option to extract all related e-mail address information (exterro.com/forensic-toolkit)
- Examine header data of all messages of interest to the investigation
Conducting an Investigation
- Start by gathering the resources you identified in your investigation plan. You need the following items:
- Original storage media
- Evidence custody form
- Evidence container for the storage media, such as an evidence bag
- Bit-stream imaging tool; in this case, FTK Imager Lite
- Forensic workstation to copy and examine the evidence
- Secure evidence locker, cabinet, or safe
Gathering the Evidence
- Avoid damaging the evidence
- Steps:
- Meet the IT manager to interview him
- Fill out the evidence form, have the IT manager sign it
- Place the evidence in a secure container
- Complete the evidence custody form
- Carry the evidence to the computer forensics lab
- Create forensics copies (if possible)
- Secure evidence by locking the container
Understanding Bit-Stream Copies
Definition — Bit-Stream Copy Is a
bit-by-bit copy (also known as a "forensic copy") of the original drive or storage medium and is an exact duplicate.
- A bit-stream copy is different from a simple backup copy of a disk:
- Backup software only copies known files
- Backup software cannot copy deleted files, e-mail messages, or recover file fragments
Definition — Bit-Stream Image A file containing the bit-stream
copy of all data on a disk or partition.
Analogy A regular backup is like photocopying only the pages currently in a notebook. A bit-stream copy is like scanning every single page — including torn-out remnants stuck in the binding (deleted files) and faint pencil marks left behind (file fragments).
Copying Image File
- Copy image file to a target disk that matches the original disk's manufacturer, size, and model
(Image: Figure 1-11 — diagram showing transfer of data from Original disk → Image disk (disk.img) → Target disk — leave as image)
The first rule of digital forensics is to
preserve the original evidence.
Analyzing Digital Evidence
- Your job is to recover data from:
- Deleted files
- File fragments
- Complete files
- Deleted files linger on the disk until new data is saved on the same physical location
- Tool: ProDiscover Basic
Analyzing Digital Evidence (cont.) — Steps
- Start ProDiscover Basic
- Create a new case
- Type the project number
- Add an Image File
- Steps to display the contents of the acquired data:
- Click to expand Content View
- Click All Files under the image filename path
(Image: Figure 2-10 — ProDiscover Basic screenshot showing the loaded InChp02.eve file — leave as image)
Analyzing Digital Evidence (cont.)
- Analyze the data
- Search for information related to the complaint
- Data analysis can be the most time-consuming task
(Image: Figure 2-11 — Selecting a file in the work area and viewing its contents in the data area — leave as image)
ProDiscover Basic Can...
- Search for keywords of interest in the case
- Display the results in a search results window
- Click each file in the search results window and examine its content in the data area
- Export the data to a folder of your choice
- Search for specific filenames
- Generate a report of your activities
(Image: Figure 2-13 — The search results pane screenshot — leave as image)
(Image: Figure 2-15 — A ProDiscover report screenshot — leave as image)
Completing the Case
- You need to produce a final report
- State what you did and what you found
- Include ProDiscover report to document your work
- Repeatable findings
- Repeat the steps and produce the same result
- If required, use a report template
- Report should show conclusive evidence
- Suspect did or did not commit a crime or violate a company policy
Critiquing the Case
- Ask yourself the following questions:
- How could you improve your performance in the case?
- Did you expect the results you found? Did the case develop in ways you did not expect?
- Was the documentation as thorough as it could have been?
- What feedback has been received from the requesting source?
- Did you discover any new problems? If so, what are they?
- Did you use new techniques during the case or during research?
Analogy Critiquing the case is like a post-game review in sports — win or lose, the team watches the tape afterward to see what worked, what didn't, and what to adjust for next time.