All Apps and Add-ons

Blacklist EventCode=4688 Not working with renderXml=true

seanjconnell
Explorer

I was previously using the Seckit template for windows collection given to me by professional services and I noticed that the Splunk*.exe regex they are using was not working with the new xml tags as advertised. This is also in docs as a recommended stanza.

 [WinEventLog://Security]
     renderXml = true
     disabled = false
     evt_resolve_ad_obj = true
     blacklist1 = EventCode="4662" Message="Object Type:\s+(?!groupPolicyContainer)"
     blacklist2 = EventCode="566" Message="Object Type:\s+(?!groupPolicyContainer)"
     blacklist3 = EventCode="4688" Message="New Process Name: (?i)(?:[C-F]:\Program Files\Splunk(?:UniversalForwarder)?\bin\(?:btool|splunkd|splunk|splunk-(?:MonitorNoHandle|admon|netmon|perfmon|powershell|regmon|winevtlog|winhostinfo|winprintmon|wmi)).exe)"

I figured because Message isn't the field that is there anymore so I modified it for the Xml tags and it is still not working

[WinEventLog://Security]
     renderXml = true
     disabled = false
     evt_resolve_ad_obj = true
     blacklist1 = EventCode="4662" Message="Object Type:\s+(?!groupPolicyContainer)"
     blacklist2 = EventCode="566" Message="Object Type:\s+(?!groupPolicyContainer)"
     blacklist3 = EventID="4688" NewProcessName=((?i)(?:[C-F]:\\Program Files\\(Splunk|SplunkUniversalForwarder)\\bin\\(?:btool|splunk|splunkd|splunk-(?:MonitorNoHandle|admon|netmon|perfmon|powershell|regmon|winevtlog|winhostinfo|winprintmon|wmi))\.exe)
0 Karma
1 Solution

spayneort
Contributor

dstaulcu
Builder

Any idea what version of Splunk Universal forwarder introduced the $xmlRegex option?

0 Karma

seanjconnell
Explorer
blacklist3 = $XmlRegex="<EventID>4688<\/EventID>.*<Data Name='NewProcessName'>[C-F]:\\Program Files\\Splunk(?:UniversalForwarder)?\\bin\\(?:btool|splunkd|splunk|splunk-(?:MonitorNoHandle|admon|netmon|perfmon|powershell|regmon|winevtlog|winhostinfo|winprintmon|wmi))\.exe"

 

gathered from

 

https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-blacklist-Windows-Security-Events-in-XML... 

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...