Apr 24 2023 10:16 AM
Does anyone know of a way to query the MDE IP details through Advanced hunting? I am specifically looking to add an ASN column to my KQL search results for remote IP addresses.
Apr 25 2023 06:01 AM
Aug 02 2023 01:46 AM
One way to grab ASN data would be to create a lookup table via the externaldata operator, then use the ipv4_lookup() plugin. Gyp the Cat has some nice examples laid out. The ASN data is sourced from GeoLite2 data created by MaxMind.
let CIDRASN = (externaldata (CIDR:string, CIDRASN:int, CIDRASNName:string)
['https://firewalliplists.gypthecat.com/lists/kusto/kusto-cidr-asn.csv.zip']
with (ignoreFirstRecord=true));
DeviceNetworkEvents
| where RemoteIPType == "Public"
| limit 10
| evaluate ipv4_lookup(CIDRASN, RemoteIP, CIDR, return_unmatched=true)
| extend GeoIPData = geo_info_from_ip_address(RemoteIP)