Detection rules › Sigma

Enumeration for 3rd Party Creds From CLI

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects processes that query known 3rd party registry keys that holds credentials via commandline

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Enumeration for 3rd Party Creds From CLI
id: 87a476dc-0079-4583-a985-dee7a20a03de
related:
    - id: e0b0c2ab-3d52-46d9-8cb7-049dc775fbd1
      type: derived
    - id: cc1abf27-78a3-4ac5-a51c-f3070b1d8e40
      type: similar
status: test
description: Detects processes that query known 3rd party registry keys that holds credentials via commandline
references:
    - https://isc.sans.edu/diary/More+Data+Exfiltration/25698
    - https://github.com/synacktiv/Radmin3-Password-Cracker/blob/acfc87393e4b7c06353973a14a6c7126a51f36ac/regkey.txt
    - https://github.com/HyperSine/how-does-MobaXterm-encrypt-password
    - https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation#inside-the-registry
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-20
modified: 2025-05-22
tags:
    - attack.credential-access
    - attack.t1552.002
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains: # Add more paths as they are discovered
            - '\Software\Aerofox\Foxmail\V3.1'
            - '\Software\Aerofox\FoxmailPreview'
            - '\Software\DownloadManager\Passwords'
            - '\Software\FTPWare\COREFTP\Sites'
            - '\Software\IncrediMail\Identities'
            - '\Software\Martin Prikryl\WinSCP 2\Sessions'
            - '\Software\Mobatek\MobaXterm\'
            - '\Software\OpenSSH\Agent\Keys'
            - '\Software\OpenVPN-GUI\configs'
            - '\Software\ORL\WinVNC3\Password'
            - '\Software\Qualcomm\Eudora\CommandLine'
            - '\Software\RealVNC\WinVNC4'
            - '\Software\RimArts\B2\Settings'
            - '\Software\SimonTatham\PuTTY\Sessions'
            - '\Software\SimonTatham\PuTTY\SshHostKeys\'
            - '\Software\Sota\FFFTP'
            - '\Software\TightVNC\Server'
            - '\Software\WOW6432Node\Radmin\v3.0\Server\Parameters\Radmin'
    filter_main_other_rule:  # matched by cc1abf27-78a3-4ac5-a51c-f3070b1d8e40
        Image|endswith: 'reg.exe'
        CommandLine|contains:
            - 'export'
            - 'save'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    CommandLine|contains:
        - '\Software\Aerofox\Foxmail\V3.1'
        - '\Software\Aerofox\FoxmailPreview'
        - '\Software\DownloadManager\Passwords'
        - '\Software\FTPWare\COREFTP\Sites'
        - '\Software\IncrediMail\Identities'
        - '\Software\Martin Prikryl\WinSCP 2\Sessions'
        - '\Software\Mobatek\MobaXterm\'
        - '\Software\OpenSSH\Agent\Keys'
        - '\Software\OpenVPN-GUI\configs'
        - '\Software\ORL\WinVNC3\Password'
        - '\Software\Qualcomm\Eudora\CommandLine'
        - '\Software\RealVNC\WinVNC4'
        - '\Software\RimArts\B2\Settings'
        - '\Software\SimonTatham\PuTTY\Sessions'
        - '\Software\SimonTatham\PuTTY\SshHostKeys\'
        - '\Software\Sota\FFFTP'
        - '\Software\TightVNC\Server'
        - '\Software\WOW6432Node\Radmin\v3.0\Server\Parameters\Radmin'

Stage 2: not filter_main_other_rule

filter_main_other_rule:
    Image|endswith: 'reg.exe'
    CommandLine|contains:
        - 'export'
        - 'save'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
CommandLinematchexport
CommandLinematchsave
Imageends_withreg.exe

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
  • \Software\Aerofox\FoxmailPreview corpus 2 (sigma 2)
  • \Software\Aerofox\Foxmail\V3.1 corpus 2 (sigma 2)
  • \Software\DownloadManager\Passwords corpus 2 (sigma 2)
  • \Software\FTPWare\COREFTP\Sites corpus 2 (sigma 2)
  • \Software\IncrediMail\Identities corpus 2 (sigma 2)
  • \Software\Martin Prikryl\WinSCP 2\Sessions corpus 2 (sigma 2)
  • \Software\Mobatek\MobaXterm\
  • \Software\ORL\WinVNC3\Password corpus 2 (sigma 2)
  • \Software\OpenSSH\Agent\Keys corpus 2 (sigma 2)
  • \Software\OpenVPN-GUI\configs corpus 2 (sigma 2)
  • \Software\Qualcomm\Eudora\CommandLine corpus 2 (sigma 2)
  • \Software\RealVNC\WinVNC4 corpus 2 (sigma 2)
  • \Software\RimArts\B2\Settings corpus 2 (sigma 2)
  • \Software\SimonTatham\PuTTY\Sessions corpus 2 (sigma 2)
  • \Software\SimonTatham\PuTTY\SshHostKeys\
  • \Software\Sota\FFFTP corpus 2 (sigma 2)
  • \Software\TightVNC\Server corpus 2 (sigma 2)
  • \Software\WOW6432Node\Radmin\v3.0\Server\Parameters\Radmin corpus 2 (sigma 2)