Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 4.11 KB

firefox-places-sqlite.md

File metadata and controls

68 lines (42 loc) · 4.11 KB

Firefox places.sqlite Database

places.sqlite is the SQLite database file that stores history for Mozilla's Firefox browser. It also stores additional data such as favicons, bookmarks, and input history (used for autofill).

Analysis Value

  • Browser - History
  • Browser - Bookmarks

Operating System Availability

  • Systems with Mozilla Firefox installed

Artifact Location(s)

  • %UserProfile%\AppData\Roaming\Mozilla\Firefox\Profiles\{FIREFOX_PROFILE}\places.sqlite*

Artifact Parsers

Artifact Interpretation

The following tables are present in this SQLite database:

Database Table Information
moz_bookmarks Bookmarks
moz_favicons Favicon store. Provides URLs for each stored favicon.
moz_historyvisits Firefox history
moz_inputhistory Input history for the URL/search bar
moz_places Stores URLs and some metadata regarding each URL such as visit frequency

Note

In newer versions of Firefox (Firefox 55.0+), the moz_favicons table has been moved to its own unique database under the same directory, favicons.sqlite.

Firefox Bookmarks

The browser bookmark data for Firefox is stored in the moz_bookmarks table of this database. It has the following structure:

FieldTypeInterpretation
fkINTPoints to id in moz_places table, provides the URL for the bookmark.
titleLONGVARCHARThe user-assigned name for the bookmark
dateAddedINTUNIX timestamp indicating when the bookmark was added
lastModifiedINTUNIX timestamp indicating when the bookmark was last modified

Firefox Favicons

The stored favicons for visited websites are stored either in the places.sqlite database for Firefox versions below 55.0, and in its own separate SQLite database favicons.sqlite for versions afterwards. The structure is as follows:

FieldTypeInterpretation
icon_urlTEXTThe URL of the original favicon
expire_msINTUNIX timestamp representing the expiration time/date for the stored favicon. By default seems to be one week from the last visit.
dataBLOBThe raw favicon data

Firefox History

The browsing history for a particular Firefox profile can be extracted from the moz_historyvisits table. It has the following structure:

FieldTypeInterpretation
place_idINTForeign key pointing to an entry in the moz_places table, which can be used to determine the URL that was visited
visit_dateINTUNIX timestamp representing the time of the visit
visit_typeINTEnumerated value, the type of visit

The following visit_type enumerations can provide additional information regarding how the site was visited:

  1. Link followed to visit the URL
  2. URL was typed and visited, or selected from an autocomplete result in the search bar
  3. URL was visited through a bookmark
  4. URL was embedded on another page
  5. URL visited through a permanent redirect (HTTP 301)
  6. URL visited through a temporary redirect (HTTP 307)
  7. URL is a downloaded resource
  8. URL was visited in a frame
  9. URL was visited because the page was reloaded