[Paper Review] PAC it up: Towards Pointer Integrity using ARM Pointer Authentication
This paper presents PARTS, a compiler instrumentation framework that leverages ARM Pointer Authentication (PA) to enforce pointer integrity for both code and data pointers, significantly improving protection against control-flow and data-oriented attacks. By combining pointer signing with run-time type safety, PARTS achieves strong security guarantees with low performance overhead—under 0.5% for code and return pointer signing, and 19.5% for data pointer signing in nbench-byte—outperforming existing solutions including fully-precise static CFI.
Run-time attacks against programs written in memory-unsafe programming languages (e.g., C and C++) remain a prominent threat against computer systems. The prevalence of techniques like return-oriented programming (ROP) in attacking real-world systems has prompted major processor manufacturers to design hardware-based countermeasures against specific classes of run-time attacks. An example is the recently added support for pointer authentication (PA) in the ARMv8-A processor architecture, commonly used in devices like smartphones. PA is a low-cost technique to authenticate pointers so as to resist memory vulnerabilities. It has been shown to enable practical protection against memory vulnerabilities that corrupt return addresses or function pointers. However, so far, PA has received very little attention as a general purpose protection mechanism to harden software against various classes of memory attacks. In this paper, we use PA to build novel defenses against various classes of run-time attacks, including the first PA-based mechanism for data pointer integrity. We present PARTS, an instrumentation framework that integrates our PA-based defenses into the LLVM compiler and the GNU/Linux operating system and show, via systematic evaluation, that PARTS provides better protection than current solutions at a reasonable performance overhead
Motivation & Objective
- To address the growing threat of run-time attacks in memory-unsafe languages like C and C++.
- To explore the potential of ARMv8-A Pointer Authentication (PA) as a general-purpose defense mechanism beyond return address protection.
- To design and implement a practical, efficient, and secure framework that enforces integrity for all pointer types, including data pointers.
- To evaluate the security and performance trade-offs of PA-based defenses in real-world workloads.
- To enable integration of PA-based protections into mainstream compilers and operating systems.
Proposed method
- Designing a pointer signing scheme that authenticates all code and data pointers using cryptographic MACs (PACs) to prevent tampering.
- Introducing run-time type safety to restrict pointer substitution attacks by ensuring only type-correct pointers can be used.
- Building PARTS, a compiler instrumentation framework integrated with LLVM and GNU/Linux, to automatically apply PA-based protections during compilation.
- Instrumenting return addresses, function pointers, and data pointers with PACs to detect and prevent forged pointer use.
- Using the pacga instruction to support authenticated canaries and integrity checks for arbitrary data blocks.
- Designing a key management strategy that traps PA key configuration at higher exception levels (EL2/EL3) to prevent privilege escalation.
Experimental results
Research questions
- RQ1Can ARM Pointer Authentication be effectively extended beyond return address protection to secure all pointer types?
- RQ2How can pointer reuse attacks be mitigated using PA while maintaining performance and practicality?
- RQ3What is the performance overhead of securing data pointers using PA, and is it acceptable for real-world deployment?
- RQ4Can run-time type safety combined with PA provide stronger guarantees than existing CFI or shadow stack solutions?
- RQ5How can PA-based protections be integrated into existing software stacks, including shared libraries and legacy code?
Key findings
- PARTS achieves less than 0.5% average performance overhead for code-pointer and return address signing, demonstrating high efficiency.
- Data-pointer signing incurs a 19.5% average overhead in the nbench-byte benchmark, which is acceptable for security-critical applications.
- PARTS provides stronger security guarantees than fully-precise static CFI by preventing forged pointer values from outside the process.
- The combination of pointer signing and run-time type safety effectively defends against both control-flow and data-oriented programming (DOP) attacks.
- PARTS is resilient against pointer reuse attacks, requiring both matching stack pointer values and origin from the same function in the same process for successful exploitation.
- The framework supports integration with legacy code via PAC-wrappers and annotations, enabling safe interoperation with non-instrumented code.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.