Remote Image Loads
Description
This query can be used to summarize the remote image loads to a (potentially) compromised domain.
NOTE! For Unfied XDR and Sentinel the columns have not been deployed (yet), thus the query will fail.
Query · kql
let CompromisedDevice = "laptop.contoso.com"; let SearchWindow = 48h; //Customizable h = hours, d = days let Threshold = 50; // Customizable DeviceImageLoadEvents | where Timestamp > ago(SearchWindow) | where DeviceName == CompromisedDevice | where IsInitiatingProcessRemoteSession == 1 | summarize TotalEvents = count(), Commands = make_set(InitiatingProcessCommandLine) by InitiatingProcessRemoteSessionDeviceName, InitiatingProcessRemoteSessionIP, InitiatingProcessAccountUpn | where TotalEvents <= Threshold