Hey everyone. I stumbled upon some code on github about a backdoor in ECDSA. I checked out the rsz values but I'm totally lost. Anyone know what the leaked values are and how they work?
Understanding Backdoor ECDSA: What's Going On?
8 replies 203 views
wizard_2016Full Member
Posts: 127 · Reputation: 575
#2Sep 9, 2024, 12:20 AM
Basically, the attacker manipulates the nonce selection so some secret can be extracted from each signature. The leaked secret could be anything, but in the example, it’s just a random value. The way it works is they compute k by mixing a small part of the secret with a value only they know. It's like exposing k when it shouldn't be.
rocket_2019Member
Posts: 23 · Reputation: 204
#3Sep 9, 2024, 01:30 AM
I got something similar a python script that simulates this. It generates random signatures with a 128-bit leak, then assumes they’re real transactions and uses LLL reduction to uncover the PrivateKey.
Can I run your script with actual values? I’m not sure how to do that. Do you have to use trial and error to find b or is it just an integer?
wizard_2016Full Member
Posts: 127 · Reputation: 575
#5Sep 12, 2024, 10:56 AM
Dude, b is chosen by the attacker. Your questions suggest you might need a better grip on cryptography before diving too deep into this.
Wait a minute... Can this code work without signing, or sending coins, or messages to the attacker? If it can, we could fake a public key using bits from the victim’s keys, right? How does that even work?
The author removed the repo.
I asked something and it got deleted. Not sure why. Spent hours online trying to figure out how to use those leaked parts.
I’m using the leaked parts for matrix GF[2], but Bitcoin uses GF[7]. It’s a weird situation. I still don’t get what scrypt finds in the end. Got a clue? OpenAI mentioned different r and s from various privkey-message pairs... Are you following this?
Related topics
- Understanding the Differences Between Traditional and Simplified Chinese Mnemonics 6
- Understanding Square and Cube Roots in secp224k1 6
- Understanding Fees with Taproot Script Usage 3
- Citrea's Testnet Troubles: What's Going On? 7
- Issues with ripemd160 on Ubuntu 22 9
- New Bitcoin Improvement Proposal with $100 Reward 9