Privacy

Your Clipboard Is the Least Guarded Place on Your Mac

API keys, card numbers and passwords sit in the pasteboard in plain text, readable by any running app. Here is how to keep copied secrets out of plain history on macOS.

You copy a production API key to move it from the dashboard into a config file. Between those two actions, that key is sitting in the macOS general pasteboard as plain text.

Every application running on your Mac can read it. Not with a special entitlement or a prompt you approved, just by reading the pasteboard the same way your text editor does when you press Cmd+V.

That is the design. The pasteboard is a shared surface, and sharing is the point. What most people do not picture is how much time a credential spends parked there, and how many copies of it exist by the end of the day.


1. Where a copied secret actually goes

Three places, and the third is the one people forget:

  1. The system pasteboard. Readable by any running app for as long as your secret is the current contents.
  2. The app you pasted into. Editor undo buffers, terminal scrollback, a chat draft you never sent.
  3. Your clipboard manager’s database. If you run one, it saw the copy and, by default, wrote it down.

Point three is worth sitting with. A clipboard manager exists to keep what you copy. That is its job and the reason it is useful. But if it treats an AWS secret key the same way it treats a link to a restaurant, you now have a searchable file of your own credentials, and it survives the reboot that would have cleared the pasteboard.

macOS 14 added a small guard: the system can notify you when an app reads pasteboard content that another app wrote. That tells you something was read. It does not stop the read, and it says nothing about what your clipboard history has on disk.


2. The habits that leak the most

From support conversations, four patterns come up again and again:

  • The long park. Copy a token, get pulled into a meeting, paste it 40 minutes later. The value was exposed for the whole meeting.
  • The screen share. Open the clipboard picker during a call to grab a link, and a card number from this morning is on the screen behind it.
  • The shared Mac. A contractor machine, a family iMac, a demo laptop. History outlives the session.
  • The backup. History gets backed up along with everything else, and now the secret is in a Time Machine snapshot too.

None of these need an attacker. They just need an ordinary day.


3. What a safe setup looks like

You do not have to stop copying credentials. You have to stop storing them like ordinary text.

Detect at copy time, not later. The moment a copy arrives, decide whether it looks like a card number, an IBAN, a private key, an API token or a password-like string. That decision has to happen before anything is written to disk, because after that you are deleting a secret rather than never keeping it.

Hold it behind hardware. A vaulted value should need Touch ID or your device password to reveal or paste, every single time, with keys that never leave the machine.

Keep it out of search. A secret that is vaulted but still shows up in search results is not really out of the way.

Give it a short life on the clipboard. After pasting, the value should clear itself, so the long park cannot happen.

Have an off switch you own. Detection that turns itself on and silently changes where your copies go is its own kind of surprise. It should be your decision, per category.


4. How this works in ClipBuddy

ClipBuddy is a native Mac app with no account and no sync, so the only place your history exists is your Mac. On top of that, secret handling works like this:

  • Detection is off by default. You turn on Detect and vault secrets in Settings. Until you do, nothing about your copies changes.
  • You choose the categories. Payment cards, bank accounts as IBANs, password-like text, API tokens, private keys. Each has its own switch, so you can vault card numbers and leave the rest in ordinary history.
  • With Pro, a match goes to the Vault. Encrypted on your Mac, invisible to search, and revealing or pasting it needs Touch ID or your device password. The pasted value is marked concealed and clears itself from the clipboard after 60 seconds.
  • Without Pro, a match is dropped. If you turn on detection on the free tier, a recognized secret is simply never saved.
  • Backups follow the same rule. Vault items in an encrypted backup can only be restored on a Mac that holds the keys for them.

Two further controls matter as much as the Vault:

  • Ignored apps. Name your password manager, your banking app, your 2FA app, and ClipBuddy never records what you copy there at all.
  • Burn after paste. Mark a clip so it deletes itself the moment you paste it once. Useful for a one-time code or a link you do not want sitting around.

5. A five-minute audit

Worth doing once, on whatever clipboard tool you use:

  1. Search your clipboard history for sk-, ghp_, BEGIN PRIVATE KEY, password, and the first six digits of your card. Anything that comes back is on disk right now.
  2. Check whether your password manager is in the ignore list. If there is no ignore list, that is your answer.
  3. Copy a test card number and watch what happens. Nothing happening is a result too.
  4. Check whether history is included in your backups, and whether that backup is encrypted.
  5. Decide how long a pasted secret should live on the clipboard, and set it.

The goal is not paranoia. It is that the least guarded surface on your Mac stops holding things that deserve a lock.


The short version

The pasteboard is shared by design, and a clipboard manager makes what passes through it permanent. That is a good trade for links, addresses and code snippets, and a bad one for credentials. Separate the two at the moment of the copy: detect a secret, put it behind Touch ID, keep it out of search, and let it expire from the clipboard on its own.

ClipBuddy does that on-device, with every part of it under a switch you control. See the Vault, or the full feature list.

Frequently asked questions

Can other apps read what I copy on macOS?

Yes. The general pasteboard is shared across applications, and any app running on your Mac can read it. Since macOS 14 the system can warn you when one app reads what another app put on the pasteboard. The warning is all you get; the data itself stays readable.

Is it safe to copy a password from a password manager?

It is common and usually fine, but the value is exposed for as long as it sits on the clipboard. Most password managers clear it after 30 to 90 seconds. Check that your clipboard manager is not saving a copy that outlives that window.

What does ClipBuddy do with a copied secret?

Detection is off until you turn it on. With it on and Pro active, a recognized card number, IBAN, API token, private key or password-like string goes into the Touch ID Vault instead of plain history, search never sees it, and revealing or pasting it needs Touch ID or your device password.

What happens on the free tier?

If you turn on detection without Pro, a recognized secret is not saved at all. It never enters history in any form.

Does any of this leave my Mac?

No. ClipBuddy has no account and no sync. Vault items are encrypted on your Mac with keys that stay in the Secure Enclave or your Keychain, depending on the mode you pick.