macos community v1.0.0

security

Interact with Keychain, macOS's built-in password manager.

📋 Live Preview
security
security

Sandbox: execFile · Timeout: 30s

Capabilities

credential.dump
security.defenseevasion.bypass

Examples

Dump credentials, keys, certificates, and other sensitive information from Keychain: This command will dump keychain passwords from login.keychain

sudo security dump-keychain -d login.keychain

Retrieve Chrome's "Chrome Safe Storage" password manager secret: This command will retrieve the Chrome Safe Storage password manager secret from the keychain.

security find-generic-password -w -s "Chrome Safe Storage"

Add an arbitrary trusted certificate to aid a MITM attack: This command will add a certificate to the keychain.

security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain bad_cert.crt

Detection

Documentation

security is a command-line utility included in macOS that allows users to interact with the Keychain app. Keychains allow users to manager passwords and credentials for many services and features, including Wi-Fi and website passwords, secure notes, certificates, and Kerberos.

References