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