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

Elastic Security Informational Severity #70

Open
WildDogOne opened this issue Aug 9, 2024 · 0 comments
Open

Elastic Security Informational Severity #70

WildDogOne opened this issue Aug 9, 2024 · 0 comments

Comments

@WildDogOne
Copy link
Contributor

Elastic Security does now know the severity Informational.
It only understands Low, Medium, High, Critical.
Since Sigma does allow Informational (as it is designed to) there will be the possibility of getting Informational Severity (Level in Sigma)

I propose to add code to bump Severity of Informational to Low, but for example setting the riskScore to 0.

for Example in the finalize_query_siem_rule_ndjson and finalize_query_siem_rule functions
https://github.com/SigmaHQ/pySigma-backend-elasticsearch/blob/main/sigma/backends/elasticsearch/elasticsearch_eql.py#L379
https://github.com/SigmaHQ/pySigma-backend-elasticsearch/blob/main/sigma/backends/elasticsearch/elasticsearch_eql.py#L450

"riskScore": (
    0 if rule.level is not None and str(rule.level.name).lower() == "informational"
    else self.severity_risk_mapping[rule.level.name] if rule.level is not None
    else 21
),
"riskScoreMapping": [],
"severity": (
    "low" if rule.level is None or str(rule.level.name).lower() == "informational" else str(rule.level.name).lower()
),
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

No branches or pull requests

1 participant