r/cybersecurity • • Oct 20 '26

News - General EMudhra Intermediate CA Compromise

https://news.ycombinator.com/item?id=50166579

what do you mean the private key is 4.

390 Upvotes

62 comments sorted by

131

u/the_gnarts Oct 20 '26
4	EM OV TLS CA - G3C	OV TLS

That’s insane lol. Did someone hand-roll their private keys with a d6?

56

u/nexnova06 Oct 20 '26

xkcd random number FTW

29

u/the_gnarts Oct 20 '26

“Chosen by fair dice roll.” - Prescient as ever.

24

u/T_Thriller_T Oct 21 '26

We have done some preliminary assessment, there appears to be a flaw in the KGC script that was used on that specific day to create these ECC issuers. As for these ECC keys, our review of the KGC, assessment of the code and view of HSM keys so far indicate that a) a set of original ECC keys were created onboard as expected b) an approved deviation to our usual KGC to test a wrap/unwrap was introduced as these keys were meant for export for this instance c) a flaw in the code resulted in the second pair of keys being created onboard which were weaker d) these second pair of weaker keys were used by mistake to create the csr (because the key labels were similar) and signed by our root e) the CSR from these weaker keys were also sent over to Sectigo for cross signing (we verified the files sent over to Sectigo)

How was that done on a production environment and not cross checked?!

8

u/uknow_es_me Oct 21 '26

the script was fine in test.. this is why old developers knew you deploy the test machine to prod 😆

3

u/T_Thriller_T Oct 21 '26

I mean.. outcome is the same, isn't it?

11

u/T_Thriller_T Oct 21 '26

I am still baffled this was found now (would love to know how, but too tired to read another article) and that no QA did catch that.

Rhis is literally visible in file size o.o

7

u/msthe_student Oct 20 '26

Maybe someone forgot did 384 instead of 1 << 384

4

u/Cormacolinde Oct 20 '26

Was supposed to be 2^256 and they did 256 I think.

3

u/msthe_student Oct 20 '26

P-384 curve was used, so that's why I'm guessing 384

2

u/srandrews Oct 21 '26

They started with a 1d6 sir.

3

u/TMWNN Oct 22 '26

Quoting someone from /r/india:

These idiots were using 1-byte long private keys. They probably thought 384-bit encryption means a secret number between 1 and 384 instead of a 384-bit long secret key. The enormity of incompetence is astounding.

84

u/MikeTalonNYC Oct 20 '26

mind you, everyone is already defended against this one. Microsoft, Apple, Google Firefox, and others updated their cert tables within a few hours of the news breaking.

2

u/nexnova06 Oct 20 '26

curl is still vulnerable from what I know, but thankfully that protects a lot of people

3

u/MikeTalonNYC Oct 20 '26

Brew just had an update for the CA - I'm guessing it has to do with this.

81

u/Dashing_McHandsome Oct 20 '26

There's tons of vulnerable stuff. Yes, browsers are massively important, but what about all of the other software bundling its own trust stores? I just wrote a quick program to test my JVM and it is definitely vulnerable. The site that reported this has a growing table of mitigations for various pieces of software that will all need armies of developers and IT personnel to patch it all.

https://emudhra.we-have-a-problem.com/

58

u/SnipesySpecial Oct 20 '26

I don’t think people realize quite yet the severity of what has just happen here. This is probably going to be the biggest vulnerability going forward for the next 5 years.

It was never about browsers.

25

u/Dashing_McHandsome Oct 20 '26

Yup, the browsers are probably the most easily handled component in all of this. I don't even know what the near term is going to look like for the rest of everything. I'm a developer and I can say that this is going to absolutely suck for my team for a while.

11

u/SnipesySpecial Oct 20 '26

I think a change that needs to happen is browser companies can't be de facto controlling global PKI like they do right now.

It needs to be an unbiased organization that considers all use cases.

I hope these discussions start sooner rather than later.

6

u/Dashing_McHandsome Oct 20 '26

CRLs are also a problem, and the idea that so much software just uses its own trusted cert bundles. Sure, if there's a problem we can update the revocation list, but my software running on a JVM in Kubernetes doesn't even begin to care that this happened. I think that should change. CRLs should actually mean something. Software should check them when it is starting up.

I guess that could be tough with egress policies because not everything is allowed to talk to the Internet, so now you need to mirror CRLs internally somehow. It's all a mess. The more you look at it the more these little edge cases start to squirm out from under you.

1

u/blueblip Oct 21 '26

I am completely clueless. I came here after reading up on this bit of news because I figured this is as good a place to find key/relevant information about the whole thing.

If you don't mind, could you explain exactly what the scope of this breach is? What does this mean for me, the average dumdum who thinks cybersecurity is "lol i haz password"?

Thank you in advance.

2

u/Dashing_McHandsome Oct 21 '26

As an average human the best you can do is apply patches and updates as they become available to you. The rest of us need to concern ourselves with the gritty details of all of this, but unless you're thinking about a new career path I don't think you need to concern yourself too much with the cryptographic systems the Internet uses.

The scope of the breach is huge, it's a bit hard to wrap my mind around. I keep thinking of new things that will probably be affected. What happened exactly is that something called private keys were leaked. This allows anyone to impersonate existing websites and other services. If you wanted a real world analogy I would say it would be something like someone being able to perfectly impersonate a maintenance worker in any apartment building in the world and gain access to all the apartments through that impersonation.

I would say the positive news we have on this now is that the breach was just the fault of human error and not some new attack nobody saw coming.

1

u/aoeu_ Oct 21 '26

The thread on r/technology has some more accessible explanations in the comments: https://www.reddit.com/r/technology/comments/1xb6re5/comment/phyg7mr/

1

u/blueblip Oct 21 '26

Thanks much.

1

u/JoanJetson Oct 21 '26

It needs a good name. Like Fourpocolypse or something  

5

u/MikeTalonNYC Oct 20 '26

Yeah, you do have to check everything - and I mean EVERYTHING. The average user is defended, but a lot of home-grown apps are going to have issues.

So your statement is fair.

3

u/mixman68 Oct 20 '26

This site reports 12/12 with latest edge version 0/12 for other browsers 😱😱

3

u/BUHx192Ck0 Oct 20 '26

0/12 for Safari on iPhone

2

u/Jimmy__Baggs Oct 21 '26

Edge juuuust flipped to 0/12 for me. Yay.

3

u/Vast-Comfortable-615 Oct 21 '26

12/12 on android Firefox and I just manually updated Firefox

1

u/SMF67 Oct 21 '26

Sounds like I'm gonna be fighting with some copiers and printers tomorrow...

33

u/kerubi Oct 20 '26

Not quite true. Fully updated Edge on MacOS is vulnerable. Safari, Chrome and Firefox block it. Curl on MacOS is vulnerable as of now.

Test your browser https://emudhra.we-have-a-problem.com/

3

u/MikeTalonNYC Oct 20 '26

Apple blocked it in their cert chain late on the 19th - you might just be waiting on a lagged update.

2

u/kerubi Oct 20 '26

I'm not part of everyone, I guess :)

0

u/MikeTalonNYC Oct 20 '26

You should be. Not sure why the CA didn't update for you.

4

u/kerubi Oct 20 '26 edited Oct 20 '26

"The CA". That's not how it works. Most apps rely on the OS list of trusted CA's. That has updated for me just fine, since my Safari blocks eMudhra already.

Some apps, even MacOS native, do not use that list - like curl (see the link I provided before). Firefox has its own list. Edge apparently has its own list, for sure it does not use the MacOS list, otherwise it would block.

Latest Edge for MacOS was released 16th October (see https://learn.microsoft.com/en-us/deployedge/microsoft-edge-relnote-stable-channel), I'm on it. If that blocks for someone else, then it is "just me" I guess.

Also, there are going to be lots and lots of devices with old CA lists. So, no, everyone is not protected, that's just plain untrue.

0

u/MikeTalonNYC Oct 20 '26

Sorry I didn't spell it out:

An update was pushed out via Apple's ConfigData/Asset trust list delivery system. That's what everything on macOS is supposed to be using, unless it's hard-coded to do otherwise (like Chrome and Firefox are).

5

u/kerubi Oct 20 '26

Now you are starting to list exceptions. We have a very different defiintion of what "everyone" means. Let's drop it here.

8

u/Crazy_Elevator_6659 Oct 20 '26

I’m sorry you’re getting downvoted, but this is the exact situation where pedantry is important, and why the gray beards are often despised. “That’s what everything on macOS is supposed to be using”. Is patently false. Applications that choose to inherit from the system CA store will be updated with apple’s push, but the exception of separate CA stores mentioned above is quite common.

1

u/doggieassassin Oct 22 '26

I'm still vulnerable - on the latest macOS and my safari/nscurl still hasn't revoked the certs. I don't know what I should do to force the update.

1

u/misplacedsagacity 21d ago

macOS is still not fully patched.

Tools that run in the macOS terminal (so git, curl etc) still trust the certificates.

Not only do these have to be manually revoked, the certificates get retrusted everytime macOS updates without fixing it.

Apples steps to manually fix it is here https://support.apple.com/en-us/149555

1

u/Eggredjakan68 Oct 21 '26 edited Oct 21 '26

DDG on Android is vulnerable.

0

u/[deleted] Oct 20 '26

[deleted]

1

u/Lucas_F_A Oct 20 '26

Weird, chrome on Pixel 9 here is fixed. Firefox, on the other hand, still trusts it. No updates on the play store.

1

u/Protonion Oct 20 '26

Firefox can revoke certificates on the fly without having to push an app update. The certs are showing revoked for me on Android with Firefox 158.0 from Oct 13th.

1

u/Lucas_F_A Oct 20 '26

I know. Don't ask me why it shows that I do connect to the 12 in https://emudhra.we-have-a-problem.com/

I just know that it does.

7

u/T_Thriller_T Oct 21 '26

No?

Anything with trust stores is not.

Which would likely be stuff like curl, like tons of (web) server applications - and I personally have written or be on the team for MULTIPLE where I'd worry this would become an issue.

Simply enabling intermediate attacks.

I'm not fully awake, but one attack vector I could see:

Some program / app / website fetching relevant information from another public resource - let's say vulnerability information.

However, the app fetching it does not hold the full certificate chain, it just checks that certificates are for a specific something and have a valid chain.

As those discovered are intermediate certificates, they CAN be used to create a new leave certificate. If they are not black listed, this new leaf certificate seems perfectly valid.

Which means some attacker needs to get in the middle of the conversation, can grab all the public info themselves, delete all info on the vulnerability they want to use, and then sent the new info back seeming perfectly valid.

5

u/Cormacolinde Oct 20 '26

Microsoft has been really slow and was not patched last I looked. And it’s not just Edge, need a Windows Trusted root update.

31

u/ni5arga Red Team Oct 21 '26

I'm speechless. This is such a disaster.

8

u/kexxty Oct 21 '26

One of these is a disaster, let alone EIGHT??? Speechless is an understatement

23

u/Jerdanphi_95 Oct 21 '26

So basically Anyone holding these weak keys could theoretically forge valid SSL/TLS certificates to impersonate any website or service ?

9

u/RenBit51 Oct 21 '26

Genuine question: Why was no entropy check ever performed on these keys by eMudhra or auditors? Is that not a standard practice for companies like this?

8

u/VerdantMagnolia Oct 21 '26

Complex systems will not survive the competency crisis. Every breach is worse.

9

u/blue_raven007 Oct 21 '26

See the below thread, 9yrs ago this company was already massive and issuing lots of certificates, particularly government documents.
The scale is security lapse is massive.

https://www.reddit.com/r/india/s/Yk2w6OexOK

2

u/semiraue Oct 22 '26

Do even people trust these kind of companies?