
Secretive
SSH key manager backed by Mac's Secure Enclave
Replaces —
Who it's for
A developer who accesses production servers from a Mac wants assurance that even if their machine is compromised by malware, their SSH keys cannot be exfiltrated. Secretive's Secure Enclave storage makes the private key physically inaccessible to any software attack.
User is not on macOS or does not have SSH-based workflows.
An engineer who manages many remote servers wants hardware-enforced authentication for every SSH connection. Secretive's per-key Touch ID requirement means each connection requires a biometric confirmation, and notifications surface any unexpected key usage.
User prefers password-based SSH or already uses a dedicated hardware token like a YubiKey with a full cross-platform agent.
A team that needs to demonstrate non-exportable key storage and an auditable build chain for compliance purposes can point auditors to Secretive's GitHub Actions pipeline and GitHub Artifact Attestations as evidence of supply chain integrity.
Organization requires cross-platform key management or centralized key distribution.
The problem
SSH private keys stored as files on disk can be copied by malware or an attacker who gains filesystem access. Even passphrase-protected key files can be extracted and brute-forced offline. There is no built-in way to enforce hardware presence or biometric proof before a key is used, leaving the keys fully accessible to any process running as the same user.
How it works
Keys are generated inside the Mac's Secure Enclave and cannot be exported by design. Even with full filesystem access, an attacker cannot copy the private key material.
Individual keys can be configured to require Touch ID or Apple Watch authentication before each use, providing hardware-backed access control tied to the authenticated user.
On macOS Tahoe and later, Secretive supports MLDSA-65 and MLDSA-87 post-quantum keys in addition to the standard ECDSA-256 keys, future-proofing your SSH identity against quantum attacks.
In Secretive 3, all SSH request parsing and network activity happens in a separate XPC process (SecretAgent), isolating the sensitive work from the main application and reducing the attack surface.
Secretive notifies you whenever a key is accessed, so unexpected or unauthorized SSH activity is immediately surfaced rather than happening silently in the background.
For Macs without a Secure Enclave, Secretive supports hardware Smart Cards such as YubiKey as an alternative hardware-backed key store, covering older Mac hardware as well.
Features
- Secure Enclave key storage
- Touch ID and Apple Watch authentication
- Post-quantum key support
- Out-of-process request parsing
- Access notifications
- Smart Card support
How to install
brew install secretive
Recommended for this setup
Strengths
- Truly non-exportable keys: The Secure Enclave's hardware design makes it physically impossible to extract a private key, not just protected by software permissions. This eliminates the entire class of disk-based key theft attacks.
- Auditable build and release process: Builds are produced by GitHub Actions, and starting with version 3.0 every release is attested using GitHub Artifact Attestation. Attestations are publicly viewable, so you can verify the binary you download matches the source you reviewed.
- No external dependencies: Secretive has no third-party dependencies and is fully open source, minimizing supply chain risk and making the codebase straightforward to audit.
- Transparent access control: Per-key authentication requirements and real-time notifications mean you always know when and how your keys are being used, giving you visibility that a plain ssh-agent does not provide.
Trade-offs
- macOS only: Secretive is a native Mac app and relies on the Apple Secure Enclave. It does not run on Linux, Windows, or non-Apple hardware, so teams working across operating systems need a separate solution for non-Mac machines.
- Keys cannot be backed up or transferred: Because Secure Enclave keys are not exportable, they cannot be backed up. When you get a new Mac, you must generate a new key and add it to every server or service you access. This is a fundamental property of the Secure Enclave, not a limitation that can be worked around.
- Requires Secure Enclave for full protection: The core security guarantee only applies to Macs with a Secure Enclave (T-series and M-series chips). Older Intel Macs without a T2 chip must use Smart Card support instead, which requires separate hardware such as a YubiKey.
- Post-quantum keys require macOS Tahoe: MLDSA-65 and MLDSA-87 post-quantum key creation is limited to macOS Tahoe and later. Users on older macOS versions are limited to ECDSA-256 keys.
Tech stack
FAQ
No. Keys created in the Secure Enclave are bound to that specific chip and cannot be exported or transferred. When you get a new Mac, you generate a new set of keys and add them to the servers and services you access.
Intel Macs without a T2 chip do not have a Secure Enclave, so Secretive's primary protection is unavailable. However, Secretive supports Smart Cards such as YubiKey on these machines as a hardware-backed alternative.
Secretive 3 includes an Integrations window that guides you through configuring common SSH clients and tools to communicate with SecretAgent, the out-of-process agent component. The socket path is also shown in the Agent Info screen.
Starting with Secretive 3.0, every release is built by GitHub Actions and attested using GitHub Artifact Attestation. Attestations are publicly viewable in the build log and on the project's attestation page, so you can verify a downloaded binary traces back to the published source.
Secretive supports ECDSA-256 keys on all supported macOS versions. On macOS Tahoe and later, it also supports post-quantum MLDSA-65 and MLDSA-87 keys.