- Swift 93.1%
- Shell 6.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| docs | ||
| NativePasskey | ||
| NativePasskey.xcodeproj | ||
| NativePasskeyTests | ||
| PasskeyCore | ||
| PermissionCheck | ||
| scripts | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| REPRODUCIBILITY.md | ||
| SECURITY.md | ||
Native Passkey
A native security key manager for macOS. Secured by the Secure Enclave, protected with Touch ID, Apple Watch or your login password. Compatible with all browsers, including LibreWolf.
Features
- Reproducible, signed, notarized, free, libre and open source
- Lightweight, hardened, extensively tested and auditable small codebase
- Runs in the background after a one-time setup
- No dependencies, fully native with Swift and Apple frameworks only
Download
- Download zip → drag to Applications → open
Requires macOS 15 or later on Apple silicon with the Secure Enclave.
Tip
Firefox and Zen show the macOS's own passkey sheet first. To skip it, set
security.webauthn.enable_macos_passkeystofalseinabout:configand restart the browser
Warning
Private keys never leave this Mac's Secure Enclave. There is no export, backup or sync, so keep another way to sign in.
Why it needs "Device Control and Data Access" ("Accessibility" before macOS 27)
macOS requires this permission for every app that adds a virtual device, even one that can't type or click. It also lets an app control your Mac, which is far more than a security key needs. Native Passkey:
- adds one device with the FIDO usage only, no keyboard or mouse
- runs in the App Sandbox, without network or file access
- contains no code that posts input, reads other apps or uses the Accessibility API
Apple is currently reviewing the request for an com.apple.developer.usb.host-controller-interface entitlement for Native Passkey that would make this permission unnecessary. Follow for updates.
How it works under the hood
- A virtual USB security key (CTAP 2.1 over CTAPHID) made with Apple's CoreHID
- One P-256 key per passkey, created in the Secure Enclave and never exportable
- The macOS authentication dialog, with the site and the account, for every registration and sign-in
Build from source code (advanced)
You need Xcode 27 on macOS 27, and for a working build a provisioning profile with the HID virtual device capability. Replace the team ID, the bundle ID, the provisioning profile names and the name and label of the background agent with your own. The tests need neither signing nor permissions:
xcodebuild -project NativePasskey.xcodeproj -scheme NativePasskey -destination platform=macOS CODE_SIGNING_ALLOWED=NO test
scripts/fuzz.sh ctap 60 # needs a swift.org toolchain
Privacy
Native Passkey does not collect any data.