Using XDR Asset Inventory and XQL to report of machines without Cortex installed

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

Using XDR Asset Inventory and XQL to report of machines without Cortex installed

L0 Member

Hello All

 

I would like to use Asset Inventory to provide a list of each machine with os Windows and without Cortex agent installed.

The goal is to use the result in a widget for the dashboard if possible. Even better would be an api to use it with our monitoring software PRTG.

I am new to XQL and have not managed to create a query for the host_inventory dataset. 

Thank you in advance for your help

3 REPLIES 3

L4 Transporter

Hello @Claude_Schwab ,

 

Thanks for reaching out on LiveCommunity.

You can create a correlation rule or query that should identify the assets without XDR agent installed. Dataset you need is "panw_network_mapper_raw", which contain output of Network Mapper scans. You can compare this dataset with "endpoints" dataset mainly with reference to IP address. So basically, first dataset will have complete list of assets (For given IP range in Network Mapper scan) and you can subtract assets from second dataset which are having agent installed on them.

Below is an example query that you can refer and build something according to your use case.

dataset = panw_network_mapper_raw
| filter ip not in (dataset = endpoints | arrayexpand ip_address |fields ip_address )
|fields ip,hostname  

 

Please refer below document for XQL queries.

https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Get-Started-...

Hello,

Thank you for the idea with the Network Mapper.
Is there a possibility to search the Asset Inventory tables too? Since they are populated anyways by Firewall Logs ingested, they should already contain all the assets without the need for manual scans by the Network Mapper.

 

Thanks and kind regards,

Alexander

L4 Transporter

Hello @AlexHalbarth 

 

Thanks for reaching out on LiveCommunity!

Unfortunately there is no dataset available for asset inventory.

Data in asset inventory comes from a number of sources like Network mapper, XDR agent, EDR data from firewalls and logs from third party vendor. You can write query against these data sources and use functions like join and union to build your use case.

 

 

  • 1782 Views
  • 3 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!