Query Details
# Top 10 devices with the most Critical and High vulnerabilities
----
### Defender For Endpoint
```
DeviceTvmSoftwareVulnerabilities
| where VulnerabilitySeverityLevel has_any ('critical', 'High')
| summarize count(), VulnerableCVE = make_set(CveId) by DeviceName
| top 10 by count_
```
This query is looking for the top 10 devices that have the most critical and high vulnerabilities in Defender For Endpoint. It retrieves the device names, counts the number of vulnerabilities for each device, and lists the unique CVEs (Common Vulnerabilities and Exposures) associated with each device. The results are then sorted in descending order by the vulnerability count, and only the top 10 devices are returned.

Bert-Jan Pals
Released: February 14, 2023
Tables
Keywords
Operators