Digitala Vetenskapliga Arkivet

Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparing Statistically Based Constant-Time Analysis Tools for Identifying Timing Side-Channels in CRYSTALS-Kyber
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Jämförelse av statistiskt baserade konstanttidsanalysverktyg för identifiering av tidsbaserade sidokanaler hos CRYSTALS-Kyber (Swedish)
Abstract [en]

In 2024, the National Institute of Standards and Technology (NIST) introduced the first three standardisations of quantum-resistant cryptosystems. However, when implemented incorrectly, these algorithms can have vulnerabilities, causing them to not even withstand classical computers. One such example is libraries implementing CRYSTALS-Kyber, which were proven to contain timing side-channels. Constant-time analysis is crucial for preventing timing side-channels. Statistically based constant-time analysis tools require limited knowledge of the underlying architecture of the studied system, making such tools accessible to a wide range of users. Because of this, we see a need for not only evaluating such tools’ abilities to identify timing side-channels in implementations of post-quantum cryptography, but also a comparison to determine which tool is most suitable. For the evaluation process, this thesis generates data sets containing the execution times of programs implementing the Decaps function from the reference library for the post-quantum cryptosystem CRYSTALS-Kyber. Multiple versions of the library are implemented, and the presence of KyberSlash vulnerabilities, or lack thereof, serves as the ground truth for the analysis. Using the fixed-vs-random technique for data collection, two classes of measurements are gathered. We select the four constant-time tools dudect, Mona Timing Report, R-Time-Leak-Finder (RTLF), and the Welch t-test, as the tools of interest for this study. The tools are given the data sets as input, and the outcomes are evaluated on accuracy, Type-I and Type-II error rates, as well as Matthews Correlation Coefficient. We find that none of the studied tools can correctly identify timing side-channels in the implemented post-quantum cryptographic algorithm, but RTLF has the best capabilities out of the studied tools. As the scope of this project is significantly limited, further studies implementing more post-quantum cryptographic algorithms and other statistically based constant-time analysis tools would be required to consolidate the result.

Abstract [sv]

År 2024 introducerade National Institute of Standards and Technology (NIST) de tre första standardiserade algoritmerna imon kvantresistent kryptografi. Dessa algoritmer kan dock, vid felaktig implementering, uppvisa sårbarheter som gör dem oförmögna att motstå angrepp även från klassiska datorer. Exempel på detta är bibliotek som implementerar CRYSTALS-Kyber, vilka har visat sig innehålla tidsbaserade sidokanaler. Konstanttidsanalys är av central betydelse för att förebygga tidsbaserade sidokanaler. Statistiskt baserade konstanttidsanalysverktyg kräver endast begränsad kunskap om det studerade systemets underliggande arkitektur, vilket tillgängliggör sådana verktyg för en bred användargrupp. Mot denna bakgrund identifieras ett behov av att inte enbart utvärdera dessa verktygs förmåga att identifiera tidsbaserade sidokanaler i implementationer av post-kvantkryptografi, utan även att genomföra en jämförande analys för att fastställa vilket verktyg som är mest ändamålsenligt. För utvärderingsprocessen genererar detta examensarbete dataset innehållande exekveringstider för program som implementerar funktionen Decaps från referensbiblioteket för det post-kvantkryptografiska systemet CRYSTALS-Kyber. Flera versioner av biblioteket implementeras, där förekomsten eller frånvaron av KyberSlash-sårbarheter utgjorde referenspunkten i analysen. Med användning av fixed-vs-random-tekniken samlades två klasser av mätdata in. Fyra konstanttidsverktyg för studiens analys valdes ut: dudect, Mona Timing Report, R-Time-Leak-Finder (RTLF) och Welch t-test. Verktygen tilldelas dataseten som indata och resultaten utvärderas sedan med avseende på träffsäkerhet, typ 1- och typ 2-fel, samt Matthews korrelationskoefficient. Resultaten visar att inget av de studerade verktygen förmår identifiera tidsbaserade sidokanaler i implementationer av post-kvantkryptografiska algoritmer, men att RTLF presterar bäst av de studerade verktygen. Givet studiens begränsade omfattning konstateras det att vidare forskning krävs, omfattande fler algoritmer inom post-kvantkryptografi samt andra statistiskt baserade konstanttidsanalysverktyg, för att stärka och generalisera resultaten.

Place, publisher, year, edition, pages
2025. , p. 83
Series
TRITA-EECS-EX ; 2025:514
Keywords [en]
Timing Side-Channel, Constant-Time Analysis, Leakage Detection, Post-Quantum Cryptography, Kyber
Keywords [sv]
Tidsbaserade sidokanaler, Konstanttidsanalys, Läckagedetektering, Post-kvantkryptografi, Kyber
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-368181OAI: oai:DiVA.org:kth-368181DiVA, id: diva2:1987572
External cooperation
Subset AB
Supervisors
Examiners
Available from: 2025-08-11 Created: 2025-08-06 Last updated: 2025-08-11Bibliographically approved

Open Access in DiVA

fulltext(999 kB)387 downloads
File information
File name FULLTEXT01.pdfFile size 999 kBChecksum SHA-512
30ab22c1d4eda5c1e52eec93bcbc9762e92efc9a5ebb7157b729332b9eb1fbbe0d6977c0fb453a19ab822847069a6d6822979606d686287f43952773eab5a4b1
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 388 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 915 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf