The keychain is where macOS stores your secrets in encrypted form: website and Wi-Fi passwords, passkeys, app sign-ins, certificates and private keys. Apps ask macOS for an item when they need it, instead of keeping their own copy.
Login, System and iCloud keychains
- Login keychain: a file in the
Library/Keychainsfolder of your home folder. By default it’s unlocked by your Mac login password, so it opens when you log in. - System keychain: in
/Library/Keychains, for items every user on the Mac shares, such as Wi-Fi networks and certificates. trustd, the macOS service that checks certificates, uses the trust settings kept here. - iCloud Keychain: syncs your passwords and passkeys between your Apple devices, encrypted end to end.
How to see what’s in it
Open the Passwords app to see saved passwords, passkeys and Wi-Fi passwords. For certificates and older keychain items, use Keychain Access: search for it in Spotlight, because since macOS 15 it’s no longer in the Utilities folder.
Why it matters for security
Your Mac password unlocks the login keychain, so it’s what infostealers want most. Many show a fake password window to get it. If a window you didn’t expect asks for your password, click Cancel and check what opened it.
When an app asks to use an item in the keychain, macOS shows a prompt naming the app. Allow it only for an app you use and expect to need that password.
Our guide on how to tell if your Mac has a virus covers what to check after a fake password window.
On Windows, the closest equivalent is Credential Manager, which stores saved sign-ins for your Windows account.