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
Raw source detect_service_creation_by_metasploit_on_victim_machine · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule detect_service_creation_by_metasploit_on_victim_machine {
 meta:
    author = "Joseph Kamau"
    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."
    reference = "https://tdm.socprime.com/tdm/info/nHv2Sd3eaLs2"
    version = "0.01"
    created = "2021-03-09"
    product = "Windows"
    service = "security"
    mitre = "execution, powershell, t1086"

  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
}

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.