Detection rules › Sigma

Potential Password Reconnaissance Via Findstr.EXE

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Josh Nickels
Source
github.com/SigmaHQ/sigma

Detects command line usage of "findstr" to search for the "passwords" keyword in a variety of different languages

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Password Reconnaissance Via Findstr.EXE
id: 1a0f6f16-2099-4753-9a02-43b6ac7a1fa5
status: test
description: Detects command line usage of "findstr" to search for the "passwords" keyword in a variety of different languages
references:
    - https://steflan-security.com/windows-privilege-escalation-credential-harvesting/
    - https://adsecurity.org/?p=2288
author: Josh Nickels
date: 2023-05-18
tags:
    - attack.credential-access
    - attack.t1552.001
    - detection.threat-hunting
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\findstr.exe'
        - OriginalFileName: 'FINDSTR.EXE'
    selection_cli:
        CommandLine|contains:
            - 'contraseña' # Spanish
            - 'hasło' # Polish
            - 'heslo' # Czech
            - 'parola' # Italian
            - 'passe' # French
            - 'passw' # German, English
            - 'senha' # Portuguese
            - 'senord' # Swedish
            - '密碼' # Cantonese
    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: '\findstr.exe'
    - OriginalFileName: 'FINDSTR.EXE'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - 'contraseña'
        - 'hasło'
        - 'heslo'
        - 'parola'
        - 'passe'
        - 'passw'
        - 'senha'
        - 'senord'
        - '密碼'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • contraseña
  • hasło
  • heslo
  • parola
  • passe
  • passw
  • senha
  • senord
  • 密碼
Imageends_with
  • \findstr.exe corpus 12 (sigma 12)
OriginalFileNameeq
  • FINDSTR.EXE corpus 12 (sigma 12)