MITRE ATT&CKsub-technique
T1555.001 Keychain
- Domain
- enterprise
- Tactics
- Credential Access
- Platforms
- macOS
- Version
- 1.1
- Created
- 2020-02-12
Description
Adversaries may acquire credentials from Keychain. Keychain (or Keychain Services) is the macOS credential management system that stores account names, passwords, private keys, certificates, sensitive application data, payment data, and secure notes. There are three types of Keychains: Login Keychain, System Keychain, and Local Items (iCloud) Keychain. The default Keychain is the Login Keychain, which stores user passwords and information. The System Keychain stores items accessed by the operating system, such as items shared among users on a host. The Local Items (iCloud) Keychain is used for items synced with Apple’s iCloud service.
Keychains can be viewed and edited through the Keychain Access application or using the command-line utility security. Keychain files are located in ~/Library/Keychains/, /Library/Keychains/, and /Network/Library/Keychains/.
Adversaries may gather user credentials from Keychain storage/memory. For example, the command security dump-keychain –d will dump all Login Keychain credentials from ~/Library/Keychains/login.keychain-db. Adversaries may also directly read Login Keychain credentials from the ~/Library/Keychains/login.keychain file. Both methods require a password, where the default password for the Login Keychain is the current user’s password to login to the macOS host.
Related
Subtechnique of · MITRE ATT&CK (1)
- T1555 Credentials from Password Stores technique
Tactic · MITRE ATT&CK (1)
- TA0006 Credential Access tactic
Referenced by MITRE ATT&CK · mitigates (1)
- M1027 Password Policies mitigation
Referenced by MITRE ATT&CK · uses (13)
- S9010 GlassWorm software (malware)
- G1052 Contagious Interview group
- S1246 BeaverTail software (malware)
- S1185 LightSpy software (malware)
- S1153 Cuckoo Stealer software (malware)
- S1016 MacMa software (malware)
- S0690 Green Lambert software (malware)
- S0363 Empire software (tool)
- S0349 LaZagne software (tool)
- G0082 APT38 group
- S0274 Calisto software (malware)
- S0278 iKitten software (malware)
- S0279 Proton software (malware)
Referenced by CAPEC · att&ck technique (1)
- CAPEC-545 Pull Data from System Resources attack pattern
References
- https://www.slideshare.net/slideshow/external-to-da-the-os-x-way/62021418 External to DA, the OS X Way
- https://developer.apple.com/documentation/security/keychain_services Keychain Services Apple
- https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/lib/modules/python/collection/osx/keychaindump_decrypt.py Empire Keychain Decrypt
- https://www.netmeister.org/blog/keychain-passwords.html OSX Keychain Schaumann
- https://support.passware.com/hc/en-us/articles/4573379868567-A-Deep-Dive-into-Apple-Keychain-Decryption Keychain Decryption Passware