Paper 2024/2069

One Solves All: Exploring ChatGPT's Capabilities for Fully Automated Simple Power Analysis on Cryptosystems

Wenquan Zhou, Beijing Institute of Technology
An Wang, Beijing Institute of Technology
Yaoling Ding, Beijing Institute of Technology
Congming Wei, Beijing Institute of Technology
Jingqi Zhang, Beijing Institute of Technology
Liehuang Zhu, Beijing Institute of Technology
Abstract

Side-channel analysis is a powerful technique to extract secret data from cryptographic devices. However, this task heavily relies on experts and specialized tools, particularly in the case of simple power analysis (SPA). Meanwhile, ChatGPT, a leading example of large language models, has attracted great attention and been widely applied for assisting users with complex tasks. Despite this, ChatGPT’s capabilities for fully automated SPA, where prompts and traces are input only once, have yet to be systematically explored and improved. In this paper, we introduce a novel prompt template with three expert strategies and conduct a large-scale evaluation of ChatGPT’s capabilities for SPA. We establish a dataset comprising seven sets of real power traces from various implementations of public-key cryptosystems, including RSA, ECC, and Kyber, as well as eighteen sets of simulated power traces that illustrate typical SPA leakage patterns. The results indicate that ChatGPT fails to be directly used for SPA. However, by applying the expert strategies, we successfully recovered the private keys for all twenty-five traces, which demonstrate that non-experts can use ChatGPT with our expert strategies to perform fully automated SPA.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Preprint.
Keywords
Side-channel AnalysisAI and Machine LearningSecurity & PrivacyTest
Contact author(s)
wenquan2222222 @ gmail com
History
2024-12-24: approved
2024-12-24: received
See all versions
Short URL
https://ia.cr/2024/2069
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2024/2069,
      author = {Wenquan Zhou and An Wang and Yaoling Ding and Congming Wei and Jingqi Zhang and Liehuang Zhu},
      title = {One Solves All: Exploring {ChatGPT}'s Capabilities for Fully Automated Simple Power Analysis on Cryptosystems},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/2069},
      year = {2024},
      url = {https://eprint.iacr.org/2024/2069}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.