Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The code claims a forward-secrecy mode using ECDH, but it does not actually derive a shared secret from the ephemeral keypair. Instead, it generates a random session key and wraps that key directly with the recipient's long-term public key, which means compromise of the recipient's long-term private key can expose previously captured session keys and defeat the promised forward secrecy. In an end-to-end encrypted messaging skill, this is security-relevant because users may rely on the advertised property when deciding what data to send.
