信息网络安全 ›› 2022, Vol. 22 ›› Issue (4): 7-19.doi: 10.3969/j.issn.1671-1122.2022.04.002

• 技术研究 • 上一篇    下一篇

RISC-V架构上的时间侧信道静态检测研究

唐明1,2, 黎聪1,2(), 李永波1,2, 岳天羽3   

  1. 1.武汉大学国家网络安全学院,武汉 430064
    2.武汉大学空天信息安全与可信计算教育部重点实验室,武汉 430064
    3.北京航空航天大学网络空间安全学院,北京 100191
  • 收稿日期:2021-12-28 出版日期:2022-04-10 发布日期:2022-05-12
  • 通讯作者: 黎聪 E-mail:licong.whu@foxmail.com
  • 作者简介:唐明(1976—),女,河南,教授,博士,主要研究方向为信息安全、密码芯片安全和侧信道|黎聪(1997—),男,贵州,硕士研究生,主要研究方向为应用密码学和微架构|李永波(1997—),男,河南,硕士研究生,主要研究方向为侧信道和体系结构安全|岳天羽(1998—),男,江苏,硕士研究生,主要研究方向为网络空间安全、复杂系统安全性
  • 基金资助:
    国家自然科学基金(61972295);国家重点研究发展计划(2019YFB1706001)

Study on Static Detection of Timing Side Channel for RISC-V Architecture

TANG Ming1,2, LI Cong1,2(), LI Yongbo1,2, YUE Tianyu3   

  1. 1. School of Cyber Science and Engineering, Wuhan University, Wuhan 430064, China
    2. Key Laboratory of Aerospace Information Security and Trusted Computing of Ministry of Education, Wuhan University, Wuhan 430064, China
    3. School of Cyber Science and Technology, Beihang University, Beijing 100191, China
  • Received:2021-12-28 Online:2022-04-10 Published:2022-05-12
  • Contact: LI Cong E-mail:licong.whu@foxmail.com

摘要:

时间侧信道攻击对开源RISC-V架构的软件机密性有严重威胁,而目前对于RISC-V架构上的时间侧信道泄露静态检测的研究较为缺乏。文章评估了常见的时间侧信道泄露静态分析方法的适用范围和优缺点,根据RISC-V汇编语言的特点优化检测算法,针对RISC-V的64位通用指令集RV64G实现了结合信息流分析和简化符号执行理论的时间侧信道检测模型。文章对通用开源网络通信密码库OpenSSL和NaCl的AES、RSA等密码算法实现进行测试,测试结果表明,相较于现有工具中准确率最高的模型,文章所提模型在相同的测试向量下准确率提高了约17%,漏报率降低了约22%,加快了检测速度并在一定程度上缓解了路径爆炸问题,为RISC-V架构上侧信道攻击安全检测工具设计提供了参考。

关键词: 时间侧信道, 静态检测, RISC-V架构, 密码算法

Abstract:

Timing side channel attacks pose a serious threat to software confidentiality for the open source RISC-V architecture, but there is currently lack of research on static analysis of timing side channel leakage on the RISC-V architecture. This paper evaluated the scope of application, advantages and disadvantages of common static analysis methods for timing side channel leakage, optimized the analysis algorithms according to the characteristics of RISC-V assembly language, and implemented a combined information flow analysis method for the 64-bit general instruction set of RISC-V RV64G and a temporal side-channel analysis model that simplified symbolic execution theory. This paper tests the implementation of AES, RSA and also other cryptographic algorithms of the general open source network communication cryptographic library OpenSSL and NaCl. The test results show that compared with the existing analysis tool that has the highest accuracy rate, the model in this paper approximately improved the accuracy by 17% and reduced the false negative rate by 22% under the same test vector, which improved the analysis speed and alleviated the path explosion problem to a certain extent, providing a reference for the design of side-channel analysis tools on RISC-V architecture.

Key words: timing side channel, static detection, RISC-V architecture, cryptographic algorithm

中图分类号: