[论文解读] IMS: Intelligent Hardware Monitoring System for Secure SoCs
本文提出 IMS:一个基于机器学习的实时 AXI 协议监控系统,作为硬件 IP 集成在 SoC 上,用于检测协议违规的 DoS 攻击,具有高检测准确率、低硬件开销和低延迟。
In the modern Systems-on-Chip (SoC), the Advanced eXtensible Interface (AXI) protocol exhibits security vulnerabilities, enabling partial or complete denial-of-service (DoS) through protocol-violation attacks. The recent countermeasures lack a dedicated real-time protocol semantic analysis and evade protocol compliance checks. This paper tackles this AXI vulnerability issue and presents an intelligent hardware monitoring system (IMS) for real-time detection of AXI protocol violations. IMS is a hardware module leveraging neural networks to achieve high detection accuracy. For model training, we perform DoS attacks through header-field manipulation and systematic malicious operations, while recording AXI transactions to build a training dataset. We then deploy a quantization-optimized neural network, achieving 98.7% detection accuracy with <=3% latency overhead, and throughput of >2.5 million inferences/s. We subsequently integrate this IMS into a RISC-V SoC as a memory-mapped IP core to monitor its AXI bus. For demonstration and initial assessment for later ASIC integration, we implemented this IMS on an AMD Zynq UltraScale+ MPSoC ZCU104 board, showing an overall small hardware footprint (9.04% look-up-tables (LUTs), 0.23% DSP slices, and 0.70% flip-flops) and negligible impact on the overall design's achievable frequency. This demonstrates the feasibility of lightweight, security monitoring for resource-constrained edge environments.
研究动机与目标
- 解决导致 SoC DoS 的 AXI 协议安全漏洞。
- 开发一个实时、硬件实现的基于 ML 的 AXI 流量监控系统(IMS)。
- 创建一个公开的正常与恶意 AXI 交易数据集用于训练与评估。
- 展示 IMS 在 RISC-V SoC 上的集成,并评估硬件开销与性能。
提出的方法
- 通过记录正常操作并在 AXI 通道上综合合成 DoS 风格的恶意事务,生成带标签的 AXI 流量数据集。
- 从 52 个协议信号中提取特征,经相关性分析降至 22 个,然后通过 PCA 压缩以保留 90–97% 的方差。
- 使用 ADAM 优化和二分类交叉熵损失,训练一个具有两层隐藏层、每层 32 个神经元、输出为 Sigmoid 的多层感知机(MLP)。
- 对 (<8,5>) 精度进行量化感知训练,并进行 80% 权重裁剪以映射到硬件。
- 使用 HLS4ML 将 ML 模型合成为 AXI-Stream IP 核,并将其映射为 Chipyard/RISC-V SoC 上的内存映射外设。
- 在 ZCU104 FPGA 上评估检测性能(准确率、精确率、召回率、F1、AUC-ROC)与硬件指标(DSP、LUT、FF、BRAM)。

实验结果
研究问题
- RQ1基于 ML 的异构特征表示是否能够在 SoC 上实时检测 AXI 协议违规攻击?
- RQ2哪些特征工程与模型优化策略能够在硬件友好、同时保持高精度的 AXI 监控?
- RQ3将 IMS 作为 AXI 监控 IP 集成对硬件开销与性能有何影响?
- RQ4IMS 对不同 AXI 攻击向量和混合攻击的鲁棒性如何?
- RQ5是否存在可以公开获取的数据用于复现实验 AXI 层级的安全评估?
主要发现
- IMS 在基线和量化形式下分别达到最高 98.9–99.1% 的准确率以及 0.993 的 AUC-ROC。
- 量化的 <8,5> 模型达到 99.0% 的召回率并保持 AUC-ROC > 0.99。
- 在 FPGA 上实现将 DSP 使用量从 799 下降到 4,LUT 降至 20,841,分别下降 99.5% 与 53.9%,且 DSP/FF 使用率在 ZCU104 上仅 0.23%/0.70%。
- IMS 的每次推理延迟约为 1.53–1.61 毫秒,在不同 AXI 负载下吞吐量超过 2.4–2.57 百万次推理/秒。
- 针对攻击的检测率包括 AWLEN 溢出 100% DR;ARID 重复 98.0% DR;AWQOS 泛洪 97.2% DR;混合攻击超过 98% DR。
- 在 3,242 个样本中的总体检测率为 98.5%,精确率为 96.4%。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。