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
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...