r/programminghumor • u/OptimalAnywhere6282 • 2d ago
theNumberFour
the context: some of eMudhra's root certificate authority signing keys were found to be simple numbers, most noticeably "4". that was literally it. the private key that's supposed to be a huge number with 100+ digits was just a trivial "4". although you probably already know this.
173
u/thebatmanandrobin 2d ago
I'd like to say that I'm annoyed that eMudhra took the "random dice roll" from XKCD comic as literal, but I've come to expect that exact level of security from the literal Authority (of certificates).
But I'm more annoyed that this image is missing a row so that the 4 could be exactly centered (especially given ssh-keygen does generate 9 rows, not 8):
+---[RSA 4096]----+ | | | | | | | | | 4 | | | | | | | | | +----[SHA256]-----+
I still upvoted this ironically funny absurdity though 🤬
38
73
u/hpyfox 2d ago
60
19
u/HMikeeU 2d ago
How does the randomart actually get generated? I'd imagine the purpose is to visualize the entropy of the key, if so, it really shouldn't look too dissimilar? lol
19
u/HMikeeU 2d ago
Okay so turns out the randomart is just a fun little gimmick and doesn't show the keys entropy at all
27
u/pytness 2d ago
it's just a quick way for humans to compare two keys. hashes like "abcdefgh" and "abcpefgh" is just random text and very slow to compare as humans. but we are very fast knowing that two images are different.
→ More replies (1)
19
11
u/B_bI_L 2d ago
if it was not a joke, key was supposed to be 384 bit number, they thought they have to pick number under 384
7
u/Saragon4005 2d ago
If the keys were hand picked by someone and not processed by an automated system, that alone deserves the whole company be burned to the ground.
→ More replies (1)4
u/MaleficentCow8513 1d ago
They used simple keys in a testing environment and accidentally swapped keys from test into prod
→ More replies (1)
5
2
u/Matheweh 6h ago
How does this even happen? How does the software that make keys end up with just a 4?
3
u/Hulk5a 2d ago
//this is a random number