Validation and limitations · Lesson 1 of 2
Validating tool output: two tools, manual checks and test data
10 min read
Forensic tools are software written by people, against artifacts that change with every operating system and app update. A parser that was correct for one version of a database can silently drop rows, mislabel a column or convert a timestamp wrongly on the next. The examiner, not the tool, signs the report, so the examiner must be able to show that the results are reliable. This lesson explains validation and verification, and three practical ways to check tool output: a second tool, manual checks in the raw data and known test data. It also lists what to document so that another examiner can repeat your work, drawing on ISO/IEC 27041, the accreditation guidance Modules in a Forensic Science Process and the testing guidance published by SWGDE and NIST.
Why tool output needs checking
The Scientific Working Group on Digital Evidence (SWGDE) document Establishing Confidence in Digital and Multimedia Evidence Forensic Results by Error Mitigation Analysis (12-Q-001) groups tool errors into three kinds:
- Incompleteness. Relevant data is present but not reported: a table the parser does not read, rows held only in the write-ahead log, a new column added in a later version.
- Inaccuracy. Reported data is wrong: a timestamp converted with the wrong epoch, records wrongly grouped, values attached to the wrong item.
- Misinterpretation. The results are incorrectly understood: the examiner misreads what the data means, or the tool presents it unclearly or under a label it has not earned, such as calling a crowd-sourced access point position a visit.
The same document notes that digital forensic tools suffer mainly from systematic errors, not random ones. A software bug gives the same wrong answer every time it meets the same input, so running a tool twice proves nothing, and an "error rate" is often a misleading measure. Testing reduces the risk but cannot prove that a tool always works.
Mobile artifacts make the risk higher. Apple and Google do not document most of the databases examiners rely on, field meanings come from community research, and schemas change. The developers of iLEAPP, for example, note that on iOS 27 several Photos.sqlite join columns are renumbered, and that some columns present on iOS 26.5 are missing on iOS 27.2. A tool built for the earlier version may return empty or wrong values without any error message.
Validation and verification
Two terms are often confused:
- Validation provides objective evidence that a method, including the tools it uses, is fit for its intended purpose. ISO/IEC 27041:2015, Guidance on assuring suitability and adequacy of incident investigative method, describes how to capture the requirements for a method and how much validation is needed. It also covers the evidence validation should produce and how to use testing done by vendors and third parties.
- Verification confirms, with objective evidence, that a method already validated, by you or by someone else, performs as expected in your own environment: your tool version, your settings, your staff. The accreditation guidance Modules in a Forensic Science Process (ILAC-G19:06/2022, reissued in 2026 as Global ACI-TECH-1-004 without substantive change) uses the term in this sense without defining it. A unit that has reviewed another organization's validation records may undertake verification only, to show that it is competent to perform the method.
Checking an individual result in a case, by a second tool or by hand, is often also called verification. This lesson calls it a case-level check.
SWGDE's Minimum Requirements for Testing Tools Used in Digital and Multimedia Forensics (18-Q-001, version 2.1, March 2024) gives three testing methods:
- Known dataset. Process a dataset whose content is known and compare the output with the expected results.
- Comparison. Run two or more tools on the same input and compare their results.
- Empirical testing. Corroborate the output against other data or check it by hand.
For mobile device extraction tools it requires a known dataset, which should be supplemented by empirical testing. Hashing alone is not enough, because the phone's own storage operations can change the data, so two extractions of the same phone cannot be expected to have the same hash. Testing each major software version once is considered sufficient. Minor updates of mobile tools need retesting when the organization judges the changed function critical.
The National Institute of Standards and Technology (NIST) runs the Computer Forensics Tool Testing (CFTT) program. It publishes a Mobile Device Forensic Tool Test Specification (version 3.3, January 2025) and test reports for named tools and versions. Before relying on a tool, check whether that version has been tested and which anomalies were reported. A CFTT report on version 8 tells you little about version 10.
Method 1: a second, independent tool
Running a second tool on the same extraction is the fastest check. Compare:
- Counts. The number of messages, photos, calls or location records per source file.
- Specific records. The same record's values, such as sender, text and timestamp, in both tools.
- Coverage. Artifacts one tool reports and the other does not.
The value of the check depends on independence. Two tools that share the same open-source parsing library, or that both copy a community's unconfirmed interpretation of a field, can agree and both be wrong. Agreement raises confidence; it does not prove correctness. Disagreement is a finding to investigate, never a reason to report whichever answer seems more convenient. Pairing a commercial suite with an open-source tool such as iLEAPP or ALEAPP, whose code you can read, is a common and useful combination.
Method 2: manual checks in the raw data
For any finding that matters, go back to the source and check it yourself:
- Locate the source. Note the file path, table and row identifier that the tool cites. Good tools show them; if yours does not, that is a limitation to record.
- Work on a copy. Copy the database together with its -wal and -shm files. Opening a database can merge the write-ahead log into the main file and destroy deleted records (lesson 3.2), so never open the evidence copy. Hash the files when you copy them and again after the check, and record both sets of values. The database and its -wal file should be unchanged; the -shm index can change even in a read-only session.
- Query it. Open the copy read-only, for example with sqlite3 -readonly Photos.sqlite or DB Browser for SQLite in read-only mode, and select the row. SQLite's immutable option is not a substitute: in tests it left all three files unchanged but did not read the log.
- Convert it yourself. Recompute timestamps and decode values with your own documented method, such as a short Python script.
- Compare. Check the tool's output against your result, and look for what the tool did not show: other columns, other rows, records in the log.
For example, a tool reports that IMG_0412.HEIC was created at 2026-03-10 13:32:07 UTC (an illustrative date). The query SELECT Z_PK, ZFILENAME, ZDATECREATED, ZTRASHEDSTATE, ZTRASHEDDATE FROM ZASSET WHERE ZFILENAME = 'IMG_0412.HEIC' returns ZDATECREATED 794842327. Adding 978,307,200 gives Unix time 1773149527, which is 2026-03-10 13:32:07 UTC. The tool is correct for this record, and your notes now show how you know.
Values stored in blobs need the same care. Property lists, NSKeyedArchiver objects (lesson 4.2) and protobuf messages can be decoded with general-purpose tools and compared with the tool's interpretation. The ALEAPP developers found, for example, that a type-guessing protobuf decoder misread the packed path fields of 403 of 4,757 Timeline path segments on their test images as nested messages. They rewrote that parser to read the fields directly. Generic decoders are useful for checking, but their guesses also need checking.
Method 3: known test data
The strongest evidence that a method works is a test in which you know the right answer in advance.
Building your own test data
Use a test phone with the same model, operating system version and app versions as the evidence device, or as close as you can get. Perform scripted actions and record each one with its exact time in a test log: take three photos, send them through a messaging app, delete them, change the time zone. Extract the phone with the same method you used on the evidence, run the same tools, and compare the output with your log. This is the most direct way to answer questions such as "does this tool report photos in Recently Deleted on iOS 27.1?" or "what does this field contain after WhatsApp downloads an image on One UI 8?".
Public reference datasets
Public datasets let you test tools without building everything yourself:
- NIST CFReDS. The Computer Forensic Reference Data Sets portal (cfreds.nist.gov) is a gateway to documented forensic images for tool testing and training, including the datasets NIST produced for CFTT and its Federated Testing project.
- Digital Corpora. This site hosts research datasets, including mobile test images created and documented by practitioners such as Josh Hickman.
- Tool test notes. iLEAPP and ALEAPP record, for many parsers, which test images and versions they were checked against and how many rows each produced.
Reference images age quickly. An image from iOS 17 or Android 14 does not show how iOS 27 or Android 17 behaves, so check the version of every dataset you rely on.
Documenting tools and validation
Record enough for another examiner to repeat each step and get the same result:
- Tools. Name, version and build of every tool, and for open-source tools the release or commit identifier.
- Settings. Display time zone, decoding options, plugins or parsers enabled, and any custom scripts, kept with the case.
- Environment. Workstation operating system and the hash of the extraction each tool processed.
- Testing. Which validation applies: your own test, a CFTT report, a vendor statement or none. SWGDE 18-Q-001 lists what a lab test record should include: purpose and scope, who tested and when, procedure, datasets with expected results, results, anomalies and limitations.
- Case-level checks. Which findings you checked by hand or with a second tool, how, and with what result.
- Known issues. Relevant release notes or reported anomalies for the versions used.
Applying this to the Corvane case
The following disagreement is an illustrative scenario, not a known defect of any product. The examiner processes Lena's extraction with a commercial suite and with iLEAPP. The commercial suite lists two photos in Recently Deleted; iLEAPP lists three. The examiner copies Photos.sqlite with its -wal and -shm files and queries ZASSET for ZTRASHEDSTATE = 1. The query on the database with its log returns three rows. The same query on a copy of the main file alone returns two, because the page holding the third change had not yet been checkpointed from the log into the main file (lesson 3.2). The examiner confirms that the commercial suite, as configured, had read the main file without the log. The report states the count supported by the database and its log, explains the discrepancy and names both tool versions.
For Victor's phone, the examiner notes the Google Play services version in the extraction and checks that ALEAPP's Timeline parser was tested on a similar version before relying on its labels for the on-device Timeline records.
Exam focus: Know the difference between validation, verification and a case-level check, the three SWGDE testing methods, and why hashing alone does not validate a mobile extraction tool. Be able to describe a manual check of a tool's result in a SQLite database without altering the evidence, explain why two tools agreeing is not proof, and list what must be documented about tools and their versions.
Practice questions
Check your understanding. These questions do not count towards the exam.
Sign in to save your progress and continue where you left off. It is free. Sign in