logoalt Hacker News

Eight Bits of Trust; eMudhra's CA keys cracked in milliseconds

277 points • by hkc • today at 9:08 AM • 114 comments • view on HN

Comments

jasonjayr • today at 11:38 AM

> It's fortunate that the steps required here aren't particularly complicated for the devices you can update, and the advice essentially boils down to 'update them'. The problem is the devices you can't update or update easily.

> Update everything that ships a CA bundle: your OS ca-certificates package, certifi, Node, Homebrew, and rebuild your container images once the base images pick up the change.

> Devices you can't update are the hard part. Routers, printers, TVs, appliances with frozen firmware will trust these certificates until expiry, which is July 2039...

Quick -- we need to MITM all the smart TVs so they can be jailbroken in one fell swoop!

➕ show 4 replies
jlmorton • today at 9:58 AM

In retrospect, having 100 trusted certificate authorities might have been excessive.

➕ show 3 replies
WalterGR • today at 9:52 AM

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

“eMudhra intermediate CA compromise” | 947 points | 19 hours ago | 408 comments

bombcar • today at 9:49 AM

Of COURSE it's easy to crack, 4 isn't even prime!

➕ show 6 replies
supernes • today at 10:27 AM

Two more things to note about impact assessment: Flatpak uses the selected runtime's baked-in trust store (I think), so any apps may be susceptible even if you update the system package. Containers also don't inherit the host's trust store and use the one from the base image.

nmeofthestate • today at 11:30 AM

I wonder how someone stumbled upon this - maybe leaked by someone inside eMudhra?

Since there's nothing to indicate that the private key was all zeroes and one non-zero lsbyte, and presumably nobody would try to brute-force a private key.

tniemi • today at 10:42 AM

Someone used the Dilbert random number generator. https://www.random.org/analysis/

➕ show 1 reply
eviks • today at 11:58 AM

> recovered all of them from their public certificates on my laptop just now, and it took less than a second.

Why wasn't this second spend by the parties accepting those certificates as valid before they were accepted?

tclancy • today at 10:18 AM

I will say, there’s something almost reassuring when something goes boom that badly and the story is really silly. It’s like [horrific human-caused disaster] but it’s because of a Three Stooges episode.

positive-spite • today at 9:39 AM

That's some criminal negligence right there.

8 bits is crazytalk!

➕ show 2 replies
Qision • today at 9:55 AM

It feels like they chose the private keys by hand.

➕ show 4 replies
sscaryterry • today at 10:22 AM

I wouldn't be surprised if we learn in the near future, that this was deliberate.

➕ show 4 replies
mnx • today at 11:41 AM

I made test.key4.lol if you want to quickly check if your device/browser is vulnerable still.

sylware • today at 12:00 PM

The CA concept itself is flawed, unless normal users were able to cherry pick the CA they do trust, dream. And even with that, they must keep in mind that many authorities and/or mafias have very probably rogue certificates for browser invisible man-in-the-middle.

TazeTSchnitzel • today at 10:06 AM

Could HN start feeding submissions through Pangram so us human readers don't have to suffer with reading the nauseating AI-prose?

➕ show 3 replies
dbcooper • today at 10:36 AM

All the numbers were under 384. Surely they couldn't have ...

➕ show 1 reply
maeln • today at 10:00 AM

eMudhra explanation : https://bugzilla.mozilla.org/show_bug.cgi?id=2083449#c11

Kind of hard to understand how a bug would have generated a second pair of key so bad, and how would human would have ended up using them. Never attribute to malice what can be attributed to stupidity, but sometimes you wonder.

➕ show 2 replies
hypfer • today at 10:17 AM

This is not a good write-up. Yesterday's discussion did contain better data, less self-Promotion and actually asked why it happened, instead of just saying "number small".

joelkoen • today at 11:20 AM

Someone else has published usable .key files here: https://github.com/Fluepke/emudrahahahahaha

dist-epoch • today at 10:26 AM

> and no TLS certificates chaining to these CAs ever showed up in CT

Why are browsers trusting CAs which issued zero certificates since their creation 1 year ago?

➕ show 2 replies
koolba • today at 10:55 AM

What the chances there’s another CA key out there with something like unix time as the key?

siwatanejo • today at 10:05 AM

https://xkcd.com/221/

➕ show 1 reply
karel-3d • today at 11:49 AM

Crypto nerds: "we need to worry about post quantum crypto! we need to worry about AI breaking foundational math that we use for cryptography! make new cryptographic algorithms yesterday"

some random CA: "lol. 4."

AlexITC • today at 11:28 AM

Another very unfortunate even next to the php, fun times we are living in.

glimshe • today at 10:41 AM

"Hah! 0x000...0 is the most secure private key I could use because nobody will think of trying that! Too obvious! Just like my 1234 bank pin!"

naabozaurus • today at 9:57 AM

hey, at least it was easy to remember...

binyu • today at 10:49 AM

[dead]