arXiv:2608.26402cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26402

SILK: Closing the Time-of-Check-to-Time-of-Use Gap in RoT-Protected AI Systems

Ruichen Qi, Xinting Jiang, Ema Dimitrova, Junyi Luo, Quan Cheng, Mehdi Saligane

Abstract

Root-of-trust (RoT) authentication verifies a DNN model at load time, but weights may subsequently traverse DRAM, DMA, interconnect, and prefetch paths before reaching the compute engine. Post-verification tampering along this path can therefore alter the weights actually consumed while leaving the authenticated model image unchanged, creating a time-of-check-to-time-of-use (TOCTOU) integrity gap.

We present SILK (Streaming Inline Lightweight Keying), an in-place integrity mechanism that verifies the weight stream at the final pre-compute boundary. SILK repurposes quantized-weight LSBs as secret-keyed integrity bits and chains dependencies across weight bytes, so a local modification perturbs multiple integrity checks. A lightweight streaming checker recomputes these checks without separate authentication tags and uses commit gating to prevent unverified weights from reaching computation. Under a secure pseudorandom function (PRF), the forgery probability decreases exponentially with the number of affected checks, and measured miss rates closely track the analytical bound. SILK detects every stream-modifying instance in our functional attack suite. For INT8, it limits quality loss to at most 0.76 pp across evaluated CNNs and 0.17 perplexity across eight LLMs, while INT4 and MXFP4 provide a configurable security-quality tradeoff through check sparsity. On a Xilinx ZCU102, the synthesized reference pipelined implementation sustains 756 MB/s at only 1.00% of the equivalent area cost of a Caliptra 2.x RoT, while a configuration with a conservative per-attempt forgery bound of 2−1282^{-128} still sustains 678 MB/s at 6.15% of the RoT cost.

1 Introduction

RoT architectures such as OpenTitan and Caliptra provide cryptographic measurement and remote attestation for loaded system state [1, 2], and can be integrated into DNN accelerator systems to authenticate the model at load time. However, authenticating a DNN model does not guarantee that the same

Figure

Figure 1: The weight-stream TOCTOU gap and SILK's solution.

model is ultimately used for inference. Quantized weights may subsequently pass through DRAM, DMA, interconnect, controllers, and on-chip prefetch buffers before reaching the compute engine. A malicious DMA endpoint, controller compromise, RowHammer event, or data-path fault injection can therefore modify weights after measurement without altering the model image originally authenticated by the RoT or the measurement reported in its attestation [3–5]. This creates a classic time-of-check-to-time-of-use (TOCTOU) gap between the model that was authenticated and the weight stream actually consumed by the accelerator. Related work has similarly shown that exploitable windows can remain between an earlier protection action and the eventual use of protected state [6]. The gap is practically significant: in our speaker-verification experiment, a single post-measurement weight-byte modification causes a borderline impostor to cross the acceptance threshold, while the aggregate equal-error rate changes by only 0.1 pp and the authenticated model image remains unchanged. SILK detects the modified delivered stream before the corrupted weight reaches computation ( §5.1§5.1).

Existing defenses address related integrity problems, but at different verification objects and boundaries. Memory-integrity mechanisms such as GuardNN, MGX, and TNPU authenticate memory blocks, tensors, or accelerator traffic at the memory interface [7–9], while EMAC embeds block-level message authentication code (MAC) into redundant weight bits to reduce authentication-metadata overhead [10]. DNN-specific schemes verify selected weight pairs, groups, or layers [11–13], while behavioral approaches instead detect model modification through inference outputs [14]. These mechanisms provide complementary protection, but they do not directly authenticate the exact ordered weight stream at the final pre-compute boundary; data verified earlier may still traverse accelerator-managed buffering, interconnect, control, and prefetch logic before reaching the compute engine. Conventional cryptographic authentication can be moved to this final pre-compute boundary to provide strong weight-stream integrity, but standard per-block designs typically require carrying separate authentication tags with the weights. For example, a 128-bit tag per 64-byte weight tile adds 25% weight-side storage and corresponding memory-bandwidth overhead. The resulting challenge is therefore to extend integrity protection from load-time or memory-boundary verification to actual weight consumption while retaining fine-grained detection and localization without a separate authentication stream.

We present SILK, an in-place integrity mechanism that verifies the weight stream at the final pre-compute boundary. SILK provides Stream Integrity with Lightweight Keying by repurposing one LSB in each protected quantized byte as a secret-keyed integrity bit derived from the weight value, its position, and preceding bytes. These bits form chained dependencies across the serialized stream, causing a modification to affect multiple downstream checks rather than a single one-bit check. During deployment, a lightweight checker recomputes the checks and uses commit gating to prevent unverified weights from reaching computation. Virtual initialization and finalization close the finite stream without additional model bytes. SILK therefore complements the RoT: the RoT authenticates the model and protects keys and freshness, while SILK extends integrity protection across the weight-delivery path to the point of use.

Our contributions are:

• Exposing the DNN weight-stream TOCTOU gap. We identify and demonstrate a gap between load-time model authentication and the weight stream ultimately consumed by the compute engine: even a single post-authentication bit modification can alter model behavior without invalidating the RoT’s earlier authentication result.

• Distributed chained integrity for weight-stream verification. SILK embeds secret-keyed integrity bits directly into quantized-weight LSBs and weaves them into dependencies across the serialized stream. Final-boundary verification and commit gating prevent corrupted weights from reaching computation without additional weight bytes or a separate tag stream. We provide a PRF-based security analysis against construction-aware and adaptive adversaries, handle finite-stream boundaries, and integrate SILK with the RoT for key protection, rollback protection, and attestation.

• Quality-preserving soft-to-hard integrity embedding. We introduce a SILK-aware soft-to-hard training procedure that progressively exposes the model to randomized protected LSBs before replacing them with the final deterministic keyed integrity pattern. This procedure improves robustness to in-place integrity embedding while preventing the model from overfitting to a particular integrity-bit pattern.

• End-to-end security, quality, and hardware evaluation. We evaluate SILK across CNNs and LLMs under byte corruption, structural stream modification, and construction-aware attacks. SILK detects every stream-modifying instance in our functional attacks, with measured miss probabilities consistent with the analytical model. SILK preserves near-baseline quality by adjusting how densely integrity bits are embedded. We further demonstrate an end-to-end FPGA prototype integrating Caliptra-based RoT firmware, SILK, and a neural-network accelerator.

References (47)