#Microsoft Defender
12 posts

Detection
Detect ScreenConnect Installer Origin in Defender (KQL)
KQL for Microsoft Defender that recovers where a ScreenConnect installer came from, the attacker tenant and the lure page, before it runs.

Detection
Detect ScreenConnect Unattended Access Role (KQL)
KQL for Microsoft Defender that reads the ScreenConnect e=Access&y=Guest role and relay host off the client command line: persistence, not support.

Detection
Classify ScreenConnect Relays: Cloud vs Self-Hosted (KQL)
KQL for Microsoft Defender that labels each ScreenConnect relay callback cloud/trial or self-hosted, the one read that tells two implants apart.

Detection
Detect AnyDesk --set-password in Defender (KQL)
KQL for Microsoft Defender that catches a scripted AnyDesk unattended password: echo piped into --set-password, rename-proof, lab-tested.

Detection
Detect Renamed AnyDesk in Microsoft Defender (KQL)
KQL for Microsoft Defender that finds AnyDesk by its PE version info, so a renamed binary like Invoice_Viewer.exe still matches. Lab-tested.

Detection
Detect ssh.exe -R Reverse Tunnels (KQL and ES|QL)
KQL for Defender and ES|QL for Elastic that catch ssh.exe started with -R, including -NR and -fNTR flag clusters. The trigger for an SSH pivot hunt.

Detection
Spot SSH SOCKS Pivot Sweeps (KQL and ES|QL)
KQL and ES|QL that collapse an ssh.exe -R session into one row of cardinality and churn, separating a benign forward from a subnet sweep.

Detection
ssh.exe -R Tunnel Connections in Defender and Elastic
KQL and ES|QL that list the outbound connections ssh.exe opens for a -R SOCKS tunnel, the network side of proving an SSH pivot.

Detection
Detect Advanced IP and Port Scanner Files (KQL, ES|QL)
KQL and ES|QL that catch Advanced IP Scanner and Advanced Port Scanner by the files they drop in their default folders.

Detection
Detect Advanced IP Scanner and NetScan (KQL, ES|QL)
KQL and ES|QL that catch Advanced IP Scanner, Advanced Port Scanner and SoftPerfect NetScan by vendor metadata and flags, even renamed.

Detection
Detect Internal Network Sweeps (KQL and ES|QL)
KQL and ES|QL that flag one process hitting many private IPs across several ports inside 5 minutes. Tool-agnostic, survives rename.

Detection
Pivot From a Scanner Hit to RDP or RMM (KQL)
KQL for Microsoft Defender that checks 2 hours either side of an Advanced IP Scanner GUI hit for RDP and RMM tools: proof of an interactive session.