possible_cobaltstrike_psexec_filenames_via_audit


Description

CobaltStrike uses a executables with 7 random alphanumeric characters by default (i.e. 28a3fe2.exe) License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.

Query · yara_l

events:
((re.regex($logsource.target.process.command_line, `\..*\\\\[A-Za-z0-9]{7}\\\.[Ee][Xx][Ee]`) and re.regex($logsource.target.process.command_line, `\..*\\\\\..*[0-9]\..*\\\.[Ee][Xx][Ee]`) and $logsource.metadata.product_event_type = "4697") and not (re.regex($logsource.target.process.command_line, `\..*64\\\.[Ee][Xx][Ee]`)))

  condition:
    $logsource
Raw source possible_cobaltstrike_psexec_filenames_via_audit · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule possible_cobaltstrike_psexec_filenames_via_audit {
 meta:
    author = "SOC Prime Team"
    description = "CobaltStrike uses a executables with 7 random alphanumeric characters by default (i.e. 28a3fe2.exe)  License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md."
    reference = "https://tdm.socprime.com/tdm/info/1aX2L06wVHuN"
    version = "0.01"
    created = "2021-03-09"
    product = "windows"
    service = "security"
    mitre = "t1035, t1077, lateral_movement, execution"

  events:
((re.regex($logsource.target.process.command_line, `\..*\\\\[A-Za-z0-9]{7}\\\.[Ee][Xx][Ee]`) and re.regex($logsource.target.process.command_line, `\..*\\\\\..*[0-9]\..*\\\.[Ee][Xx][Ee]`) and $logsource.metadata.product_event_type = "4697") and not (re.regex($logsource.target.process.command_line, `\..*64\\\.[Ee][Xx][Ee]`)))

  condition:
    $logsource
}

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.