Attention:The NSF Public Access Repository (PAR) system and access will be unavailable from 10:00 PM ET on Thursday, July 16 until 12:00 AM ET on Friday 17 due to maintenance. We apologize for the inconvenience.


This content will become publicly available on October 23, 2026

Title: $$\mu $$ Scan: Deep Learning Detection of Faulty Micro-architecture States and Patterns from Scan-Chain Data
Hardware Fault injection can leave processors in weird micro-architecture states that evade detection by conventional software-level monitors, jeopardizing system reliability. We propose μScan, a deep learning framework that leverages scan-chain observability to detect such anomalous states. μScan fine-tunes a large language model (LLM) to clas-sify single-cycle processor states as weird or sane, achieving an average clas-sification accuracy of 92% and maintaining robust performance across dif-ferent CPU architectures (MSP430, PICO (RV32IC), IBEX (RV32IMC)). We further refine this LLM classifier with reinforcement learning, which sharpens its decision boundaries and improves detection of borderline anomalies. μScan also employs a graph neural network (GNN) to ana-lyze multi-cycle fault patterns, capturing complex temporal dependencies that single-cycle analysis might miss. This GNN-based analysis success-fully identifies recurring fault sequences and maps them to known Common Weakness Enumeration (CWE) vulnerability classes, revealing potential hardware design flaws. μScan demonstrates scalability and generalization on multiple processor architectures (including micro-coded and pipelined cores) and is evaluated with both pre-silicon simulation data and a post-silicon prototype. Our results show that μScan enables early detection of micro-architecture vulnerabilities in the design phase and provides a robust post-silicon anomaly detection mechanism.  more » « less
Award ID(s):
2219810
PAR ID:
10681566
Author(s) / Creator(s):
; ; ;
Publisher / Repository:
Springer Nature Switzerland
Date Published:
ISBN:
978-3-032-01799-4
Page Range / eLocation ID:
124 to 143
Format(s):
Medium: X
Sponsoring Org:
National Science Foundation
More Like this
  1. Polynomial multiplication stands out as a highly demanding arithmetic process in the development of post-quantum cryptosystems. The importance of the number-theoretic transform (NTT) extends beyond post-quantum cryptosystems, proving valuable in enhancing existing security protocols such as digital signature schemes and hash functions. CRYSTALS-KYBER stands out as the sole public key encryption (PKE) algorithm chosen by the National Institute of Standards and Technology (NIST) in its third round selection, making it highly regarded as a leading post-quantum cryptography (PQC) solution. Faults have the potential to disrupt cryptographic systems, compromise data integrity, and enable side-channel attacks, making the incorporation of robust error detection mechanisms essential. This article introduces algorithm-level fault detection schemes in the NTT multiplication using Negative Wrapped Convolution (NWC) and the NTT tailored forKyber Round 3, representing a significant enhancement compared with previous research. We evaluate this through the simulation of a fault model, ensuring that the conducted assessments accurately mirror the obtained results. Our fault detection scheme is designed to address both malicious fault injection attacks on Kyber and naturally occurring faults. Furthermore, we assessed the effectiveness of the proposed error detection scheme for the NTT implemented in bothNWC andKyber, using AMD/Xilinx Artix-7 FPGA, HLS and processor-based approaches. In our FPGA implementation ofNWC, the integration of our error detection approach achieves near-100% fault coverage with minimal area overhead and results in only a 12% increase in latency compared with the original hardware design. Finally, we attained an error detection ratio of nearly 100% for the NTT operation inKyber, with a clock cycle overhead of 16% on the Cortex-A72 processor. 
    more » « less
  2. Post-silicon validation is a vital step in System-on-Chip (SoC) design cycle. A major challenge in post-silicon validation is the limited observability of internal signal states using trace buffers. Hardware assertions are promising to improve observability during post-silicon debug. Unfortunately, we cannot synthesize thousands (or millions) of pre-silicon assertions as hardware checkers (coverage monitors) due to hardware overhead constraints. Therefore, we need to select the most profitable assertions based on design constraints. However, the design constraints can also change dynamically during the device lifetime due to changes in use-case scenarios as well as input variations. Therefore, assertion selection needs to dynamically adapt based on changing circumstances. In this article, we propose an assertion-based post-silicon validation framework to address the above challenges. Specifically, this article makes two important contributions. We propose a clustering-based assertion selection technique that can select the most profitable pre-silicon assertions to maximize the fault coverage. We also present a cost-aware dynamic refinement technique that can select beneficial hardware checkers during runtime based on changing design constraints. Experimental evaluation demonstrates that our proposed pre-silicon assertion selection can outperform state-of-the-art assertion ranking methods (Goldmine and HARM). The results also highlight that our proposed post-silicon dynamic refinement can accurately predict area (less than 5% error) and power consumption (less than 3% error) of hardware checkers at runtime. This accurate prediction enables the identification of the most profitable hardware checkers based on design constraints. 
    more » « less
  3. While traditional side-channel leakage assessment relies on physical measurements from fabricated hardware, pre-silicon leakage assessment – conducted through simulation – faces the challenge of estimating real-world leakage before hardware is available. Current pre-silicon methods seek to improve simulation accuracy by increasing the design detail at a single level of abstraction. However, there is always a limit to the level of detail that can be incorporated, leaving a gap between simulation and physical measurements. We show that side-channel leakage analysis can be approached as a top-down problem, using a hierarchical assessment across multiple abstraction levels in a design, enabling to gradually uncover sources of side-channel leakage. We introduce Telescope, a topdown framework for pre-silicon side-channel leakage assessment across three abstraction levels: architecture-, micro-architecture-, and gate-level. Telescope’s primary contribution is to demonstrate the propagation of leakage from software instructions to hardware implementation, revealing that leakage does not manifest uniformly across design levels. Through this cross-level analysis, we identify the origins of leakage at each abstraction level and explore their interdependencies. This analysis uncovers three distinct leakage patterns across levels: progressive, emergent, and disappearing sidechannel leakage. We demonstrate the scalability of Telescope by applying it to two RISC-V processors: the multi-cycle PicoRV32 and the pipelined IBEX. We analyze their power-based side-channel leakage patterns across several benchmarks, and illustrate practical use cases in debugging of side-channel leakage issues, and verification of micro-architecture effects in side-channel leakage. 
    more » « less
  4. The growing complexity of modern System-on-Chip (SoC) designs has made analyzing security vulnerabilities, such as side-channel leakage and fault effects, increasingly challenging. Traditionally, vulnerability assessment is performed only after design fabrication. This post-silicon black-box approach provides limited insight into design details, identifying weaknesses without explaining their root causes and resulting in both challenging countermeasure design and costly refabrication. This dissertation argues that vulnerability assessment can be supported to an earlier (pre-silicon) stage, where full access to the internal design enables root-cause analysis and allows the development of more effective mitigations. The key lies in the hierarchical evaluation of vulnerabilities, which bridges software and hardware layers to capture how weaknesses propagate through the design hierarchy. We propose two primary contributions. First, sidechannel leakage can be addressed through a top-down analysis that traces how sensitive, software-defined asset (e.g., cryptographic key or nonce) influence lower hardware layers, enabling early detection and mitigation of leakage sources. Second, fault effects can be examined through a bottom-up analysis that tracks how hardware disturbances propagate to software outputs, revealing critical fault paths and guiding the design of effective mitigation. 
    more » « less
  5. Electromagnetic fault injection (EMFI) induces transient faults in SoCs, yet limited hardware observability impedes root-cause analysis. We present a scan-chain-assisted EMFI framework on CAPRI1, a custom RISC-V SoC whose 12 756 scan-accessible flip-flops provide cycle-resolved, bit-level visibility after each injection on fabricated silicon. Unlike simulation based fault injection with predetermined fault models, post silicon scan capture reveals actual physical fault manifestations, including spatially correlated multi-bit upsets and PDN-mediated coupling effects. We apply hierarchical fault analysis to two PIN verification firmware workloads, tracing fault propagation from initial bit-flips through microarchitectural blocks to software level outcomes. A direction-aware PDN loop coupling model predicts EMFI-susceptible die regions from pre-silicon layout data; the predicted map aligns with scan-localized first-flip clustering (70.6% within the top-20% predicted region, 𝑝 < 10−5), establishing a pre-silicon-to-post-silicon vulnerability assessment workflow. 
    more » « less