Suspicious Harvesting Of Wifi Credentials Through Netsh.EXE (via process_creation)

This rule detects the harvesting of wifi credentials using netsh.exe

SigmamediumWindowsv1
sigma
title: Suspicious Harvesting Of Wifi Credentials Through Netsh.EXE (via process_creation)
id: 42794c19-7c38-5a6d-9782-c60ffccc01ac
status: stable
description: This rule detects the harvesting of wifi credentials using netsh.exe
references:
    - https://attack.mitre.org/techniques/T1040/
    - https://blog.malwarebytes.com/threat-analysis/2020/04/new-agenttesla-variant-steals-wifi-credentials/
author: Huntrule Team
date: 2026-04-02
tags:
    - attack.discovery
    - attack.credential-access
    - attack.t1040
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\netsh.exe'
        - OriginalFileName: 'netsh.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'wlan'
            - ' s'
            - ' p'
            - ' k'
            - '=clear'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

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