Skip to content
Open access

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

Sep 2026 · Cybersecurity · Vol 9 · 0 citations · 40 references
Computer Science

TL;DR

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 techniques for automated attack detection, demonstrating that HPC-based monitoring combined with machine learning provides a hardware-centric and proactive defense mechanism against microarchitectural threats in RISC-V processors.

Abstract

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.

Read PDF

Similar papers

Open access Oct 2026

Lightweight detection and classification of RISC-V hardware exploits using machine learning techniques

This work proposes a hardware-assisted malware detection framework leveraging the HARPY-V-GEM5 dataset for RISC-V architectures. Using the GEM5 full-system simulator, we collect microarchitectural telemetry, specifically Hardware Performance Counters (HPC) and committed instruction mnemonics–from a balanced corpus of 3...

Joan-Tomàs Pujol, B. Otero, Javier Verdú et al. · 0 citations
Preprint Oct 2026

Power, Performance, and Area of HPC-Based Malware Detectors: An FPGA and Open-PDK ASIC Study

Hardware malware detectors (HMDs) classify programs as benign or malicious based on hardware performance counter (HPC) data. Previous studies have shown that ensemble classifiers outperform other classifiers on detection metrics. However, the area, power, and timing costs of HMDs remain open questions. We address these...

Alireza Abolhasani Zeraatkar, Parnian Shabani Kamran, Parsa Mirfasihi et al. · 1 citation · ⚡1
Preprint Oct 2026

Silent Blindness: Fault Vulnerability of Hardware Malware Detectors

This work investigates structural fault injection across a design space comprising 18 classifiers, four counter budgets, and AdaBoost and Bagging ensembles to characterize structural-model sensitivity and potential protection benefits and identifies protection candidates under additive unit costs and ideal correction.

Alireza Abolhasani Zeraatkar, Parnian Shabani Kamran, Parsa Mirfasihi et al. · 0 citations
Conference Open access Sep 2026

Bitstream Defenders: Exposing Covert Power Monitoring Trojans in FPGAs

PyHDL, an open-source Python-based framework that addresses the critical limitation of existing detection techniques—the absence of comprehensive datasets, is developed and a balanced Corpus of benign and malicious bitstreams representing diverse implementation scenarios on the Xilinx Zynq-7000 series are generated.

Mirza Athar Baig, M. Aman · 0 citations
Conference Open access Sep 2026

Detecting Microarchitectural Attacks in Hypervisor-Based Mixed-Criticality Systems

Microarchitectural side-channel attacks pose a significant threat to mixed-criticality embedded systems by exploiting shared hardware resources to induce information leakage and timing interference. This work presents a lightweight, deterministic run-time detection architecture integrated into a hypervisor environment....

Rafael Canal, Gabriel Martins, Giovani Gracioli et al. · 0 citations
2026

AI-Based Malware Behavior Classification and Mitigation System Using Machine Learning

This study proposes an advanced, integrated behavior-based malware classification and automated mitigation framework specifically engineered for Windows operating environments, and introduces a multi-class risk-scoring mechanism to streamline Security Operations Center (SOC) incident triage.

Sivaharish R., S. K., Lediyal S. et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.