EC-Council · Free Practice Questions · Last reviewed May 2026
57real exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
8% of exam · 1 sample questions below
An analyst executed the commands shown in the exhibit on a Windows system to prepare a forensic image for analysis. What is the most likely reason for the error message from e2fsck?
The analyst failed to properly dismount the source volume before imaging, leading to filesystem inconsistencies.
The sequence shows `fsutil dismount` being run on C:, but a forensic image taken afterward—especially after Windows remounts the volume or during a live acquisition—will capture the volume in an inconsistent state. When Windows later performs recovery on the dirty volume, metadata updates begin immediately, so e2fsck in the analyst's analysis environment will legitimately report superblock, group descriptor, or inode inconsistencies that were never present in the source. This is the classic 'dirty volume' imaging error, not a problem with the image tool.
The forensic image was not acquired with a write-blocker, causing data corruption.
The image file contains an NTFS filesystem, but e2fsck is designed for ext filesystems.
The e2fsck command syntax is incorrect; it should be 'e2fsck -f -n' instead.
Want more Computer Forensics Investigation Process practice?
Practice this domain8% of exam · 6 sample questions below
What is the primary goal of the chain of custody in a digital forensic investigation?
To maintain the integrity and admissibility of evidence
This is the main purpose: to show that evidence has not been tampered with.
To encrypt the evidence during transport
To speed up the forensic analysis process
To ensure that the forensic tools used are properly licensed
An organization receives a legal hold notice regarding pending litigation. The IT department is instructed to preserve all relevant electronically stored information. What is the primary action the IT department should take?
Place a hold on relevant data and suspend routine deletion policies
A legal hold triggers a duty to preserve all potentially relevant data in their native form, so you must place a litigation hold on the specific systems, files, email mailboxes, and backups that could contain responsive information. This includes actively suspending any automated deletion, archival, or retention policies that would destroy or alter that data, ensuring it remains intact and available for later discovery without necessarily needing forensic duplication.
Ignore the notice and continue normal operations
Create a forensic image of all servers immediately
Permanently delete all emails older than 30 days to reduce storage
Which TWO of the following are valid justifications for a first responder to power off a computer at a crime scene? (Select TWO)
To prevent the computer from overheating
To save time during the investigation
The computer is destroying evidence (e.g., running a data wiping program)
Powering off can stop the destruction, but ideally capture volatile data first if possible.
The computer is in a hazardous environment (e.g., flooding)
Safety risks may necessitate powering off to prevent electrical hazards.
The computer is actively being used to commit a crime
Which type of evidence is a witness's statement that they saw someone log into a computer?
Hearsay evidence
Best evidence
Circumstantial evidence
Direct evidence
Correct. The witness directly observed the act.
During a forensic investigation, an analyst uses a hardware write blocker to connect a suspect hard drive to a forensic workstation. Which of the following is the PRIMARY reason for using a write blocker?
To allow the suspect drive to be mounted as read-write for analysis
To decrypt the drive automatically without the key
To prevent any modification to the suspect drive during acquisition
The primary purpose is to ensure the drive is not altered during forensic acquisition.
To speed up the imaging process by caching writes
Which of the following BEST defines the chain of custody in digital forensics?
The legal authority required to seize evidence
The order in which forensic tools are applied to evidence
The physical security measures used to store evidence
The chronological documentation of evidence handling, transfer, and analysis
This accurately describes the chain of custody.
Want more Computer Forensics Fundamentals and Process practice?
Practice this domain8% of exam · 6 sample questions below
Which tool is specifically designed for file carving and can recover files based on headers and footers without relying on file system metadata?
FTK Imager
Foremost
Foremost is a dedicated command-line file carver that recovers files by scanning raw disk images and matching known binary signatures for file headers, footers, and internal data structures. It was originally developed from the Air Force Office of Special Investigations' carving tool and is configured via a customizable configuration file (foremost.conf), allowing investigators to add custom signatures. Its sole purpose is to extract data based on file structure, making it the classic, focused file-carving utility rather than a general forensic suite.
Autopsy
Volatility
An analyst notices that a file on an NTFS volume occupies 4096 bytes on disk but its actual data is only 100 bytes. The extra space contains remnants of a previously deleted file. What is this extra space called?
Volume slack
Free space
RAM slack
File slack
File slack is the unused area within the last allocated cluster of a file, spanning from the bytes beyond the logical end of the file to the physical end of that cluster, and it is composed of both RAM slack and the remaining sector space. On NTFS, these bytes are not zeroed when a file is written, so they may contain residual data from previously deleted files or older versions of the current file, making them a valuable forensic source. This exactly matches the analyst's observation of a file occupying 40 clusters where some space is unused, because that space remains attributed to the file's allocated cluster rather than to free or volume slack.
An analyst recovers a disk image from a Linux server that used ext4. The image shows a superblock backup at multiple offsets. Which dd command would correctly extract the backup superblock located at offset 32768 bytes?
dd if=image.dd of=superblock.bin bs=4096 skip=8 count=1
dd if=image.dd of=superblock.bin bs=512 skip=64 count=2
Using bs=512 with skip=64 also lands at 64 * 512 = 32,768 bytes, the same superblock offset, but count=2 reads two 512-byte sectors for a total of 1,024 bytes. This approach is explicitly correct because it compensates for the smaller block size by incrementing the count, thereby extracting exactly the superblock without including adjacent sectors. It demonstrates that dd can achieve the same forensic extraction using any divisor of the superblock size, as long as the offset and byte count equal 32,768 and 1,024 respectively.
dd if=image.dd of=superblock.bin bs=1024 skip=32 count=1
With bs=1024 and skip=32, dd seeks 32 * 1024 = 32,768 bytes into the image, exactly the offset of the primary superblock (block 0 of the filesystem is at byte 1024, but the superblock starts at 32,768 bytes after the partition offset in this scenario). Reading count=1 transfers exactly 1,024 bytes, which matches the canonical 1,024-byte size of an ext2/3/4 superblock, producing a pristine superblock.bin with no extraneous data. This is the standard dd method for isolating a superblock because block size, skip count, and read count align perfectly with the target structure.
dd if=image.dd of=superblock.bin bs=32768 skip=1 count=1
What is the primary purpose of the Host Protected Area (HPA) on a hard disk drive?
To provide a write-cache for improved performance
To store diagnostic data or allow vendors to hide data from the OS
The HPA is defined by the ATA/ATAPI specification as a reserved region beyond the normal maximum address reported to the host, created and modified with the SET MAX ADDRESS and DEVICE CONFIGURATION OVERLAY commands. Because operating systems enumerate only the accessible LBA range, the HPA is invisible to the OS, allowing vendors to store diagnostic firmware, crash dumps, or recovery utilities without consuming ordinary user-visible space. In forensic practice, the HPA must be checked and disabled to see the true full capacity of the drive and recover hidden data.
To store the partition table when using GPT
To store the operating system boot loader
An investigator notes that a file on an NTFS volume has a resident data size of 900 bytes, but the $DATA attribute lists an allocated size of 1024 bytes. What does this indicate?
The file is compressed using NTFS compression
The file has slack space that may contain remnants of previously deleted data
File slack occurs because NTFS allocates disk space in fixed-size clusters, while a file's logical size is measured in bytes. If the final cluster is only partially used, the remaining bytes from the end of the file to the end of that cluster are not initialized by the filesystem, so they may still contain data from a previously deleted file or from an earlier, larger version of the current file. This residual data is a common forensic target because it survives normal file deletion and can be carved during analysis. The observed discrepancy between allocated size and logical size directly indicates that such slack space exists.
The file's data is stored in the MFT as a resident attribute
The file is stored in an alternate data stream
Which TWO of the following are valid techniques for acquiring RAM in a Windows system?
WinPmem
WinPmem is a memory acquisition tool for Windows.
Sleuth Kit
LiME
dd
FTK Imager
FTK Imager can acquire physical memory on Windows.
Want more Storage Forensics and File System Analysis practice?
Practice this domain8% of exam · 6 sample questions below
An analyst receives an alert indicating a suspicious process (PID 3342) is making outbound connections on port 443 to an unknown IP. The system is a Windows 10 workstation. Which first responder action is MOST appropriate?
Capture a full memory dump using a tool like FTK Imager (Memory Capture) or DumpIt.
Capturing a full memory dump with FTK Imager (Memory Capture) or DumpIt preserves the entire contents of RAM, including running processes, loaded drivers, active network sockets, decrypted data, and injected code that exist only in volatile memory at that instant. This adheres to the order of volatility and allows analysis of the live system state without altering or destroying it. Memory imaging is the highest-priority step because many advanced threats operate solely in memory and leave minimal traces on disk.
Immediately disconnect the system from the network to contain the threat.
Check the Windows Event Logs for related entries.
Reboot the system to clear any malicious processes from memory.
During an incident response, a first responder needs to collect evidence from a Linux server that is still running. The server has sensitive data and cannot be shut down. Which technique is BEST for acquiring a forensic image of the hard disk?
Use dd if=/dev/sda of=/mnt/evidence/image.dd conv=noerror,sync
Use dd if=/dev/sda of=/mnt/evidence/image.dd bs=4M
Imaging the entire block device /dev/sda with bs=4M captures the complete physical disk, including the master boot record, partition tables, each partition, and unallocated space. The bs=4M argument is only a performance optimization that increases the read/write buffer size; it does not change the output data, so the result is still a bit-for-bit forensically sound copy. This is the correct first-responder action because it preserves all potential evidence on the drive.
Use dd if=/dev/mapper/root of=/mnt/evidence/image.dd
Use dd if=/dev/sda1 of=/mnt/evidence/image.dd
A first responder arrives at a scene where a computer is powered on and a user is logged in. An incident is suspected. What should the responder do FIRST?
Begin capturing a memory dump using a forensic tool.
Power off the computer immediately to preserve the disk.
Photograph the screen to document the current state.
Documentation of the live state is critical before any collection.
Ask the user to log off so the system can be imaged.
You are responding to a suspected malware infection on a Windows 10 system. The system is still running. Which of the following should you collect FIRST?
Acquire a memory dump using a tool like WinPmem.
RAM is the most volatile component in a Windows system and must be captured before any other action, because it holds currently running processes, active network sockets, loaded kernel modules, injected code, and plaintext encryption keys. Using WinPmem (or similar tools) creates a raw memory image that can be analyzed for malware artifacts that exist only in volatile memory, such as reflective DLLs or rootkits. Any subsequent step in the incident response workflow will alter memory contents, so the order of volatility dictates that memory acquisition comes first.
Collect the Windows Event Logs.
Export the contents of the Windows Registry.
Create a forensic image of the hard drive.
A first responder is called to investigate a potential insider threat. The suspect's computer is turned off. What is the BEST procedure?
Compute a hash of the hard drive using a live CD.
Check the power cord and peripherals for tampering.
Seize the computer and transport it to a forensic lab for imaging.
Seizing the computer and transporting it to a forensic lab preserves the original evidence for a proper bit-for-bit image using a write-blocker, ensuring data integrity and admissibility. A controlled lab environment allows for secure storage and careful analysis before any acquisition, maintaining a documented chain of custody from the scene onward. This is the recognized best practice for first responders.
Turn on the computer to see if it boots normally.
During the initial response to a suspected data exfiltration, which THREE pieces of volatile data should be collected first? (Choose three.)
Current network connections.
Network connections are transient and may disappear.
List of running processes.
Processes can start/stop quickly; must be captured early.
Contents of system memory (RAM).
Memory contains the most volatile data including encryption keys and active malware.
Windows registry hives.
Forensic image of the hard drive.
Want more Incident Response and First Responder Skills practice?
Practice this domain8% of exam · 3 sample questions below
You are imaging a suspect's hard drive using a write blocker and dd command. After imaging, you verify the hash of the original drive and the image file. The original drive hash is SHA1: A1B2C3D4E5..., and the image hash is SHA1: F6G7H8I9J0... What is the most likely cause of the mismatch?
The dd command used a different block size
The write blocker malfunctioned and allowed writes to the original drive
A write blocker is a dedicated hardware or software mechanism that intercepts and blocks all write commands from the host system to the suspect drive during acquisition. If it malfunctions, the operating system or the acquisition tool may write temporary files, filesystem metadata, or other data onto the original evidence drive. Any such unintended write changes the drive's contents, so when the examiner later computes a hash of the original drive, it will no longer match the hash of the forensic image taken earlier. This is the only option that directly explains how the source itself could be altered, making it the correct cause of the hash discrepancy.
The dd command compressed the output
The image file was corrupted during transfer
You are a forensic investigator responding to a suspected data breach at a financial institution. The incident response team has isolated a Windows 10 workstation used by a former employee. The system is still powered on, and the login screen is displayed. Your task is to acquire forensic evidence in a defensible manner. The following actions are available:
A. Immediately pull the power cord to perform a cold acquisition of the hard drive. B. Capture volatile data (RAM, network connections, running processes) using a trusted tool on a USB drive, then shut down normally and remove the hard drive for imaging. C. Boot the system from a forensic live CD and create a forensic image of the hard drive while the system is running. D. Use the built-in Windows backup to create a system image to an external drive.
Which action is the most appropriate first step in this scenario?
Use the built-in Windows backup to create a system image to an external drive
Capture volatile data using a trusted tool on a USB drive, then shut down normally and remove the hard drive for imaging
This is the correct order because volatile data (RAM, running processes, network connections, open files) is lost the instant the system loses power. Using a trusted, write-protected USB tool to capture this data first ensures the most transient evidence is preserved. A graceful shutdown, unlike a hard power-off, allows the OS to flush and close file structures cleanly, reducing the risk of filesystem corruption, and then removing the drive for a forensic imaging workstation yields a defensible disk image without altering the original.
Boot the system from a forensic live CD and create a forensic image of the hard drive while the system is running
Immediately pull the power cord to perform a cold acquisition of the hard drive
You are a forensic investigator responding to a data breach at a financial institution. The compromised server is a Windows Server 2019 running a custom trading application. The server is still powered on and connected to the production network. The incident response team has instructed you to acquire forensic evidence while minimizing downtime. The server has 2 TB of storage with 500 GB used. You have a forensic workstation with a write-blocker and an empty 2 TB external drive. The server's RAM is 64 GB. You need to acquire both volatile data (RAM) and a forensic image of the disk. However, the legal team requires a verified bit-for-bit copy with cryptographic hash verification. Additionally, the server's performance is critical; acquiring RAM via network is not feasible due to bandwidth constraints. Which of the following is the best course of action?
Shut down the server, remove the disk, connect it to a write-blocker, and acquire the disk image using FTK Imager; RAM is lost but disk acquisition is verified.
Use FTK Imager over the network to acquire RAM first, then use dd to image the disk to the external drive via write-blocker.
Run win32dd locally to capture RAM to the external drive, then use FTK Imager over the network to create a physical disk image with verification.
This is the correct order of volatility. Running win32dd locally captures RAM quickly to an external device, minimizing the time that volatile data is at risk, and it preserves a raw memory image for later analysis. After that, FTK Imager can acquire a physical disk image over the network and automatically generate hash values (e.g., MD5/SHA1) to verify the integrity of the image at acquisition time. This combines fast volatile capture with network-acquired disk imaging that includes built-in verification.
Use dd over netcat to acquire RAM and disk simultaneously, then compute hashes separately.
Want more Evidence Acquisition and Duplication practice?
Practice this domain8% of exam · 6 sample questions below
A security analyst reviews Windows Security Event Logs and finds multiple Event ID 4625 entries from a single source IP address targeting various usernames. Which type of attack is MOST likely occurring?
Password spraying attack
Password spraying is a low-and-slow attack in which an adversary chooses a handful of common passwords and tries them individually across many user accounts from a single source IP. In Windows Security logs this manifests as multiple Event ID 4625 failed-logon events with different account names but the same source workstation/IP and a common failure code such as 0xC000006D, often within a short window. Because each account is hit only once or twice, the total event volume stays low, evading threshold-based brute-force detection while still matching the observed pattern of many usernames from the same source.
Brute-force attack on a single account
Pass-the-hash attack
Kerberoasting attack
In a macOS forensic investigation, which log system provides a timeline of high-level system events such as application launches and user logins?
syslog
FSEvents
.plist files
Unified logging
Unified logging is the modern, centralized logging architecture on macOS, introduced in macOS 10.12, which aggregates all system and user-level log messages into a high-performance, structured data store accessible via the `log` command and Console app. It captures high-level forensic events such as logon/logoff, application launches, and background daemon activity, along with rich metadata like timestamps, process IDs, and privacy-annotated content. This makes Unified logging the authoritative artifact for investigating high-level system events because it provides a unified, queryable, and tamper-resistant timeline of system activity.
Which TWO Windows Event IDs are associated with successful logon or explicit credential usage? (Choose TWO.)
4648
Event ID 4648 records a logon attempt using explicit credentials, such as when a user runs a process with `runas` or supplies alternate domain credentials for a network connection. This satisfies the stem’s constraint of “explicit credential usage” because the event logs the target account and the source process, distinguishing it from interactive logon events like 4624.
4720
4624
4624: An account was successfully logged on.
4625
7045
In network forensics, an analyst captures traffic and sees a large number of ICMP echo requests from 10.0.0.1 to 10.0.0.2 with varying payload sizes. What is the most likely scenario?
Network reconnaissance (ping sweep)
A man-in-the-middle attack
A DoS attack using ICMP floods
A large volume of ICMP echo requests (ping) from a single source to a single destination, especially with varying payload sizes, is a classic signature of an ICMP flood DoS attack. The sheer volume of packets consumes the target's bandwidth and processing resources, and the varied payload sizes are often used to defeat filters that block only fixed-size pings. This pattern is distinct from reconnaissance or protocol-specific abuse because it intentionally overwhelms the victim with raw ICMP traffic.
A DNS amplification attack
Which TWO of the following are valid artifacts for determining program execution on a Windows system? (Select TWO.)
Pagefile.sys
System Restore points
Jump Lists
Jump Lists record recently accessed files per application, showing usage.
Prefetch files
Prefetch files contain execution count and last run time for applications.
Windows Error Reporting logs
A network forensics analyst captures traffic and sees a series of TCP SYN packets sent to multiple ports on a target, with no corresponding SYN-ACK replies. What type of activity is MOST likely indicated?
A denial-of-service (DoS) flood
A port scan reconnaissance
This pattern is the classic signature of a TCP SYN scan, a common port scanning technique. The attacker sends a SYN packet to each port on a target; if the port is open, the target responds with a SYN-ACK, while closed ports trigger an RST or no reply. Observing multiple SYN packets to different ports without complete handshakes indicates systematic probing to enumerate which services are listening, exactly what a port scan reconnaissance does.
A man-in-the-middle attack
Normal web browsing traffic
Want more OS and Network Forensics practice?
Practice this domain8% of exam · 6 sample questions below
A forensic analyst is examining a Windows 10 system and needs to determine the last boot time of the system. Which registry hive and key should the analyst query to find this information?
NTUSER.DAT hive, key 'Control Panel\Desktop\'
SYSTEM hive, key 'CurrentControlSet\Control\Windows\', value 'ShutdownTime'
The 'ShutdownTime' value in this key records the last system shutdown time, which can be used to infer the last boot time (as the system boots after shutdown).
SOFTWARE hive, key 'Microsoft\Windows NT\CurrentVersion\'
SAM hive, key 'SAM\Domains\Account\Users\'
During a forensic investigation, an analyst needs to preserve the integrity of evidence on a hard drive. Which of the following is the best practice for acquiring an image of the drive?
Use the 'dd' command to create a raw image without a write blocker.
Connect the drive to a forensic workstation and use the operating system's copy command.
Use a hardware write blocker and create a bit-stream image.
A hardware write blocker is the definitive forensic safeguard: it sits between the drive and the workstation and physically intercepts any write command at the ATA/SATA/USB interface, allowing only read operations. Creating a bit-stream image (e.g., using 'dd' or FTK Imager) then captures a sector-by-sector, bit-identical copy of the entire drive, including partition tables, unused sectors, slack space, and deleted files, ensuring the original evidence remains pristine and admissible in court.
Format the drive before imaging to ensure no hidden data is missed.
You are a forensic investigator responding to a security incident at a medium-sized company. The incident involved an attacker gaining unauthorized access to a Windows Server 2019 system. The server was taken offline by the IT team immediately after detection. Your task is to acquire forensic evidence from the server's hard drive. The server has a single 500 GB NTFS partition. You have a forensic workstation with a write blocker, a SATA-to-USB adapter, and a forensic imaging tool that supports both dd and EWF (E01) formats. The server is still physically in the server room, and the IT team has powered it off. You need to create a forensic image that preserves the integrity of the evidence and allows for efficient analysis. Which of the following is the most appropriate course of action?
Boot the server using a forensic live CD, connect an external USB drive to the server, and use 'dd' to create a raw image on the external drive.
Use the server's built-in backup utility to create a system state backup and copy it to a network share.
Remove the hard drive, connect it via a write blocker to the forensic workstation, and then use 'dd' over a network connection to send the image to a remote server.
Remove the hard drive, connect it via a write blocker to the forensic workstation, and create an EWF (E01) image stored locally on the forensic workstation's internal drive.
This method uses a write blocker to preserve integrity, and EWF format provides compression and metadata for efficient analysis.
During a forensic investigation of a Windows 10 system, you need to analyze the file system to recover deleted files. Which TWO file system artifacts would be most useful for this purpose?
$LogFile
The $LogFile records metadata changes, including deletions; can help reconstruct file history.
$Boot file
$MFT (Master File Table)
The MFT contains file records; even after deletion, the record may remain until overwritten.
$Volume
$Bitmap
A forensic analyst is reviewing the syslog from a compromised Linux server. Based on the exhibit, what does the 'orphan inode deleted' message indicate?
A hidden file was permanently removed from the filesystem.
A file was deleted while still open, and the filesystem has cleaned up the orphan inode.
When a file is unlinked but a process still holds its file descriptor, the inode remains allocated until the descriptor closes, resulting in an orphan inode. On a journaling filesystem such as ext4, that inode is recorded in the orphan list during the transaction, and after an unclean shutdown or during mount, the filesystem deletes it to reclaim space and logs 'orphan inode' messages. This is expected lifecycle behavior, not a sign of an attack or corruption.
A rootkit has attempted to hide files by marking them as orphan inodes.
A critical system file has been deleted, and the filesystem is warning the administrator.
You are a forensic investigator responding to an incident on a Windows 10 workstation used by a finance manager. The user reports that a critical spreadsheet containing quarterly budget data was accidentally deleted from the Desktop yesterday at approximately 3:00 PM. The system has been used normally since then, and the user has not emptied the Recycle Bin. You have created a forensic image of the drive using FTK Imager. The Recycle Bin contains a file named 'Quarterly_Budget.xlsx', but it appears to be a shortcut (size 1 KB). The user insists the original file was several megabytes. You need to recover the original file. Which action should you take next?
Search the $Recycle.Bin folder on the forensic image to locate the original file data, which may be stored under a different name.
On the forensic image, the $Recycle.Bin folder contains the original file data in a renamed storage file (typically $R...) while a companion $I... file preserves the original name and metadata; relying on the live Recycle Bin UI is insufficient because it only exposes a virtual view of these entries. Searching this hidden system folder directly is the correct first step because the file is still fully allocated and recoverable without carving or relying on volume snapshots.
Restore a previous version of the Desktop folder from Volume Shadow Copy.
Use file carving techniques to recover the file from unallocated space on the Desktop.
Check the Recycle Bin on the live system; the file should be there and can be restored.
Want more OS and File System Forensics practice?
Practice this domain8% of exam · 6 sample questions below
Which THREE of the following are common challenges specific to cloud forensics? (Select THREE)
Data jurisdiction and legal compliance across regions
Data may be stored in multiple countries with different laws.
Volatility of evidence due to auto-scaling and ephemeral instances
Resources can be terminated automatically, losing evidence.
Inability to acquire physical hard drives
Cloud providers control the physical hardware; investigators cannot image drives directly.
Lack of standardized log formats
High cost of forensic tools
During a database forensic investigation, you need to review Microsoft SQL Server transaction logs to identify unauthorized data modifications. Which of the following SQL Server functions or commands is used to read the transaction log?
SELECT * FROM sys.dm_tran_database_transactions
DBCC LOG
fn_dblog
fn_dblog is a table-valued function that accepts a starting and ending LSN and returns every transaction log record in that range, with columns such as Current LSN, Operation, Context, Transaction ID, Description, AllocUnitName, Page ID, and decoded row data. It allows an investigator to filter by operation type, transaction ID, or database object to reconstruct insert/update/delete activity, page allocations, and schema changes directly from the log. This makes it the standard, structured method for reviewing the actual log records during a database forensic investigation.
BACKUP LOG
An analyst examines the following Apache access log entry: 192.168.1.10 - - [10/Jan/2023:13:45:22 +0000] "GET /search.php?q=1%27%20UNION%20SELECT%201,2,3-- HTTP/1.1" 200 1234 "-" "Mozilla/5.0". Which attack is MOST likely indicated?
Path Traversal
SQL Injection
The UNION SELECT statement in the query parameter is a SQL injection technique to extract data from the database.
Cross-Site Scripting (XSS)
Remote File Inclusion
Which of the following email headers is used to verify the domain of the sending server and is commonly used for authentication to prevent spoofing?
Content-Type
Received
X-Mailer
DKIM-Signature
DKIM-Signature provides a digital signature for domain verification.
A forensic analyst is investigating a Docker container that was used to launch a network attack. The container has been stopped but not removed. Which action should the analyst take FIRST to preserve volatile evidence?
Restart the container and use 'docker exec' to collect evidence
Use 'docker inspect' to view container metadata only
Use 'docker save' to export the container as a tar file
Use 'docker commit' to create an image of the container
'docker commit' captures the container's current writable layer into a new image, preserving the filesystem state at a defined moment without modifying the original container's content. By default, Docker pauses the container during the commit, giving a point-in-time consistent snapshot that can be exported with 'docker save' and analyzed in a sandbox. This method is the best option listed because it preserves the container's filesystem evidence in a non-destructive way, although it does not capture live memory or active network connections.
Which Azure log source should an investigator query to identify who deleted a virtual machine and when?
Azure Activity Log
Activity Log records resource management operations (create, update, delete).
Azure Active Directory sign-in logs
Azure Diagnostic Settings for the VM
Network Security Group flow logs
Want more Application, Email and Cloud Forensics practice?
Practice this domain7% of exam · 6 sample questions below
A forensic analyst is examining a Windows malware sample using static analysis. Which tool is BEST suited for viewing the PE header structure, including sections, imports, and exports?
Strings
Ghidra
IDA Pro
PEiD
PEiD (Portable Executable Identifier) is a specialized forensic and reverse-engineering tool that statically parses PE files to identify the compiler, linker, and—most importantly—the packer or protector used. It extracts and displays PE header details such as the entry point, the section table with names and sizes, and optional header fields, then cross-references them against a signature database of known packers (e.g., UPX, ASPack, Themida) using byte patterns and section heuristics. For a malware analyst performing triage, PEiD instantly reveals whether a binary is packed and which tool packed it, making it the correct choice for PE header and packer analysis.
During an iOS forensic examination, an analyst extracts an iTunes backup and finds the file '3d0d7e5fb2ce288813306e4d4636395e047a3d28'. Which type of data does this file typically contain?
Call history
SMS and iMessage conversations
Keychain data
Notes app data
The hash corresponds to the Notes app's SQLite database (NotesStore.sqlite).
Which mobile forensics tool is specifically designed for physical extraction of iOS devices, including bypassing passcodes and extracting full file system images?
Oxygen Forensic Detective
Magnet AXIOM
Cellebrite UFED
GrayKey
GrayKey, developed by Grayshift, is a dedicated iOS forensic tool engineered specifically for physical extraction and passcode bypass. It exploits hardware and software vulnerabilities to gain full file-system access from locked iPhones/iPads, bypassing the Secure Enclave's retry limits. Law enforcement agencies use GrayKey for targeted deep extraction of iOS devices, making it the only option in this list uniquely designed for this purpose.
A malware analyst is performing static analysis on a packed executable. Which THREE techniques are effective for unpacking or analyzing packed malware? (Select THREE.)
Renaming the file to .txt
Performing strings analysis on the packed binary
Strings may reveal embedded data or unpacked code regions.
Running PEiD to identify the packer
PEiD can detect many common packers, guiding the analyst on how to unpack.
Executing the sample in Cuckoo Sandbox
Using OllyDbg to step through the unpacking routine
OllyDbg is a debugger that can trace unpacking code.
An analyst is investigating a potential data breach on an Android device. Which TWO artefacts are MOST useful for determining which third-party apps were installed and used? (Select TWO.)
Full system dump (dd image)
packages.xml file in /data/system/
This file lists all installed packages (apps) on the device.
Wi-Fi connection logs
/data/data/ directory listing
Each installed app has a folder under /data/data/; presence indicates installation and usage.
SMS database (mmssms.db)
During an iOS forensic examination, an analyst extracts an iTunes backup and finds a file named 'SMS.db'. Which of the following tools is BEST suited to parse and analyze this SQLite database for SMS and iMessage content?
GrayKey
Oxygen Forensic Detective
Cellebrite UFED
SQLite Browser
SQLite Browser is a free, open-source graphical tool that opens SQLite databases directly, allowing the examiner to browse table structures, execute SQL queries, and export results. For an iOS SMS.db file, it lets the analyst immediately inspect messages, timestamps, and associated metadata by running SELECT statements across the relevant tables. This makes it ideal for targeted database examination rather than relying on extraction hardware or a full analysis suite.
Want more Mobile and Malware Forensics practice?
Practice this domain7% of exam · 3 sample questions below
An investigator needs to capture network traffic from a live network segment without altering the traffic flow. Which technique should they use?
Enable NetFlow on the router and capture flows
Configure a SPAN port on the switch
Configuring a SPAN (Switched Port Analyzer) port on the switch copies ingress and egress frames from specified source ports or VLANs to a designated monitor port, where a forensic workstation can record full packets without altering the original traffic path. This non-intrusive mirroring preserves switch performance and avoids introducing latency or dropping frames, making it the standard method for lawful network capture at Layer 2.
Deploy an ARP spoofing tool to redirect traffic
Set the NIC to promiscuous mode on the forensic workstation
During a forensic investigation, the analyst runs netstat -ano on a compromised workstation. Based on the exhibit, which connection is MOST suspicious and should be investigated further?
The established HTTPS connection to 203.0.113.5:443 (PID 5678).
An established HTTPS connection to 203.0.113.5:443 is the clearest anomaly because 203.0.113.0/24 is TEST-NET-3, a documentation-only range that real internet services never legitimately use. An outbound connection to that test address over the standard TLS port strongly suggests C2 traffic, data exfiltration, or a covert tunnel masquerading as HTTPS. PID 5678 enables triage to the responsible process, but the destination alone warrants immediate isolation and memory capture.
The DNS query to 192.168.1.1:53 in TIME_WAIT state.
The UDP listener on port 5353 (mDNS) with PID 910.
The listening RDP service on port 3389 (PID 1234).
You are a forensic investigator responding to a data breach at a mid-sized company. The company uses a hybrid cloud environment with AWS for production workloads and on-premises servers for legacy applications. The breach was detected when an internal monitoring system flagged unusual outbound traffic from an AWS EC2 instance (i-0a1b2c3d4e5f) to an external IP address (198.51.100.20) on TCP port 4444 during off-hours. The EC2 instance runs a Linux-based web server. The security team has already isolated the instance by removing its security group rules and stopping the instance. You have been provided with the following: (1) AWS CloudTrail logs for the past 72 hours, (2) VPC Flow Logs for the same period, (3) a snapshot of the instance’s root volume (EBS), and (4) the instance metadata log from the AWS console. The company’s incident response policy requires preservation of all volatile data before powering off the instance. Which of the following steps should you take FIRST to ensure a forensically sound investigation?
Acquire a memory dump from the stopped instance by re-attaching the root volume to a forensic workstation.
Review the instance metadata log to identify the user who launched the instance.
Create a forensic copy of the EBS snapshot and attach it to a separate analysis EC2 instance in a different AWS account to avoid altering evidence.
Creating a forensic copy of the EBS snapshot and attaching that copy to a separate EC2 instance in a different AWS account is the correct first preservation step because the snapshot is the only durable disk evidence of the compromised instance. Attaching the original snapshot to an analysis instance—even read-only—risks unwitting writes from filesystem journal replay, and operating in the same account risks accidental modification or deletion. A copied snapshot in an isolated account grants a clean, authority-controlled workspace where forensic tools cannot alter the original evidence.
Analyze the VPC Flow Logs to determine if other instances communicated with the same external IP.
Want more Network and Cloud Forensics practice?
Practice this domain7% of exam · 3 sample questions below
An organization uses Microsoft SQL Server 2019 with full recovery model. A database administrator accidentally executed a DROP TABLE statement. The transaction log was backed up immediately after the incident. Which forensic technique would allow the analyst to restore the dropped table?
Restore the transaction log backup taken after the DROP TABLE and apply it to the database.
Use the RESTORE LOG statement with the NO_TRUNCATE option to recover the table.
Perform a tail-log backup, then restore the full backup and all subsequent transaction log backups, stopping before the DROP TABLE.
The correct procedure is to first back up the tail of the transaction log to capture all log records generated since the last backup, including the DROP TABLE transaction. Then restore the most recent full backup in NORECOVERY mode, followed by every subsequent transaction log backup using STOPAT (or STOPBEFOREMARK) set to a time just before the drop. This rolls the database forward to the pre-drop state while preserving all earlier committed changes.
Restore the most recent full backup and ignore subsequent transaction log backups.
You are a forensic investigator responding to an incident at a financial institution. The organization uses Microsoft SQL Server 2016 for its transaction processing system. The database is configured with full recovery model and transaction log backups are taken every 15 minutes. The incident response team has identified that an attacker gained access to the database server via compromised credentials and executed a series of malicious SQL statements, including data exfiltration and deletion of critical records. The time of the attack is estimated to be between 2:00 PM and 2:05 PM. The last full backup was taken at 12:00 AM (midnight) the same day. Transaction log backups are available for the entire day. The last transaction log backup before the attack was taken at 1:45 PM. The next transaction log backup after the attack was taken at 2:15 PM. The database is still online and being used by the business. Management wants to recover the database to a point just before the attack (2:00 PM) to minimize data loss, while preserving evidence for investigation. Which of the following actions should you take FIRST?
Perform a tail-log backup of the database using the NORECOVERY option to capture all transactions since the last log backup.
Performing a tail-log backup with NORECOVERY captures every transaction that was recorded in the active portion of the transaction log after the last full transaction log backup, including transactions in flight or not yet backed up. The NORECOVERY option transitions the database into the Restoring state, preserving the current transaction log as a backup file that can be used for point-in-time recovery. This is the only way to preserve the complete post-backup forensic evidence, and it must be done before any restore operation is attempted.
Immediately restore the full backup from midnight and all transaction log backups up to 1:45 PM to a separate server for forensic analysis.
Shut down the SQL Server service to prevent further changes and then restore the database from backup.
Restore the database to a point in time using the full backup and all transaction log backups up to 1:45 PM, then apply the 2:15 PM backup to recover lost data.
Refer to the exhibit. A database administrator finds the above error log entries when attempting to start the MySQL service. The server was working fine yesterday. What is the most likely cause of this issue?
The MySQL user does not have write permissions to the data directory.
The binary log is full and cannot be rotated.
The server ran out of memory due to high innodb_buffer_pool_size.
The InnoDB system tablespace file (ibdata1) is corrupted.
The InnoDB system tablespace file (ibdata1) holds the data dictionary, rollback segments, and undo tablespaces; its first page contains a header that InnoDB validates at startup. If that header or any critical internal page is corrupted, InnoDB cannot initialize its storage engine and aborts with errors such as 'Database page corruption' or 'Cannot open datafile'. This matches the administrator's exhibit, making corruption of ibdata1 the correct explanation; recovery requires restoring the tablespace from backup or rebuilding it with new setup.
Want more Database and Application Forensics practice?
Practice this domainDuring malware analysis, an investigator finds that a suspicious process is injecting code into a legitimate system process (e.g., explorer.exe). Which technique is being used?
API hooking
Process hollowing
Code injection
Code injection is the correct classification because the finding that code was inserted into a running process directly matches this term. It encompasses any technique that places executable code into the virtual address space of another process and then causes it to run, often by creating a remote thread or using an asynchronous procedure call. The stem's description is a general definition of code injection, not limited to a specific delivery vector.
DLL injection
Refer to the exhibit. An investigator is examining a disk image using TSK. The output from 'fls' shows the directory structure. What is the significance of the entry 'V/V 113-128-1: $OrphanFiles'?
It is a sign that a rootkit has hidden files in the image
It indicates the location of the Master File Table (MFT) mirror
It is a virtual directory that contains files with no parent directory, often from deleted files
In tools like The Sleuth Kit (tsk) and Autopsy, the virtual directory named $OrphanFiles (or displayed as 'V/V') is not a literal directory stored on the disk. It is dynamically generated to represent files whose MFT entries exist but whose parent directory references were lost, typically because the directory entry was deleted, overwritten, or corrupted while the file record itself remains in the MFT. This commonly occurs after a file is deleted, when the directory index entry is removed but the file's MFT record is not yet reused, or after a malformed directory entry prevents normal linkage in the tree.
It is a standard NTFS metadata file that stores file permissions
You are a forensic analyst investigating a suspected malware infection on a Windows 10 workstation. The user reports that the system has been slow and that unexpected pop-ups appear. You have acquired a memory dump and a disk image. During analysis, you find a suspicious process named 'svch0st.exe' running with PID 4567. The process has loaded several DLLs, including 'wininet.dll' and 'ws2_32.dll'. You also find that the process has an active TCP connection to an external IP address 203.0.113.5 on port 4444. In the disk image, you find an executable file at C:\Users\Public\svch0st.exe with a creation date that matches the start of symptoms. The file's hash is not in any known malware database. You decide to perform dynamic analysis by running the file in a sandbox. However, the sandbox environment has no network connectivity. The executable runs but does not exhibit any malicious behavior. What should you do next to determine if the file is malicious?
Conduct a thorough static analysis using a disassembler and debugger to understand the code
Delete the suspicious file and run a full antivirus scan on the system
Re-run the sample in a sandbox with simulated network connectivity or a controlled network to observe C2 communication
Re-running the sample in a sandbox with simulated network connectivity or a controlled network is the correct approach because many malware families remain dormant until they establish C2 communication, at which point they download additional payloads, exfiltrate data, or execute commands. A network-enabled sandbox provides a safe, but realistic environment where the analyst can observe DNS queries, HTTP/S connections, beaconing intervals, and the exact data exchanged with the C2 server. This dynamic analysis yields actionable indicators of compromise (IoCs) and reveals the malware's full functionality without risking real network infection.
Perform a forensic imaging of the system again and compare with the original image
Based on the exhibit, what is the most likely indication of malware persistence?
services.exe PID 4321 is a known malware process
Windows Defender service is stopped, allowing malware to run
services.exe is listening on TCP port 4444, indicating possible code injection
services.exe is the Windows Service Control Manager and should never expose listening TCP endpoints on its own; its normal IPC is via a named pipe used by subprocesses, not a network socket. Port 4444 is a well-known default payload port for Metasploit's meterpreter and is frequently used by backdoors, so an established listening socket on services.exe is a classic sign of injected shellcode. Because services.exe runs as SYSTEM, attackers often inject code into it to steal its high privileges and evade detection.
svchost.exe hosting BFE and MpsSvc indicates a firewall bypass
You are investigating a Windows 10 workstation that exhibits slow performance and frequent pop-ups. The user reports that the system started acting strangely after installing a 'PDF Converter' from an email attachment. You suspect malware. You have captured a memory dump using FTK Imager and a network capture during the infection. In the memory dump, you find a suspicious process 'conhost.exe' running from a non-standard location (C:\Users\Public\Temp). The process has an open handle to a file named 'config.ini' in the same directory. The network capture shows periodic HTTPS connections to 'malicious.com' on port 443 from the workstation's IP. Using Volatility, you extract the process's command line: 'conhost.exe -hidden -log C:\Users\Public\Temp\output.log'. Which of the following is the BEST immediate course of action to contain the threat and preserve evidence?
Delete the config.ini file and the conhost.exe executable immediately.
Restore the system to a previous restore point.
Terminate the suspicious conhost.exe process and run a full antivirus scan.
Isolate the workstation from the network, then create a forensic image of the hard disk for analysis.
Isolating the workstation from the network by disconnecting the cable or disabling the NIC immediately severs Command & Control (C2) channels and halts any lateral movement to other hosts, preserving the network flow data and the current state of live connections. Creating a forensic image of the hard disk using a write-blocker and bit-for-bit imaging tools maintains the integrity of evidence, allowing recovery of deleted files, unallocated space, and file system slack that may contain residual malware or attacker artifacts. This evidence-preserving approach aligns with forensic best practices, keeps proper chain of custody, and enables thorough static and dynamic analysis in a controlled lab environment—unlike the destructive or ineffective alternatives.
Want more Malware Forensics practice?
Practice this domainThe CHFI exam has 125 questions and must be completed in 240 minutes. The passing score is 700/1000.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 12 domains: Computer Forensics Investigation Process, Computer Forensics Fundamentals and Process, Storage Forensics and File System Analysis, Incident Response and First Responder Skills, Evidence Acquisition and Duplication, OS and Network Forensics, OS and File System Forensics, Application, Email and Cloud Forensics, Mobile and Malware Forensics, Network and Cloud Forensics, Database and Application Forensics, Malware Forensics. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official EC-Council CHFI exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.