existing_service_modified_detector_sysmon_behavior
Description
Detects modification of existing services's binpPath License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
(($selection1.metadata.product_event_type = "1" and $selection1.target.process.file.full_path = "C:\\Windows\\System32\\sc.exe" and re.regex($selection1.target.process.command_line, `sc config .* binpPath= .*`) and $selection1.principal.process.file.full_path = "C:\\Windows\\System32\\cmd.exe") or ($selection1.metadata.product_event_type = "13" and $selection1.target.process.file.full_path = "C:\\Windows\\System32\\services.exe" and re.regex($selection1.target.registry.registry_key, `HKLM\\System\\CurrentControlSet\\services.*\\ImagePath`)))
condition:
$selection1