Skip to content
sectio-aurea-qPublic

About

Automated Side-Channel Scanner for Post-Quantum Cryptography — FIPS 203, 204, 205

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VÄRN-60 (Anu)

An automated timing side-channel scanner for the NIST post-quantum standards.

VÄRN-60 crafts valid and deliberately malformed ciphertexts, feeds them to a key-decapsulation routine, and times each call, on Apple Silicon also with the hardware performance counters. A Welch t-test and Cohen's d then decide whether malformed inputs are handled in a measurably different time. It covers all three NIST standards: ML-KEM (FIPS 203), ML-DSA (FIPS 204) and SLH-DSA (FIPS 205).

To my knowledge, it is the first scanner that brings these four things together in one tool: all three NIST post-quantum standards, a targeted Fujisaki–Okamoto oracle, static and dynamic checking, and hardware counters on Apple Silicon. General constant-time checkers came before it — ctgrind (2010), dudect (2016), TIMECOP in SUPERCOP — and VÄRN-60 does not replace them; it specialises where they are general. It was developed independently.

Result

ML-KEM-768 on an Apple M4 Pro, 1000 timings for each of 15 ciphertext classes, interleaved measurement: no timing leak. The largest difference to the valid class is about 24 ns against about 1320 ns of noise; maximum Cohen's d = 0.018 (leak threshold 0.20), every p near 1. Five ML-KEM-768 implementations scanned with multi-lib are constant-time as well.

ML-DSA signing time varies from one signature to the next. This is not a leak: the algorithm uses rejection sampling, so the number of attempts, and with it the time, varies by design.

Correction (13 October 2026)

An earlier version measured each ciphertext class in its own block, one after another. On a laptop that warms up and changes clock frequency while it runs, the later blocks drift, and the drift looked like a leak (Cohen's d ≈ 0.7). That result was an artifact and is withdrawn. The measurement now interleaves the classes: every round times each class once, in rotating order, so warm-up and thermal drift fall on all of them equally. With this fix the apparent leak disappears.

Build and run

cargo build --release
./target/release/anu info     # chip, cache, timer resolution, licence status
./target/release/anu demo     # free scan: ML-KEM-768, 1000 samples, no licence needed

The full audit across all three standards (fo-oracle, multi-lib, verify and others; see anu --help) requires a licence key (--license or the environment variable ANU_LICENSE).

More: https://sectio-aurea-q.github.io/varn-60.html

Licence

Proprietary; the demo scan is free to use.

Author

Sabrina Hackfort (sectio-aurea-q) · ORCID 0009-0007-7458-2487 · meg.depth@proton.me

About

Automated Side-Channel Scanner for Post-Quantum Cryptography — FIPS 203, 204, 205

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages