Store SSH keys in the Secure Enclave
Go to file
0xflotus 393f2797ab
(docs): fixed small error (#100)
Co-authored-by: Max Goedjen <max.goedjen@gmail.com>
2020-07-12 14:06:08 -07:00
.github Add back Xcode 11.4 changes (#87) 2020-04-05 16:05:45 -07:00
assets Add FAQ entry on how to get WatchOS auth working (#118) 2020-07-12 14:05:30 -07:00
Brief MIT notice on brief 2020-03-23 21:19:40 -07:00
Config Build and About page (#64) 2020-03-19 21:16:14 -07:00
SecretAgent Fileprivate -> private (#91) 2020-05-15 23:19:00 -07:00
SecretAgentKit Fileprivate -> private (#91) 2020-05-15 23:19:00 -07:00
SecretAgentKitTests Fix #84 2020-04-02 00:53:55 -07:00
Secretive Fixes #115 (#116) 2020-07-04 16:25:14 -07:00
Secretive.xcodeproj Relaunch agent if updated (#86) 2020-04-04 15:16:31 -07:00
SecretiveTests MIT licensing notices 2020-03-19 21:36:25 -07:00
SecretKit Fileprivate -> private (#91) 2020-05-15 23:19:00 -07:00
SecretKitTests Add test 2020-03-21 19:37:08 -07:00
.gitignore Disable per-framework signing 2020-03-14 19:28:25 -07:00
CODE_OF_CONDUCT.md Add CoC 2020-03-14 21:31:45 -07:00
CONTRIBUTING.md Fix typo (#120) 2020-07-07 19:12:32 -07:00
FAQ.md Add FAQ entry on how to get WatchOS auth working (#118) 2020-07-12 14:05:30 -07:00
LICENSE Initial commit 2020-02-18 19:34:46 -08:00
README.md (docs): fixed small error (#100) 2020-07-12 14:06:08 -07:00

Secretive Test Release

Secretive is an app for storing and managing SSH keys in the Secure Enclave. It is inspired by the sekey project, but rewritten in Swift with no external dependencies and with a handy native management app.

Screenshot of Secretive

Why?

Safer Storage

The most common setup for SSH keys is just keeping them on disk, guarded by proper permissions. This is fine in most cases, but it's not super hard for malicious users or malware to copy your private key. If you store your keys in the Secure Enclave, it's impossible to export them, by design.

Access Control

If your Mac has a Secure Enclave, it also has support for strong access controls like Touch ID, or authentication with Apple Watch. You can configure your key so that they require Touch ID (or Watch) authentication before they're accessed.

Screenshot of Secretive authenticating with Touch ID

Notifications

Secretive also notifies you whenever your keys are accessed, so you're never caught off guard.

Screenshot of Secretive notifying the user

Support for Smart Cards Too!

For Macs without Secure Enclaves, you can configure a Smart Card (such as a YubiKey) and use it for signing as well.

Getting Started

Installation

Direct Download

You can download the latest release over on the Releases Page

Using Homebrew

brew cask install secretive

FAQ

There's a FAQ here.

Auditable Build Process

Builds are produced by GitHub Actions with an auditable build and release generation process. Each build has a "Document SHAs" step, which will output SHA checksums for the build produced by the GitHub Action, so you can verify that the source code for a given build corresponds to any given release.

A Note Around Code Signing and Keychains

While Secretive uses the Secure Enclave for key storage, it still relies on Keychain APIs to access them. Keychain restricts reads of keys to the app (and specifically, the bundle ID) that created them. If you build Secretive from source, make sure you are consistent in which bundle ID you use so that the Keychain is able to locate your keys.

Backups and Transfers to New Machines

Because secrets in the Secure Enclave are not exportable, they are not able to be backed up, and you will not be able to transfer them to a new machine. If you get a new Mac, just create a new set of secrets specific to that Mac.

Security

If you discover any vulnerabilities in this project, please notify max.goedjen@gmail.com with the subject containing "SECRETIVE SECURITY."