Finding Bugs and Features Using Cryptographically-Informed Functional Testing
Applies black-box functional property testing, extending Mouha et al.'s SHA3 method, to find bugs and counter-intuitive features in PQ KEMs and signatures in LibOQS.
Schemes: LibOQS, SUPERCOP
Findings (quotes checked against the source text)
-
Testing LibOQS PQ KEMs and signatures found software bugs such as crashes and memory overflows, plus cryptographic bugs including ciphertext malleability in KEMs claiming IND-CCA security.
We identify multiple bugs, ranging from software bugs (segmentation faults, memory overflows) to cryptographic bugs, such as ciphertext malleability in KEMs claiming IND-CCA security.
-
Some KEM and signature behaviours do not break stated security guarantees but may surprise implementers.
We also observe various features of KEMs and DSSs that do not contradict any security guarantees but could appear counter-intuitive.
-
Traditional fuzzing was less effective than the property-based approach at surfacing software and logical bugs in LibOQS and SUPERCOP.
Finally, we compare this methodology with a traditional fuzzing campaign against LibOQS and SUPERCOP, observing that traditional fuzzing harnesses appear less effective in surfacing software and logical bugs.
-
The tests ran across multiple LibOQS versions, so they cover implementations from different stages of the NIST PQC standardization process.
We perform our tests on multiple versions of the LibOQS collection of post-quantum schemes to capture implementations at different points of the recent Post-Quantum Cryptography Standardization Process run by NIST.
For builders
Before adopting a PQ library in a chain, run property-based and fuzz tests against its KEM and signature code, since reference implementations have shipped malleability and memory bugs.
Limits
Based on the abstract only; the full text was not reviewed. The abstract gives no bug counts, affected schemes, or severity details.
Topics: kem sig-other cryptanalysis implementation-sidechannel