Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

SQLite Chromium Profile Data DB Access

HighTest-data validatedSigmaHQ (community)T1005T1539T1555.003

Overview

Detect usage of the "sqlite" binary to query databases in Chromium-based browsers for potential data stealing.

Rule id
24c77512-782b-448a-8950-eddb0785fc71
ATT&CK techniques
T1005 Data from Local System, T1539 Steal Web Session Cookie, T1555.003 Credentials from Password Stores: Credentials from Web Browsers
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
The Gentlemen, qilin, Akira, safepay, rhysida

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

2 of 2 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · 24c77512-782b-448a-8950-eddb0785fc71

Download
title: SQLite Chromium Profile Data DB Access
id: 24c77512-782b-448a-8950-eddb0785fc71
status: test
description: Detect usage of the "sqlite" binary to query databases in Chromium-based browsers for potential data stealing.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/84d9edaaaa2c5511144521b0e4af726d1c7276ce/atomics/T1539/T1539.md#atomic-test-2---steal-chrome-cookies-windows
    - https://blog.cyble.com/2022/04/21/prynt-stealer-a-new-info-stealer-performing-clipper-and-keylogger-activities/
author: TropChaud
date: 2022-12-19
modified: 2023-01-19
tags:
    - attack.credential-access
    - attack.t1539
    - attack.t1555.003
    - attack.collection
    - attack.t1005
logsource:
    category: process_creation
    product: windows
detection:
    selection_sql:
        - Product: SQLite
        - Image|endswith:
              - '\sqlite.exe'
              - '\sqlite3.exe'
    selection_chromium:
        CommandLine|contains:
            - '\User Data\' # Most common folder for user profile data among Chromium browsers
            - '\Opera Software\' # Opera
            - '\ChromiumViewer\' # Sleipnir (Fenrir)
    selection_data:
        CommandLine|contains:
            - 'Login Data' # Passwords
            - 'Cookies'
            - 'Web Data' # Credit cards, autofill data
            - 'History'
            - 'Bookmarks'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: SQLite Chromium Profile Data DB Access
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_sql (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • custom property needed: Product is equal to (case-insensitive): SQLite
      No QRadar property mapped for "Product": create a custom event property (regex or JSON) on the DSM first.
    • Process Path / Process Name ends with: \sqlite.exe, \sqlite3.exe
  • BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_chromium (match)
    All test lines must match (AND).
    • Command contains: \User Data\, \Opera Software\, \ChromiumViewer\
  • BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_data (match)
    All test lines must match (AND).
    • Command contains: Login Data, Cookies, Web Data, History, Bookmarks

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: (ALL of [BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_sql, BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_chromium, BB:OffSet7:SQLite Chromium Profile Data DB Access:selection_data])

Main rule, option B (AQL filter test)

Not available: the AQL conversion failed for this rule.

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • AQL conversion failed (field 'Product' is not supported); only the building-block design is available.
  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

(Product="SQLite" OR Image IN ("*\\sqlite.exe", "*\\sqlite3.exe")) (CommandLine IN ("*\\User Data\\*", "*\\Opera Software\\*", "*\\ChromiumViewer\\*")) (CommandLine IN ("*Login Data*", "*Cookies*", "*Web Data*", "*History*", "*Bookmarks*"))

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[SQLite Chromium Profile Data DB Access]
description = Detect usage of the "sqlite" binary to query databases in Chromium-based browsers for potential data stealing.
search = (Product="SQLite" OR Image IN ("*\\sqlite.exe", "*\\sqlite3.exe")) (CommandLine IN ("*\\User Data\\*", "*\\Opera Software\\*", "*\\ChromiumViewer\\*")) (CommandLine IN ("*Login Data*", "*Cookies*", "*Web Data*", "*History*", "*Bookmarks*"))

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imProcessCreate
| where (TargetProcessFileProduct =~ "SQLite" or (TargetProcessName endswith "\\sqlite.exe" or TargetProcessName endswith "\\sqlite3.exe")) and (TargetProcessCommandLine contains "\\User Data\\" or TargetProcessCommandLine contains "\\Opera Software\\" or TargetProcessCommandLine contains "\\ChromiumViewer\\") and (TargetProcessCommandLine contains "Login Data" or TargetProcessCommandLine contains "Cookies" or TargetProcessCommandLine contains "Web Data" or TargetProcessCommandLine contains "History" or TargetProcessCommandLine contains "Bookmarks")

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceProcessEvents
| where (ProcessVersionInfoProductName =~ "SQLite" or (FolderPath endswith "\\sqlite.exe" or FolderPath endswith "\\sqlite3.exe")) and (ProcessCommandLine contains "\\User Data\\" or ProcessCommandLine contains "\\Opera Software\\" or ProcessCommandLine contains "\\ChromiumViewer\\") and (ProcessCommandLine contains "Login Data" or ProcessCommandLine contains "Cookies" or ProcessCommandLine contains "Web Data" or ProcessCommandLine contains "History" or ProcessCommandLine contains "Bookmarks")

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

(process.pe.product:SQLite OR (process.executable:(*\\sqlite.exe OR *\\sqlite3.exe))) AND (process.command_line:(*\\User\ Data\\* OR *\\Opera\ Software\\* OR *\\ChromiumViewer\\*)) AND (process.command_line:(*Login\ Data* OR *Cookies* OR *Web\ Data* OR *History* OR *Bookmarks*))

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where (process.pe.product:"SQLite" or (process.executable like~ ("*\\sqlite.exe", "*\\sqlite3.exe"))) and (process.command_line like~ ("*\\User Data\\*", "*\\Opera Software\\*", "*\\ChromiumViewer\\*")) and (process.command_line like~ ("*Login Data*", "*Cookies*", "*Web Data*", "*History*", "*Bookmarks*"))

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where (process.pe.product=="SQLite" or ends_with(process.executable, "\\sqlite.exe") or ends_with(process.executable, "\\sqlite3.exe")) and (process.command_line like "*\\\\User Data\\\\*" or process.command_line like "*\\\\Opera Software\\\\*" or process.command_line like "*\\\\ChromiumViewer\\\\*") and (process.command_line like "*Login Data*" or process.command_line like "*Cookies*" or process.command_line like "*Web Data*" or process.command_line like "*History*" or process.command_line like "*Bookmarks*")

No working conversion: IBM QRadar AQL (hunting query) (QRadar AQL backend has no property mapping for field "Product")

Required telemetry

Log source
product: windows · category: process_creation
Fields used
CommandLine Image Product

False positives

  • Unknown

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
TropChaud
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_sqlite_chromium_profile_data.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules