Opcode Analysis of Real Encryption-Based Microarchitectural Attacks Using gem5

Modern processors employ performance-enhancing features such as speculative execution and multi-level caching, but these same mechanisms can inadvertently expose sensitive information through microarchitectural side channels. This work introduces a precise, simulation-driven framework for identifying how individual cryptographic instructions contribute to such leakage. We present a systematic opcode-level analysis of AES-NI instructions (including AESENC, AESDEC, and AESKEY-GENASSIST) and quantify their susceptibility to Flush+Reload attacks using cycle-accurate gem5 simulations. Our results reveal distinct microarchitectural footprints for each opcode: AES-ENC exhibits measurable timing and cache activity arising from state and round-key memory operations surrounding the hardware-implemented transform, while AESKEYGENASSIST incurs the highest latency due to iterative key-schedule computations. Control-flow instructions such as JNE further amplify leakage by introducing branch mispredictions. A key outcome of this study is the close match between simulation and physical measurements achieving 89% key recovery in gem5 versus 96% on an Intel CPU, demonstrating that gem5 reliably captures the dominant leakage behaviors despite abstracted hardware details. We additionally show that smaller last-level caches intensify leakage by concentrating access patterns, whereas larger caches reduce, but do not eliminate the exposure. Overall, this work provides actionable insights for designing hardened cryptographic software and developing future detection mechanisms, and highlights the value of architectural simulation for early-stage security assessment.

Authors

Institutions

Publication Details

Published
2025-12-14
DOI
https://doi.org/10.1109/comcomap68359.2025.11353163
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Opcode Analysis of Real Encryption-Based Microarchitectural Attacks Using gem5

Muhammad Awais, Florent Bruguier, Lírida Naviner, Jawad Haj-Yahya et al.
Security and Verification in Computing
article

Opcode Analysis of Real Encryption-Based Microarchitectural Attacks Using gem5

Muhammad Awais, Florent Bruguier, Lírida Naviner, Jawad Haj-Yahya, Muhammad Isa Khan, Maria Mushtaq, Ludovic Apvrille, Renaud Pacalet
article en

Abstract

Modern processors employ performance-enhancing features such as speculative execution and multi-level caching, but these same mechanisms can inadvertently expose sensitive information through microarchitectural side channels. This work introduces a precise, simulation-driven framework for identifying how individual cryptographic instructions contribute to such leakage. We present a systematic opcode-level analysis of AES-NI instructions (including AESENC, AESDEC, and AESKEY-GENASSIST) and quantify their susceptibility to Flush+Reload attacks using cycle-accurate gem5 simulations. Our results reveal distinct microarchitectural footprints for each opcode: AES-ENC exhibits measurable timing and cache activity arising from state and round-key memory operations surrounding the hardware-implemented transform, while AESKEYGENASSIST incurs the highest latency due to iterative key-schedule computations. Control-flow instructions such as JNE further amplify leakage by introducing branch mispredictions. A key outcome of this study is the close match between simulation and physical measurements achieving 89% key recovery in gem5 versus 96% on an Intel CPU, demonstrating that gem5 reliably captures the dominant leakage behaviors despite abstracted hardware details. We additionally show that smaller last-level caches intensify leakage by concentrating access patterns, whereas larger caches reduce, but do not eliminate the exposure. Overall, this work provides actionable insights for designing hardened cryptographic software and developing future detection mechanisms, and highlights the value of architectural simulation for early-stage security assessment.

Télécom Paris (FR), Centre National de la Recherche Scientifique (FR), Applied Materials (United States) (US), Université de Montpellier (FR), Laboratoire d'Informatique, de Robotique et de Microélectronique de Montpellier (FR), Intelligent Fiber Optic Systems (United States) (US)
Openalex Percentile: Top 79%
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.