by e40 · 8y ago · 0 comments
There's nothing that seems architecturally unsound about how Microsoft implemented this. DPAPI is a reasonable way to protect the keys "at rest" in the registry. The OP was able to extract the keys because he has the credentials for the user from whom he is extracting the keys.
Short of storing the keys in the memory of a dedicated crypto-processor outside the host computer (and performing the cryptographic operations there) the plaintext of the private keys will have to be recoverable to the user.
ssh-agent signs requests, tokens, etc on your behalf. You never see the private key.
Edit: If your point was specifically about this from EvanAnderson's comment
>A user needs to be able to retrieve the plaintext of their SSH private keys.
then the "user" there is the abstract identity used to locate and decrypt the private key, not the human invoking ssh-agent.