Detection rules › Sigma

Harvesting Of Wifi Credentials Via Netsh.EXE

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Andreas Hunkeler (@Karneades), oscd.community
Source
github.com/SigmaHQ/sigma

Detect the harvesting of wifi credentials using netsh.exe

MITRE ATT&CK coverage

TacticTechniques
Credential Access
Discovery

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Harvesting Of Wifi Credentials Via Netsh.EXE
id: 42b1a5b8-353f-4f10-b256-39de4467faff
status: test
description: Detect the harvesting of wifi credentials using netsh.exe
references:
    - https://blog.malwarebytes.com/threat-analysis/2020/04/new-agenttesla-variant-steals-wifi-credentials/
author: Andreas Hunkeler (@Karneades), oscd.community
date: 2020-04-20
modified: 2023-02-13
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

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\netsh.exe'
    - OriginalFileName: 'netsh.exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'wlan'
        - ' s'
        - ' p'
        - ' k'
        - '=clear'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • k
  • p corpus 2 (sigma 2)
  • s corpus 3 (sigma 3)
  • =clear
  • wlan
field:"CommandLine" kind:match
Imageends_with
  • \netsh.exe corpus 28 (sigma 28)
field:"Image" kind:ends_with value:"\netsh.exe"
OriginalFileNameeq
  • netsh.exe corpus 23 (sigma 14, splunk 7, elastic 2)
field:"OriginalFileName" kind:eq value:"netsh.exe"