高级搜索

留言板

尊敬的读者、作者、审稿人, 关于本刊的投稿、审稿、编辑和出版的任何问题, 您可以本页添加留言。我们将尽快给您答复。谢谢您的支持!

姓名
邮箱
手机号码
标题
留言内容
验证码

Kyber算法解码函数能量侧信道泄露评估与选择密文攻击方法

仇昱博 李子琪 袁超绚 周子涧 胡晚笛 胡伟

仇昱博, 李子琪, 袁超绚, 周子涧, 胡晚笛, 胡伟. Kyber算法解码函数能量侧信道泄露评估与选择密文攻击方法[J]. 电子与信息学报. doi: 10.11999/JEIT251243
引用本文: 仇昱博, 李子琪, 袁超绚, 周子涧, 胡晚笛, 胡伟. Kyber算法解码函数能量侧信道泄露评估与选择密文攻击方法[J]. 电子与信息学报. doi: 10.11999/JEIT251243
QIU Yubo, LI Ziqi, YUAN Chaoxuan, ZHOU Zijian, HU Wandi, HU Wei. Power Side-Channel Leakage Assessment and Chosen-Ciphertext Attack on the Decoding Function of Kyber[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT251243
Citation: QIU Yubo, LI Ziqi, YUAN Chaoxuan, ZHOU Zijian, HU Wandi, HU Wei. Power Side-Channel Leakage Assessment and Chosen-Ciphertext Attack on the Decoding Function of Kyber[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT251243

Kyber算法解码函数能量侧信道泄露评估与选择密文攻击方法

doi: 10.11999/JEIT251243 cstr: 32379.14.JEIT251243
基金项目: 国家重点研发计划基金项目(No. 2022YFB3103800),国家自然科学基金项目(No. U23B2041)
详细信息
    作者简介:

    仇昱博:男,本科生,研究方向为侧信道分析、后量子密码安全应用

    李子琪:女,本科生,研究方向为密码侧信道分析

    袁超绚:女,硕士生,研究方向为密码侧信道分析、后量子密码安全应用

    周子涧:男,博士生,研究方向为密码侧信道分析,后量子密码算法高效实现

    胡晚笛:女,工程师,研究方向为密码学、数据安全

    胡伟:男,长聘教授,研究方向为集成电路硬件安全、密码侧信道分析、形式化安全验证等

    通讯作者:

    胡伟 weihu@nwpu.edu.cn

  • 中图分类号: TP309

Power Side-Channel Leakage Assessment and Chosen-Ciphertext Attack on the Decoding Function of Kyber

Funds: The National Key R&D Program (No. 2022YFB3103800), National Natural Science Foundation of China (No. U23B2041).
  • 摘要: 本文针对抗量子格基密码算法Kyber实现中潜在的能量侧信道泄露风险,研究了Kyber各核心模块的脆弱点与泄露原理,并对其嵌入式平台实现中各模块的能量侧信道泄露风险进行了评估。评估结果表明Kyber算法实现中多个模块可能存在侧信道安全脆弱性。针对泄露相对最严重的解码函数,本文提出了一种高效的选择密文能量侧信道攻击方法。该方法通过构造特定密文输入,结合简单能量分析,实现了私钥的高效恢复。实验结果显示,攻击Kyber512仅需6次选择密文输入,攻击Kyber768仅需9次,与现有工作相比,所需密文条数均降低了25.0%。本研究揭示了Kyber算法在实现层面潜在的安全脆弱性,可为其侧信道防护设计提供评估依据和手段。
  • 图  1  侧信道攻击策略类型与本文定位示意图

    图  2  Kyber 算法流程

    图  3  针对解码函数的SPA攻击

    图  4  消息恢复攻击流程

    图  5  巴雷特约减函数的侧信道泄露检测

    图  6  编码函数的侧信道泄露检测

    图  7  解码函数的侧信道泄露检测

    图  8  哈希函数的侧信道泄露检测

    图  9  对各函数侧信道泄露评估所得TVLA值

    图  10  Kyber 密码算法解码函数局部极值搜索

    图  11  Kyber 密码算法 PoI周期性能耗统计与分析

    表  1  针对解码函数的Kyber768选择密文攻击表

    s 的
    系数
    $ \left({k}_{u},{k}_{v}\right) $
    (1251,0) (1251,2912) (627,2912)
    –2 0 1 1
    –1 1 1 0
    0 0 0 0
    1 1 1 1
    2 0 0 1
    下载: 导出CSV

    1  $ \text{PoI} $搜索和阈值建立算法

     输入:$ {r}_{1}\left(t\right) $ $ {r}_{0}\left(t\right) $:参考轨迹
     输出:PoI:256个局部极大值点的集合,$ {T}_{0} $,$ {T}_{mid} $,$ {T}_{7} $
     1 寻找局部极值点:
     2 在$ {r}_{1}\left(t\right) $中执行局部极值搜索,得到256个局部最大值:
     3 $ \text{PoI =}\left\{\text{PoI}\left(0\right),\cdots\text{, PoI}\left(255\right)\right\} $//局部极大值点集合
     4 计算最大值与最小值之间的平均差异:
     5 $ \text{for}i=0\cdots 255\text{do} $
     6  $ {a}_{0}\left(i\right)={r}_{0}\left(\text{PoI}\left(i\right)\right) $//波形$ {r}_{0} $的极大值
     7  $ {a}_{1}\left(i\right)={r}_{1}\left(\text{PoI}\left(i\right)\right) $//波形$ {r}_{1} $的极大值
     8 计算平均阈值:
     9 $ \text{for}i=0\cdots 255\text{do} $
     10 $ \text{if}i\% 8=0 $
     11 $ su{m}_{0,0}+={a}_{0}(i) $
     12 $ su{m}_{0,1}+={a}_{1}(i) $
     13 $ \text{else if}i\% 8=7 $
     14 $ su{m}_{7,0}+={a}_{0}(i) $
     15 $ su{m}_{7,1}+={a}_{1}(i) $
     16 $ \text{else} $
     17 $ su{m}_{other,0}+={a}_{0}(i) $
     18 $ su{m}_{other,1}+={a}_{1}(i) $
     19 $ {T}_{0}=0.5\cdot (su{m}_{0,0}/32+su{m}_{0,1}/32) $
     20 $ {T}_{7}=0.5\cdot (su{m}_{7,0}/32+su{m}_{7,1}/32) $
     21 $ {T}_{mid}=0.5\cdot (su{m}_{mid,0}/192+su{m}_{7,1}/192) $
     22 $ \text{return PoI,}{T}_{0},{T}_{7},{T}_{other} $
    下载: 导出CSV

    2  消息m恢复算法

     输入:$ p(t) $:攻击波形,PoI:256个局部极大值点的集合,
     $ {T}_{0} $,$ {T}_{mid} $,$ {T}_{7} $
     输出:$ m $
     1 $ \text{for}i\text{=0···255 do} $
     2  $ \partial \left(i\right)=p\left(\text{PoI}\left(i\right)\right) $//波形$ {r}_{0} $的极大值
     3  $ \text{if}i\%8= 0 $
     4   $ {m}_{i}=\partial \left(i\right)> {T}_{0}? 1 : 0 $
     5  $ \text{else if}i\%8=7 $
     6   $ {m}_{i}=\partial \left(i\right)> {T}_{7}? 1 : 0 $
     7  $ \text{else} $
     8   $ {m}_{i}=\partial \left(i\right)> {T}_{other}? 1 : 0 $
     9 $ \text{return}m $
    下载: 导出CSV

    表  3  实验平台配置与关键参数

    类别 项目 配置/参数
    软件环境 操作系统 Windows 10
    开发工具 Arduino 1.8.19
    分析工具 PyCharm 2023.1.2
    算法实现 PQClean Kyber C implementation
    硬件环境 目标板 STM32F407IG
    MCU 架构 ARM Cortex-M4
    工作电压 3.3 V
    Flash / SRAM 1024 KB / 192 KB
    时钟频率 53.76 MHz
    采集设备 示波器 PicoScope 6406E
    带宽 1 GHz
    采样率 5 GS/s
    采集设置 每组轨迹数 50
    攻击对象 目标函数 poly_reduce / poly_tomsg /
    poly_frommsg / G()
    统计标准 泄露判定阈值 TVLA = ±4.5
    下载: 导出CSV

    表  4  周期性阈值模型与已有工作的纵向比较

    文献密码算法攻击函数是否利用周期性PoI成功率(%)密文数(条)
    文献[25]Kyber512,Kyber768poly_frommsg100, 1008, 12
    文献[24]Kyber512,Kyber768poly_tomsg99.5, 99.56, 9
    本论文Kyber512,Kyber768poly_frommsg100, 1006, 9
    下载: 导出CSV
  • [1] SHOR P W. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer[J]. SIAM Review, 1999, 41(2): 303–332. doi: 10.1137/S0036144598347011.
    [2] GROVER L K. A fast quantum mechanical algorithm for database search[C]. Twenty-Eighth Annual ACM Symposium on Theory of Computing, Philadelphia, USA, 1996: 212–219. doi: 10.1145/237814.237866.
    [3] CHERKAOUI DEKKAKI K, TASIC I, and CANO M D. Exploring post-quantum cryptography: Review and directions for the transition process[J]. Technologies, 2024, 12(12): 241. doi: 10.3390/technologies12120241.
    [4] KOCHER P C, JAFFE J, and JUN B. Differential power analysis[C]. 19th Annual International Cryptology Conference on Advances in Cryptology, Santa Barbara, USA, 1999: 388–397. doi: 10.1007/3-540-48405-1_25.
    [5] HUANG Zitian, WANG Huanyu, CAO Bijia, et al. A comprehensive side-channel leakage assessment of CRYSTALS-Kyber in IIoT[J]. Internet of Things, 2024, 27: 101331. doi: 10.1016/j.iot.2024.101331.
    [6] CHARI S, RAO J R, and ROHATGI P. Template attacks[C]. 4th International Workshop on Cryptographic Hardware and Embedded Systems, Redwood Shores, USA, 2002: 13–28. doi: 10.1007/3-540-36400-5_3.
    [7] HAMBURG M, HERMELINK J, PRIMAS R, et al. Chosen ciphertext k-trace attacks on masked CCA2 secure Kyber[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2021, 2021(4): 88–113. doi: 10.46586/tches.v2021.i4.88-113.
    [8] SAHA D and FARAHMANDI F. DL-SCADS: Deep learning-based post-silicon side-channel analysis using decomposed signal[C]. 2024 58th Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, United States, 2024: 1787–1791. doi: 10.1109/IEEECONF60004.2024.10942736.
    [9] YANG Yipei, WANG Zongyue, YE Jing, et al. Chosen ciphertext correlation power analysis on Kyber[J]. Integration, 2023, 91: 10–22. doi: 10.1016/j.vlsi.2023.02.012.
    [10] PARK A and HAN D G. Chosen ciphertext simple power analysis on software 8-bit implementation of ring-LWE encryption[C]. 2016 IEEE Asian Hardware-Oriented Security and Trust(AsianHOST), Yilan, China, 2016: 1–6. doi: 10.1109/AsianHOST.2016.7835555.
    [11] PRIMAS R, PESSL P, and MANGARD S. Single-trace side-channel attacks on masked lattice-based encryption[C]. 19th International Conference on Cryptographic Hardware and Embedded Systems, Taipei, China, 2017: 513–533. doi: 10.1007/978-3-319-66787-4_25.
    [12] WANG Ruize, BRISFORS M, and DUBROVA E. A side-channel attack on a higher-order masked CRYSTALS-Kyber implementation[C]. 22nd International Conference on Applied Cryptography and Network Security, Abu Dhabi, United Arab Emirates, 2024: 301–324. doi: 10.1007/978-3-031-54776-8_12.
    [13] DING Jintai, CHENG Chi, and QIN Yue. A simple key reuse attack on LWE and Ring-LWE encryption schemes as key encapsulation mechanisms (KEMs)[EB/OL]. https://eprint.iacr.org/2019/271, 2019.
    [14] RAVI P, SINHA ROY S, CHATTOPADHYAY A, et al. Generic side-channel attacks on CCA-secure lattice-based PKE and KEMs[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2020, 2020(3): 307–335. doi: 10.13154/tches.v2020.i3.307-335.
    [15] 胡伟, 袁超绚, 郑健, 等. 一种针对格基后量子密码的能量侧信道分析框架[J]. 电子与信息学报, 2023, 45(9): 3210–3217. doi: 10.11999/JEIT230267.

    HU Wei, YUAN Chaoxuan, ZHENG Jian, et al. A power side-channel attack framework for lattice-based post quantum cryptography[J]. Journal of Electronics & Information Technology, 2023, 45(9): 3210–3217. doi: 10.11999/JEIT230267.
    [16] HOANG A T, KENNAWAY M, PHAM T D, et al. Deep learning enhanced side channel analysis on CRYSTALS-Kyber[C]. The 25th International Symposium on Quality Electronic Design (ISQED), San Francisco, United States, 2024: 1–8. doi: 10.1109/ISQED60706.2024.10528674.
    [17] KENNAWAY M, HOANG T, KHALID A, et al. An enhanced two-step CPA side-channel analysis attack on ML-KEM[C]. The 22nd International Conference on Security and Cryptography SECRYPT, Bilbao, Spain, 2025: 263–274. doi: 10.5220/0013638600003979.
    [18] BOS J, DUCAS L, KILTZ E, et al. CRYSTALS-Kyber: A CCA-secure module-lattice-based KEM[C]. 2018 IEEE European Symposium on Security and Privacy (EuroS&P), London, UK, 2018: 353–367. doi: 10.1109/EuroSP.2018.00032.
    [19] LANGLOIS A and STEHLÉ D. Worst-case to average-case reductions for module lattices[J]. Designs, Codes and Cryptography, 2015, 75(3): 565–599. doi: 10.1007/s10623-014-9938-4.
    [20] KREUZER K. Verification of correctness and security properties for CRYSTALS-Kyber[C]. 2024 IEEE 37th Computer Security Foundations Symposium (CSF), Enschede, Netherlands, 2024: 511–526. doi: 10.1109/CSF61375.2024.00016.
    [21] GONZÁLEZ DE LA TORRE M Á, HERNÁNDEZ ENCINAS L, and QUEIRUGA-DIOS A. Analysis of the FO transformation in the lattice-based post-quantum algorithms[J]. Mathematics, 2022, 10(16): 2967. doi: 10.3390/math10162967.
    [22] ZHANG Kuang, YANG Mengya, YUAN Zeyu, et al. Optimized quantum-resistant cryptosystem: Integrating Kyber-KEM with hardware TRNG on Zynq platform[J]. Electronics, 2025, 14(13): 2591. doi: 10.3390/electronics14132591.
    [23] GHIBAN C and CHOUDARY M O. Improved correlation power analysis attack on the latest Cortex M4 Kyber implementation[J]. Cryptography, 2025, 9(1): 19. doi: 10.3390/cryptography9010019.
    [24] RAVI P, BHASIN S, ROY S S, et al. On exploiting message leakage in (few) NIST PQC candidates for practical message recovery attacks[J]. IEEE Transactions on Information Forensics and Security, 2022, 17: 684–699. doi: 10.1109/TIFS.2021.3139268.
    [25] XU Zhuang, PEMBERTON O, ROY S S, et al. Magnifying side-channel leakage of lattice-based cryptosystems with chosen ciphertexts: The case study of Kyber[J]. IEEE Transactions on Computers, 2022, 71(9): 2163–2176. doi: 10.1109/TC.2021.3122997.
  • 加载中
图(11) / 表(5)
计量
  • 文章访问数:  12
  • HTML全文浏览量:  6
  • PDF下载量:  1
  • 被引次数: 0
出版历程
  • 修回日期:  2026-05-12
  • 录用日期:  2026-05-12
  • 网络出版日期:  2026-05-27

目录

    /

    返回文章
    返回