T1167Techniquecredential-accessrevokedagent-callable

T1167Securityd Memory

Platforms: macOS

ATT&CK version: 14.1

What it is

In OS X prior to El Capitan, users with root access can read plaintext keychain passwords of logged-in users because Apple’s keychain implementation allows these credentials to be cached so that users are not repeatedly prompted for passwords. (Citation: OS X Keychain) (Citation: External to DA, the OS X Way) Apple’s securityd utility takes the user’s logon password, encrypts it with PBKDF2, and stores this master key in memory. Apple also uses a set of keys and algorithms to encrypt the user’s password, but once the master key is found, an attacker need only iterate over the other values to unlock the final password. (Citation: OS X Keychain) If an adversary can obtain root access (allowing them to read securityd’s memory), then they can scan through memory to find the correct sequence of keys in relatively few tries to decrypt the user’s logon keychain. This provides the adversary with all the plaintext passwords for users, WiFi, mail, browsers, certificates, secure notes, etc. (Citation: OS X Keychain) (Citation: OSX Keydnap malware)

ATT&CK tactics· 1

Credential Access

References

  1. https://attack.mitre.org/techniques/T1167
  2. http://juusosalonen.com/post/30923743427/breaking-into-the-os-x-keychain
  3. http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way
  4. https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/
Sourced from MITRE ATT&CK Enterprise v14.1. Curated and contextualized for EU compliance use cases by Adam Lundqvist, Founder at SQUR.