Static Detection of Post-Quantum Cryptographic Algorithms in Stripped Binaries for Digital Forensic Examination and Migration Assurance
Kestrel statically detects ML-KEM and ML-DSA in stripped, statically linked binaries by matching NTT zeta constant tables, with a stated false-positive bound and a 6,224-binary sweep.
Schemes: ML-KEM, ML-DSA, SLH-DSA, Kyber, Dilithium, QED, FindCrypt, Kiona crypto-detection
Findings (quotes checked against the source text)
-
Kestrel derives NTT constant-table fingerprints from public scheme parameters and identifies ML-KEM and ML-DSA in stripped, statically linked binaries across build transformations.
Across four independent implementation lineages and all build transformations, including compiler-level obfuscation, Kestrel achieved recall of 128 of 128 with zero false positives.
-
Across a sweep of 6,224 system binaries, the detector produced no false positives and found twelve uncatalogued programs containing ML-KEM.
Applied to 6,224 binaries on a production Linux system, it disclosed twelve uncatalogued programs containing ML-KEM, among them the OpenSSH key-exchange program and the container-management stack
-
The method does not cover SLH-DSA, FFT-based signatures, or code-based schemes, and runtime-computed constants defeat static detection.
It does not address SLH-DSA, which is hash-based and stores no such table, nor the FFT-based signature scheme
-
The reduction constant and fixed artefact sizes were rejected as primary signals because they reside in the code section, which optimisation and obfuscation rewrite.
They are consequently reported as corroborating signals with measured recall, never as primary discriminators.
-
The paper's own false-positive bound is analytical and stated as a quantity, but the detector's threshold was not tuned on the sweep and the noise floor sits well below the signal.
The noise floor, defined as the highest score attained by any binary without post-quantum cryptography, was 27 against a threshold of 32, while every genuine detection scored the full 128.
Numbers (as extracted, not quote-checked)
- ML-KEM NTT table size (forward twiddles, C reference): 256 bytes
- Twiddle bytes, two-table from-spec (Go, RustCrypto): 512 bytes
- Twiddle bytes, three-table (BoringSSL): 768 bytes
- Corpus files swept: 6224 binaries
- Detection threshold / noise floor on sweep: threshold 32, noise floor 27
For builders
Constant-table scanning can inventory PQ primitives in shipped binaries for migration audits, but it is an inventory tool, not a PQ chain design input.
Limits
Evaluated only on ML-KEM/ML-DSA lattice schemes; misses runtime-computed constants, SLH-DSA, FFT-based schemes; single-author, independent researcher; corpus is mostly C/Go/Rust implementations.
Topics: implementation-sidechannel sig-lattice kem standards-policy benchmarks threat-model cryptanalysis