Credential Access · ATT&CK v20
T1552.004 Unsecured Credentials: Private Keys
A Credential Access technique. Stealing account names, passwords, hashes, tickets and tokens.
- T1552.004Technique ID
- Credential AccessTactic
- 4Places taught
What the attacker does
The attacker takes private keys: SSH keys, certificate files (.pem, .pfx, .p12), cloud and code-signing keys. A key often gives access to servers or services without a password or MFA.
How it shows up in the logs
- Reads of ~/.ssh/id_rsa, id_ed25519 or .pem and .pfx files by a process that does not normally touch them.
- Certificate export commands (certutil -exportPFX, Export-PfxCertificate) or tools that dump certificates.
- The key used soon after from a new place: SSH logins with that key fingerprint from an unknown IP.
Questions to ask in triage
- Which keys were read, and where is each one trusted (authorized_keys, cloud accounts, signing)?
- Has a key already been used from somewhere new?
- Revoke and replace the keys; a stolen key works until it is removed everywhere.
Read T1552.004 on attack.mitre.org
A sub-technique of T1552.
Where you meet it in CyberSim
In the L3 war room
- The deploy user’s SSH private key had been left world-readable in the web root; the attacker took it.
In the theory
In the hands-on labs
A simulated machine in your browser.
In the cases
Part of the answer in 1 investigation, in these learning paths:
Which case is not said here: finding it is the case.
More Credential Access techniques
- T1003.001 OS Credential Dumping: LSASS Memory
- T1003.003 OS Credential Dumping: NTDS
- T1003.006 OS Credential Dumping: DCSync
- T1110 Brute Force
- T1110.001 Brute Force: Password Guessing
- T1110.003 Brute Force: Password Spraying
- T1528 Steal Application Access Token
- T1539 Steal Web Session Cookie
- T1552.001 Unsecured Credentials: Credentials In Files
- T1555 Credentials from Password Stores
- T1555.003 Credentials from Password Stores: Credentials from Web Browsers
- T1557 Adversary-in-the-Middle
Source: MITRE ATT&CK T1552.004, tactic TA0006.