The first time you open a Firefox history file, the dates look like noise. A value such as 1764590400000000 is not a bug. Firefox stores visit times in moz_historyvisits.visit_date as microseconds since the Unix epoch, so you divide by a million before SQLite can turn it into something readable.

That one conversion is most of what stands between you and a usable timeline.

Work on a copy

History lives in places.sqlite inside the profile folder. Firefox keeps the file locked while it runs and writes recent changes to a sidecar -wal file. Copy the database and the -wal file together, then open the copy. Querying the original changes timestamps on it, which is the wrong habit for evidence.

The two tables that matter

moz_places holds one row per URL. moz_historyvisits holds one row per visit and points back to the URL through place_id. Join them:

SELECT datetime(v.visit_date/1000000, 'unixepoch') AS visited, p.url FROM moz_historyvisits v JOIN moz_places p ON p.id = v.place_id ORDER BY v.visit_date; 

Now you have a list of what was opened and when, in order. Times are in UTC, so note the machine's timezone before you write anything in a report.

Read it like a story, not a list

Raw rows hide the point. Look for these:

  • A run of visits seconds apart is usually a redirect chain or an automatic reload, not a person clicking.
  • A long gap followed by a burst often marks someone sitting down at the keyboard.
  • A download page, then a visit to a file URL, then silence, tells you what to look for in the downloads folder next.

The visit_type column records how a page was reached (typed, link, redirect, and so on), which helps separate a user typing an address from a page that sent them there.

A worked reading

Suppose the output shows a search, three pages on a file-sharing site within a minute, then a visit to a URL ending in .zip\, then nothing for forty minutes. None of that proves intent. It does give you a sequence to test: check the downloads folder for that archive, compare its timestamp to the visit, and see whether anything ran after it. History points you at the next artifact; it rarely settles the question alone.

What history cannot tell you

An empty history does not mean nothing happened. Private browsing writes nothing here, and clearing history removes rows, though leftover pages in the database file can sometimes still be recovered. Write down what the file shows and what it cannot show, and keep the two apart.

Practice it

Codelivly has a free browser history forensics CTF where you query places.sqlite to rebuild user activity. Try the join above first, then work out the order of events before you check any hints.

If the surrounding network traffic is the part you find unfamiliar, the Networking Fundamentals path covers addressing and protocols in five rooms.