TVX CTF 2026Forensics
The Browser Never Forgot
A Chrome History database from an employee suspected of downloading an internal report. One visit record was deleted, but the download metadata still remembers the browsing context.
- Competition
TVX CTF 2026
- Category
- ForensicsMedium · estimated
- Source status
- Answers derived · platform unverified
- Document
- PDF edition5 min read
Brief
The challenge
- Competition
- TVX CTF 2026
- Category
- Digital Forensics (platform category: DFIR)
- Difficulty
- Medium — estimated, not an official rating
- Points
- 320
- Solves
- 19 on the challenge card when captured
- Challenge author
- Ahmed Alwedyan
- Verification
- Answers derived from evidence; platform acceptance not documented
Difficulty: Medium (estimated). TVX CTF 2026 did not publish difficulty ratings; the challenge cards show only points and solve counts. Requires knowing the Chrome History schema well enough to spot a deleted visit through dangling references, reading Chrome's download state enum, and converting WebKit timestamps. The card showed 320 points and 19 solves when captured.
01
Overview
An employee was suspected of accessing an internal report through a local web portal before downloading a document named
Q4_Report.txt. [...] a page remains referenced in the browser database, while its corresponding visit record appears to be missing. Despite this, the download metadata retains information about the browsing context associated with that page.
Identify the missing visit ID referenced by the surviving visit record for
download.html.Determine the previous page recorded in the download's tab context.
Verify whether Chrome recorded the download as completed or not.
Convert the recorded download start time to UTC. format:
YYYY-MM-DD_HH-mm-ssFlag Format:
TVX{Ans1,Ans2,Ans3,Ans4}


A Chrome History database from an employee suspected of downloading an internal report. One visit record was deleted, but the download metadata still remembers the browsing context.
Solution path in brief
Someone deleted the review.html visit (visit id = 2) from the Chrome History SQLite database. The download.html visit still points to it through from_visit = 2. The downloads row keeps tab_referrer_url = review.html, has state = 1 (COMPLETE), and its start_time WebKit timestamp converts to 2026-10-10 22:16:02 UTC.
02
Initial investigation
The first pass dumped every non-empty table with solve.py.
Recon
The archive contains Chrome's History SQLite database (schema version 70) and the downloaded Q4_Report.txt, which only holds placeholder text. I dumped every non-empty table with solve.py.
03
Tools used
Python 3 with
sqlite3(solve.py)Chrome History schema knowledge (visits, downloads, annotations)
04
Step-by-step process
Step 1: URLs vs. visits: the missing visit
urls has three pages, but visits only has two rows:
| urls.id | url | title |
|---|---|---|
| 1 | /portal.html | Employee Portal |
| 2 | /review.html | Document Review |
| 3 | /download.html | Report Download |
| visits.id | url | from_visit |
|---|---|---|
| 1 | 1 (portal) | 0 |
| 3 | 3 (download) | 2 |
sqlite_sequence says visits reached seq = 3, so visit 2 existed and was deleted. The surviving download.html visit still names it in from_visit. The deleted visit also left traces in content_annotations and context_annotations, which both still hold a row for visit_id = 2. In context_annotations, visit 3's parent_task_id equals visit 2's task_id (13436144157569386), which is the review.html visit time.
Answer 1: 2
Step 2: Download tab context
The single downloads row (id 10):
| field | value |
|---|---|
target_path | C:\Users\user\Downloads\Q4_Report (1).txt |
tab_url | http://127.0.0.1:8000/download.html |
tab_referrer_url | http://127.0.0.1:8000/review.html |
start_time | 13436144162088011 |
end_time | 13436144162454556 |
received_bytes / total_bytes | 89 / 89 |
state | 1 |
interrupt_reason | 0 |
downloads_url_chains shows that the file came from http://127.0.0.1:8000/Q4_Report.txt.
Answer 2: http://127.0.0.1:8000/review.html
Step 3: Download state
In Chrome's DownloadState enum, 0 is IN_PROGRESS, 1 is COMPLETE, 2 is CANCELLED, and 4 is INTERRUPTED. The row has state = 1 and interrupt_reason = 0, and all 89 of 89 bytes were received. The 89 bytes also match the size of the recovered Q4_Report.txt.
Answer 3: completed
Step 4: Start time to UTC
Chrome stores times as microseconds since 1601-01-01 UTC (WebKit time):
13436144162088011 µs since 1601-01-01 → 2026-10-10 22:16:02.088011 UTCAnswer 4: 2026-10-10_22-16-02
Step 5: Timeline (UTC)
| time | event |
|---|---|
| 22:15:52 | visit 1, portal.html (typed) |
| 22:15:57 | visit 2, review.html (deleted) |
| 22:16:00 | visit 3, download.html (from_visit = 2) |
| 22:16:02.088 | download of Q4_Report.txt starts |
| 22:16:02.454 | download completes (89 bytes) |
05
Commands and code
Full source: solve.py: dump tables and decode timestamps
import sqlite3, datetimedb = sqlite3.connect("Evidence/History")def ts(v): if not v: return v return (datetime.datetime(1601, 1, 1) + datetime.timedelta(microseconds=v)).strftime("%Y-%m-%d %H:%M:%S.%f")tables = [r[0] for r in db.execute("select name from sqlite_master where type='table'")]print("TABLES:", tables)for t in tables: rows = db.execute(f"select * from {t}").fetchall() if not rows: continue cols = [c[1] for c in db.execute(f"pragma table_info({t})")] print(f"\n=== {t} ({len(rows)}) ===") print(cols) for r in rows: print(r)print("\n=== decoded times ===")for r in db.execute("select id,url,last_visit_time from urls"): print("url", r[0], r[1], ts(r[2]))for r in db.execute("select id,url,visit_time,from_visit,opener_visit from visits"): print("visit", r, ts(r[2]))for r in db.execute("select id,start_time,end_time,state,danger_type,interrupt_reason,received_bytes,total_bytes,tab_url,tab_referrer_url,referrer from downloads"): print("download", r, ts(r[1]), ts(r[2]))06
Technical explanation
Deleting a row from visits does not update the rows that reference it. The surviving download.html visit still has from_visit = 2, sqlite_sequence shows visit IDs reached 3, and the annotation tables keep rows for visit 2. The downloads table stores its own copy of the tab URL and referrer, so it preserves the deleted page. Chrome timestamps are microseconds since 1601-01-01 UTC.
Key lessons
Deleting a
visitsrow leaves dangling references behind:from_visitin other visits,sqlite_sequence,content_annotations,context_annotations, and the download'stab_urlandtab_referrer_url.The
downloadstable stores its own copy of the navigation context, so it outlives changes to the history.Chrome timestamps are WebKit time: microseconds since 1601-01-01 UTC.
07
Flag
Flag
TVX{2,http://127.0.0.1:8000/review.html,completed,2026-10-10_22-16-02}
Answers derived · platform unverified
08
Verification status
Status: Answers derived from evidence; platform acceptance not documented.
All four answers are read directly from the SQLite database (dump in out.txt) and cross-checked: sqlite_sequence, the annotation tables and the download row all agree. Platform acceptance is not documented.
Source evidence in the archive: WRITEUP.md, solve.py, out.txt, Evidence/History, images/00_challenge_1.png, images/00_challenge_2.png.
09
Conclusion
A focused browser-forensics exercise: deletion in a relational store leaves references behind, and the downloads table is an independent record of navigation.
Prepared by Adam Omar Saleh from the archived solve notes in the_browser_never_forgot/. Commands, code, output and screenshots are reproduced from the source; no results were added. Difficulty is an estimate.