Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Correlation rules log source condition #274

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

kelnage
Copy link
Contributor

@kelnage kelnage commented Sep 9, 2024

Rather than return false for all Correlation rules, change the behavior of the log source condition transformation to check each of the rules referenced in the Correlation rule and test their log sources for a match. The log source must fully match one or more of those rules in order to return true.

This implementation operates recursively, checking rules that are nested within correlated Correlation rules, with early termination if any of the rules match.

This was inspired by this discussion in the SigmaHQ Discord, based on @thomaspatzke's suggested solution.

Rather than return false for all Correlation rules, change the behavior
of the log source condition pipeline to check each of the rules
referenced in the Correlation rule and test their logsources. The
logsource must fully match one or more of those rules in order to return
true.

This implementation operates recursively, checking rules that are nested
within correlated Correlation rules.
@kelnage kelnage changed the title Implement Correlation rules logsource condition Implement Correlation rules log source condition Sep 9, 2024
@thomaspatzke
Copy link
Member

Great! Thanks for the PR!

@thomaspatzke thomaspatzke merged commit 571c201 into SigmaHQ:main Sep 9, 2024
15 checks passed
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.

2 participants