MaskedNet:首个针对功率侧通道保护的硬件推理机
MaskedNet: The First Hardware Inference Engine Aiming Power Side-Channel Protection
摘要:
差分功耗分析(Differential Power Analysis,DPA)是近二十年来研究的一个活跃领域,它通过功耗测量来研究从密码实现中提取秘密信息的攻击及其防御。不幸的是,到目前为止,对功率侧信道的研究主要集中在分析诸如AES、DES、RSA和最近的后量子密码学原语(例如,晶格)。与此同时,机器学习,特别是深度学习应用正在变得无处不在,其中机器学习模型是需要保密的知识产权的几种场景。然而,将侧信道分析扩展到机器学习模型提取在很大程度上是未探索的。本文将DPA框架扩展到神经网络分类器。首先,它显示DPA攻击在推理过程中提取秘密模型参数,如神经网络的权重和偏差。其次,通过对$\textit{masking}$的扩充,提出了针对这些攻击的$\textit{first countermeasures}$.由此产生的设计使用新的掩蔽组件,如掩蔽加法器树的全连接层和掩蔽整流器线性单元的激活函数。在SAKURA-X FPGA板上进行的实验表明,对未受保护的实现的一阶DPA攻击仅需200条迹线即可成功,并且我们的保护分别将延迟和面积成本增加了2.8倍和2.3倍。
英文摘要:
Differential Power Analysis (DPA) has been an active area of research for the past two decades to study the attacks for extracting secret information from cryptographic implementations through power measurements and their defenses. Unfortunately, the research on power side-channels have so far predominantly focused on analyzing implementations of ciphers such as AES, DES, RSA, and recently post-quantum cryptography primitives (e.g., lattices). Meanwhile, machine-learning, and in particular deep-learning applications are becoming ubiquitous with several scenarios where the Machine Learning Models are Intellectual Properties requiring confidentiality. Expanding side-channel analysis to Machine Learning Model extraction, however, is largely unexplored. This paper expands the DPA framework to neural-network classifiers. First, it shows DPA attacks during inference to extract the secret model parameters such as weights and biases of a neural network. Second, it proposes the $\textit{first countermeasures}$ against these attacks by augmenting $\textit{masking}$. The resulting design uses novel masked components such as masked adder trees for fully-connected layers and masked Rectifier Linear Units for activation functions. On a SAKURA-X FPGA board, experiments show that the first-order DPA attacks on the unprotected implementation can succeed with only 200 traces and our protection respectively increases the latency and area-cost by 2.8x and 2.3x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。