Skip to content

This project demonstrates an attack on ECDSA exploiting leaked MSB of nonce 𝑘. By constructing a linear system and applying LLL lattice reduction, the private key can be recovered. The code is modularized in Rust with key generation, signature, and attack modules. Stay secure: Use truly random nonces!

Notifications You must be signed in to change notification settings

ccsArtifacts/Attack-on-ECDSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

attack-on-ecdsa

Educational Rust crate demonstrating classical attacks against ECDSA when cryptographic assumptions are violated (e.g. nonce reuse).

⚠️ Disclaimer

This crate is for educational and research purposes only. Do NOT use in production systems.

Features

  • ECDSA key generation
  • Signature simulation
  • Private key recovery attacks

Example

'''rust use attack_on_ecdsa::break_ecdsa::recover_private_key;

About

This project demonstrates an attack on ECDSA exploiting leaked MSB of nonce 𝑘. By constructing a linear system and applying LLL lattice reduction, the private key can be recovered. The code is modularized in Rust with key generation, signature, and attack modules. Stay secure: Use truly random nonces!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages