Skip to content

Retain correlation context fields in Splunk stats output - #68

Open
theluckydraco-stack wants to merge 3 commits into
SigmaHQ:mainfrom
theluckydraco-stack:fix/correlation-context-fields
Open

Retain correlation context fields in Splunk stats output#68
theluckydraco-stack wants to merge 3 commits into
SigmaHQ:mainfrom
theluckydraco-stack:fix/correlation-context-fields

Conversation

@theluckydraco-stack

Copy link
Copy Markdown

Summary

Fixes #40.

pySigma already collects correlation fields from the correlation rule and its
referenced rules, deduplicates them, and excludes fields used by group-by.
This change makes the Splunk backend consume that generic {fields} value in
its aggregation templates.

Changes

  • add {fields} to the Splunk event_count, value_count, temporal, and
    temporal_extended stats templates
  • render retained fields as values(<field>) as <field>
  • update the previous regression test that asserted context fields were discarded
  • add coverage for deduplication, group-by exclusion, value-count correlations,
    and temporal correlations

Behaviour

A rule containing:

fields:
  - process_path
  - process_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: Using the fields: key to define the values() from a |stats command in correlation searches

1 participant