← Wed, Nov 11 digest

Protecting SSH Keys with macOS Secure Enclave

read article ↗ hn thread ↗

Native macOS Secure Enclave enables hardware-backed SSH keys with Touch ID, though third-party apps like Secretive offer a more polished prompt experience.

summary is enough It offers a concise walkthrough of native Secure Enclave SSH configuration and its UI limitations, saving you trial-and-error.

summary

Storing SSH keys in the native macOS Secure Enclave prevents filesystem theft by backing private keys with isolated hardware and enforcing Touch ID verification. While the built-in sc_auth tool and CryptoTokenKit successfully implement this without third-party software, they produce an unpolished system prompt. This UI friction and lack of key portability lead many developers to prefer alternatives like the Secretive app or hardware tokens like YubiKeys.

key points

  1. Native macOS Secure Enclave keys use FIDO2 and CryptoTokenKit, ensuring private keys never touch disk or memory.
  2. Enforcing biometric authentication prevents malware from silently using keys, though it causes friction with automated tooling and AI agents.
  3. Hardware-backed keys cannot be exported or backed up, meaning losing your Mac requires secondary keys registered on remote servers.

who should read it

macOS developers looking to harden their SSH security against filesystem compromises.

discussion positive

consensus

Commenters agree on the security benefits of hardware-backed keys, but many highlight fingerprint fatigue caused by background automated tools and AI coding assistants constantly triggering prompts.

pushback

Some argue that traditional passphrase-protected keys managed via standard keychains are sufficient and less prone to platform lock-in or fragile system keychain bugs.

best comment by drdexebtjl ↗

I’ve used the 1Password SSH agent at work and had to disable it because of prompt fatigue.

Claude and Cursor love to do `git ls-remote` at random times, which makes 1Password show a prompt asking me for permission, even though they initiated it from a non-interactive shell.

So now they just fail silently at the password prompt over and over again.

It illustrates how AI coding assistants trigger constant prompt fatigue by running background git commands that require biometric confirmation.

Generated by an LLM from the article and thread. Check the sources before relying on it.