<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>microarchitectural telemetry &#8211; Science</title>
	<atom:link href="https://scienmag.com/tag/microarchitectural-telemetry/feed/" rel="self" type="application/rss+xml" />
	<link>https://scienmag.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Oct 2026 09:12:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://scienmag.com/wp-content/uploads/2024/07/cropped-scienmag_ico-32x32.jpg</url>
	<title>microarchitectural telemetry &#8211; Science</title>
	<link>https://scienmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">73899611</site>	<item>
		<title>Machine learning spots RISC-V hardware attacks from processor performance counters</title>
		<link>https://scienmag.com/machine-learning-spots-risc-v-hardware-attacks-from-processor-performance-counters/</link>
		
		<dc:creator><![CDATA[Teresa Odom]]></dc:creator>
		<pubDate>Tue, 27 Oct 2026 09:12:19 +0000</pubDate>
				<category><![CDATA[Technology and Engineering]]></category>
		<category><![CDATA[dataset for RISC-V security analysis]]></category>
		<category><![CDATA[decision tree]]></category>
		<category><![CDATA[embedded system security]]></category>
		<category><![CDATA[gem5 simulator]]></category>
		<category><![CDATA[hardware performance counters]]></category>
		<category><![CDATA[hardware performance counters for security]]></category>
		<category><![CDATA[hardware performance monitoring]]></category>
		<category><![CDATA[hardware security]]></category>
		<category><![CDATA[HARPY-V-GEM5 dataset]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[machine learning classifiers for hardware attacks]]></category>
		<category><![CDATA[machine learning for processor attack detection]]></category>
		<category><![CDATA[machine learning-based threat detection]]></category>
		<category><![CDATA[malware detection]]></category>
		<category><![CDATA[microarchitectural telemetry]]></category>
		<category><![CDATA[open-source hardware vulnerability]]></category>
		<category><![CDATA[Random Forest]]></category>
		<category><![CDATA[RISC-V]]></category>
		<category><![CDATA[RISC-V hardware security]]></category>
		<category><![CDATA[RISC-V instruction set architecture]]></category>
		<category><![CDATA[security challenges in open hardware]]></category>
		<category><![CDATA[side-channel attacks]]></category>
		<category><![CDATA[zero-day attacks]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=351417</guid>

					<description><![CDATA[Researchers built the first public RISC-V dataset combining hardware performance counters with instruction traces and showed that simple tree-based models detect known attacks with over 99 percent accuracy, while zero-day generalization varies sharply by attack family.]]></description>
										<content:encoded><![CDATA[<p>Open-source hardware has a security problem, and a team of researchers has now mapped exactly how far machine learning can go in closing it.  Their central result is encouraging but carefully qualified: simple tree-based classifiers can spot known attacks with better than 99 percent accuracy, yet their ability to catch genuinely novel attacks varies dramatically from one attack family to another.</p>
<p>The work centers on a new resource called the HARPY-V-GEM5 dataset, which the authors describe as the first publicly available collection for RISC-V that combines Hardware Performance Counter readings with committed-instruction mnemonic frequencies. RISC-V is a royalty-free, open Instruction Set Architecture whose modularity and transparency have made it attractive for research and embedded systems. That same openness, the researchers note, introduces non-uniformity across implementations and a broader attack surface at the hardware level, where conventional software-based protections often cannot see. Existing RISC-V datasets, they argue, mostly target functional correctness or benchmarking rather than security-oriented behavior, leaving a gap that their new corpus is designed to fill.</p>
<p>To build the dataset, the team executed 32 custom binaries—16 benign applications and 16 malicious exploits—inside the gem5 full-system simulator, version 24.1.0.3, in syscall-emulation mode. All programs were statically compiled with the RISC-V GCC toolchain, and the simulated processor was a single-core, single-threaded, out-of-order RISC-V core clocked at 3 GHz with 16 KiB L1 caches and a 256 KiB L2 cache. A custom gem5 patch allowed the researchers to extract committed instruction mnemonics alongside the standard performance counters, a combination that stock tooling does not provide. Sampling occurred at a fixed interval of every 10,000 committed instructions, a fine-grained resolution chosen to capture transient microarchitectural anomalies typical of side-channel activity, such as cache timing variations and speculative execution gadgets.</p>
<p>The malicious workloads spanned cache-based attacks, speculative execution exploits, timer-based techniques, and memory-access inference methods. The benign set drew from multimedia processing, data compression, text processing, numerical computation, and system performance evaluation, giving the models a broad picture of normal behavior. Because benign workloads typically run longer than exploits, the team applied a strict undersampling strategy: every trace was truncated from its beginning to the length of the shortest malicious workload, yielding exactly 12,890 samples per program and 412,480 samples in total. This enforced class balance eliminated the need for synthetic data augmentation techniques such as generative adversarial networks, ensuring that the models learned behavioral signatures rather than execution-length artifacts. One workload, GhostWrite, naturally produced only 2,340 samples and was extended through repeated iterations; the authors report that classifier performance remained stable whether trained on the original or extended trace.</p>
<p>For feature selection, the researchers used the SelectKBest method with univariate ANOVA F-tests, deliberately restricting themselves to counters commonly exposed by physical processors so that simulation results would translate to real hardware. An ablation study with the Random Forest classifier showed detection accuracy rising sharply from 67.17 percent with a single counter to 99.60 percent with four, plateauing beyond five features. The top-ranked counters included L1 and L2 cache accesses and misses along with branch prediction metrics. On the known-attack test set, Random Forest achieved 99.55 percent detection accuracy and an F1-score of 99.55 percent, with Decision Trees close behind at 99.54 percent. Both models also handled multi-class attack classification well with hardware counters, reaching 97.52 percent accuracy for Random Forest, suggesting that families as different as Spectre and Flush+Reload leave distinct microarchitectural footprints in cache and branch predictor stress.</p>
<p>Instruction-level features told a more lopsided story. Using the top eight committed instruction mnemonics, detection accuracy stayed above 99 percent, but classification of the specific attack family collapsed to roughly 60 percent. The explanation, the authors suggest, is that malicious code looks fundamentally different from benign code—likely due to a higher density of specific instructions and tight loops—while different types of malicious code look very similar to each other, since many exploits share common initialization routines such as flushing cache lines. An opcode distribution analysis reinforced this picture: benign programs were dominated by arithmetic and load instructions such as c_add and lw, whereas malicious programs showed a striking excess of compressed store double-word instructions, branch instructions like bne, and notably csrrs, an instruction used to access hardware performance counters and timing sources—operations central to side-channel attacks.</p>
<p>The study&#8217;s most sobering section is its zero-day evaluation. The authors ran a Leave-One-Program-Out cross-validation protocol in which an entire program—all 12,890 of its samples—was held out from training and used only for testing, simulating an encounter with a previously unseen binary. Aggregate results looked respectable: Random Forest reached 90.08 percent accuracy with hardware counter features and Decision Trees 85.67 percent. But the aggregate conceals extreme variability, with standard deviations between 25 and 36 percent across programs. Some held-out attacks, including spectrev2 at 1.34 percent accuracy and flush-fault-ret at 0.00 percent, were essentially undetectable when excluded from training, because the models had learned program-specific microarchitectural signatures rather than the underlying vulnerability patterns.</p>
<p>The failure modes of the two feature types, however, turned out to be largely complementary. Hardware counter models failed for attacks such as flush_fault, flush-fault-ret, interrupt-timing, and spectre-rsb, which nonetheless were detected with above 99 percent accuracy using instruction-based features. Conversely, the timing-driven timer-drift attack scored 0.00 percent with instruction features while being detected nearly perfectly with hardware counters, indicating that instruction frequencies alone cannot capture timing anomalies that counters expose directly. Only spectrev2 resisted both modalities. The authors also quantified overfitting: the gap between training accuracy and held-out accuracy was 21.6 percentage points for the hardware-counter Random Forest versus 9.7 points for the instruction-based Decision Tree, suggesting that counters, while more discriminative for known attacks, are more prone to learning program-specific artifacts.</p>
<p>Why choose simple trees over deep learning at all? The authors point to the computational constraints of embedded security monitors. A Decision Tree requires only O(d) comparisons per inference, where d is tree depth, while a neural network needs O(w) multiply-accumulate operations for its weight count; their analysis indicates Decision Tree inference is roughly three orders of magnitude faster than a moderately sized multilayer perceptron, with a memory footprint under 100 KB compared with several megabytes. They also observed that Support Vector Machines, which performed adequately on classification with an RBF kernel at 92.54 percent, failed badly at binary detection with 61.08 percent accuracy, hinting that the benign and malicious classes are not linearly separable. From these patterns the team distilled practical recommendations: an instruction-based Decision Tree detector for on-chip real-time monitoring, hardware-counter Random Forest classification as a second stage when attack attribution matters, and a hybrid two-stage pipeline combining both.</p>
<p>The researchers are explicit about the limits of their claims. Every experiment ran in gem5, which may not fully replicate the timing characteristics or idiosyncrasies of physical RISC-V silicon, and the classifiers may partly be learning patterns specific to the simulator rather than to real hardware. The malicious corpus consists of only 16 proof-of-concept exploit implementations, whereas real-world malware may behave in more varied and sophisticated ways. Validating the results on physical hardware, expanding coverage to attacks such as return-oriented programming and privilege escalation, and integrating the detectors into live runtime monitors are all flagged as future work. Even so, the study offers a reproducible baseline—and an honest accounting—for the idea that lightweight, interpretable models watching a processor&#8217;s own counters could become a practical line of defense for the next generation of open-ISA systems.</p>
<p><strong>Subject of Research:</strong> Machine learning detection and classification of RISC-V hardware exploits using hardware performance counters and instruction telemetry</p>
<p><strong>Article Title:</strong> Lightweight detection and classification of RISC-V hardware exploits using machine learning techniques</p>
<p><strong>Article References:</strong> Pujol, J.-T., Otero, B., Verdú, J., &amp; Canal, R. (2026). Lightweight detection and classification of RISC-V hardware exploits using machine learning techniques. <em>Neural Computing and Applications, 38</em>(20), 854. <a href="https://doi.org/10.1007/s00521-026-12467-4" rel="noopener noreferrer">https://doi.org/10.1007/s00521-026-12467-4</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1007/s00521-026-12467-4" rel="noopener noreferrer">10.1007/s00521-026-12467-4</a></p>
<p><strong>Keywords:</strong> RISC-V, hardware security, malware detection, machine learning, hardware performance counters, gem5 simulator, side-channel attacks, Random Forest, Decision Tree, zero-day attacks, HARPY-V-GEM5 dataset, microarchitectural telemetry</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">351417</post-id>	</item>
	</channel>
</rss>
