opensearch-project / opensearch-project/security-analytics

[BUG] Invalid condition for 1 of pattern, all of pattern condition

Open
#987 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Go to /app/opensearch_security_analytics_dashboards#/import-rule
  2. Import Rule
  3. 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?
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.