Skip to main content
QUICK REVIEW

[论文解读] Evil from Within: Machine Learning Backdoors through Hardware Trojans

Alexander Warnecke, Julian Speith|arXiv (Cornell University)|Apr 17, 2023
Physical Unclonable Functions (PUFs) and Hardware SecurityComputer Science被引用 3
一句话总结

本文提出了一种基于硬件后门的新型机器学习系统后门攻击,其中通过触发器使高连通性恶意修改的神经元过度兴奋,从而操纵模型行为。该攻击在仅进行极少硬件修改的情况下,实现了高达98.7%的成功率,证明了可通过针对性神经元操控在硬件层面植入后门。

ABSTRACT

Backdoors pose a serious threat to machine learning, as they can compromise the integrity of security-critical systems, such as self-driving cars. While different defenses have been proposed to address this threat, they all rely on the assumption that the hardware on which the learning models are executed during inference is trusted. In this paper, we challenge this assumption and introduce a backdoor attack that completely resides within a common hardware accelerator for machine learning. Outside of the accelerator, neither the learning model nor the software is manipulated, so that current defenses fail. To make this attack practical, we overcome two challenges: First, as memory on a hardware accelerator is severely limited, we introduce the concept of a minimal backdoor that deviates as little as possible from the original model and is activated by replacing a few model parameters only. Second, we develop a configurable hardware trojan that can be provisioned with the backdoor and performs a replacement only when the specific target model is processed. We demonstrate the practical feasibility of our attack by implanting our hardware trojan into the Xilinx Vitis AI DPU, a commercial machine-learning accelerator. We configure the trojan with a minimal backdoor for a traffic-sign recognition system. The backdoor replaces only 30 (0.069%) model parameters, yet it reliably manipulates the recognition once the input contains a backdoor trigger. Our attack expands the hardware circuit of the accelerator by 0.24% and induces no run-time overhead, rendering a detection hardly possible. Given the complex and highly distributed manufacturing process of current hardware, our work points to a new threat in machine learning that is inaccessible to current security mechanisms and calls for hardware to be manufactured only in fully trusted environments.

研究动机与目标

  • 研究通过硬件木马在机器学习模型中植入后门的可行性。
  • 识别神经网络中可被用于持久、隐蔽后门植入的易受攻击神经元。
  • 证明高连通性神经元是触发恶意行为的最优目标。
  • 在真实条件下评估基于硬件的后门攻击的有效性与隐蔽性。

提出的方法

  • 在目标层中识别连通性最大(权重绝对值之和最大)的神经元作为后门植入的主要候选。
  • 修改硬件,使其在特定触发器存在时过度兴奋选定的高连通性神经元。
  • 使用可激活过度兴奋神经元的触发器模式,使模型产生预定的恶意输出。
  • 通过极少的硬件改动嵌入木马,确保低可检测性与高隐蔽性。
  • 通过测量成功率、鲁棒性及对检测技术的抵抗能力来验证攻击效果。
  • 分析触发器位置与神经元选择对攻击效果的影响。

实验结果

研究问题

  • RQ1是否可以利用硬件木马在机器学习模型中植入持久后门?
  • RQ2哪些神经元最易受基于硬件的后门攻击影响?
  • RQ3触发后门时其有效性如何?在各种条件下成功率是多少?
  • RQ4此类硬件木马在模型推理与验证过程中在多大程度上可保持不可检测?
  • RQ5实现可靠后门激活所需的最小硬件修改是什么?

主要发现

  • 在受控条件下,该攻击可实现高达98.7%的后门触发成功率。
  • 连通性最高的神经元因对输出决策具有强大影响,是最有效的攻击目标。
  • 植入木马所需的硬件修改极少,降低了可检测性并增强了隐蔽性。
  • 即使模型经过标准的鲁棒性训练与对抗性训练,后门依然有效。
  • 由于其基于硬件的实现方式,该攻击难以通过标准的软件分析手段检测。
  • 触发器模式可设计为在视觉或语义上不显眼,从而在真实部署中进一步增强隐蔽性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。