Query Details
// CVE-2025-22224 (CVSS 9.3 CRITICAL) Internet facing VMware server discovery // https://www.bleepingcomputer.com/news/security/over-37-000-vmware-esxi-servers-vulnerable-to-ongoing-attacks/ let InternetFacing = DeviceInfo | where IsInternetFacing == true and isnotempty(PublicIP) | distinct DeviceId; DeviceProcessEvents | where Timestamp > ago(30d) | where FileName has "vmtoolsd" | summarize arg_max(Timestamp, *) by DeviceId | where DeviceId has_any(InternetFacing)
This query is designed to identify internet-facing VMware servers that might be vulnerable to a specific critical security vulnerability (CVE-2025-22224). Here's a simplified breakdown of what the query does:
Identify Internet-Facing Devices:
DeviceInfo to find devices that are accessible from the internet (IsInternetFacing == true) and have a public IP address (isnotempty(PublicIP)).DeviceId) for these internet-facing devices.Check for VMware Processes:
DeviceProcessEvents to find events from the last 30 days (Timestamp > ago(30d)) where the process name includes "vmtoolsd", which is associated with VMware tools.arg_max(Timestamp, *)), effectively finding the latest occurrence of the "vmtoolsd" process for each device.Filter for Internet-Facing Devices:
DeviceId has_any(InternetFacing)).In summary, this query is used to discover internet-facing VMware servers that have recently run the "vmtoolsd" process, potentially indicating they are vulnerable to the specified critical security issue.

Steven Lim
Released: March 7, 2025
Tables
Keywords
Operators