query_credentials_in_registry


Description

Query Credentials in Registry 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 ($selection.target.process.command_line = "reg query HKCU /f password /t REG_SZ /s" or $selection.target.process.command_line = "reg query HKLM /f password /t REG_SZ /s"))

  condition:
    $selection
Raw source query_credentials_in_registry · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule query_credentials_in_registry {
 meta:
    author = "Emir Erdogan"
    description = "Query Credentials in Registry  License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md."
    reference = "https://tdm.socprime.com/tdm/info/94DDr6DJrAMu"
    version = "0.01"
    created = "2021-03-09"
    product = "windows"
    service = "sysmon"
    mitre = "T1214"

  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 ($selection.target.process.command_line = "reg query HKCU /f password /t REG_SZ /s" or $selection.target.process.command_line = "reg query HKLM /f password /t REG_SZ /s"))

  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.