信息网络安全 ›› 2025, Vol. 25 ›› Issue (6): 977-987.doi: 10.3969/j.issn.1671-1122.2025.06.012

• 专题论文: 网络主动防御 • 上一篇    下一篇

一种面向NPU内存侧信道攻击的安全防护方案

胡文澳, 严飞(), 张立强   

  1. 武汉大学国家网络安全学院,武汉 430040
  • 收稿日期:2025-01-24 出版日期:2025-06-10 发布日期:2025-07-11
  • 通讯作者: 严飞 yanfei@whu.edu.cn
  • 作者简介:胡文澳(1999—),男,湖北,硕士研究生,主要研究方向为系统安全|严飞(1980—),男,上海,教授,博士,主要研究方向为系统安全与可信计算、可信人工智能、人机交互安全|张立强(1979—),男,黑龙江,副教授,博士,主要研究方向为系统安全与可信计算、工业互联网安全、数据安全、安全测评、人工智能安全。
  • 基金资助:
    国家重点研发计划(2022YFB3103804);湖北省重大科技攻关项目(尖刀)(2023BAA027)

A Security Protection Scheme against Memory Side-Channel Attacks on NPU

HU Wenao, YAN Fei(), ZHANG Liqiang   

  1. School of Cyber Science and Engineering, Wuhan University, Wuhan 430040, China
  • Received:2025-01-24 Online:2025-06-10 Published:2025-07-11

摘要:

随着人工智能技术的快速发展,NPU在智能手机、自动驾驶、边缘计算等领域的应用日益广泛。然而,现有的NPU架构在抵御内存侧信道攻击方面存在不足,攻击者可以通过分析内存访问模式逆向推导出DNN模型的结构和参数。为应对这一挑战,文章提出一种面向NPU内存侧信道攻击的安全防护方案——NPUGuard,该方案通过特征图划分和加密压缩引擎两个关键模块,从增加层边界、混淆数据地址和加密保护数据3个方面提供安全保障。实验结果表明,NPUGuard能够有效增加层边界,使攻击者通过内存侧信道攻击逆向推导的可能网络数量从24种增加到7.86×105种;基于混沌映射的数据加密压缩算法在加密数据的同时,可降低60%的存储空间。此外,NPUGuard仅带来5%的性能损失,处于可接受范围,有效平衡了安全与性能之间的关系。

关键词: 侧信道防护, NPU安全, 特征图划分, 数据加密压缩

Abstract:

With rapid advancement of artificial intelligence technology, neural processing units(NPU) have been widely adopted in smartphones, autonomous vehicles, and edge computing. However, existing NPU architectures demonstrated vulnerabilities against memory side-channel attacks, where attackers could reverse-engineer deep neural networks(DNN) model structures and parameters by analyzing memory access patterns. To address this issue, this paper proposed NPUGuard, a security protection scheme featuring two core modules: feature map partitioning module and encrypted compression engine. The solution enhanced security through three approaches: layer boundary expansion, data address obfuscation, and data encryption protection. Experimental results show that NPUGuard effectively increases layer boundaries, expanding potential reverse-engineered network configurations from 24 to 7.86×105. The chaos mapping-based encryption algorithm achieves 60% storage reduction while encrypting sensitive data. Moreover, NPUGuard introduces only 5% performance overhead, demonstrating effective balance between security enhancement and computational efficiency.

Key words: side-channel protection, NPU security, feature map partitioner, data encryption and compression

中图分类号: