VeriKQL by Kaushik Saha

T1552.004 Private Keys

Credential Accesson attack.mitre.org

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

How MITRE detects it

DET0549 Detect Suspicious Access to Private Key Files and Export Attempts Across Platforms

AN1516 Windows

A process (non-system or user-initiated) accesses private key files in user profile paths or system certificate stores followed by potential network connections or compression activity.

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:SecurityEventCode=5145
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (5145)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (5145)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (5145)

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

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.

AN1517 Linux

User or script-based access to ~/.ssh or other directories containing private keys followed by unusual shell activity or network connections.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopenatNot mapped to Sentinel yet.
auditd:EXECVEexecveNot mapped to Sentinel yet.

AN1518 macOS

Access to user private key directories (e.g., /Users/*/.ssh) via Terminal, scripting engines, or non-default processes.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogopen/read access to private key files (id_rsa, *.pem, *.p12)Not mapped to Sentinel yet.
macos:unifiedloglaunch of bash/zsh/python/osascript targeting key file locationsNot mapped to Sentinel yet.

AN1519 Network Devices

CLI-based export of private key material (e.g., 'crypto pki export') with anomalous user session or AAA role escalation.

MITRE log sourceIn Microsoft Sentinel
networkdevice:syslogDetected CLI command to export key materialNot mapped to Sentinel yet.

Content Hub rules tagged with it (2)

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.004 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

7 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.