t1214__credentials_in_registry
Description
This rule detects an attempt to scanning registry hives for the value password License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
($selection1.target.process.file.full_path = "reg.exe" and ($selection1.target.process.command_line = "reg query HKLM /f password /t REG_SZ /s" or $selection1.target.process.command_line = "reg query HKCU /f password /t REG_SZ /s") and ($selection1.metadata.product_event_type = "4688" or $selection1.metadata.product_event_type = "1"))
condition:
$selection1