detection_of_com_hijacking


Description

Hijacking a COM object requires a change in the Windows Registry to replace a reference to a legitimate system component which may cause that component to not work when executed. License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.

Query · yara_l

events:
($selection.principal.process.file.full_path = "C:\\Windows\\System32\\cmd.exe" and $selection.target.process.file.full_path = "C:\\Windows\\System32\\reg.exe" and (re.regex($selection.target.process.command_line, `reg add .*\\SOFTWARE\\Classes\\CLSID.*.*\.dll`) or re.regex($selection.target.process.command_line, `reg add .*\\SOFTWARE\\Classes\\CLSID.*.*\.exe`)))

  condition:
    $selection
Raw source detection_of_com_hijacking · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule detection_of_com_hijacking {
 meta:
    author = "Emir Erdogan"
    description = "Hijacking a COM object requires a change in the Windows Registry to replace a reference to a legitimate system component which may cause that component to not work when executed.  License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md."
    reference = "https://tdm.socprime.com/tdm/info/7TGQasRZEcf5"
    version = "0.01"
    created = "2021-03-09"
    product = "windows"
    service = "sysmon"
    mitre = "T1122"

  events:
($selection.principal.process.file.full_path = "C:\\Windows\\System32\\cmd.exe" and $selection.target.process.file.full_path = "C:\\Windows\\System32\\reg.exe" and (re.regex($selection.target.process.command_line, `reg add .*\\SOFTWARE\\Classes\\CLSID.*.*\.dll`) or re.regex($selection.target.process.command_line, `reg add .*\\SOFTWARE\\Classes\\CLSID.*.*\.exe`)))

  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.