You find a file called report.pdf and want to know where it came from.
Chrome’s History database can record the download URL, where Chrome aimed to save the file, and when the transfer started.
It can also record an interrupted attempt, so the first thing to check is whether the download finished.
We’ll use DB Browser for SQLite to follow one download from its first request to the final URL.
You can do the same with a harmless PDF in a practice Chrome profile.
The goal is to connect a browser record to a file without assuming the filename tells the whole story.
Get the History Database for the Right Profile
In a practice browser, open chrome://version and find Profile Path.
Chrome keeps separate profiles, so the folder might end in Default, Profile 1, or another name.
The file you need is called History, without a .db extension. On a typical Windows installation the default profile sits under %LOCALAPPDATA%\Google\Chrome\User Data\Default.
Use the path displayed by your practice profile if it differs.
For a clean exercise, create a separate browser profile, download a harmless PDF, and quit Chrome before copying History to a different folder.
If you already have a forensic acquisition, locate the relevant profile in the acquired data. Do your analysis on a working copy.
Keep any associated History-wal, History-shm, or rollback journal collected with the database.
A write-ahead log, or WAL, can contain committed changes that have yet to be merged into the main database file.
Preserve the set together and record the snapshot it came from. The browser forensics lesson puts that database in context alongside other browser artifacts.
Open DB Browser for SQLite and choose its read-only database opening option for the working copy.
If your copy arrived with sidecars, document whether the viewer could read them and any warnings it showed.
A result obtained from the main file alone may be incomplete.
The SQLite glossary explains why an application can store multiple tables in a file that looks like an ordinary document.
Start With the Download Record
In Browse Data, select the downloads table. Find your file by its destination path.
On a busy profile, check the record’s ID and start time before you pick a row.
Two attempts to download the same filename can have different IDs, different paths, and different outcomes.
Begin with these fields:
target_pathdescribes the destination Chrome recorded. Compare it with the acquired filesystem before saying that a file was present there.current_pathcan help explain a partial or temporary file. It may differ from the destination.start_timeis the recorded start of the transfer. Chrome stores it as microseconds since January 1, 1601 UTC.received_bytes,total_bytes, andstatehelp you judge how far the transfer got. A known total and a matching byte count help corroborate a completed state. An unknown total requires care.- The record’s
idconnects it to the separate URL-chain table.
Chrome’s database uses numbers for download states. In the schema used for this walkthrough, 1 is complete and 4 is interrupted.
Preserve any unfamiliar code as a raw value until you can check it against the applicable version.
A completed download gives you evidence about a recorded transfer.
To say the file was later opened, moved, or deleted, look for evidence of that separate event.
Follow the Redirects to the Recorded Source URL
The URL you click and the URL that delivers the file can differ. A download page might redirect the browser to a storage server.
In Chrome’s downloads_url_chains table, the same download ID can appear on several rows, one for each recorded URL.
Read those rows from the lowest to highest chain_index. Keep the highest recorded row and the preceding chain in your notes.
In our lab, we served a small PDF from a local address and requested /get-report. Chrome followed a redirect to /files/report.pdf.
The database reported 142 received bytes and 142 total bytes, with state 1.
We used Chrome for Testing 147 on macOS and an isolated practice profile. The same table relationship can be examined in a Windows copy.
Switch to Execute SQL and run this query. It lists matching download rows and their recorded URL hops.
The timestamp expression displays whole seconds in UTC. Keep the original value if you need to compare times more precisely.
SELECT
d.id,
d.target_path,
d.start_time AS raw_start,
datetime(d.start_time / 1000000 - 11644473600, 'unixepoch') AS start_utc,
d.state,
d.received_bytes,
d.total_bytes,
c.chain_index,
c.url
FROM downloads AS d
LEFT JOIN downloads_url_chains AS c ON c.id = d.id
WHERE d.target_path LIKE '%report.pdf'
ORDER BY d.id, c.chain_index;Replace report.pdf with the end of the filename you’re checking. To start with the entire table, remove the WHERE line.
The LEFT JOIN keeps a download record visible even when the corresponding URL rows are missing.
Multiple rows with the same download ID are usually multiple recorded hops for that download. Compare the IDs before counting them as separate transfers.
If the database has no matching URL at the highest expected index, report only the URLs the database actually contains.
A website listed in tab_url, when present, can supply page context, while the chain describes the recorded download requests.
Those details can point to different places in a normal transfer.
Check What Was Actually Saved
The second row in the figure is an illustrative interrupted transfer. It shows 60 bytes received out of 142 expected, with state 4.
The row supports an attempt to save the file.
To see whether any partial data is present, check the recorded current path and the acquired filesystem.
For a second exercise, compare the completed transfer with a download interrupted after it began.
If you can control a local training server, have it close the connection partway through a separate test file. Chrome may retry.
Wait for its final result, then compare the state, the recorded byte count, and what the destination folder contains.
If you cancel a download yourself, describe it as canceled.
A canceled row and an interrupted row should be interpreted according to the states they actually report.
When reviewing evidence, check the recorded path against the acquired filesystem and verify the file you find there.
Compare size and, if you have a trustworthy reference, use the SHA-256 walkthrough to check whether the bytes match.
If the file is absent, record the destination from the database.
Then state whether the file was present at that path in the examined copy.
A downloaded file might have been moved or removed, or the destination might simply be outside the material you received.
A short finding for the example could read as follows.
Chrome recorded a completed 142-byte download of report.pdf. The request chain went from /get-report to /files/report.pdf.
For your own example, add the profile path, database copy, raw start time, UTC conversion, and the result of your filesystem check.