Skip to content

[Feature proposal] Allow for a "should not trigger" test type #326

Description

@Res260

Currently, the tests for a detection are tests that PASS if the log is found using the provided detection' search. This is great to test that the rule matches when it's supposed to match, but it cannot test the exclusions to a rule.

Proposal: Introduce the concept of test "types": "should trigger" and "should not trigger".

The behavior is very simple:

  • For a should trigger test: If the detection' search finds a log, the test PASSES. Else it FAILS.
  • For a should not trigger test: If the detection' search finds a log, the test FAILS. Else it PASSES.

I can work on this feature and contribute it to upstream. If this is not something you want, we'll keep it in our private fork.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions