Skip to content

Deleted History Recovery and Carving

tojo54 edited this page Nov 12, 2026 · 1 revision

Recovering Deleted Browser History & Unallocated Artifact Carving 🧬

When a user clicks "Clear Browsing Data" in Chrome, Firefox, Edge, or Safari, or deletes individual history entries, the underlying records are rarely overwritten immediately on disk.

HashScope WebTrace v2.4.0 includes a dedicated Deleted History Recovery & Carving Engine capable of recovering purged browsing history from four distinct forensic sources:


1. πŸ—„οΈ SQLite Unallocated Freelist Pages (History, places.sqlite, Cookies)

When rows are deleted from an SQLite database (unless PRAGMA secure_delete = ON or a full VACUUM has completed):

  1. SQLite moves deleted B-Tree leaf pages onto the Database Freelist or marks the cell byte ranges inside active B-Tree leaf pages (0x0D table leaf pages) as Unallocated Freeblocks.
  2. HashScope WebTrace performs raw binary page-level scanning across the entire SQLite file buffer, locating URL signatures (http://, https://, ftp://, file:///, .onion), title strings, and adjacent 64-bit WebKit / PRTime / Cocoa integer cells in unallocated space.
  3. Any URL record found in raw binary pages that is no longer present in the active SQLite B-Tree tables is flagged as Recovered (Deleted) with its exact Byte Offset (0x...) and source artifact path.

2. πŸ“œ SQLite Write-Ahead Logs (.sqlite-wal) & Rollback Journals (-journal)

Modern browsers run SQLite in WAL (Write-Ahead Logging) mode (History-wal, Cookies-wal, places.sqlite-wal, Favicons-wal, Web Data-wal):

  1. New transactions and recent DELETE operations are appended sequentially as frames inside the -wal file before checkpointing back into the main database file.
  2. Earlier frames in the -wal file often still contain the pre-deletion state of rows that were deleted in a later frame!
  3. HashScope WebTrace scans both the main database and any companion -wal and -journal files, carving older frame snapshots and reconstructing deleted visits, searches, downloads, and cookies.

3. πŸ’Ώ Windows Volume Shadow Copies (VSS / HarddiskVolumeShadowCopy*)

On Windows workstations, the Volume Shadow Copy Service (VSS) preserves point-in-time block snapshots of C:\Users\<User>\AppData\:

  1. Even if a user runs a privacy cleaner (CCleaner, BleachBit) or completely uninstalls a browser, prior copies of History, places.sqlite, Cookies, and WebCacheV01.dat remain intact inside \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1..N.
  2. HashScope WebTrace enumerates available Volume Shadow Copies (vssadmin list shadows) and allows investigators to ingest and compare historical shadow copy databases directly against the live filesystem.

4. 🧱 Chromium Disk Cache & Firefox cache2 Residual Artifacts

Even when the History SQLite database is wiped, residual traces often persist in secondary browser artifacts:

  • Favicons Database: Chromium frequently retains site URLs in icon_mapping inside Favicons even after History is cleared.
  • Cache/Cache_Data/ & cache2/entries/: Cached HTTP headers, images, and HTML pages remain on disk with original Last-Modified and Date headers.
  • Web Data & Shortcuts: OmniBox (Shortcuts SQLite database) and Autofill tables retain typed URLs and search strings.
  • DNS & Network State (Network Persistent State / TransportSecurity): HSTS and QUIC server metadata reveal domains visited even in cleared sessions.