Remote Management Tools RMM Device Network Events Domains
Query
let RMM_IOCs = externaldata(type: string, IndicatorValue: string)[@"https://raw.githubusercontent.com/jkerai1/SoftwareCertificates/refs/heads/main/Bulk-IOC-CSVs/RMM.csv"] with (format="csv", ignoreFirstRecord=True);
let DomainList = RMM_IOCs
| project IndicatorValue;
DeviceNetworkEvents
| where TimeGenerated > ago(90d)
| where RemoteUrl in~(DomainList)
| extend VT_domain = iff(isnotempty(RemoteUrl),strcat(@"https://www.virustotal.com/gui/domain/",RemoteUrl),RemoteUrl)
| summarize count() by RemoteUrl, VT_domainExplanation
This KQL (Kusto Query Language) query is designed to analyze network events on devices by checking them against a list of potentially malicious domains. Here's a simple breakdown:
-
Load External Data: The query starts by loading a CSV file from a specified URL. This file contains a list of indicators of compromise (IOCs) related to remote monitoring and management (RMM) software. The data is loaded into a table called
RMM_IOCs, with columns for the type and the indicator value (domain). -
Extract Domain List: From the
RMM_IOCstable, it extracts just the domain names (indicator values) into a list calledDomainList. -
Filter Device Network Events: The query then looks at
DeviceNetworkEventsfrom the last 90 days. It filters these events to find instances where theRemoteUrl(the URL accessed by the device) matches any domain in theDomainList. -
Create VirusTotal Links: For each matching event, it creates a link to VirusTotal, a website that provides information about the reputation of domains. This is done by appending the domain name to a base URL for VirusTotal.
-
Summarize Results: Finally, it summarizes the results by counting how many times each domain was accessed, along with the corresponding VirusTotal link.
In essence, this query helps identify and count how often devices in your network have accessed potentially risky domains, providing a quick way to investigate these domains further using VirusTotal.
Details

Jay Kerai
Released: November 11, 2024
Tables
Keywords
Operators