I’ve been preparing for a CISSP exam and was reading about applied cryptography in regard to email.
It’s my understanding that the popular schemes (PGP,S/Mime) use a combination of asymmetric and symmetric cryptography. If I’m reading things correctly, in S/MIME, the message is encrypted using a sender generated symmetric key. In turn, the symmetric key is encrypted using the receiver’s public key.
If the receiver changed their private key, they would no longer be able to decrypt the message. However, I was wondering if it was possible to recover the symmetric key from when the email was previously opened?
My guess would be that the email client does not intentionally store the key since that would present a security risk. Just wanted to see if that actually occurs or if there’s something I’m missing.
The general and normal solution, as commented, is that the recipient retains old privatekeys to decrypt old messages, even though the corresponding publickeys have expired (or even been revoked). In fact in some organizational settings the privatekeys used for decryption are backed-up by the organization so that email can still be read if the individual(s) to whom it was sent leave(s) or die(s). (In tech this is sometimes called a 'bus factor' -- if an employee with key information and/or abilities is hit by a bus and killed, can the organization continue operating without them?) In contrast privatekeys used for signing are not subject to this requirement; if a person leaves, the new person should publish a new signing key which recipient(s) accept as valid, but should not be able to make it appear the old person signed something they actually didn't. BTW these approaches apply to both PGP and S/MIME, although the method of publishing a new key differs somewhat.
GnuPG (one implementation of PGP) has a feature intended for a slightly different case: see
--show-session-key et seq in
https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html . The idea is that if you are forced to disclose some of your email -- for example in a lawsuit -- instead of giving the privatekey that allows decryption of all your (past) messages you can give the DEK(s) for a specific message(s).
Answered by dave_thompson_085 on January 6, 2022
2 Asked on October 28, 2021 by stone-true
8 Asked on October 28, 2021
2 Asked on October 28, 2021 by kepotx
2 Asked on October 28, 2021 by nemanja-martinovic
2 Asked on October 28, 2021 by tomi-begher
1 Asked on October 28, 2021 by ian-warburton
2 Asked on October 28, 2021 by alehandro
0 Asked on October 28, 2021
1 Asked on October 28, 2021 by user238715
4 Asked on October 28, 2021 by m-vencel
2 Asked on October 28, 2021 by sellarafaeli
3 Asked on October 28, 2021 by nkl
1 Asked on March 9, 2021 by reedghost
1 Asked on March 3, 2021
Get help from others!