CmdID

CmdID / Rules / Windows

Renamed PingCastle Binary Execution

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

high 2 ATT&CK techniques

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_main_img:
    Image|endswith:
      - '\PingCastleReporting.exe'
      - '\PingCastleCloud.exe'
      - '\PingCastle.exe'
  selection:
    - OriginalFileName:
        - 'PingCastleReporting.exe'
        - 'PingCastleCloud.exe'
        - 'PingCastle.exe'
    - 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 '
  condition: selection and not 1 of filter_main_*

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
T1059Command and Scripting Interpreter
T1202Indirect Command Execution