让洗牌再次伟大:一种用于保护神经网络免受侧信道攻击的Fisher-Yates算法
Make Shuffling Great Again: A Side-Channel Resistant Fisher-Yates Algorithm for Protecting Neural Networks
AI总结:
本文提出一种抗侧信道攻击的Fisher-Yates洗牌算法,通过掩码和Blakely模乘法消除除法漏洞,在ARM Cortex-M4上验证有效,内存开销为最大层2倍,时间开销随层大小变化。
摘要:
嵌入式设备中实现的神经网络模型已被证明容易受到侧信道攻击(SCA),从而允许恢复专有的模型参数,如权重和偏置。目前已有用于保护密码实现的对抗措施方法,可以调整以保护嵌入式神经网络模型。洗牌,一种基于隐藏的对抗措施,随机打乱计算顺序,当使用Fisher-Yates算法时,已被证明对SCA是脆弱的。在本文中,我们提出了一种SCA安全的Fisher-Yates算法版本的设计。通过整合模约简的掩码技术和Blakely的模乘法方法,我们有效消除了原始算法中导致侧信道泄漏的除法操作中的漏洞。我们通过实验评估了该对抗措施对SCA的有效性,在ARM Cortex-M4上实现的嵌入式神经网络模型上实施了相关功率分析攻击。与原始提案相比,内存开销是网络最大层的2倍,而时间开销对于具有100和1000个神经元的层分别从4%变化到0.49%。
英文摘要:
Neural network models implemented in embedded devices have been shown to be susceptible to side-channel attacks (SCAs), allowing recovery of proprietary model parameters, such as weights and biases. There are already available countermeasure methods currently used for protecting cryptographic implementations that can be tailored to protect embedded neural network models. Shuffling, a hiding-based countermeasure that randomly shuffles the order of computations, was shown to be vulnerable to SCA when the Fisher-Yates algorithm is used. In this paper, we propose a design of an SCA-secure version of the Fisher-Yates algorithm. By integrating the masking technique for modular reduction and Blakely's method for modular multiplication, we effectively remove the vulnerability in the division operation that led to side-channel leakage in the original version of the algorithm. We experimentally evaluate that the countermeasure is effective against SCA by implementing a correlation power analysis attack on an embedded neural network model implemented on ARM Cortex-M4. Compared to the original proposal, the memory overhead is $2\times$ the biggest layer of the network, while the time overhead varies from $4\%$ to $0.49\%$ for a layer with $100$ and $1000$ neurons, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。