chrome-search-terms

Parses the Chrome browser's History SQLite database file and retrieves the search term history. The command converts the search keywords, URL and title of the search results page, last visit time, and other data into structured fields.

Command properties

ItemDescription
Command typeDriver query
Required permissionNone
License usageCounted
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

chrome-search-terms [zippath=STR] [zipcharset=STR] FILE_PATH

Options

zippath=STR
Path to the ZIP file containing the History file. Use this option to query a History file inside a ZIP archive.
zipcharset=STR
Character set for ZIP file entries. Default: utf-8

Target

FILE_PATH
Path to the Chrome browser's History SQLite file. Use a wildcard (*) to specify multiple files. The History file is typically located at C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\History.

Output fields

FieldTypeDescription
_timetimestampLast visit time of the search results page
keywordsstringKeywords used in the search
titlestringTitle of the search results page
urlstringURL of the search results page

Error codes

Parse errors

N/A

Runtime errors
Error codeMessageDescriptionPost-action
-cannot load chrome history database: pathUnable to read the History file at the specified pathQuery aborted

Description

The chrome-search-terms command reads the keyword_search_terms table and the urls table from the Chrome browser's History SQLite database file and retrieves the search term history.

The command first builds a mapping of URLs, titles, and last visit times from the urls table, then joins each record in the keyword_search_terms table with the corresponding URL information.

The _time field is derived from the last_visit_time column in the urls table, which is converted from Chrome's internal WebKit timestamp (in microseconds) to a timestamp type.

The term column value from the keyword_search_terms table is assigned to the keywords field.

To query a History file inside a ZIP archive, specify the ZIP file path in the zippath option and the path inside the ZIP as the target.

Examples

  1. Querying Chrome search term history

    chrome-search-terms /opt/logpresso/evidence/History
    

    Retrieves all search term history records from the History file at the specified path.

  2. Querying a History file inside a ZIP archive

    chrome-search-terms zippath=/opt/logpresso/evidence/artifacts.zip History
    

    Retrieves search term history from the History file inside a ZIP archive.

  3. Searching for a specific keyword

    chrome-search-terms /opt/logpresso/evidence/History
    | search keywords == "*logpresso*"
    

    Filters search term history that contains a specific keyword.