KrashKrash / ECDSA-SECP256K1-Signature-Analysis-Tool

A Tool to check for Vulnerabilities in ECDSA SECP256k1 RSZ Signatures.
0 stars 0 forks source link

ECDSA-SECP256K1-Signature-Analysis-Tool

A comprehensive tool for analyzing ECDSA signatures to detect cryptographic weaknesses, implementation flaws, and potential vulnerabilities in digital signature generation.

Overview

This tool performs deep analysis of ECDSA signatures to identify various cryptographic vulnerabilities, including:

image

Key Features

Usage

Technical Details

100% using Python 3. No external dependencies needed.

Vulnerability Detection

  1. GCD Vulnerabilities

    • Detects shared factors between r-values of any size
    • Identifies potential nonce generation weaknesses
    • Attempts private key recovery using GCD relationships
  2. Nonce Reuse

    • Complete nonce reuse (same r-value)
    • Partial nonce reuse (shared bits)
    • Close nonce values (small differences)
  3. Statistical Weaknesses

    • Bit length anomalies
    • Common prefix patterns
    • Low entropy in nonce generation
    • Biased bit distributions
  4. Implementation Flaws

    • Timing attack vulnerabilities
    • Weak random number generation
    • Linear relationships between signatures

Output Format

The tool generates detailed reports including:

Security Implications

This tool is designed to identify implementation flaws in ECDSA signature generation that could lead to:

Use Cases

  1. Security Auditing

    • Analyze signature implementations
    • Verify random number generator quality
    • Detect implementation vulnerabilities
  2. Research and Analysis

    • Study cryptographic weaknesses
    • Analyze signature patterns
    • Test implementation security
  3. Incident Response

    • Investigate potential compromises
    • Analyze signature anomalies
    • Assess vulnerability impact

Prerequisites

Warning

This tool is intended for security research and authorized testing only. Do not use it to analyze signatures without proper authorization.

Contributing

Contributions are welcome! Please feel free to submit pull requests, create issues, or suggest improvements.

Author

[KRASH/The Bes3rd]