Communication Dans Un Congrès Année : 2026

Microarchitectural Analysis of Speculative Execution Patterns in RISC-V using Machine Learning and ISA-Level Masking Wrappers

Résumé

Speculative execution attacks, such as Spectre Variant 1, leak sensitive data through transient microarchitectural effects. This paper presents a machine learning-based framework for analyzing and mitigating speculative execution vulnerability patterns in RISC-V systems. We extract branch, cache, and timing features from gem5 simulations and validate leakage behavior on a SiFive HiFive Premier P550 platform. Supervised models achieve up to 97.1% accuracy in distinguishing benign and speculative-leak execution windows, while unsupervised methods (K-means, HDBSCAN, and Isolation Forest) independently reveal structural and anomaly-based separation. Feature analysis shows that speculative loads and memory latency are the strongest leakage indicators. We further propose lightweight RISC-V assembly wrappers based on index masking and fence instructions. Results demonstrate that these wrappers shift vulnerable execution toward benign microarchitectural behavior. The proposed approach combines simulation, hardware validation, and learning-based analysis for practical speculative vulnerability analysis and mitigation in RISC-V processors.

Fichier principal
Vignette du fichier
2026161350 (2).pdf (4.82 Mo) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
licence

Dates et versions

hal-05621829 , version 1 (13-05-2026)

Licence

Identifiants

  • HAL Id : hal-05621829 , version 1

Citer

Muhammad Awais, Maria Mushtaq, Lirida Naviner, Jawad Haj, Florent Bruguier. Microarchitectural Analysis of Speculative Execution Patterns in RISC-V using Machine Learning and ISA-Level Masking Wrappers. IOLTS 2026 - 32nd IEEE International Symposium on On-Line Testing and Robust System Design, Jul 2026, Bari, Italy. In press. ⟨hal-05621829⟩
0 Consultations
0 Téléchargements

Partager

  • More