Re:Secretive – macOS native app to store SSH keys in the Sec...
by lunixbochs on Saturday June 27, 2020 @04:30PM
(#23664431)
You don’t actually need to store Secure Enclave protected data in the enclave. Can “wrap” it with the enclave’s key and store it on your own disk.
[ Parent
| on HN ]
Re:Secretive – macOS native app to store SSH keys in the Sec...
by dchest on Saturday June 27, 2020 @05:15PM
(#23664744)
Unwrapping it puts the private key into memory, from which it can be extracted (it’s hard, of course, but looking at the state of Intel security, everything is possible). Secure Enclave is supposed to sign with non-extractable private key without putting it into RAM.
Re:Secretive – macOS native app to store SSH keys in the Sec...
by GekkePrutser on Saturday June 27, 2020 @05:05PM
(#23664673)
This is not what it does though. It says the private key can't be exported, and this wouldn't be the case if it was just a regular SSH keyfile encrypted using the Enclave's key.
Re:Secretive – macOS native app to store SSH keys in the Sec...
by acdha on Saturday June 27, 2020 @05:12PM
(#23664722)
You can ask the Secure Enclave or a smart card to perform operations using a key pair which is generated on and never leaves the device. In the case of SSH, you can use that directly as long as your SSH client and server support that algorithm: the client advertises the key fingerprint and just passes the server’s challenge through without modification. Apple has had native support built-in for using PIV/CAC tokens for years.
For storing arbitrary sized things, you’d typically use that key pair to sign an AES key used to encrypt the actual file so your device only needs to store the comparatively small keys.