# jvdsn/crypto-attacks

Python implementations of cryptographic attacks and utilities.

Repository: https://github.com/jvdsn/crypto-attacks
Canonical: https://ross.abutalabs.com/products/crypto-attacks
Language: Python
License: MIT
License Family: permissive
Topics: cryptography, ctf, ctf-tools, lll, elliptic-curves, rsa
Last push: 2026-01-08T04:58:27+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 35, longevity 100
- inputs: {"age_days": 2266, "days_push": 237, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1285, forks 145 (observed 2026-08-28T04:04:14.755601+00:00)

## What it is
A collection of Python implementations of cryptographic attacks and utilities, built on SageMath and PyCryptodome. It covers attacks against RSA, elliptic curves, lattices, and other primitives, primarily aimed at CTF players and cryptanalysis researchers.

## Use cases
- solve RSA CTF challenges with Boneh-Durfee or Wiener attacks
- run lattice reduction attacks like LLL on cryptographic parameters
- recover private keys from weak elliptic curve parameters
- find small roots of polynomial equations modulo N
- experiment with cryptanalytic algorithms in Python
- learn how classical cryptographic attacks work by reading implementations

## When to choose
- you are solving CTF crypto challenges involving RSA, ECC, or lattices
- you need reference implementations of published cryptanalytic attacks
- you already use SageMath and want ready-made attack scripts
- you are studying or teaching cryptanalysis with runnable code

## When to avoid
- you need a production cryptography library for encrypting or signing data
- you want a turnkey CLI tool that attacks targets without writing code
- your environment cannot install SageMath
- you need audited, side-channel-safe cryptographic primitives

## Facets
- artifact type: library
- maturity: active
- function: cryptography, security, developer-tools
- domain: security
- platform: python
- tags: ctf-tools, cryptanalysis, rsa-attacks, lattice-reduction, elliptic-curves, sagemath, lattice-attacks, small-roots, cryptography, algorithms, linux, macos

## Member repositories
- jvdsn/crypto-attacks (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:14.755601+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:56:40.076308+00:00, confidence not recorded.
  - readme: https://github.com/jvdsn/crypto-attacks (fetched 2026-08-28T04:04:14.755601+00:00, sha e28ccc82fcb4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
