Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgoedjen/secretive
Store SSH keys in the Secure Enclave
https://github.com/maxgoedjen/secretive
mac secure-enclave security ssh
Last synced: 1 day ago
JSON representation
Store SSH keys in the Secure Enclave
- Host: GitHub
- URL: https://github.com/maxgoedjen/secretive
- Owner: maxgoedjen
- License: mit
- Created: 2020-02-19T03:34:45.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T22:11:30.000Z (4 months ago)
- Last Synced: 2024-12-05T16:00:08.329Z (8 days ago)
- Topics: mac, secure-enclave, security, ssh
- Language: Swift
- Homepage:
- Size: 13.8 MB
- Stars: 7,272
- Watchers: 48
- Forks: 159
- Open Issues: 133
-
Metadata Files:
- Readme: .github/readme/app-dark.png
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- Crypto-OpSec-SelfGuard-RoadMap - Store SSH keys in the Secure Enclave!
- Crypto-OpSec-SelfGuard-RoadMap - Store SSH keys in the Secure Enclave!
- awesome-list - secretive
- awesomeness - secretive - Secretive is an app for storing and managing SSH keys in the Secure Enclave. (Sec / Kubernetes)
README
# Secretive ![Test](https://github.com/maxgoedjen/secretive/workflows/Test/badge.svg) ![Release](https://github.com/maxgoedjen/secretive/workflows/Release/badge.svg)
Secretive is an app for storing and managing SSH keys in the Secure Enclave. It is inspired by the [sekey project](https://github.com/sekey/sekey), but rewritten in Swift with no external dependencies and with a handy native management app.
## 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 keys so that they require Touch ID (or Watch) authentication before they're accessed.
### Notifications
Secretive also notifies you whenever your keys are accessed, so you're never caught off guard.
### 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](https://github.com/maxgoedjen/secretive/releases)
#### Using Homebrew
brew install secretive
### FAQ
There's a [FAQ here](FAQ.md).
### 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 [[email protected]](mailto:[email protected]) with the subject containing "SECRETIVE SECURITY."