Dump credentials, keys, certificates, and other sensitive information from Keychain
Credential AccessmacOS
This command will dump keychain passwords from login.keychain
sudo security dump-keychain -d login.keychain- Evidence
- Upstream reference
- Environment
- Local host
- Compatibility
- Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.
- Native
- Credential Access
- Detection
- Sigma: Credentials from Password Stores - Keychain: github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_creds_from_keychain.ymlElastic: Access to Keychain Credentials Directories: github.com/elastic/detection-rules/blob/main/rules/macos/credential_access_credentials_keychains.tomlElastic: Credential Access Dumping Keychain Security: github.com/elastic/detection-rules/blob/main/rules/macos/credential_access_dumping_keychain_security.tomlElastic: Keychain Password Retrieval via Command Line: github.com/elastic/detection-rules/blob/main/rules/macos/credential_access_keychain_pwd_retrieval_security_cmd.tomlJamf Protect: Detect Keychain dumping using security: github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/keychain_dumped