Sign inSign up

credkellar/quantum-brutal-force

By credkellar

•Updated 4 days ago

Quantum brute-force lab: keyspace math, Grover and Shor margins, synthetic only, no live use at all.

Image
Security
Machine learning & AI
Developer tools
1

44

credkellar/quantum-brutal-force repository overview

⁠⚛️🛡️ Quantum-BRUTAL-FORCE

Created by Darion Kellar

A defensive reverse-engineering lab that measures how much safety margin brute-force targets have left in the quantum era. It classifies synthetic attack traces, computes the classical keyspace, then applies the two quantum corrections that matter:

  • Grover (quadratic speedup, effective bits halved): a 94^8 password space drops from 52.4367 classical bits to 26.2184 post-Grover bits. Demonstrated for real on a capped 64-item simulation — marked state 0.9966 probability vs 0.0156 classical uniform.
  • Shor (period-finding): demonstrated at teaching scale, 15 = 3×5 (period 4) and 21 = 3×7, gcd-verified. Planning model: RSA/ECC/DH fall to an ideal large fault-tolerant Shor machine; AES-256 and salted slow KDFs do not.

Every verdict ships quantum-era mitigations: double symmetric margins, Argon2id/bcrypt/scrypt, and post-quantum migration (ML-KEM / ML-DSA) for harvest-now-decrypt-later risk.

⁠Inside

  • 50-tactic taxonomy (44 classical + 6 quantum-era), each with detection + mitigation
  • Honeypot pattern classification + from-scratch kNN second label
  • Bell-state self-check on a hand-rolled statevector simulator (≤6 qubits)
  • Gemini Carbon 4 Extended Thinking decides (MAP → MODEL → STRESS → DECIDE, offline-authoritative); Muse advises. Neither ever overrides a HOLD gate.

⁠Scope

Synthetic data only. The chamber executes nothing, no live target is touched, and no quantum hardware or quantum cloud is used — 8 HOLD gates block live brute force, real-key cracking, live quantum hardware and cloud job submission. Simulations are capped (Grover space ≤256, Shor N ≤100); the Grover seconds figure uses a labelled hypothetical iteration rate.

⁠Quick start

docker pull credkellar/quantum-brutal-force:latest docker run --rm credkellar/quantum-brutal-force:latest docker run --rm credkellar/quantum-brutal-force:latest python main.py shor docker run --rm credkellar/quantum-brutal-force:latest python main.py checks

Pure Python 3.12 stdlib, zero dependencies, one CLI. Verified at build: 13 tests passing, CHECKS 37/37.

GitHub: https://github.com/credkellar/Quantum-BRUTAL-FORCE⁠

Tag summary

Content type

Image

Digest

sha256:2651cf460…

Size

49.2 MB

Last updated

4 days ago

docker pull credkellar/quantum-brutal-force