What component is used to convert a Sigma rule to EQL query (for ElastAlert)? #15968
Version3.0.0 Installation MethodSecurity Onion ISO image Descriptionother (please provide detail below) Installation TypeDistributed Locationon-prem with Internet access Hardware SpecsMeets minimum requirements CPU4 RAM24GB Storage for /200GB (manager) Storage for /nsmshared with root partition Network Traffic Collectionother (please provide detail below) Network Traffic Speeds1Gbps to 10Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsNo, there are no additional clues DetailIf possible, the community might benefit from a little more detail (or documentation) about how Sigma rules are converted to the EQL query that ends up in the ElastAlert rule's A concrete example of unexpected convertion logic is that a Sigma detection like this... ...will end up as an EQL query like this: That EQL query will only work if the "event_type_id" field is being mapped as a keyword, and will cause an error if the field is mapped as a number, which is what the Sigma syntax is written for. Also, many people are eagerly looking forward to Sigma correlations being implemented in the future, so wishing the Team luck! Guidelines
|
Replies: 1 comment
|
We use the official pySigma converter with the elasticsearch-backend. (https://github.com/SigmaHQ/pySigma-backend-elasticsearch) You probably want to look over our pipeline: https://github.com/Security-Onion-Solutions/securityonion/blob/3/main/salt/soc/files/soc/sigma_so_pipeline.yaml There are certain places where we convert to a datatype to make sure it is compatible with how we ingest logs, for example: https://github.com/Security-Onion-Solutions/securityonion/blob/3/main/salt/soc/files/soc/sigma_so_pipeline.yaml#L235 Can you give me an example Sigma rule that uses event_type_id in the way that you describe? |
We use the official pySigma converter with the elasticsearch-backend. (https://github.com/SigmaHQ/pySigma-backend-elasticsearch)
You probably want to look over our pipeline: https://github.com/Security-Onion-Solutions/securityonion/blob/3/main/salt/soc/files/soc/sigma_so_pipeline.yaml
There are certain places where we convert to a datatype to make sure it is compatible with how we ingest logs, for example: https://github.com/Security-Onion-Solutions/securityonion/blob/3/main/salt/soc/files/soc/sigma_so_pipeline.yaml#L235
Can you give me an example Sigma rule that uses event_type_id in the way that you describe?