Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The code and docstring indicate an authentication handshake, but the message only transmits a public key and nonce and never proves possession of the private key or authenticates the server. This enables impersonation and man-in-the-middle scenarios, especially because the default transport is plain ws:// rather than TLS-protected wss://.
