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

feat: filter by event name in rules #112

Merged
merged 1 commit into from
Oct 7, 2024
Merged

feat: filter by event name in rules #112

merged 1 commit into from
Oct 7, 2024

Conversation

qjerome
Copy link
Member

@qjerome qjerome commented Oct 7, 2024

This PR add a new feature simplifying detection/filtering rule writing. It allows specifying events to filter by their names instead of event id.

Example: include

name: log.mprotect_exec
params:
    filter: true
match-on:
    events:
        kunai:
            - mprotect_exec

Example: exclude

name: exclude.mprotect_exec
params:
    filter: true
match-on:
    events:
        kunai:
            # there is a - in front of event name  
            - -mprotect_exec

@qjerome qjerome merged commit 7ebea35 into main Oct 7, 2024
2 checks passed
@qjerome qjerome deleted the feat-filter-by-name branch October 7, 2024 15:28
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.

1 participant