S Qlite3tcc
Query
Tags:
Query:
DeviceProcessEvents
| where FileName contains "sqlite" and ProcessCommandLine contains "com.apple.TCC/TCC.db"
Reference:
https://www.loobins.io/binaries/sqlite3/
https://github.com/elastic/detection-rules/blob/e9baebc2bc18f90ae16501613cd9521a16a38ad7/rules/macos/defense_evasion_privacy_controls_tcc_database_modification.tomlExplanation
This query is searching through device process events to find instances where:
- The file name includes the term "sqlite".
- The command line used to run the process includes the path "com.apple.TCC/TCC.db".
In simple terms, it's looking for processes that involve SQLite and are interacting with the TCC database on macOS, which is related to privacy controls. The provided references give more context on the use of SQLite in this scenario and the specific detection rules for such activities.
Details

Ali Hussein
Released: October 28, 2023
Tables
DeviceProcessEvents
Keywords
Devices
Operators
DeviceProcessEvents|wherecontainsand