Splunk Enterprise Security

How do I search from a lookup to find if a URL contains a malicious domain?

anil_ec21
Explorer

Dear Splunk Experts,

I have very little experience on Splunk, need your help with my search.

I have a lookup with list of malicious domains and URLs. I need to get alerted if accessed URL contains any of the domains or URL's in lookup.

My below search isn't working!

index=paloalto
|search [inputlookup domains.csv | fields url ]
Maybe this will match only when URL is the same as in the list. Please help!
Also, we have datamodel related 'networktraffic' and 'paloalto'.. But I don't know how to use them 😞

Regards,
Anil A

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @anil_ec21,
try something like this:

index=paloalto [ | inputlookup domains.csv | rename url  AS query | fields query ]
| ...

In this way you run a full text search on the index using all the records of the lookup url field.

Ciao.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @anil_ec21,
try something like this:

index=paloalto [ | inputlookup domains.csv | rename url  AS query | fields query ]
| ...

In this way you run a full text search on the index using all the records of the lookup url field.

Ciao.
Giuseppe

0 Karma

anil_ec21
Explorer

Thank you very much for quick reply! It worked 🙂

0 Karma

anil_ec21
Explorer

My lookup csv file contains as below --
IOC
xyz.com
1.2.3.4.com/something
www.abc.com/page

and so on..!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...