Communication Dans Un Congrès Année : 2025

Leveraging gem5 for Hardware Trojan Research: Simulation for Machine-Learning-Based Detection

Résumé

Hardware Trojans (HTs) consist of malicious modifications intentionally embedded in hardware designs, capable of bypassing security measures, leaking sensitive information, or disrupting system operations. This work proposes a methodology for introducing and simulating HTs on microprocessor-based systems within the gem5 simulator, focusing on RISC-V architectures. By leveraging the gem5 System Emulation (SE) mode, we generate comprehensive datasets encompassing both benign and attack scenarios, automating the collection of 866 features from Hardware Performance Counters (HPC) dumped by gem5 after every program run. The dataset consists of 10,000 samples, evenly split into 5,000 benign and 5,000 attacked instances on different runs across 8 benchmarks. Contrary to previous work using processors with a very limited number of HPCs, we demonstrate how simulation provides access to a much larger number of HPCs and can, hence, enable new research on effective detection mechanisms. In particular, we show preliminary results for one HT and improve previous work on detection mechanisms using Machine Learning (ML). Using a Random Forest (RF) classifier and taking inspiration from the PIC16F84-T100 HT from the Trust-Hub platform as a case study, we achieve 100% attack detection. Our approach facilitates the security evaluation of microprocessors under HT attacks and provides a framework for experimenting with and analyzing ML-based detection strategies.

Fichier principal
Vignette du fichier
cfcompanion25-39.pdf (2.44 Mo) Télécharger le fichier
Origine Fichiers éditeurs autorisés sur une archive ouverte
Licence

Dates et versions

hal-05044677 , version 1 (23-04-2025)

Licence

Identifiants

Citer

Alessandro Palumbo, Ruben Salvador. Leveraging gem5 for Hardware Trojan Research: Simulation for Machine-Learning-Based Detection. 10th International Workshop on Malicious Software and Hardware in the Internet of Things (MAL-IoT) 2025 - Proceedings of the 22nd ACM International Conference on Computing Frontiers: Workshops and Special Sessions, May 2025, Cagliari, Italy. pp.9-16, ⟨10.1145/3706594.3728869⟩. ⟨hal-05044677⟩
189 Consultations
384 Téléchargements

Altmetric

Partager

  • More