Submitted:
22 October 2024
Posted:
23 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- A novel single trace analysis for CDT sampling based on comparison operations: We propose a single trace analysis that exploits a novel vulnerability in CDT sampling used by some Falcon-based PQC algorithms. We experimentally investigate the vulnerability in various environments and demonstrate its effectiveness.
- Visible vulnerability in 8-bit AVR: This paper proposes a single trace analysis of CDT sampling based on comparison operations occurring in 8-bit AVR. Experiments have shown that 8-bit AVRs are vulnerable to non-constant-time operating of comparison operations on large numbers. We also investigate the cause of the non-constant-time behavior through reverse engineering. We show that the output of CDT sampling can be recovered from a single trace.
- Proposing a constant-time CDT based on comparison operations: In this paper, we propose a comparison-based CDT sampling algorithm that eliminates the vulnerability of the comparison operation terminating prematurely and satisfies constant time. It is shown through many power consumption traces that there is no visible non-constant time vulnerability.
- Invisible vulnerability in 32-bit Arm Cortex-M4: In this paper, we propose a single trace analysis of CDT sampling in a more realistic environment. In a 32-bit Arm Cortex system, CDT sampling based on comparison operations satisfies constant time. We study the safety of PQC in embedded environments. Therefore, we propose a model to investigate the constant-time vulnerability and study countermeasures. We clarify that the previously proposed countermeasures eliminate non-constant-time vulnerability.
- Performance Evaluation and Results: The proposed model achieves a recovery success rate of 99.97% and an F1 score(macro, micro) of 1.0, indicating its effectiveness in recovering the sampled value of constant-time comparison operation-based CDT sampling. These results provide a crucial benchmark for assessing the safety of post-quantum cryptographic algorithms.
- CDT sampling and deep learning related copuntermeasure: This study investigates countermeasures for various implementations of CDT sampling that were previously studied and examined in detail the countermeasures related to deep learning. This contributes to the fundamental research for secure PQC in embedded environments.
2. Preliminaries
2.1. Lattice-Based Cryptosystems: LWE and NTRU
2.2. Discrete Gaussian Distribution Sampling Using CDT
2.3. Side Channel Analysis on Implementations of CDT Sampling
| Algorithm 1 The while-loop based CDT sampling |
|
| Algorithm 2 The subtraction operation based CDT sampling |
|
| Algorithm 3 Comparison-based CDT Sampling |
|
| Listing 1. base_sampler() C code. |
![]() |
3. Experiments Setup
3.1. Power Consumptions Acquisition
3.2. Instruction Sets of Each Target
- Data transfer instructions: instructions used to move and transfer data between registers or between memory and registers.
- Arithmetic instructions: instructions for basic operations such as addition and subtraction.
- Logical operations instructions: instructions used to perform bitwise logical operations such as AND, OR, and XOR.
- Comparison and branch instructions: Instructions that change the flow of the program according to conditions, such as comparing two values and acting differently depending on the result.
- Control instructions: Instructions that handle interrupts.
- I/O instructions: Instructions that control data transmission to and from external devices.
4. Single Trace Analysis Using Visible Leakage in 8-Bit AVR
4.1. Comparison Operation Based CDT on 8-Bit AVR
- Check if is greater than . If so, .
- Check if is less than . If true, .
- Check if and are equal. If true, continue to compare the next word until the comparison ends.
| Listing 2. CDT Sampling Assembly Code in 8-bit AVR. |
![]() |
4.2. Analyzing the Security of CDTs
4.3. Countermeasure
| Algorithm 4 Countermeasure for satisfying constant time operating |
|
| Listing 3. The comparison operation of assembly implementation code of countermeasure. |
![]() |
5. Single Trace Analysis of Invisible Leakage in 32-Bit Arm Cortex-M4
5.1. Comparison Operation Based CDT on 32-Bit Arm Cortex
| Listing 4. base_sampler() assembly code in Arm Cortex-M4. |
![]() |
5.2. Analyzing the Security of CDTs
5.2.1. Attacker Assuming
5.2.2. Profiling Phase
| Layer Type | (In, Out) shape | # Parameters |
|---|---|---|
| Batch Normalization | (736, 736) | 2944 |
| Dense | (736, 512) | 377344 |
| Batch Normalization | (512, 512) | 2048 |
| Dense | (512, 256) | 131328 |
| Batch Normalization | (256, 256) | 1024 |
| Dense | (256, 14) | 3598 |
5.2.3. Evaluating Model Performance
5.2.4. Leak Point Analysis Through Weight Analysis
5.3. Countermeasure
6. Conclusion and Future Works
Author Contributions
Conflicts of Interest
References
- Shor, P.W. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Rev. 1999, 41, 303–332. [Google Scholar] [CrossRef]
- Mosca, M. Cybersecurity in an era with quantum computers: Will we be ready? IEEE Secur. Priv. 2018, 16, 38–41. [Google Scholar]
- Fouque, P.-A.; Hoffstein, J.; Kirchner, P.; Lyubashevsky, V.; Pornin, T.; Prest, T.; Ricosset, T.; Seiler, G.; Whyte, W.; Zhang, Z. Falcon: Fast-Fourier lattice-based compact signatures over NTRU. Submission to NIST’s Post-Quantum Cryptography Standardization Process 2018, 36, 1–75. [Google Scholar]
- Espitau, T.; Fouque, P.-A.; Gérard, F.; Rossi, M.; Takahashi, A.; Tibouchi, M.; Wallet, A.; Yu, Y. Mitaka: A simpler, parallelizable, maskable variant of Falcon. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Trondheim, Norway, 30 May–3 June 2022; pp. 222–253. [Google Scholar]
- Espitau, T.; Nguyen, T.T.Q.; Sun, C.; Tibouchi, M.; Wallet, A. Antrag: Annular NTRU Trapdoor Generation: Making Mitaka as Secure as Falcon. In Proceedings of the International Conference on the Theory and Application of Cryptology and Information Security, Yokohama, Japan, 3–6 December 2023; pp. 3–36. [Google Scholar]
- Kim, K.; Tibouchi, M.; Wallet, A.; Espitau, T.; Takahashi, A.; Yu, Y.; Guilley, S.; SOLMAE Algorithm Specifications. KpqC: Korean Post-Quantum Cryptography 2020. Available online: https://kpqc.or.kr/1 (accessed on 16 October 2024).
- Kim, S.; Hong, S. Single trace analysis on constant time CDT sampler and its countermeasure. Appl. Sci. 2018, 8, 1809. [Google Scholar] [CrossRef]
- Marzougui, S.; Kabin, I.; Krämer, J.; Aulbach, T.; Seifert, J.-P. On the feasibility of single-trace attacks on the Gaussian sampler using a CDT. In Proceedings of the International Workshop on Constructive Side-Channel Analysis and Secure Design, Leuven, Belgium, 17–19 April 2023; pp. 149–169. [Google Scholar]
- Zhang, S.; Lin, X.; Yu, Y.; Wang, W. Improved power analysis attacks on Falcon. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Trondheim, Norway, 30 May–3 June 2023; pp. 565–595. [Google Scholar]
- Choi, K.-H.; Kim, J.-H.; Han, J.; Huh, J.-W.; Han, D.-G. Single Trace Analysis of Comparison Operation Based Constant-Time CDT Sampling and Its Countermeasure. In Proceedings of the International Conference on Information Security and Cryptology, Seoul, South Korea, 13–15 December 2023; pp. 185–201. [Google Scholar]
- Cheon, J.H.; Kim, D.; Lee, J.; Song, Y. Lizard: Cut off the tail! A practical post-quantum public-key encryption from LWE and LWR. In Proceedings of the International Conference on Security and Cryptography for Networks, Amalfi, Italy, 5–7 September 2018; pp. 160–177. [Google Scholar]
- Bos, J.; Costello, C.; Ducas, L.; Mironov, I.; Naehrig, M.; Nikolaenko, V.; Raghunathan, A.; Stebila, D. Frodo: Take off the ring! Practical, quantum-secure key exchange from LWE. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016; pp. 1006–1018. [Google Scholar]
- Ajtai, M.; Dwork, C. A public-key cryptosystem with worst-case/average-case equivalence. In Proceedings of the Twenty-Ninth Annual ACM Symposium on Theory of Computing, El Paso, TX, USA, 4–6 May 1997; pp. 284–293. [Google Scholar]
- Hoffstein, J. NTRU: A Ring Based Public Key Cryptosystem. Algorithmic Number Theory (ANTS III) 1998. [Google Scholar]
- Hülsing, A.; Rijneveld, J.; Schanck, J.; Schwabe, P. High-speed key encapsulation from NTRU. In Proceedings of the International Conference on Cryptographic Hardware and Embedded Systems, Taipei, Taiwan, 25–28 September 2017; pp. 232–252. [Google Scholar]
- NewAE Technology Inc. ChipWhisperer API. Available online: https://github.com/newaetech/chipwhisperer (accessed on 16 October 2024).
- Microchip Technology. AVR Instruction Set Manual. Available online: https://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-manual.pdf (accessed on 16 October 2024).
- Arm Developer. Cortex-M4 instructions. Available online: https://developer.arm.com/documentation/ddi0439/b/CHDDIGAC (accessed on 16 October 2024).
- Kocher, P. Differential power analysis. In Proceedings of the Advances in Cryptology (CRYPTO’99), Santa Barbara, CA, USA, 15–19 August 1999. [Google Scholar]
- Inci, M.S.; Gulmezoglu, B.; Irazoqui, G.; Eisenbarth, T.; Sunar, B. Cache attacks enable bulk key recovery on the cloud. In Proceedings of the Cryptographic Hardware and Embedded Systems–CHES 2016, Santa Barbara, CA, USA, 17–19 August 2016; pp. 368–388. [Google Scholar]
- Chen, Z.; Oswald, D. PMFault: Faulting and Bricking Server CPUs through Management Interfaces. arXiv Preprint 2023. Available online: https://arxiv.org/abs/2301.05538. [CrossRef]
- Schneider, T.; Paglialonga, C.; Oder, T.; Güneysu, T. Efficiently masking binomial sampling at arbitrary orders for lattice-based crypto. In Proceedings of the Public-Key Cryptography–PKC 2019, Beijing, China, 14–17 April 2019; pp. 534–564. [Google Scholar]
- Fisher, R.A.; Yates, F. Statistical tables for biological, agricultural and medical research, 6th ed.; Oliver and Boyd: Edinburgh, UK, 1963. [Google Scholar]










Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).



