Find the responsible application in Windows for making malicious DNS requests

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Find the responsible application in Windows for making malicious DNS requests

L2 Linker

Hello everybody,

I sometimes receive alerts from our firewall blocking a malicious DNS request, but when I want to track it to the application that made that request, I just see Windows DNS cache service. Is there any way to audit specific DNS requests e.g. "gyoutube.com" ,which is actually malicious, in a Windows client using Cortex or other tools and find exactly which process made that request?

 

Many thanks,

1 accepted solution

Accepted Solutions

L4 Transporter

Hi @Arman_Zaheri, thanks for reaching us using the Live Community.

 

Try this XQL Query with your required data:

 

dataset = xdr_data
| filter agent_hostname = "Your_Hostname" //If needed
| filter event_type = ENUM.STORY 
| filter dns_query_name contains "microsoft" // Set your domain to search
| fields agent_hostname, agent_ip_addresses, actor_process_image_name, actor_process_image_path, causality_actor_process_command_line, dns_query_name 

Please let us know how it goes.

 

If this post answers your question, please mark it as the solution.

JM

View solution in original post

2 REPLIES 2

L4 Transporter

Hi @Arman_Zaheri, thanks for reaching us using the Live Community.

 

Try this XQL Query with your required data:

 

dataset = xdr_data
| filter agent_hostname = "Your_Hostname" //If needed
| filter event_type = ENUM.STORY 
| filter dns_query_name contains "microsoft" // Set your domain to search
| fields agent_hostname, agent_ip_addresses, actor_process_image_name, actor_process_image_path, causality_actor_process_command_line, dns_query_name 

Please let us know how it goes.

 

If this post answers your question, please mark it as the solution.

JM

L2 Linker

Hello again,

 

@jmazza many thanks for the quick and correct answer. I was using the following query before that utilizes "network_story" preset and usually I could find DNS requests made by a host, but not the latter one  mentioned. What's the difference between using this preset and xdr_data in this case?

 

preset= network_story
| filter (dns_query_name != null)
| arrayexpand dns_resolutions
| filter (dns_query_name contains "gyoutube")

 

  • 1 accepted solution
  • 188 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!