Possible Bug With Sigma Parser #13999
-
Version2.4.110 Installation MethodSecurity Onion ISO image Descriptionother (please provide detail below) Installation TypeDistributed Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPU20 RAM64 GB Storage for /2 TB Storage for /nsm12 TB Network Traffic Collectiontap Network Traffic SpeedsLess than 1Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsYes, there are additional clues in /opt/so/log/ (please provide detail below) DetailSecurity Onion can not ingest these Sigma rules if the same field/modifier combination is used within a given select statement. I can't tell if this is an issue with the Sigma parser used by Security Onion, or if these rules are actually incorrect according to the Sigma schema. I noticed this when troubleshooting an issue ingesting Sigma rules from a private repo as documented in this issue. Here's the relevant logs with the repo file names redacted:
Note that the parser uses the field and modifier combination to create a key, presumably for a key value pair for a hash table. Since each key must be unique, these rules are not ingested. I have reported this to the private repo in hopes they will re-write the rules for better compatibility. I haven't been able to find anything that definitely says this is not allowed according to the sigma syntax/schema, so I'm reporting it in case the parser is something unique to security onion that could be modified to account for this. It's possible rules from other repositories are also written this way, and my interpretation is that they are using these with an implied "AND" between the two lists. For example, attempting to detect ping OR netstat where the output is being processed by find OR redirected. selection: I realize these should be multiple selection statements, but there is an implicit AND between all fields in a selection statement, so I don't see why this couldn't be implemented and hold true even if the field is included twice with the same modifier. Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Im looking into this. |
Beta Was this translation helpful? Give feedback.
-
I believe this was fixed upstream. If not, go ahead and reopen. |
Beta Was this translation helpful? Give feedback.
I believe this was fixed upstream. If not, go ahead and reopen.