Splunk Enterprise Security

How to find sources contacting a destination from previous results?

teleworm
New Member

Hi,

I have the following search that allows me to internal IPs contacting destinations categorized as CnC in Emerging Threats

| tstats `summariesonly` prestats=true count from datamodel=Network_Traffic where * nodename=All_Traffic by _time, All_Traffic.src All_Traffic.dest All_Traffic.dest_port, All_Traffic.action 
| `drop_dm_object_name("All_Traffic")` 
| `et_ip_lookup(IP=dest)` 
| search rep_category_name="CnC" src=10.0.0.0/8
| table _time, src, dest, dest_port, ports, rep_score, action

And the opposite (external as source):

| tstats `summariesonly` prestats=true count from datamodel=Network_Traffic where * nodename=All_Traffic by _time, All_Traffic.src All_Traffic.dest All_Traffic.dest_port, All_Traffic.action 
| `drop_dm_object_name("All_Traffic")` 
| `et_ip_lookup(IP=src)` 
| search rep_category_name="CnC"
| table _time, src, dest, dest_port, ports, rep_score, action

I'm trying to find a way to do the following in the same search/results:
- Get the list of the internal to external CnC
- Then search for callbacks: internal to external, followed by external to internal in a short time frame (few seconds)

I'm pretty new to Splunk. I tried various things, like join or a saved search with appendcols but I am unable to achieve the result I want. Anyway, this can be done?

Thanks!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog
Get Updates on the Splunk Community!

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...