364 points · by hannob · 1d ago · 80 comments
I used tracert to track the mail back to a specific machine at the Mississauga library (in Ontario Canada). Then we called the library and they told us who was logged to that machine at that specific time. Turns out, she knew the guy and the mystery was solved.
Libraries entertain requests like that even if they do not originate from a law enforcement body ?
So when someone calls you and asks about emails coming from your machine, you might just as well say who it was.
Life was simpler back then.
When I was in school we had Netware and if you typed a bunch of garbage over 8 characters on login it would freak out. Turns out you could buffer overflow the login application and control program execution if you typed the correct magic in. I had no idea about buffer overflows so I missed the implication and didn't get to control my school network at root level.
A few years later with an early version of IE back in the dial up days I damaged a link/URL to Microsoft Netmeeting and it came up with a BUFFER OVERFLOW error in Win95. I still had no idea about controlling program execution flow so I likely saved myself getting federally prosecuted after spreading a hack around online when I was still young and dumb.
There was just so much low hanging fruit around. And it's kinda crazy that some of it still shows up to this day.
To prove it worked I wrote a simple fingerd (RFC 1288, port 79 - for those that aren't old, we used to be able to `finger quarrel@host.tld` and get back the contents of a `.plan` file), and shared it to our wider international research group.
One of them replied pretty quickly with a webserver serving up some our docs on it. It was a much cooler demo.
I felt like an idiot for not having thought it! (to be fair, this was super early web days)
The best one was getting to ask Shaw if they’d turned their router off and then back on again.
For example, I used to work at an MSSP that sold managed IPS devices that customers would put in their network. If there was a connectivity issue to something you know is up, traceroute was typically the first tool in the arsenal.
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?
It was extremely appropriate to worry about that, and there was a fair amount of chaos there. It's just that the industry subsequently followed through and added transparency to that part of the system, which you may not have noticed because it was comparatively recent in the overall history of the web PKI!
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.
A private key value of 1 produces "egg," value 2 produces "salt," value 3 produces "blue." You do this for the first 10 values, and have used up 10 attempts.
You also find that you can reduce [my unknown private key] by [10] and see outputs. So you adjust my key [123,123] by 10 and get [123,113] which produces "igloo," and you keep doing that, going by 10s.
After 12,312 decreases, going by 10s, you get the output "blue." Since you already computed the first ten values, you know that "blue" is key 3.
So, thanks to decreasing by 10, 12,312 times, and getting the value that key 3 gave you, you can calculate that (10*12,312)+3=123,123, my private key, in far fewer computes.
If you have enough memory to calculate 1,000 baby steps before taking your giant steps, you can make your giant steps be 1,000 digits long each, rather than 10 in my example, and so on and so forth, to speed it up even more.
ECC math is pretty much just numbers, but the numbers are jumbled up so all you can do is add (and subtract, I think), you can't multiply or divide. (You can multiply a jumbled number by an actual number like 10, because that's just adding 10 times, but you can't multiply two jumbled numbers) The private keys are actual numbers so you can do whatever you want, the public keys are the equivalent jumbled numbers.
You work out mpk(1000),mpk(2000),mpk(3000),... in advance. You start with someones public key and add mpk(1) repeatedly 1000 times and if it ever matches any of the ones you just computed, then you know the private key. For example if their_publickey+mpk(234) == mpk(2000) then their_publickey == mpk(1766) and since their_publickey==make_publickey(their_privatekey), obviously their_privatekey==1766.
phrased in a different way: you can do the steps by [10] instead of one by one (if you keep a list of what the key could be for 0 to 9)
the algorithm works by decomposing the [unknown private key] that we want to find into a "remainder" (which you get after dividing by the "giant step" number, in the example 10, but it can be 100, or square root of the number of elements in the cyclic group used for a given key exchange) and a multiplier of how many times the "giant step" number divides the key.
But the tl;dr is, it was a cock-up due to bad processes, a bug in a script and ignoring some red flags later on.
Handling the unwrapped key material outside of the HSM was apparently in violation of their CPS, but nobody would have noticed if it wasn't for that bug.
I can see why they made the decision to exit the CA business afterwards - that is exactly the kind of thing that you do not do as a CA.
> Contributing Factor 1: Host‑side ceremony script error.
Description: Given that the script was a one off meant for export of key pairs, the approved wrap/unwrap deviation from the normal eMudhra KGC was executed with a custom python key‑handling script created by the PKI Operations team. After the wrapped key was returned, the script read the unwrapped private key’s value out of the module (in host side memory) and re‑created a key object from that host‑side value. For the ECDSA objects, a single line in that read‑back truncated the private value to its leading byte, so the re‑created object held a scalar below 256; this re‑created object (not the originally generated key) was used to produce the CSR and was certified. For the RSA objects, the same pattern did not truncate the key (integrity intact), but during re‑import the key material was handled within the volatile memory of the Python process on the ceremony host. A re‑import performed from host process memory is not consistent with the CPS §6.2.6 and the RSA objects are therefore treated as not meeting that requirement.
As Sony used the same k for each signature.
I'm most familiar with Curve25519, where private keys are simply 256-bit random numbers, with five of those bits ignored/overridden, resulting in effectively 251 random bits in a key. P-256 keys are similar.
To get technical: the base point on the curve is then "multiplied" by the key, resulting in a new point on the curve which is your public key. See curves.xargs.org for more details.
Feels like a blog post of an elite athlete "How I almost won the Olympics" where they describe the training and the test results and their qualification successes and then how they got a cold the evening before the finals, so, no gold. But almost!!1 (Or maybe more appropriately, before going to the Olympics they decided to focus on their law degree instead so never went. But almost!!1)
Seems like a reasonable hook to talk about the person's 'badkeys' work and clue people in on the whole situation.
I'm not saying credits would have been amiss, but it's also not far out there at all imo (none of the background info/story). You don't credit Nmap for finding an open telnet server on the Internet, and if you think to mention the tool you used, who's to say they came up with the idea of port scanning? Did they maybe "steal" that from someone? At least in security (that's my day job anyhow), I like to think we all learn from each other, with credits a goal that's secondary to safety (better one copied check than none). I personally wouldn't see adding a good idea as stealing credit, especially if you mention the inspiration source in a place like the commit or change log of a FOSS project, if it had come to pass in the way you describe in the first place