detect_service_creation_by_metasploit_on_victim_machine
Description
This rule detects when a service is created by metasploit(e.g psexec) via powershell on a victim endpoint License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
($selection.metadata.product_event_type = "7045" and re.regex($selection.target.process.command_line, `%COMSPEC% /b /c start /b /min powershell\.exe -nop -w hidden -noni -c.*`))
condition:
$selection