Adding Sigma Filters to sigma alerts #13130
-
Version2.4.70 Installation MethodSecurity Onion ISO image Descriptionconfiguration Installation TypeDistributed Locationon-prem with Internet access Hardware SpecsExceeds minimum requirements CPU16 RAM256 Storage for /250G Storage for /nsm750G Network Traffic Collectiontap 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 DetailPretty excited about the Sigma rules. But I am struggling a bit with the custom filters for the alerts. I am trying to tune the sigma.alter "Active Directory Replication from Non Machine Account". In any case, I add the name of the domain controllers as a custom filter in this format. sofilter: I test the custom filter per the docs and it converts to EQL as follows any where winlog.channel:"Security" and (winlog.channel:"Security" and (((winlog.event_data.AccessMask:"0x100" and event.code:"4662" and (winlog.event_data.Properties like~ ("1131f6aa-9c07-11d1-f79f-00c04fc2dcd2", "1131f6ad-9c07-11d1-f79f-00c04fc2dcd2", "89e95b76-444d-4c62-991a-0facbeda640c"))) and (not (user.name like~ ("$", "MSOL_")))) and (not (user.name like~ ("EGON$", "WINSTON$", "RAY$", "VENKMAN$"))))) Am I doing something wrong or is it translating the sigma to eql weirdly? Thanks! Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
When you test this EQL query in Kibana, does it work as expected? Also - take a look at one of the events that is triggering it - do the fields match up - I'm specifically thinking of these: |
Beta Was this translation helpful? Give feedback.
-
I had to modify my syntax to look like the following. I think this is now working for me to filter out users for the same alert.
If I just use "SubjectUserName" it doesn't work correctly. In my case, I should get zero results when I test in Kibana and so far it looks like it's finally filtering out correctly. |
Beta Was this translation helpful? Give feedback.
I had to modify my syntax to look like the following. I think this is now working for me to filter out users for the same alert.
If I just use "SubjectUserName" it doesn't work correctly. In my case, I should get zero results when I test in Kibana and so far it looks like it's finally filtering out correctly.