Skip to content

feat: implement related nonce attack #6

Description

@oritwoen

Description

Detect and exploit predictable/related nonce sequences.

Background

When nonces follow predictable sequences (incrementing, XOR patterns, simple transformations), the relationship between consecutive nonces can be exploited for key recovery.

Requirements

  • Detect common nonce relationships:
    • Incrementing: k_{n+1} = k_n + 1
    • XOR patterns: k_{n+1} = k_n ^ constant
    • Multiplication: k_{n+1} = k_n * constant
  • Exploit detected relationships for key recovery

Technical Notes

  • Overlaps with LCG detection (LCG is a specific case)
  • May need heuristics to detect unknown patterns
  • Consider statistical tests for relationship detection

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions