# What is secd, and why is it using so much CPU?

What is this process? · Updated 27 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **It guards your keychain.** Its man page calls `secd` the centralised keychain agent: it controls access to keychain items and changes to them, and anything that needs the keychain talks to it.
- **When it’s normal:** short bursts when you sign in, unlock the Mac, open apps that fetch saved passwords, or when passwords and passkeys sync through iCloud Keychain.
- **When to act:** if it stays near the top of Activity Monitor for a long time, look for the app that keeps asking it for something. Quitting `secd` itself is harmless, since it starts again when needed, but it rarely cures the cause.

## 1. What secd is

The binary is `/usr/libexec/secd`. launchd starts it for your account from `/System/Library/LaunchAgents/com.apple.secd.plist`, so in Activity Monitor it appears under your own user name, not root.

Apple’s Platform Security guide explains the design it belongs to. The keychain is a SQLite database on disk. There is only one, and a security daemon decides which items each process or app may read, by checking the entitlements the app was signed with. Apps from the same developer can share items through access groups; nobody else’s app can see them. Apple’s guide names that daemon `securityd`; on a Mac, the man page gives the same job for this keychain to `secd`.

Howard Oakley at The Eclectic Light Company describes which keychain that is. Besides the older file keychains such as `login.keychain-db`, every Mac has one Data Protection keychain, kept in a folder named with the Mac’s UUID inside `~/Library/Keychains`. If you sync it, it is your iCloud Keychain; if you don’t, it shows as Local Items. It holds passwords, keys, certificates and passkeys.

## 2. Why it’s busy

secd does nothing on its own account. Its CPU use is a count of how often something asks for a keychain item, plus sync. The usual moments:

- **Logging in or unlocking,** when many apps and menu bar items fetch their saved sign-ins at once.
- **iCloud Keychain catching up:** after you turn on password sync, sign in to iCloud on a new Mac, or add many passwords on another device. Apple says iCloud Keychain keeps passwords, passkeys, card details and Wi-Fi passwords up to date across the devices you approve.
- **After a macOS update or a migration,** when the keychain is checked and brought up to date.
- **Scheduled housekeeping.** Its launchd job lists background tasks that repeat hourly and daily.
- **One app asking over and over.** A sync client, mail app, browser extension or developer tool that retries a failed sign-in in a loop will keep secd busy for as long as it runs.

The first four pass within minutes. The last one doesn’t, and it is the common reason for a secd that stays high for hours.

## 3. What to do about it

1. **Wait a few minutes after logging in or updating.** If it drops by itself, there was nothing to fix.
2. **Find who is asking.** In Activity Monitor’s CPU tab, sort by % CPU and look at what is busy alongside secd. Quit that app. If secd falls with it, you have the cause.
3. **Fix that app’s sign-in.** Open it, sign out and in again, or update it. An app stuck on an expired password is the classic loop.
4. **Check iCloud Keychain is able to finish.** Apple’s path is System Settings › your name › iCloud › Passwords (Passwords & Keychain on macOS Sonoma or earlier). Make sure the Mac is online and you’ve answered any approval prompt on your other devices.
5. **Restart the Mac.** That clears a stuck request queue.
6. **Update macOS** if it keeps coming back with no app to blame.

To see which copies are running and under which account:

```
ps -axo user,pid,%cpu,comm | grep -E 'secd|securityd' | grep -v grep
```

## 4. Should you quit or disable it?

Quitting `secd` in Activity Monitor is safe. It is a per-user agent, and launchd starts it again the next time anything needs the keychain, which is usually within seconds. Your passwords are in the database on disk, not in the process, so nothing is lost. Expect an app or two to ask you to sign in again if it was mid-request.

Disabling it isn’t an option worth looking for. With no keychain agent, saved passwords, passkeys, Wi-Fi sign-ins and app logins stop working. Its launchd job is on the sealed system volume, and turning off System Integrity Protection to edit it would trade a CPU annoyance for a real security hole.

Don’t delete anything in `~/Library/Keychains` to calm it down either. That folder is the keychain. The [Keychains page](https://siftmac.com/safe-to-delete/keychains) covers what is in it and why it stays.

## Questions

### Is secd a virus on Mac?

No. It is Apple’s keychain agent. The real one runs from `/usr/libexec/secd` under your own user account.

### What is the difference between secd and securityd?

Both are Apple security daemons. On a Mac, the man page for `secd` describes it as the agent every keychain user talks to; `securityd` is the older system security server. Seeing both running is normal.

### Why does secd use CPU right after I log in?

Apps and system services fetch their saved sign-ins when they start, and iCloud Keychain checks for changes. It should settle within a few minutes.

### Will quitting secd delete my passwords?

No. Passwords live in the keychain database in `~/Library/Keychains`. The process restarts by itself and reads the same database.

## How SiftMac handles it

SiftMac doesn’t manage processes, and none of its cleaning categories look in `~/Library/Keychains`, so the keychain that secd looks after is never offered for cleaning.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is up to 20 GB of cleaning for 7 days).

## Sources

- [Apple Platform Security: Keychain data protection](https://support.apple.com/guide/security/keychain-data-protection-secb0694df1a/web)
- [Apple: Set up iCloud Keychain](https://support.apple.com/en-us/109016)
- [The Eclectic Light Company: An introduction to keychains and how they’ve changed](https://eclecticlight.co/2023/08/07/an-introduction-to-keychains-and-how-theyve-changed/)

## Related

- [Is it safe to delete ~/Library/Keychains?](https://siftmac.com/safe-to-delete/keychains)
- [What is trustd, and why is it using so much CPU?](https://siftmac.com/process/trustd)
- [What are cloudd and bird, and why are they so busy?](https://siftmac.com/process/cloudd)
- [What is tccd, and why is it using so much CPU?](https://siftmac.com/process/tccd)
- [What is opendirectoryd, and why is it using CPU?](https://siftmac.com/process/opendirectoryd)
- [What is searchpartyd, and why is it using CPU?](https://siftmac.com/process/searchpartyd)

Canonical: https://siftmac.com/process/secd
