How We Tested Firefly’s SQLite Data Recovery

Firefly found a deleted SQLite row at byte offset 0x115C in a rollback journal. The row was absent from the main database, and we could verify the entire 21-byte cell in the journal. That is one result from our Firefly 1.0.3 run using NIST’s published SQLite recovery test cases.

We recorded 56 As Expected, 19 Not Applicable, and 0 Not As Expected across 75 checks. All 23 files in our test inventory had the same SHA-256 values before and after the examination.

Elusive Data ran the tests on Windows 11 using the NIST CFTT Federated Testing method. We submitted our report and supporting logs on October 2, 2026, and the NIST CFTT team acknowledged receipt. The results are from our own test run.

Results for SQLite recovery test cases SFT-01 through SFT-08

Federated Testing gives examiners a common method for running published test cases and documenting what their tools return. We used NIST’s SQLite test specification and public test fixtures. Here is how we recorded the checks in our run.

Test caseWhat we checkedAs ExpectedNot Applicable
SFT-01Database header fields, including page size, page count, encoding, and WAL or legacy format.126
SFT-02Table and column names and live row counts.90
SFT-03Firefly reported all 100 updated WAL row IDs with their stored values and WAL offsets. The PERSIST journal preserved 100 deleted rows and 100 earlier versions of modified rows.42
SFT-04Source filenames for recovered data.42
SFT-05Schema reporting, column types, and primary keys.180
SFT-06Firefly labeled all 100 deleted WAL rows PendingDeletion. The separate WAL check for modified status was Not Applicable because the fixture contained no pre-update values for those rows.33
SFT-07Offset, length, and associated table for recovered data.42
SFT-08WAL frame order and the commit boundary.24
Total75 recorded checks, including 0 Not As Expected.5619

Of the 19 checks marked Not Applicable, six concerned encodings other than the one used by each database, eight required a recovery file that was absent in the OFF fixtures, and four concerned WAL sequencing for non-WAL fixtures. The remaining check concerned modified-row status in the supplied WAL fixture.

Verify a recovered record at its file offset

In the SFT-03_PERSIST_ios.sqlite-journal fixture, the inactive rollback journal retained pre-transaction database pages. We used two records to check Firefly’s output against the source bytes: a deleted row and an earlier version of a row still in the database.

Annotated hex diagram of SQLite row 197 at 0x115C and row 199 at 0x1132 in the PERSIST rollback journal.
Annotated diagram of the deleted row 197 and the earlier version of row 199 in the test journal.

Deleted row 197 at 0x115C

We queried invoice_items in the main database for InvoiceLineId = 197 and found no matching row. The journal retained the cell on database page 27. Read 21 bytes starting at journal file offset 0x115C:

115C: 12 81 45 06 00 02 02 07 09 00 C5 04 98 3F EF AE
116C: 14 7A E1 47 AE

The first byte, 12, is the payload length varint, 18 in decimal. The next two bytes, 81 45, decode to row ID 197. Together with the payload, these make a 21-byte cell ending at 0x1170. The record header is 06 00 02 02 07 09. The body decodes to InvoiceId = 197, TrackId = 1176, and UnitPrice = 0.99. Serial type 09 encodes Quantity = 1 without consuming a byte in the body.

Earlier version of row 199 at 0x1132

Row 199 was present in the main database with Quantity = 200. At journal file offset 0x1132, Firefly found the earlier 21-byte cell:

1132: 12 81 47 06 00 02 02 07 09 00 C7 04 A0 3F EF AE
1142: 14 7A E1 47 AE

The row ID varint 81 47 decodes to 199. The 09 in the record header encodes Quantity = 1. Comparing the journal with the main database lets you document both values and where each came from.

Read the WAL sequence and check what the fixture preserves

Firefly displayed 16 frames in write order, with frame 16 marked as the commit. It reported page 43 in that frame and a committed database size of 43 pages. WAL frame headers establish sequence and commit boundaries. Dating the transaction requires other evidence.

SFT-03 WAL (Recoverable Rows). Firefly reported all 100 updated row IDs with Quantity = 200 and their WAL offsets. Firefly showed those rows as Active/Duplicate, with zero pending updates. We recorded the modified-row reporting check as As Expected and documented the checkpointed state.

SFT-06 WAL (Recovered Row Metadata). Firefly labeled all 100 deleted rows PendingDeletion. For the separate modified-status check, we compared all 2,138 rows in the WAL frames with their counterparts in the main database and confirmed a byte-for-byte match. The 100 updates were already reflected in both files, and the captured WAL contained no pre-update values for those rows. We recorded this status check as Not Applicable. In the PERSIST fixture, the rollback journal retained the earlier pages, and the corresponding SFT-06 check was As Expected for all 100 modified rows.

Use known results when you evaluate a SQLite tool

  1. Open a verified working copy. Record the tool version and the SHA-256 values for the database and companion files before and after examination.
  2. Inspect one result at its exact offset. Record the source file, table, row ID, and whether the reported length refers to the complete cell or its payload.
  3. Compare the main database with the journal or WAL view. Record whether the files support a deletion, an earlier value, or an observed value.

See our walkthrough on SQLite unallocated space recovery, read the 2.02 GiB SQLite recovery test, or practice these checks in SQLite Forensics On-Demand.

See the workflow in Firefly

Bring a representative SQLite examination question. We can show you how to review rows and WAL frames in Firefly and follow a finding back to its source file and bytes.

Book a Firefly demo · Explore Firefly · Read the SQLite WAL examination guide

These results are from Elusive Data’s own run using the published NIST CFTT method. NIST did not test, certify, or endorse Firefly.

Facebook
Twitter
Email
Print

Subscribe to stay updated!

Never miss a post – get notified whenever we publish a new blog article, forensic guide, or share important updates.

Latest Post