arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.06223cs.CRcs.AI
收藏

编译模型,内置漏洞:揭示DNN可执行文件中普遍存在的位翻转攻击面

Compiled Models, Built-In Exploits: Uncovering Pervasive Bit-Flip Attack Surfaces in DNN Executables

The Hong Kong University of Science and Technology(香港科技大学);Huawei Technologies(华为技术有限公司)

Yanzuo Chen, Zhibo Liu, Yuanyuan Yuan, Sihang Hu, Tianxiang Li, Shuai Wang

AI总结:

本文首次系统研究DNN可执行文件上的位翻转攻击,发现利用公开模型结构即可实现普遍、可迁移且能绕过现有防御的高效攻击,并设计自动化工具以高置信度定位脆弱比特位,仅需平均1.4次翻转即可使模型失效,呼吁在编译工具链中引入安全机制。

摘要:

位翻转攻击(BFAs)能够操纵深度神经网络(DNN)。对于在PyTorch等深度学习(DL)框架上运行的高层DNN模型,已有大量BFAs被用于翻转模型权重中的比特位,并显示出有效性。同时,也提出了用于保护模型权重的防御方法。然而,DNN正越来越多地被DL编译器编译为DNN可执行文件,以利用硬件原语。这些可执行文件表现出不同的计算范式;现有研究未能准确捕捉和暴露DNN可执行文件上的BFA攻击面。为此,我们首次对DNN可执行文件上的BFAs开展了系统性研究。先前的BFAs仅限于攻击模型权重,并假设一个强大的白盒攻击者完全了解受害者模型权重,这并不现实,因为权重通常是保密的。相比之下,我们发现针对DNN可执行文件的BFAs可以通过利用模型结构(通常存储在可执行代码中)实现高效攻击,而这只需要知道(通常是公开的)模型结构。重要的是,这种基于结构的BFAs在DNN可执行文件中具有普遍性、可迁移性,且后果更为严重。它们还能绕过现有防御。为展示新的攻击面,我们假设一个更弱且更现实的攻击者,其不了解受害者模型权重。我们设计了一个自动化工具,以高置信度(70%,对比基线2%)识别受害者可执行文件中的脆弱比特位。我们在DDR4 DRAM上表明,平均仅需1.4次翻转即可将受害者模型的准确率完全降至随机猜测水平,包括此前可能需要23倍以上翻转次数的量化模型。我们全面评估了16个DNN可执行文件,涵盖由两个最流行的DL编译器编译的、在常用数据集上训练的大规模模型。我们的发现呼吁在未来的DNN编译工具链中纳入安全机制。

英文摘要:

Bit-flip attacks (BFAs) can manipulate deep neural networks (DNNs). For high-level DNN models running on deep learning (DL) frameworks like PyTorch, extensive BFAs have been used to flip bits in model weights and shown effective. Defenses have also been proposed to guard model weights. However, DNNs are increasingly compiled into DNN executables by DL compilers to leverage hardware primitives. These executables manifest distinct computation paradigms; existing research fails to accurately capture and expose the BFA surfaces on DNN executables. To this end, we launch the first systematic study of BFAs on DNN executables. Prior BFAs are limited to attacking model weights and assume a strong whitebox attacker with full knowledge of victim model weights, which is unrealistic as weights are often confidential. In contrast, we find that BFAs on DNN executables can achieve high effectiveness by exploiting the model structure (usually stored in the executable code), which only requires knowing the (often public) model structure. Importantly, such structure-based BFAs are pervasive, transferable, and more severe in DNN executables. They also slip past existing defenses. To demonstrate the new attack surfaces, we assume a weak and more realistic attacker with no knowledge of victim model weights. We design an automated tool to identify vulnerable bits in victim executables with high confidence (70% vs. baseline 2%). We show on DDR4 DRAM that only 1.4 flips on average are needed to fully downgrade the accuracy of victim models, including quantized ones which could require 23x more flips previously, to random guesses. We comprehensively evaluate 16 DNN executables, covering large-scale models trained on commonly-used datasets compiled by the two most popular DL compilers. Our finding calls for incorporating security mechanisms in future DNN compilation toolchains.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑