Getting Data In

Blacklist Windows security event log with system account

s0mar
Explorer

I am trying to filter out noise before it is sent to the indexer. We were using Windows Event Forwarding previously, that was able to filter but now I am trying to create the same filter. I am modifying inputs.conf on the server running a Universal Forwarder.

So, we are trying to filter out:
Event ID = 4688
SubjectLogonId = 0x3e7 (the local system account)

AND a list of processes that includes the full path, for example:

C:\Windows\System32\SearchFilterHost.exe
C:\Windows\SysWOW64\SearchProtocolHost.exe

I believe there are 12 or so in total.

It seems like this is doable, but it is recommended? If so, how?

I have not tested and will have to verify the variable names.

blacklist3 = EventCode="4688" SubjectLogonId="0x3e7" NewProcessName="C:\Windows\System32\SearchFilterHost.exe" | "C:\Windows\SysWOW64\SearchProtocolHost.exe"

I am thinking it will not be that simple and will need regex for SubjectLogonId AND NewProcessName. I am not sure if that is possible.

Thanks in advance for any guidance.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The Universal Forwarder (UF) does not have the ability to filter data. Only heavy forwarders (HF) and indexers can do that. If you're set on not sending the events to your indexers then replace the UF with a HF. You'll probably get better performance, however, by keeping the UF and doing the filtering on the indexers (at the expense of network traffic, of course).

That said, your proposed blacklist will not work because it uses keys that are not supported in blacklists. Supported keys are: Category, CategoryString, ComputerName, EventCode, EventType, Keywords, LogName, Message, OpCode, RecordNumber, Sid, SidType, SourceName, TaskCategory, Type, User.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...