🖥️
Windows DFIR
  • Introduction
  • Windows Artifacts
    • Windows Quick Tips
      • Windows Command Line
      • Workstation File/Folder Locations
      • Server File/Folder Locations
    • Account Usage
      • Authentications SAM Artifacts
        • Last Login
        • Last Failed Login
        • Last Password Change
      • Authentications (Windows Event Log)
        • Logon ID
      • Group Membership
        • Event ID: 4798
        • Event ID: 4799
      • RDP
        • Source System Artifacts - Quick Reference
        • Destination System Artifacts - Quick Reference
      • SSH
      • Rouge Local Accounts
      • CrowdStrike Searches
        • Event Name - UserLogon
        • Event Name - UserLogonFailed
        • Event Name - UserLogonFailed2
        • Event Name - SsoApplicationAccess
    • Browser Usage
      • History & Downloads
        • Viewing History Files - DB Browser
        • Transition Types
      • Auto-Complete Data
      • Bookmarks
      • Browser Preferences
      • Cache
      • Cookies
      • Extensions
      • Super Cookies (HTML5 Web Storage)
      • Media History
      • Private Browsing
      • Session Restore
      • Stored Credentials
      • Suggested/Frequent Sites
      • DB Browser Queries
        • Firefox
        • Chrome
        • Media History
      • PowerShell Scripts
        • Browser Extension Finder
        • Browser History Finder
    • Processes
      • at.exe
      • explorer.exe
      • lsass.exe
      • lsaiso.exe
      • PuTTy.exe
        • X11 Forwarding
      • runtimebroker.exe
      • services.exe
      • smss.exe
      • System
      • svchost.exe
        • Services
      • winlogon.exe
      • wininit.exe
    • Cloud Storage
    • Deleted File or File Knowledge
      • WordWheelQuery (Win 7+)
      • ACMRU (Win XP)
      • Internet Explorer file:///
      • Last Visited MRU
      • Thumbs.db (Win XP)
      • Thumbcache
      • Recycle Bin
      • User Typed Paths
      • Windows Search Database
    • File Download
      • Zone.Identifer
      • Open/Save Most Recently Used (MRU)
      • Email
      • Drive By Downloads
        • Malvertising
      • Web Browsing
        • Cache Files
      • CrowdStrike Searches
        • MoTW
    • Folder/File Opening/Creation
      • Recent Files
      • Office Recent Files
      • Shell Bags
      • .lnk Files
      • Jump Lists
        • AppIDs
      • Prefetch
      • Index.dat file://
      • PowerShell Scripts
        • .lnk Files
    • Persistence
      • Registry
        • NTUSER.DAT & HKU\SID
        • Run and Run Once
        • Shell Folders and UserInit Key
        • Services
        • Logon Scripts
        • Office Add-ins
        • Winlogon Shell
        • Image File Execution Options (IFEO)
        • AppInit_DLLs
        • Scheduled Tasks
      • Scheduled Tasks
        • Scheduled Task Destination System Artifacts
        • Scheduled Task Source System Artifacts
      • Startup
      • Tool: AutoRuns
      • Accounts
      • WMI Event Consumers
        • WMI: Source System Artifacts
        • WMI: Destination System Artifacts
        • WMI: PowerShell Analysis
      • PowerShell Scripts
        • Startup Programs
      • CrowdStrike Searches
        • Files Written to Startup Folder
        • Files Written to Startup Folder from the Internet
        • Local Account Creation/Deletion
        • Azure Account Creation/Deletion
        • Scheduled Tasks
    • Physical Location
      • Time zone
      • Wireless SSID
      • Network History (Vista/Win7–11)
      • Cookies
      • Browser Search Terms
    • Program Execution
      • Prefetch
        • Decoding Prefetch Files with Eric Zimmerman's PECmd Tool
      • BAM/DAM
      • CapabilityAccessManager
      • UserAssist
      • Last Visited MRU
      • RunMRU
      • MUI Cache
      • ShimCache
      • Amcache
      • Jump Lists
    • Shadow Copies
      • VSC Permissions
      • Event ID 8193: Volume Shadow Copy Service Error
    • USB Usage
      • Key Identification
      • Drive Letter and Volume Name
      • Connection Timestamps
      • User
      • Volume Name
      • Plug & Play Event Log
    • Windows Services
      • DoSvc (Delivery Optimization)
    • System Information
    • Event IDs
      • Authentication / Account
        • 4624 - Authentication Success
          • Logon Types
        • 4625 - Authentication Failure
          • SubStatus Codes
        • 4634 - Account Logoff
        • 4648 - Explicit Credentials Success
        • 4672 - Special Privileges
        • 4720 - Account Creation
        • 4722 - Account Enabled
        • 4732 - Addition to Local Group
        • 4738 - Account Changed
        • 4776 - Kerberos Authentication Attempt
          • Substatus Codes
        • 4771 - Kerberos Failure
        • 4768
      • File System
        • 1006
        • 4688 - Process Created
        • 4663
        • 4656
        • 6416
        • 20001
        • 20003
  • Windows DFIR & MITTR
    • Initial Access
      • Content Injection
      • Drive-by Compromise
        • Watering Hole Attack
        • Microsoft Files (Payload Execution)
        • Exploit Delivery
        • Viewing Browser History Files
      • Phishing
    • Execution
    • Persistence
    • Privilege Escalation
    • Defense Evasion
    • Credential Access
      • Logon ID
    • Discovery
    • Lateral Movement
    • Collection
    • Command and Control
    • Exfiltration
    • Impact
  • SOC Related
    • Cached Credentials
    • Domain Controller Password Spraying
Powered by GitBook
On this page
  • Analyzing Cookies for Physical Location
  • Cookie Locations by Browser
  • Internet Explorer / Microsoft Edge (Legacy)
  • Firefox
  • Chrome
  • Steps to Analyze Cookies
  • Forensic Importance
  • Considerations

Was this helpful?

  1. Windows Artifacts
  2. Physical Location

Cookies

Cookies are small pieces of data stored on a user's device by web browsers to remember stateful information or record the user's browsing activity. While primarily used for session management, personalization, and tracking, cookies can also provide forensic investigators with insights into a user's internet activities, including visited websites and potentially, the physical locations accessed through those websites.

Analyzing Cookies for Physical Location

Cookies can contain information that, directly or indirectly, hints at a user's physical location. This could be through:

  • Geo-location data stored by websites that request location access.

  • Timezone information which can be used to infer a geographical region.

  • IP addresses that can be geolocated to specific areas.

  • Location-specific preferences or content settings within websites.

Cookie Locations by Browser

Internet Explorer / Microsoft Edge (Legacy)

  • Windows XP: %userprofile%\Cookies

  • Windows 7–10:

    • %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies

    • %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies\Low

Firefox

  • Windows XP: %userprofile%\Application Data\Mozilla\Firefox\Profiles\<random text>.default\cookies.sqlite

  • Windows 7–10: %userprofile%\AppData\Roaming\Mozilla\Firefox\Profiles\<random text>.default\cookies.sqlite

Chrome

  • All Versions: %userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cookies

The cookie storage for Chrome is in a SQLite database named Cookies. Chrome does not store cookies in plain text files like Internet Explorer or older versions of browsers.

Steps to Analyze Cookies

  1. Locate and Access Cookie Stores: Navigate to the file paths mentioned above based on the browser and Windows version. Use tools like Windows Explorer, command line, or forensic software to access these locations.

  2. Extract Cookies Data:

    • For Internet Explorer, cookies might be stored as individual text files.

  3. Identify Relevant Cookies: Look for cookies related to specific services that use location data (e.g., mapping services, weather sites, or any service that customizes content based on location). Pay attention to cookie names that might suggest location storage or preferences.

  4. Analyze Cookie Contents: Use SQL queries for SQLite databases or text editors for individual files to examine the contents of the cookies. Look for JSON strings, key-value pairs, or other data formats that contain location identifiers, IP addresses, or timezone information.

  5. Correlate Location Data: Where possible, correlate the extracted location data with external information sources like IP geolocation databases to ascertain more precise physical location details.

  6. Document Findings: Keep detailed records of the cookies analyzed, the inferred locations, and any correlation with known user activities or events.

Forensic Importance

  • Investigative Leads: Cookies can reveal locations that a user may have interacted with, providing leads for further investigation.

  • Corroboration of Evidence: Location data from cookies can corroborate other digital evidence, supporting hypotheses about a user's whereabouts or actions.

  • Timeline Construction: Timestamps associated with cookies can help construct a timeline of a user's online activities, including when specific locations were accessed.

Considerations

  • Privacy and Legal Restrictions: Ensure adherence to privacy laws and guidelines when accessing and analyzing cookies, particularly those containing personal or sensitive information.

  • Browser Configuration and Cleaning Tools: Be aware that browser settings, privacy modes, or the use of cleaning tools may affect the availability and longevity of cookies on a system.

PreviousNetwork History (Vista/Win7–11)NextBrowser Search Terms

Last updated 1 year ago

Was this helpful?

For Firefox and Chrome, cookies are stored in SQLite databases. You can usetools to open cookies.sqlite for Firefox and Cookies for Chrome.

SQLite browser