Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Detect delete agent with XQL.

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

Detect delete agent with XQL.

L1 Bithead

I kindly ask for your assistance with an XDR XQL query language script to identify devices in the network that do not have the XDR agent installed. Additionally, it would be helpful if the users could be identified from AD or through the DHCP on the network."

1 accepted solution

Accepted Solutions

L2 Linker

Hi,

 

Thanks for reaching out.

You can sort unmanaged devices on your network by configuring your networks parameters in Cortex, it will scan your environment and will let you know which assets are unmanaged.

This link can help you set up your networks parameters:

https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Configure-Y...

 

Alternatively, you can run this below script (this is just an example and you might need to modify it to adjust your needs):

config case_sensitive = false
| dataset = pan_dss_raw

| alter name = rtrim(name, "$")
| filter lowercase(name) not in (dataset = endpoints | fields endpoint_name as jds_endpoint_name | alter jds_endpoint_name = lowercase(jds_endpoint_name))

| filter OS in("*Windows*", "*Linux*", "*Mac*")

| fields Name, OS, Os_Ver, last_modified_dc_record, domain_name, DN

| alter time_range = timestamp_diff(current_time(), last_modified_dc_record, "DAY")
| filter time_range < 60
| sort desc last_modified_dc_record

| dedup Name

 

If this solutions solves your issue please mark it as solved.

 

Regards.

Visit our Cortex XDR Customer Corner on Live Community to access resources for your product journey, engage in discussions with community members and subject matter experts, and register for upcoming events: Cortex XDR Customer Corner

View solution in original post

2 REPLIES 2

L2 Linker

Hi,

 

Thanks for reaching out.

You can sort unmanaged devices on your network by configuring your networks parameters in Cortex, it will scan your environment and will let you know which assets are unmanaged.

This link can help you set up your networks parameters:

https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Configure-Y...

 

Alternatively, you can run this below script (this is just an example and you might need to modify it to adjust your needs):

config case_sensitive = false
| dataset = pan_dss_raw

| alter name = rtrim(name, "$")
| filter lowercase(name) not in (dataset = endpoints | fields endpoint_name as jds_endpoint_name | alter jds_endpoint_name = lowercase(jds_endpoint_name))

| filter OS in("*Windows*", "*Linux*", "*Mac*")

| fields Name, OS, Os_Ver, last_modified_dc_record, domain_name, DN

| alter time_range = timestamp_diff(current_time(), last_modified_dc_record, "DAY")
| filter time_range < 60
| sort desc last_modified_dc_record

| dedup Name

 

If this solutions solves your issue please mark it as solved.

 

Regards.

Visit our Cortex XDR Customer Corner on Live Community to access resources for your product journey, engage in discussions with community members and subject matter experts, and register for upcoming events: Cortex XDR Customer Corner

thanks for helping

 

  • 1 accepted solution
  • 395 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!