Remix.run Logo
▲ fzeindl 3 hours ago

Would it be feasible to run a crawler that connects to all HTTPS ips on the internet and tries to bruteforce the key with a time budget of a couple of seconds?

Alternatively make browsers brute force keys when connecting via HTTPs, maybe distributing the work by checking a registry of keys that were already tried by some other user with the same browser?

▲tgsovlerkhgsel 2 hours ago | parent | next [-]

Certificate Transparency makes the crawling unnecessary unless you want to look for keys that are not issued by standard CAs that browsers trust.

▲fzeindl 2 hours ago | parent [-]

Intermediate certificates are not in the browsers’ trust stores.

▲hizlikovboy27 2 hours ago | parent | next [-]

"They are publicly available and signed by trusted root certificates (the certificates are logged in CT)" This is exactly why google's paranoidcrypto tool can capture them via CCADB/CT. Because only private,untrusted certificate authorities remain outside of CT.

▲hannob 2 hours ago | parent | prev [-]

They're in CCADB, so that's an easy source.

▲Retr0id 2 hours ago | parent | prev [-]

Per the article, the Baby Step Giant Step algorithm is more efficient than bruteforce for small keys.

▲hannob 2 hours ago | parent [-]

Nah, that's not really the case and not what I wanted to imply.

Computationally, "bruteforce" always wins for a larger number of keys, as you just have to generate all keys once and do a binary lookup in a list. (You can, however, also precompute parts of BSGS.) It's more a tradeoff between how large your blocklist is versus how many keys you want to cover.

Right now, I'm doing keys with 8 bit values via "bruteforce" (aka blocklist). I may switch to BSGS and do 16 bit. Going to 32 bit would, as far as my initial tests go, be too slow. At least for badkeys, where I want to be able to scan a large number of keys fast.

▲Retr0id 2 hours ago | parent [-]

Ah, what I meant to say was comparing bruteforce-without-lookup to BSGS-with-precomputation - which I suppose was comparing apples to oranges