arXiv:2610.12795cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.12795

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

Alireza Abolhasani Zeraatkar, Parnian Shabani Kamran, Parsa Mirfasihi, Saleh Khalaj Monfared, Hussain Al-Asaad

Alireza Abolhasani Zeraatkar 1^{1}, Parnian Shabani Kamran 1^{1}, Parsa Mirfasihi 2^{2}, Saleh Khalaj Monfared 3^{3}, Hussain Al-Asaad 1^{1}

1^{1}Electrical and Computer Engineering Department, University of California, Davis, United States

2^{2}Electrical and Computer Engineering Department, San Francisco State University, San Francisco, United States

3^{3}Electrical and Computer Engineering Department, Worcester Polytechnic Institute, Worcester, United States

Email: {abolhasani, pkamran}@ucdavis.edu, smirfasihi@sfsu.edu, skmonfared@wpi.edu, hsalasaad@ucdavis.edu

Abstract—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 questions across a comprehensive design space comprising multiple classifier families, variable HPC sets, and ensemble learning methods. We designed a pipeline to reconstruct selected trained models, generate synthesizable register-transfer-level (RTL) implementations, validate each design against a bit-accurate golden model, and evaluate the implementations. The results show that tree- and rule-based detectors achieve the highest detection performance with nearly an order of magnitude less area and several times lower energy than function-based classifiers. Reducing the number of HPC inputs to fit a processor's concurrent-counter limit preserves detection performance while substantially reducing area, power, and delay.

Index Terms—Hardware Malware Detection, Hardware Performance Counters, Ensemble Learning, Machine Learning

I. INTRODUCTION

Malware remains one of the most persistent threats across computing platforms, from desktop and server systems to embedded and IoT devices [1], [2]. Software-based detection solutions struggle against polymorphic and metamorphic malware variants because malware can use dynamic code alteration and evasion tactics. Antivirus software remains vulnerable to the evasion techniques it is designed to tackle. A decade of research has therefore turned to hardware-assisted detection, based on the assumption that although an attacker can modify software at any time, controlling the hardware is infeasible [3].

Modern processors contain built-in HPCs that observe microarchitectural events as a program executes. HPCs measure software performance during execution. They monitor a wide range of events, including instructions, cache hits and misses, branch mispredictions, and TLB misses. Demme et al. showed that malware leaves recognizable fingerprints in HPC data [4]. Subsequent studies have developed classifiers that monitor HPCs continuously by reading a subset of counters and flagging each application as benign or malicious [3], [5]. One design constraint for an HMD is the number of HPCs available to count microarchitectural events. The maximum number of counters that can be read concurrently is set at processor design time. For example, some Intel and AMD processors can read only four and six HPCs concurrently, respectively [2]; therefore, a deployable detector must fit within the processor's counter limit.

Prior studies compare classifiers using reduced HPC configurations. The study in [6] evaluates 144 configurations and finds that ensemble methods, particularly AdaBoost [7] and bagging [8], achieve high detection performance. However, these studies leave a key hardware-design question unanswered:

What are the power, performance, and area costs of each HMD?

An HMD’s area, power, and delay determine its integration overhead to the processor. High-performance ranked HMDs that disregard these parameters will affect the processor performance and efficiency. As a result, a designer needs to prioritize a detector that fits the design space of a processor. Prior works are limited to a few integrated classifier prototypes [5] or FPGA synthesis of a small classifier set [9] [10]. No prior study has measured hardware costs across a comprehensive design space for both FPGA and ASIC targets.

This paper evaluates the power, performance, and area of 15 of the 18 classifiers in [6]. Each classifier is trained with 16, 8, 4, or 2 HPCs; AdaBoost and bagging ensembles are also evaluated with 4 or 2 counters, for a total of 120 configurations. Three research questions (RQs) structure this study.

RQ1: For each classifier family (trees, rules, and function-based models), what are the routed ASIC area, energy per inference, and critical-path delay? What FPGA logic resources and frequency does an RTL implementation require?

RQ2: When the feature set is reduced from 16 to 8, 4, and 2 counters, how much area and energy does each classifier save, how much does its F1F_{1} score drop, and which configuration provides the best balance?

RQ3: At the same HPC budget, do AdaBoost and bagging ensembles improve F1F_{1} score enough to justify their additional area and energy costs?

This paper makes four contributions to the analysis of trade-offs between detection performance and hardware cost.

We developed an automated pipeline to reconstruct selected trained models from the experiments reported in [6], generate synthesizable Verilog RTL, validate each design against a bit-accurate golden model, and characterize completed implementations on FPGA and ASIC targets.

• We developed a machine-learning-to-silicon flow that covers the detector configurations evaluated in the previous study.

• We characterized implementation costs using successful FPGA place-and-route results and completed ASIC implementation runs.

• We analyze F1F_{1} scores to explain differences in the hardware characteristics of the classifier families.

• We recommend a classifier and HPC configuration for the evaluated counter-limited design space.

The rest of this paper is organized as follows. Section II reviews HPC-based malware detection, prior implementation-cost studies of HMD classifiers, alternative detection channels, evasion, and the translation of trained models into hardware. Section III describes the experimental setting, design space, model-to-silicon pipeline and validation, and FPGA and ASIC flows. Section IV presents detection metrics and implementation costs. Section V discusses measurement limitations and directions for future work, and Section VI concludes the paper.

References (41)