Skip to content

[BUG] Importing a Sigma rule with count() aggregation returns an error #861

@xeniatup

Description

@xeniatup

What is the bug?
Importing a rule with aggregation throws an error.

Screenshot 2024-01-30 at 2 46 16 PM It looks like `count()` is not supported, and OpenSearch requires `count(*)`, which is not consistent with Sigma syntax.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to 'http://localhost:5601/app/opensearch_security_analytics_dashboards#/import-rule'
  2. Click on 'Create rule'
  3. Switch to YAML editor
  4. Paste the rule
  5. Select "Create detection rule"
  6. See error

What is the expected behavior?
Ideally OpenSearch should convert Sigma into a valid detection rule behind the scenes when the difference in syntax is known.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions