-
Notifications
You must be signed in to change notification settings - Fork 76
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
[BUG] Tag must start with "attack" when creating detection rule #769
Comments
The error comes from a frontend validation here: https://github.com/opensearch-project/security-analytics-dashboards-plugin/blob/main/public/pages/Rules/components/RuleEditor/RuleEditorForm.tsx#L80-L92 I removed this validation and tested the following:
All of these worked with no errors on the backend. @sbcd90 do you have any context on why the frontend validation would have been added? I don't see any context in the PR that introduced it: opensearch-project/security-analytics-dashboards-plugin#622 |
I would like to shine more light on this issue. This is a decent issue with porting SIGMA rules from other sources as they do not follow this, what seems arbitrary, restriction. I currently automate our loading of SIGMA rules from a repo to OS via API and having to scrub tag names and add attack. to the start of them is not ideal, and is misleading for a lot of tags. For example if we tag a rule winlogbeat as it works on that dataset, it will have to be attack.winlogbeat in the tag which does not make sense for a rule looking for sysmon configuration changes. I will also note that the preloaded rules in OS do not follow this restriction. Example: This is a preloaded rule in OS and one of the tags does not follow the restriction placed on users. |
Any update on this issue? |
Wondering if a fix might be coming for this in 2.15? Thanks |
What is the bug?
When creating a detection rule, an exception is thrown by the create/update rule API if a tag does not start with
attack
.How can one reproduce the bug?
Steps to reproduce the behavior:
Detection rules
pageWhat is the expected behavior?
Rule gets created but instead it shows error that tag must start with
attack
What is your host/environment?
Do you have any screenshots?
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: