CmdID

CmdID / Rules / Windows

Weak or Abused Passwords In CLI

A Sigma rule for process creation on Windows, by Nasreddine Bencherchali (Nextron Systems).

medium 2 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection:
    CommandLine|contains:
      - '123456789'
      - '123123qwE'
      - 'Asd123.aaaa'
      - 'Decryptme'
      - 'P@ssw0rd!'
      - 'Pass8080'
      - 'password123'
      - 'test@202'
  condition: selection

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Nasreddine Bencherchali (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Convert a plain text string to a secure string on the page for ConvertTo-SecureString

$Secure_String_Pwd = ConvertTo-SecureString "P@ssW0rD!" -AsPlainText -ForceIdentify

Re-enable a session and specify a new security descriptor on the page for Enable-PSSessionConfiguration

$sddl = "O:NSG:BAD:P(A;;GXGWGR;;;BA)(A;;GAGR;;;S-1-5-21-123456789-188441444-3100496)S:P" Enable-PSSessionConfiguration -Name MaintenanceShell -SecurityDescriptorSDDL $sddlIdentify