Paper 2024/1978
µLAM: A LLM-Powered Assistant for Real-Time Micro-architectural Attack Detection and Mitigation
Abstract
The rise of microarchitectural attacks has necessitated robust detection and mitigation strategies to secure computing systems. Traditional tools, such as static and dynamic code analyzers and attack detectors, often fall short due to their reliance on predefined patterns and heuristics that lack the flexibility to adapt to new or evolving attack vectors. In this paper, we introduce for the first time a microarchitecture security assistant, built on OpenAI's GPT-3.5, which we refer to as µLAM. This assistant surpasses conventional tools by not only identifying vulnerable code segments but also providing context-aware mitigations, tailored to specific system specifications and existing security measures. Additionally, µLAM leverages real-time data from dynamic Hardware Performance Counters (HPCs) and system specifications to detect ongoing attacks, offering a level of adaptability and responsiveness that static and dynamic analyzers cannot match. For fine-tuning µLAM, we utilize a comprehensive dataset that includes system configurations, mitigations already in place for different generations of systems, dynamic HPC values, and both vulnerable and non-vulnerable source codes. This rich dataset enables µLAM to harness its advanced LLM natural language processing capabilities to understand and interpret complex code patterns and system behaviors, learning continuously from new data to improve its predictive accuracy and respond effectively in real time to both known and novel threats, making it an indispensable tool against microarchitectural threats. In this paper, we demonstrate the capabilities of µLAM by fine-tuning and testing it on code utilizing well-known cryptographic libraries such as OpenSSL, Libgcrypt, and NaCl, thereby illustrating its effectiveness in securing critical and complex software environments.
Metadata
- Available format(s)
- Category
- Implementation
- Publication info
- Published elsewhere. International Conference on Computer-Aided Design (ICCAD 2024)
- Keywords
- Microarchitecture AttacksAttack Detection SystemLLMs
- Contact author(s)
-
mandal up98 @ gmail com
shubhishukla @ kgpian iitkgp ac in
rayushi835 @ gmail com
sarani @ cse iitkgp ac in
debdeep @ cse iitkgp ac in - History
- 2024-12-12: approved
- 2024-12-06: received
- See all versions
- Short URL
- https://ia.cr/2024/1978
- License
-
CC BY-NC
BibTeX
@misc{cryptoeprint:2024/1978, author = {Upasana Mandal and Shubhi Shukla and Ayushi Rastogi and Sarani Bhattacharya and Debdeep Mukhopadhyay}, title = {{µLAM}: A {LLM}-Powered Assistant for Real-Time Micro-architectural Attack Detection and Mitigation}, howpublished = {Cryptology {ePrint} Archive, Paper 2024/1978}, year = {2024}, url = {https://eprint.iacr.org/2024/1978} }