Home

Stop publishing your elliptic curve public keys on GitHub

256-bit elliptic curves are likely broken by AI12, meaning it possibly found an efficient discrete logarithm algorithm that allows someone to recover the private key from a public key. Where can they get public keys? I’d scrape everyone’s SSH keys off https://github.com/[user].keys. People often use the same key everywhere, so this will let me SSH into their (own or work’s) public-facing machines.

I tried to add an ML-DSA key to my GitHub account and it didn’t work. GitHub urgently needs to support this3. Until then, I’m removing my SSH keys and sticking to token auth.


  1. https://words.filippo.io/nsa-advisory/ ↩

  2. NSA stopped recommending P-256 as far back as 2015 (https://eprint.iacr.org/2015/1018.pdf, page 6). There is a possibility that NSA had known of an elliptic curve weakness more than 10 years ago which is now re-discovered by LLMs. ↩

  3. And my own projects… ↩