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 source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SecurityEventCode=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 |
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 source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLopenat | Not mapped to Sentinel yet. |
auditd:EXECVEexecve | Not 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 source | In 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 locations | Not 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 source | In Microsoft Sentinel |
|---|---|
networkdevice:syslogDetected CLI command to export key material | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (2)
- Powershell Empire Cmdlets Executed in Command Line
- PROD (TM010.1) - BITLOCKER - Stored Bitlocker Recovery Key to Tier Level Computer Object
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.
- Cisco Crypto Commands
- DPAPI Backup Keys And Certificate Export Activity IOC
- PowerShell Get-Process LSASS
- Certificate Exported Via PowerShell
- Certificate Exported Via PowerShell - ScriptBlock
- Private Keys Reconnaissance Via CommandLine Tools
- PFX File Creation
Mitigations
M1022Restrict File and Directory PermissionsM1027Password PoliciesM1041Encrypt Sensitive InformationM1047Audit
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.