arrow
Return

RISC-V hardware attack detection using on-chip hardware performance counters

delete2026-09-24
delete0
delete
OA
AI
A
Albert Pou
B
Beatriz Otero *
M
Miguel Robledo
A
Alejandro Pajuelo
R
R. Canal
DOI:10.1186/s42400-026-00662-8delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Hardware attacks exploit microarchitectural vulnerabilities at the CPU level, and RISC-V processors are no exception. These attacks induce anomalous behavior by stressing specific hardware components beyond the patterns observed in legitimate applications. Such deviations can be captured through internal monitoring units, namely Hardware Performance Counters (HPCs). This work analyzes a diverse set of hardware attacks on the RISC-V XuanTie C910 core and introduces a methodology that integrates HPC logging with Machine Learning (ML) techniques for automated attack detection. We present a reproducible dataset composed of 16 benign and 16 malicious applications, enabling systematic evaluation of classifiers such as Random Forest, Decision Trees, Support Vector Machines, and Naive Bayes. Feature-selection strategies, including mRMR and RFECV, are applied to identify the most informative counters. Experimental results show a detection precision of 99% for both benign and malicious samples, while classification performance for malicious samples remains around 95%. In zero-day scenarios, feature selection proves essential: mRMR achieves the best performance with Random Forest, whereas RFECV is more effective for Decision Trees. Overall, the study demonstrates that HPC-based monitoring combined with machine learning provides a hardware-centric and proactive defense mechanism against microarchitectural threats in RISC-V processors.
Keywords:
Security
Hardware attack
RISC-V
Machine learning
Anomaly detection
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

C
Cybersecurity
IF:
3.7
Papers:
606
Citations:
1.0K

Organization

No organization information available
Cited Papers

Cited Papers

errShare
errSave
errShare
errSave
Random Forests
err
IF0
err2001-01-01
err0
PREAI
errLeo Breiman
errShare
errSave
Spectre Attacks: Exploiting Speculative Execution
err2020-06-18
err98
PREAI
errKocher, Paul; Horn, Jann; Fogh, Anders; Genkin, Daniel; Gruss, Daniel; Haas, Werner; Hamburg, Mike; Lipp, Moritz; Mangard, Stefan; Prescher, Thomas; Schwarz, Michael; Yarom, Yuval
errShare
errSave
errShare
errSave
no more