Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 650 Bytes

MDE - Open-SMB-Connections-By-Compromised-Device.md

File metadata and controls

26 lines (22 loc) · 650 Bytes

Show all successful SMB connections of a compromised device


Defender For Endpoint

let CompromisedDevice = "laptop1";
let SearchWindow = 48h; //Customizable h = hours, d = days
DeviceNetworkEvents
| where Timestamp > ago(SearchWindow)
| where DeviceName == CompromisedDevice
| where RemotePort == 445
| where ActionType == "ConnectionSuccess"

Sentinel

let CompromisedDevice = "laptop1";
let SearchWindow = 48h; //Customizable h = hours, d = days
DeviceNetworkEvents
| where TimeGenerated > ago(SearchWindow)
| where DeviceName == CompromisedDevice
| where RemotePort == 445
| where ActionType == "ConnectionSuccess"