Windows Netsh.exe WLAN profile key clearing used for WiFi credential harvesting

Detects netsh.exe command-line activity targeting WLAN and clearing keys, indicative of potential WiFi credential harvesting on Windows.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Andreas Hunkeler (@Karneades), oscd.community (SigmaHQ), DRL 1.1
Published
2020-04-20
Updated
2026-07-30

ATT&CK techniques

Cred Access → Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags process executions of netsh.exe where the command line includes the WLAN context and an option consistent with clearing keys. Such activity matters because it can be used to access, manipulate, or export stored wireless credential material from the local host. Detection relies on Windows process creation telemetry capturing the executed binary image and the full command line string.

Related detections9 linkedT1040 — drag to rearrange
Suspicious Windows Native Pktmon Sniffer Abuse (via process_creation)
Suspicious Windows Traffic Capture Abuse (via process_creation)
Malicious TCP Session Hijacking via rshijack
PowerShell Start-NetEventSession Script Block Execution Indicating Potential Network Capture (Windows)
Windows PktMon.exe Process Execution (pktmon.exe / PktMon.exe)
macOS Network Sniffing Tool Execution via tcpdump or tshark
Windows Pcap Driver Installation via EID 4697 ServiceFileName
Windows netsh Trace Start Command Execution
Windows Network Tool Use for Possible Packet Sniffing (tshark/windump)
Windows Netsh.exe WLAN profile key clearing used for WiFi credential harvesting
Pivot detection · T1040 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.