Internet Facing Devices
Query
Tags:
Query:
DeviceInfo
| where IsInternetFacing
| extend parsed = parse_json(AdditionalFields)
| where isnotempty(parsed.InternetFacingPublicScannedIp)
| project DeviceName, parsed.InternetFacingLocalIp, parsed.InternetFacingPublicScannedIp
ReferencesExplanation
Sure! Here's a simple summary of the query:
- Data Source: The query starts by looking at a table called
DeviceInfo. - Filter: It filters the data to only include devices that are facing the internet (
IsInternetFacingis true). - Parse JSON: It then parses a JSON field called
AdditionalFieldsinto a new column namedparsed. - Filter Again: It further filters the data to only include rows where the
InternetFacingPublicScannedIpfield in the parsed JSON is not empty. - Select Columns: Finally, it selects and displays three columns:
DeviceName,parsed.InternetFacingLocalIp, andparsed.InternetFacingPublicScannedIp.
In summary, this query identifies internet-facing devices and extracts specific IP information from them.
Details

Ali Hussein
Released: July 25, 2024
Tables
DeviceInfo
Keywords
Devices
Operators
whereextendparse_jsonisnotemptyproject