Sensitive File Access by an Unsigned Process
Description
Identifies an unsigned process accessing sensitive files. Adversaries may attempt to discover and acquire credentials from system files.
Query · eql
file where event.action == "open" and
file.path : ("C:\\USERS\\*\\APPDATA\\*\\MICROSOFT\\PROTECT\\S-1-5-21*",
"C:\\USERS\\*\\APPDATA\\*\\MICROSOFT\\PROTECT\\S-1-12-1*",
"C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Microsoft\\Vault\\*-*",
"C:\\Windows\\SysWOW64\\LogFiles\\SAM",
"C:\\Windows\\System32\\config\\RegBack\\SAM",
"C:\\Windows\\System32\\config\\RegBack\\SECURITY",
"C:\\Windows\\System32\\config\\RegBack\\SYSTEM") and
process.executable : ("C:\\*", "\\Device\\Mup\\*") and
(process.code_signature.trusted == false or process.code_signature.exists == false) and
not file.name : ("desktop.ini", ".ignore", ".rgignore", "exclude", ".gitignore", ".fdignore") and
not process.executable : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*") and
not (process.name : "loki.exe" and file.extension : "vsch") and
not (file.path : "C:\\Windows\\System32\\config\\RegBack\\SAM" and
process.executable : ("C:\\ProgramData\\Guardicore\\utils\\osqueryd.exe", "C:\\ProgramData\\Guardicore\\utils\\gc-insight.exe"))