Skip to content

[BUG] Broken REGEX for several detections #3992

@nZzQj0hI5Vn39Mq

Description

@nZzQj0hI5Vn39Mq

Several detections have broken regular expressions in a rex command. Change occurred in #3889

Affected detections:
Detect SNICat SNI Exfiltration
Windows AD Privileged Account SID History Addition
WMI Permanent Event Subscription
WMI Temporary Event Subscription

Example - Detect SNICat SNI Exfiltration

Current search search:

    `zeek_ssl`
      | rex field=server_name "(?<snicat>(LIST
      | LS
      | SIZE
      | LD
      | CB
      | CD
      | EX
      | ALIVE
      | EXIT
      | WHERE
      | finito)-[A-Za-z0-9]{16}\.)"
      | stats count
        BY src_ip dest_ip server_name
           snicat
      | where count>0
      | table src_ip dest_ip server_name snicat
      | `detect_snicat_sni_exfiltration_filter`

Previous search syntax:

`zeek_ssl` | rex field=server_name "(?<snicat>(LIST|LS|SIZE|LD|CB|CD|EX|ALIVE|EXIT|WHERE|finito)-[A-Za-z0-9]{16}\.)"
  | stats count by src_ip dest_ip server_name snicat | where count>0 | table src_ip
  dest_ip server_name snicat | `detect_snicat_sni_exfiltration_filter`

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions