CmdID

CmdID / Rules / Windows

PUA - PingCastle Execution From Potentially Suspicious Parent

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

high 1 ATT&CK technique

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_cli:
    - Image|endswith: '\PingCastle.exe'
    - OriginalFileName: 'PingCastle.exe'
    - Product: 'Ping Castle'
    - CommandLine|contains:
        - '--scanner aclcheck'
        - '--scanner antivirus'
        - '--scanner computerversion'
        - '--scanner foreignusers'
        - '--scanner laps_bitlocker'
        - '--scanner localadmin'
        - '--scanner nullsession'
        - '--scanner nullsession-trust'
        - '--scanner oxidbindings'
        - '--scanner remote'
        - '--scanner share'
        - '--scanner smb'
        - '--scanner smb3querynetwork'
        - '--scanner spooler'
        - '--scanner startup'
        - '--scanner zerologon'
    - CommandLine|contains: '--no-enum-limit'
    - CommandLine|contains|all:
        - '--healthcheck'
        - '--level Full'
    - CommandLine|contains|all:
        - '--healthcheck'
        - '--server '
  selection_parent_ext:
    ParentCommandLine|contains:
      - '.bat'
      - '.chm'
      - '.cmd'
      - '.hta'
      - '.htm'
      - '.html'
      - '.js'
      - '.lnk'
      - '.ps1'
      - '.vbe'
      - '.vbs'
      - '.wsf'
  selection_parent_path_1:
    ParentCommandLine|contains:
      - ':\Perflogs\'
      - ':\Temp\'
      - ':\Users\Public\'
      - ':\Windows\Temp\'
      - '\AppData\Local\Temp'
      - '\AppData\Roaming\'
      - '\Temporary Internet'
  selection_parent_path_2:
    - ParentCommandLine|contains|all:
        - ':\Users\'
        - '\Favorites\'
    - ParentCommandLine|contains|all:
        - ':\Users\'
        - '\Favourites\'
    - ParentCommandLine|contains|all:
        - ':\Users\'
        - '\Contacts\'
  condition: 1 of selection_parent_* and selection_parent_ext and selection_cli

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), X__Junior (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.

None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.

ATT&CK

the techniques it is tagged with
T1595Active Scanning