- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-14-2025 12:33 PM
Hello everyone,
I was trying to check all the downloaded exe's via firewall on all the endpoints in past 24hrs. I tried retrieving all downloaded exe's in downloads folder with the help of this query below.
dataset = xdr_data
| filter event_type = ENUM.FILE
| filter action_file_path contains "Downloads" and action_file_path contains "C:\Users\"
Can anyone help me with this.
Thank you
01-15-2025 09:09 AM
Hello @Malayamarutham ,
Thanks for reaching out on LiveCommunity!
You can try below query as a sample and modify it as per your requirement:
dataset = xdr_data
| filter event_type = File and event_sub_type in (ENUM.FILE_CREATE_NEW , ENUM.FILE_WRITE, ENUM.FILE_RENAME ) and (action_file_path contains """\\Downloads\\""" or action_file_path contains "/Downloads/")
| fields actor_process_image_name, agent_hostname, actor_effective_username, event_type, event_sub_type, action_file_name, action_file_path, action_file_extension, action_file_sha256
If you feel this has answered your query, please let us know by clicking on "mark this as a Solution".
Thank you.
01-15-2025 09:48 AM
Thank a ton for that. That really helped in retrieving the all EXE files downloaded via internet, likely through firewall and filtered or monitored by Zscaler. So, do I need to join paloalto traffic raw dataset to it? It's a little confusing.
dataset = xdr_data
| filter event_type = File and event_sub_type in (ENUM.FILE_CREATE_NEW , ENUM.FILE_WRITE, ENUM.FILE_RENAME ) and (action_file_path contains """\\Downloads\\""" or action_file_path contains "/Downloads/")
| fields actor_process_image_name, agent_hostname, actor_effective_username, event_type, event_sub_type, action_file_name, action_file_path, action_file_extension, action_file_sha256
| join (
dataset= panw_ngfw_traffic_raw
| filter dest_port in (80,443) // Focus on web traffic (HTTP/HTTPS)
| filter ap[p in ("web-browsing", "ssl") // Application types for internet downloads
) on action_networks_session_id = session_id
I tried this but doesn't work. Truly appreciate your help.
01-29-2025 01:21 AM
What exactly you are trying to achieve now? Can you please confirm?
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!