| name | crypto-attacks |
| description | Cryptography attack techniques — RSA, ECC, symmetric ciphers, hash collisions, PRNG attacks, lattice/LWE. Use when the challenge involves encryption, decryption, key recovery, nonce reuse, padding oracles, or cryptanalysis of custom schemes. |
| license | MIT |
| compatibility | Requires filesystem-based agent with Python 3, SageMath, pycryptodome, and gmpy2. |
| allowed-tools | Bash Read Write Edit Glob Grep WebSearch |
| metadata | {"user-invocable":"true","argument-hint":"<crypto-type or ciphertext>"} |
Cryptography Attacks
Triage
n = ...
e = ...
Document Map
| Signal | Document |
|---|
| RSA (n, e, c), textbook RSA, signature oracle | RSA Attacks |
| ECC parameters, small subgroup, anomalous curve | ECC Attacks |
| AES-CBC/CTR/GCM, padding oracle, nonce reuse | Symmetric Ciphers |
| MD5/SHA-1/SHA-256, hash extension, collisions | Hash |
| MT19937, LCG, XorShift, C rand(), Java Random | PRNG Attacks |
| Lattice reduction, LWE, HNP, knapsack, subset-sum | Lattice & LWE |
Common Attack Checklist
Quick Tools
python -c "from Crypto.Util.number import *; print(long_to_bytes(int(gmpy2.iroot(c, e)[0])))"
curl -s "http://factordb.com/api?query=$n"
python -c "from owiener import attack; print(attack(e, n))"