Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
SeaWolf-AIΒ 
posted an update about 13 hours ago
Post
717
πŸ” Two 2048-bit RSA keys. One GCD. Both broken.

A 2048-bit RSA key is out of reach for today's factoring methods, as long as its two primes were chosen well. When a device picks them badly, the key length stops mattering.

We built KeyGuard, a self-check for RSA public keys that runs entirely in your browser.

πŸ”Ž Try it: FINAL-Bench/KeyGuard

πŸ“ Full write-up: https://huggingface.co/blog/FINAL-Bench/two-2048-bit-rsa-keys-one-gcd-both-broken-check-yo

πŸ‘€ See it in one click, no sign-in

πŸ”— Shared prime: two devices, two 2048-bit keys, one prime in common. gcd(N1, N2) opens both.

🀏 Close primes: a 2048-bit key recovered in 1.4 ms, inside a normal browser tab.

🧬 ROCA (CVE-2017-15361): the fingerprint of keys from a flawed chip library.

πŸ“ Length and exponent: short keys and abnormal exponents.

⚠️ Why it matters

Routers, cameras and other embedded devices often create a key right after first boot, when there is little randomness to draw from. A 2019 study broke 249,553 distinct keys this way, about 1 in 172 of the certificates it collected from the internet. The flaw is not in RSA. It is in how some keys are born.

πŸ“Š What we measured

βœ… Built-in benchmark, 145 keys: 65 of 65 weak keys found, 0 false alarms on 80 healthy keys

βœ… ROCA check: 12 of 12 flagged, 0 of 40 ordinary keys flagged

βœ… Batch-GCD engine from the same family: 220,713 keys in 122.5 seconds, 6 of 6 planted weak keys found

πŸ”’ Private by design

Public keys only, and even those stay in your tab. We recorded the network while running the checks: 0 requests after the page loaded.

🧰 Use it as it is

Paste a PEM public key, a certificate, an ssh-rsa line or a raw modulus. Put several devices in together, because a shared prime shows up only when keys are compared with each other. English, Korean and Chinese. MIT.

Please check only devices you own or are authorized to test.

Long keys are not enough. Check how they were born.
In this post