arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.17830cs.CR
收藏

对使用后量子算法的密码原语和协议实现进行分类

Classifying Implementations of Cryptographic Primitives and Protocols that Use Post-Quantum Algorithms

Northeastern University(东北大学);Cisco(思科)

Tushin Mallick, Cristina Nita-Rotaru, Ashish Kundu, Ramana Kompella

AI总结:

本文提出了一种对使用后量子算法的密码原语和协议实现进行分类的方法,通过分析密钥交换、数字签名及SNARK生成库,实现了高准确率的区分和识别。

摘要:

分类技术可以用来分析系统行为、网络协议和密码原语,基于可识别的特征。虽然对防御有用,但此类分类也可以被攻击者用来推断系统配置、检测漏洞,并针对如拒绝服务、密钥恢复或降级攻击等攻击进行定制。在本文中,我们研究了通过分析密钥交换和数字签名的实现、其在安全协议中的使用以及其在SNARK生成库中的集成,来对后量子(PQ)算法进行分类的可行性。与传统密码学不同,PQ算法具有更大的内存需求和可变的计算成本。我们的研究考察了两个后量子密码学库,liboqs和CIRCL,在Windows、Ubuntu和macOS上评估TLS、SSH、QUIC、OpenVPN和OpenID Connect(OIDC)。我们还分析了pysnark和lattice_zksnark在Ubuntu上的SNARK生成和验证。实验结果表明:(1)经典和PQ密钥交换和签名算法可以被区分,准确率为98%和100%;(2)特定PQ算法可以被识别,准确率为密钥交换97%、签名86%;(3)liboqs和CIRCL中相同算法的实现可以被区分,准确率高达100%;(4)在CIRCL中,PQ和混合密钥交换实现可以被区分,准确率为97%。对于安全协议,我们可以确定密钥交换是经典还是PQ,并识别所使用的PQ算法。pysnark和lattice_zksnark中的SNARK生成和验证可以被区分,准确率为100%。我们通过在Tranco数据集中识别PQ启用的TLS域,并将我们的方法整合到由Cisco开发的开源风险和威胁分析器QUARTZ中,展示了实际应用。

英文摘要:

Classification techniques can be used to analyze system behaviors, network protocols, and cryptographic primitives based on identifiable traits. While useful for defense, such classification can also be leveraged by attackers to infer system configurations, detect vulnerabilities, and tailor attacks such as denial-of-service, key recovery, or downgrade attacks. In this paper, we study the feasibility of classifying post-quantum (PQ) algorithms by analyzing implementations of key exchange and digital signatures, their use within secure protocols, and their integration into SNARK generation libraries. Unlike traditional cryptography, PQ algorithms have larger memory requirements and variable computational costs. Our research examines two post-quantum cryptography libraries, liboqs and CIRCL, evaluating TLS, SSH, QUIC, OpenVPN, and OpenID Connect (OIDC) across Windows, Ubuntu, and macOS. We also analyze pysnark and lattice_zksnark for SNARK generation and verification on Ubuntu. Experimental results show that (1) classical and PQ key exchange and signature algorithms can be distinguished with accuracies of 98% and 100%; (2) specific PQ algorithms can be identified with 97% accuracy for key exchange and 86% for signatures; (3) implementations of the same algorithm in liboqs and CIRCL are distinguishable with up to 100% accuracy; and (4) within CIRCL, PQ and hybrid key exchange implementations can be distinguished with 97% accuracy. For secure protocols, we can determine whether key exchange is classical or PQ and identify the PQ algorithm used. SNARK generation and verification in pysnark and lattice_zksnark are distinguishable with 100% accuracy. We demonstrate real-world applicability by identifying PQ-enabled TLS domains in the Tranco dataset and integrating our methods into QUARTZ, an open-source risk and threat analyzer by Cisco.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑