opensearch-project / opensearch-project/security-analytics
[BUG] Invalid condition for 1 of pattern, all of pattern condition
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 111
- Forks
- 111
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 13
Description
What is the bug?
Sigma documentation ( Advanced Conditions: 1 of search pattern )
condition: 1 of selection* is considered as invalid
How can one reproduce the bug?
Steps to reproduce the behavior:
- Go to /app/opensearch_security_analytics_dashboards#/import-rule
- Import Rule
- Import following rule
title: DEWMODE Webshell Access
description: Detects access to DEWMODE webshell as described in FIREEYE report
logsource:
category: webserver
detection:
selection1:
c-uri|contains|all:
- '?dwn='
- '&fn='
- '.html?'
selection2:
c-uri|contains|all:
- '&dwn='
- '?fn='
- '.html?'
condition: 1 of selection*
What is the expected behavior?
It should allow
What is your host/environment?
- OS: ubuntu
- Version 22.04
Do you have any screenshots?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the /app/opensearch_security_analytics_dashboards#/import-rule flow and reproduce the import with the supplied Sigma rule. Trace how the condition 1 of selection* is validated, then verify that the rule imports successfully without marking the condition invalid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100