r/ProgrammerHumor • • Oct 23 '26 • Bravo 2 Popcorn 1

Meme privateKey

Post image
26k Upvotes

239 comments sorted by

View all comments

14

u/Upstairs-Ad-7962 Oct 23 '26

I feel left out, why are There so many memes about encryption key 4 now?

53

u/ColumnK Oct 23 '26

eMudhra, an Indian certificate authority, used 4 as an encryption key.

Unsurprisingly, they are no longer in business

10

u/PmMeUrTinyAsianTits Oct 23 '26

I'm curious what the knock ons of this are. I've been annoyed how many CAs I accept by default and wondering if I should pare it down, and that was my idle paranoia. Now this shit happens and it doesn't seem like paranoia anymore. just good safety. The fuck site do I need that "eMudhra" was going to sign for?

13

u/PixelatedGiant Oct 23 '26

Many Indian government websites and esigning services used eMudhra for certificates. So mostly people living in India, not really North America.

3

u/PmMeUrTinyAsianTits Oct 23 '26

Exactly my point. I do not need a bunch of "trusted" authorities that are only "trusted" because they need it to do things I don't care about. That's just adding vulnerabilities.

If/when I visit india, I can update my certs to include it again, but that will literally never happen.

6

u/PixelatedGiant Oct 23 '26

Either you're completely unaffected since you don't visit any Indian websites or you do visit Indian websites and therefore need Indian CAs and can't remove them.

So what is the benefit of removing those CAs from your global list? It doesn't change your situation.

4

u/PmMeUrTinyAsianTits Oct 23 '26

Either you're completely unaffected since you don't visit any Indian websites

I don't think you understand what this vulnerability was.

It's not just a vulnerability because it affects legitimate sites. It's a vulnerability because it allows sites to pose as legitimate.

The concern is the compromised authority signs false certs which are used in phishing attempts. So it's also not just about me, I think it's ridiculous my parents' computers has this vulnerability, in order to make sure some indian site works.

Do you think the only threat vector this presents is you visiting a normal, good faith indian site that was using the cert authority as intended?

3

u/PixelatedGiant Oct 23 '26

The cert contains the domain you need to visit. If they don't match then your browser screams bloody murder.

Lets say Google's CA was compromised. How would they even get you to go to the false site? They would also need to compromise your DNS in order to match the URL to the certificate and not have the browser complain.

Like it's bad. But it's not easily exploitable, a bunch of other pieces need to fall into place for this to be a viable attack vector. It's incredibly unlikely.

3

u/PmMeUrTinyAsianTits Oct 23 '26

a bunch of other pieces need to fall into place for this to be a viable attack vector.

Yea.... you're not very involved in the cybersecurity field are you lol. "It's just one hole in the swiss cheese" is not a thing cybersecurity people say. Like, I had multiple professors back in the day that would've full on screamed at you in front of the class for saying that.

The cert authority was compromised, from my understanding. Anyone could've signed new certs with it with whichever new domains.

Unfortunately I don't have time to go dig and double check right now, but I think you're thinking certs for individual websites were the issue, and that's not it. Their signing key was weak, wasn't it?

5

u/Thx_And_Bye Oct 23 '26

Yes the intermediate certificates were compromised.

Also just as a note: Without using DNSSEC or an encrypted DNS (which for some reason still isn’t the default) doing a man in the middle for a wrong ip to a website with a malicious but trusted certificate is as easy as a timing based attack. Just send your malicious DNS response before the configured DNS server answers.

→ More replies (2)

1

u/ComplicatedAirFlow Oct 24 '26

You're right that it would be technically more secure having less trusted certs.

But just because it's mainly used in India doesn't mean it's only used in India. From my reading some US companies did use their certificates.

Start removing trusted root CAs and you'll eventually run into more issues than you'd prevent I'd imagine.

1

u/entronid Oct 24 '26

any TLS CA can sign a certificate for any website

1

u/SuperFLEB Oct 24 '26 edited Oct 24 '26

I have heard that people are looking for opportunities to jailbreak devices that might have that CA baked into their firmware. It's not terribly likely, but it's not impossible.

3

u/CarkRoastDoffee Oct 23 '26

They're still in business, as the Certificate Authority gig was a small part of their operations. It's worth noting that this has resulted in a significant blow to their stock value, however

4

u/100percent_right_now Oct 23 '26

eMudhra is a MASSIVE company bro. They shunted their SSL/TLS certs department, less than 1% of their revenue. Didn't even fire anyone yet, at least publicly.

2

u/k8s-problem-solved Oct 24 '26

"Noone will ever guess it! They all think we're using 256 length"

15

u/PixelatedGiant Oct 23 '26 edited Oct 23 '26

Using public-private key encryption you create a private key. That private key can be used to create certificates that can be signed and then verified using the public key.

Basically someone figured out that their private keys that were literally just the numbers 4, 56, 66, 115, 155, 156, 230 and 237. Those numbers are supposed to be 116 digits long making them impossible to guess. Meanwhile their keys were 1-3 digits in length.

If you know the private key you can create a certificate and pretend to sign things on their behalf. In this case all 8 of those keys were figured out by counting from 1-237 and trying them all. It's beyond dumb and likely just test keys that accidentally got used.

4

u/1nd3x Oct 23 '26

It's beyond dumb and likely just test keys that accidentally got used.

"Everybody knows everyone uses keys that are 116 digits long...nobody would bother to try and brute force check our keys starting from the number 1...they'd obviously start at the number 1x10¹¹⁵, so it's extra safe to use low numbers that everyone is just going to skip over"

1

u/Worried_Onion4208 Oct 25 '26

Well, it doesn't matter when the keys start in a brute force attack, and reducing the range by starting higher actually reduces the effort, it doesn't increase it.

1

u/1nd3x Oct 25 '26

Well, it doesn't matter when the keys start in a brute force attack,

The key is a key, it doesnt start anywhere, it's fixed.

and reducing the range by starting higher actually reduces the effort, it doesn't increase it.

Yes...that's why people would do it. Which is why I then made a joke about deliberately choosing a key outside of the narrower bounds a hacker might set while trying to brute force it, and implying that in itself is part of the security of it.

Essentially the same as saying "they wouldn't think we were stupid enough to use 'Password' as our password, and that is why we will use it!"

1

u/G3nghisKang Oct 24 '26

said it's getting out of business [...] cited increasing costs and complexities of compliance requirements

Lmao what

1

u/Worried_Onion4208 Oct 25 '26

Oh ok all of them were bad, I thought it was just them being extremely unlucky with their RNG, but that's beyond unlikely to happen

2

u/PixelatedGiant Oct 25 '26

eMudhra’s statement about the incident says it generated keys during “a Key Generation Ceremony (KGC) held on April 30, 2025, using FIPS 140-2 Level 3 Hardware Security Modules (HSMs).”

Such hardware is the standard kit for the job and should in theory produce nicely complex keys and store them securely.

But something went wrong.

“A flaw in the KGC caused a wrap/unwrap step to produce a second set of weak keys alongside the original strong keys,” the statement claims. “The weak keys were the ones published to the browser root stores. eMudhra is working to establish the root cause.”

So I looked into it more and they are claiming that they generated 2 sets of keys, one of them purposefully weak for some reason and published the wrong set.

1

u/Worried_Onion4208 Oct 25 '26

It is theoretically possible but yeah that explanation makes way more sense, humans are really the weak links in cyber security

1

u/alexanderpas Oct 27 '26

About as likely as getting struck by lightning 160 times and surviving.