VeriKQL by Kaushik Saha

T1552.001 Credentials In Files

Credential Accesson attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0307 Detect Access to Unsecured Credential Files Across Platforms

AN0856 Windows

Correlated file access to insecure credential files (e.g., *.env, *.xml, *.ps1) followed by suspicious process execution or authentication using retrieved credentials. Detected through Sysmon logs and Windows Security Event logs.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=11
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (11)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (11)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SecurityEventCode=4624, 4648
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4624, 4648)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4624, 4648)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4624, 4648)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

AN0857 Linux

File reads or process executions involving insecurely stored credential files (e.g., config files with password fields) by non-root or anomalous users followed by ssh authentication attempts.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen/read of sensitive config or secret filesNot mapped to Sentinel yet.
auditd:EXECVEgrep/cat/awk on files with password fieldsNot mapped to Sentinel yet.
linux:syslogauthentication success after file accessNot mapped to Sentinel yet.

AN0858 macOS

Terminal-based grep or open of plist/config files containing credentials, correlated with Keychain or system login attempts.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedloggrep/cat on files matching credential patternsNot mapped to Sentinel yet.
macos:unifiedlogopen/read of *.plist or .env filesNot mapped to Sentinel yet.
macos:unifiedlogKeychain or user login post-accessNot mapped to Sentinel yet.

AN0859 Containers

Container processes accessing mounted secrets or configuration paths (e.g., /run/secrets, /mnt/config) followed by network access or credential use.

MITRE log sourceIn Microsoft Sentinel
ebpf:syscallsopen/read on secret mount pathsNot mapped to Sentinel yet.
kubernetes:auditprocess execution involving curl, grep, or awk on secretsNot mapped to Sentinel yet.
cni:netflowoutbound connection to internal or external APIsNot mapped to Sentinel yet.

AN0860 IaaS

Access to local credential/config files (e.g., ~/.aws/credentials) followed by metadata API calls or cloud role assumptions.

MITRE log sourceIn Microsoft Sentinel
CloudTrail:GetObjectsensitive credential files in buckets or local image storageNot mapped to Sentinel yet.
AWS:CloudTrailcommand-line execution invoking credential enumerationNot mapped to Sentinel yet.
AWS:CloudTrailsudden role assumption after credential file accessNot mapped to Sentinel yet.

Content Hub rules tagged with it (3)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1552.001 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

24 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.