When Removing Reductions Goes Wrong: Auditing Reduction Placement in Production ML-DSA Implementations
Audits which Montgomery reduction calls can be removed in eight ML-DSA libraries via bound propagation and SMT/Coq certificates, finding a wolfSSL small-path signing defect.
Schemes: ML-DSA, Dilithium, wolfSSL WOLFSSL-DILITHIUM-SMALL
Findings (quotes checked against the source text)
-
Omitting post-matrix-multiplication reductions in wolfSSL's memory-optimized ML-DSA path causes overflow, non-conformant arithmetic, and signing failure despite passing existing KAT tests.
where omitted post-matrix-multiplication reductions cause overflow, non-conformant arithmetic, and signing failure while surviving the implementation's existing KAT tests.
-
An exact-integer recovery result for sparse-challenge products tightens post-InvNTT bounds from (-Q,Q) to [-τη, τη], separating safe sparse-path omissions from load-bearing dense-product sites.
The key technical ingredient is an exact-integer recovery result for sparse-challenge products, which tightens post-InvNTT bounds from (-Q,Q) to [-τη, τη] and separates safe omissions on sparse-product paths from load-bearing dense-product sites.
-
Reduction sites are classified as redundant or necessary by propagating coefficient bounds across the full signing path, starting from the conservative pq-crystals topology.
Starting from the conservative pq-crystals topology, our analysis propagates coefficient bounds across the full signing path and classifies reduction sites as redundant or necessary.
-
Site classifications are backed by replayable SMT-LIB2 certificates, with core integer-bound lemmas cross-checked in an axiom-free Coq development.
The site classifications are backed by replayable SMT-LIB2 certificates, with the core integer-bound lemmas cross-checked in an axiom-free Coq development.
For builders
Treat lazy-reduction removals in ML-DSA code as correctness-critical, verify them with bound analysis across the whole signing path, and do not rely on KAT vectors alone to catch them.
Limits
Scope is reduction placement in ML-DSA implementations of eight libraries; the abstract gives no performance numbers and the full text was not read.
Topics: implementation-sidechannel sig-lattice benchmarks cryptanalysis