Query: All vulnerabilities under 29 days

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

Query: All vulnerabilities under 29 days

L0 Member

I created this query to identify all vulnerabilities under 29 days: 

 

dataset = va_cves
| alter days = timestamp_diff(current_time(),publication_date ,"DAY")
| filter days > 0 and days < 30
|arrayexpand affected_hosts

Is there a way to tie in IP Addresses from a different dataset (e.g. dataset = endpoints) and match them to the computer names within the endpoint_name field?

1 REPLY 1

L5 Sessionator

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

 

You can try this XQL query:

 

dataset = va_cves
| alter days = timestamp_diff(current_time(),publication_date ,"DAY")
| filter days > 0 and days < 30
|arrayexpand affected_hosts
| join (dataset = endpoints | fields endpoint_name as Hostname, ip_address as IP) as endpoints endpoints.Hostname = affected_hosts
| fields Hostname, IP, name, affected_products, severity_score, os_type, description, severity

 

You can add the required fields as you need.

 

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

JM
  • 286 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!