XQL Query for CVE counts in XDR per endpoint_name

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

XQL Query for CVE counts in XDR per endpoint_name

L0 Member

does anyone have a xql query that will return endpoint_names with and associated CVE count?

1 accepted solution

Accepted Solutions

L2 Linker

va_cves or va_endpoints would contain this data.   Below are some example queries that might work.
 ======================================================

dataset = va_cves
| arrayexpand affected_hosts
| comp count(name) as Total_CVE_per_host by affected_hosts

===============================================


dataset = va_endpoints
|arrayexpand cves
|comp count(cves) by endpoint_name
==========================================
Here's the details on the schemas (va_cves and va_endpoints) https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Vulnerabili...
Here's the link to the syntax example from the pandev page for the  xql query engine integration.   You would use this with the xdr-xql-generic-query command in xsoar https://xsoar.pan.dev/docs/reference/integrations/cortex-xdr---xql-query-engine#command-example

View solution in original post

1 REPLY 1

L2 Linker

va_cves or va_endpoints would contain this data.   Below are some example queries that might work.
 ======================================================

dataset = va_cves
| arrayexpand affected_hosts
| comp count(name) as Total_CVE_per_host by affected_hosts

===============================================


dataset = va_endpoints
|arrayexpand cves
|comp count(cves) by endpoint_name
==========================================
Here's the details on the schemas (va_cves and va_endpoints) https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Vulnerabili...
Here's the link to the syntax example from the pandev page for the  xql query engine integration.   You would use this with the xdr-xql-generic-query command in xsoar https://xsoar.pan.dev/docs/reference/integrations/cortex-xdr---xql-query-engine#command-example

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