Macos Base Vql

macOS Base VQL Sigma Model #

This model is designed for triage of macOS systems using VQL-based Sigma rules. The rules that use this model will be evaluated once on all events.

After all relevant rules are evaluated, the collection is complete.

Rules that utilise this model may include a vql section which may contain a VQL lambda to dictate how the event is generated. This allows the rule itself to generate all relevant fields.

For example:

vql: |
x=>dict(
  Timestamp=timestamp(epoch=now()),
  EventData=dict(
    FieldA="value",
    FieldB=SomeVQLExpression
  ))

Log Sources #

Following is a list of recognized log sources.

Log SourceDesc
vql/macos/*This log source emits a single event. All rules using the log
*/macos/tccQueries the TCC (Transparency, Consent, and Control) database

Field Mappings #

The following field mappings can be used to access fields within the event. Note that it is also possible to access the fields directly (e.g. EventData.AccessMask)

View all Field Mappings

vql/macos/* #

This log source emits a single event. All rules using the log source will receive this event, where they can run arbitrary VQL queries to build the event themselves.

This is most useful for rules that want to generate their own event data.

Details

*/macos/tcc #

Queries the TCC (Transparency, Consent, and Control) database for privacy permission grants. Returns one row per permission entry from both system-wide and per-user TCC databases.

The Velociraptor client service (LaunchDaemon) must be granted Full Disk Access to read the system-wide TCC.db.

Details