LIPPEN:一种面向指针完整性的轻量级原地指针加密架构 LIPPEN: A Lightweight In-Place Pointer Encryption Architecture for Pointer Integrity 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-05
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
C/C++程序的内存安全漏洞常被用于控制流劫持等攻击。现有硬件防护要么依赖地址空间随机化,要么为指针附加额外元数据,前者熵有限,后者带来内存开销。ARM的PAC原地认证虽开销低,但熵受限、易被暴力破解和重放。本文提出LIPPEN,一种软硬件协同的全指针加密方案:把每个指针当作加密块,与执行上下文绑定,解引用时透明解密,且不占用额外元数据。它利用整个64位指针字段加密,最大化熵,并兼容已有PAC软件。作者在FPGA上用64位RISC-V Rocket和BOOM核实现,并用微基准、nbench和SPEC CPU2017评测,与自研RISC-V PAC及苹果M1的PAC对比,证明其运行时开销与PAC相当,面积和功耗开销可忽略。
领域计算机体系结构 / 硬件安全(内存安全与指针完整性)
适合谁读需要一定专业背景(计算机体系结构、系统安全方向的研究生或工程师)
核心贡献1. 提出LIPPEN,一种零元数据开销的全指针加密软硬件协同设计,将整个64位指针字段用于加密,最大化熵并消除截断认证码的暴力破解弱点。2. 在FPGA上基于64位RISC-V Rocket和BOOM核实现原型,并证明其运行时开销与PAC方案相当,面积和功耗开销可忽略,且保持与现有PAC软件的二进制兼容。
关键数据在FPGA上用64位RISC-V Rocket和BOOM核实现;使用微基准、nbench和SPEC CPU2017评测;运行时开销与PAC方案相当;面积和功耗开销可忽略;与自研RISC-V PAC及Apple M1的PAC对比。
推荐理由如果你关心内存安全硬件防护,这篇论文给出了一个既强又轻量的指针加密方案,值得一读。
关键词["指针完整性", "内存安全", "硬件辅助安全", "指针加密", "RISC-V", "软硬件协同设计"]

原文摘要

查看英文原文摘要

Memory-safety violations in C and C++ programs continue to enable sophisticated exploitation techniques such as control-flow hijacking and data-oriented attacks. Existing hardware defenses either rely on address space layout randomization (ASLR) or attach explicit metadata to pointers to verify their integrity. External metadata schemes provide strong guarantees, but incur additional memory accesses and memory footprint overhead. In-place authentication mechanisms, such as ARM Pointer Authentication (PAC), achieve low overhead at the cost of limited entropy and susceptibility to brute-force and reuse attacks. This paper presents LIPPEN, a hardware-software co-design for full-pointer encryption that provides strong pointer integrity and confidentiality with zero metadata overhead. LIPPEN treats every pointer as an encrypted block, cryptographically binding it to its execution context and decrypting it transparently at dereference time. By re-purposing the entire 64-bit pointer field for encryption rather than preserving raw address bits, LIPPEN maximizes entropy, eliminates the brute-force weaknesses of truncated authentication codes, and maintains binary compatibility with existing PAC-enabled software. We prototype LIPPEN on FPGA using 64-bit RISC-V Rocket and BOOM cores, and evaluate it with microbenchmarks, nbench, and SPEC CPU2017. We compare against both an in-house RISC-V PAC implementation and Apple's PAC on the M1 processor. Across these workloads, LIPPEN provides comprehensive pointer protection with runtime overhead comparable to PAC-based schemes, while incurring negligible area and power overhead. These results show that LIPPEN is a practical design point for deploying strong pointer protection in real processors.