Suspicious RunAs-Like Flag Combination
Description
Detects suspicious command line flags that let the user set a target user and command as e.g. seen in PsExec-like tools
Query · sigma
selection_user: CommandLine|contains: - ' -u system ' - ' --user system ' - ' -u NT' - ' -u "NT' - ' -u ''NT' - ' --system ' - ' -u administrator ' selection_command: CommandLine|contains: - ' -c cmd' - ' -c "cmd' - ' -c powershell' - ' -c "powershell' - ' --command cmd' - ' --command powershell' - ' -c whoami' - ' -c wscript' - ' -c cscript' condition: all of selection*
Known false positives
- Unknown