https://github.com/systemslibrarian/crypto-lab-model-breach
Browser-based HiAE threat model case study — AESL, Theorem 1 candidate enumeration, MITM state recovery, byte decomposition, guess-and-determine key recovery. Security claims are contracts. The threat model is the fine print. No backends. No simulated math.
https://github.com/systemslibrarian/crypto-lab-model-breach
aead aes algebraic-attacks browser-demo crypto-lab cryptography meet-in-the-middle security-analysis threat-modeling typescript vite
Last synced: 1 day ago
JSON representation
Browser-based HiAE threat model case study — AESL, Theorem 1 candidate enumeration, MITM state recovery, byte decomposition, guess-and-determine key recovery. Security claims are contracts. The threat model is the fine print. No backends. No simulated math.
- Host: GitHub
- URL: https://github.com/systemslibrarian/crypto-lab-model-breach
- Owner: systemslibrarian
- Created: 2026-04-17T06:47:41.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-17T08:06:59.000Z (about 2 months ago)
- Last Synced: 2026-04-17T10:14:55.300Z (about 2 months ago)
- Topics: aead, aes, algebraic-attacks, browser-demo, crypto-lab, cryptography, meet-in-the-middle, security-analysis, threat-modeling, typescript, vite
- Language: TypeScript
- Homepage: https://systemslibrarian.github.io/crypto-lab-model-breach/
- Size: 86.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crypto-lab-model-breach — When the Contract Breaks
> "Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God."
> — 1 Corinthians 10:31
## What It Is
A live case study in the most important and most misunderstood idea in
applied cryptography: security claims are contracts, and the threat model
is the fine print.
HiAE (ePrint 2025/377) is a real AEAD scheme achieving 340 Gbps on x86
and 180 Gbps on ARM — the fastest cross-platform AEAD ever published.
It claims 256-bit security against key-recovery attacks in the
nonce-respecting setting. That claim is correct.
This demo uses the algebraic attack from ePrint 2025/1203 (Hu et al.,
June 2025 — https://eprint.iacr.org/2025/1203.pdf) as a live illustration
of what happens when an adversary operates outside the assumed boundaries:
under a stronger model where the attacker can submit unlimited forgeries
to the decryption oracle, security falls to 2^209. The HiAE designers
responded in ePrint 2025/1235, maintaining their claims are intact under
the original model. Both positions are correct — which is exactly the point.
Implements real AESL (one AES round, zero round key), a structurally correct
toy-scale HiAE, and simulates all three attack phases with line-by-line output
and full-scale complexity annotations. No backends. No simulated math.
## When to Use It
- You need to teach the difference between a security claim and absolute safety
- You are evaluating an AEAD for a deployment and need to reason about
your actual adversary model, not just the scheme's stated security level
- You want to understand why "no known attack" always has an asterisk
- You are building systems that expose decryption as a service and need to
understand the implications
## Live Demo
https://systemslibrarian.github.io/crypto-lab-model-breach/
## What Can Go Wrong
- **The threat model mismatch:** This attack requires both an encryption oracle
AND a decryption oracle that accepts 2^128 forgery attempts. If your deployment
cannot expose a decryption oracle to adversaries, you are in the standard model
and HiAE's 256-bit claim holds.
- **Toy scale vs full scale:** The demo runs on 4-block reduced HiAE with ~2^8
search spaces. Full attack: 2^130 data, 2^209 time. Not browser-runnable.
The algebraic structure is identical — only the scale differs.
- **The concurrent paper:** Bille & Tischhauser (ePrint 2025/1180) independently
reached the same conclusions simultaneously. This is not a solo discovery —
it reflects a known gap in this family of AEADs.
## Real-World Usage
The same extended-oracle attack framework was applied to AEGIS first, then
Rocca, now HiAE. The pattern suggests any AES-round-function-based AEAD with
insufficient key mixing at initialization/finalization may share this
structural property. If you are designing a new AEAD, your security analysis
should explicitly address the extended decryption oracle model even if you
choose to exclude it from your formal claims.
HiAE itself is the IETF CFRG draft draft-pham-cfrg-hiae. Deployment decisions
should account for whether 6G or GPU/NPU interconnect environments can expose
decryption oracles to adversaries capable of 2^128 queries.
## Stack
Vite + TypeScript strict + vanilla CSS. GitHub Pages. No backends.
No external crypto libraries. WebCrypto API only for all primitives.
## Build
```bash
npm install
npm run build
npm run dev # local dev server
```