Skip to content

KyberSlash: a check that the linked library is a release after the public fix, and a measured timing test

The linked library is a release after the public fix, and on the lab's own machine the measured decapsulation timing shows no detectable dependence on secret data.

KyberSlash is a publicly disclosed timing problem in some implementations of Kyber, the scheme that became the ML-KEM standard: the time some code took depended on secret values. The lab's check does two things. It reads which release of the liboqs library is linked and confirms it is one after the fix, and it measures whether decapsulation, the step that uses the secret key, takes time that depends on secret data.

What it shows

Two facts, checked by one command. First, the build of liboqs this test links is a release after the public KyberSlash fix, so the release includes that fix; the timing test below is the only check on the code that runs. Other tests in the lab may link a different build; the version check covers this one.

The timing test

Second, the lab measures the timing of ML-KEM decapsulation directly. It runs the operation many times on two classes of input, one fixed and one random, and applies a standard statistical test to the two sets of timings. The verdict is that no secret-dependent timing is detected.

The exact test statistic moves a little from run to run on the same machine, so the lab records the verdict, not a single number, and the check passes only while the statistic stays under a threshold set before the run.

Why it matters, and to whom

This is for teams shipping quantum-resistant key exchange, Wi-Fi among them, who need to know that the library they depend on is past a known timing problem and who want a measured check rather than an assumption. A version check alone says only that a fix was released; a timing measurement on the actual build says something about the code that runs.

How it was checked

The evidence file names the command that reads the library version and runs the timing test, and records its run on a clean copy of the code.

Testing the check

The lab tested the check by breaking it on purpose. In one test it set the measuring instrument to report a timing leak whatever it saw, and the check failed. A second test targeted the version check, and the check failed again.

What it does not claim

  • It does not claim a proof of constant-time behaviour. A statistical test can miss a leak it was not shaped to see; it measures one machine, one build and one processor.
  • It does not claim a side-channel evaluation. Power and electromagnetic measurements need laboratory equipment the lab does not have, and none was made.
  • It does not claim the problem or the method is new. KyberSlash and its fixes are public, and the timing test follows a published method. What the lab adds is the check on its own build.

How to reproduce it

The evidence file names the command and the commit of the lab's code. A stronger test would run the same measurement on several processors and builds, and add a physical side-channel measurement.

Prior art

Evidence

Related results across the group

All results from OrbitalProof · The OrbitalProof home page

How we show numbers

Every result figure links to the file it comes from. See our published files