Introduction
Buffer overflow attacks remain a critical threat to modern computing, enabling attackers to hijack control flow by overwriting pointers in memory. While various defenses like Address Space Layout Randomization (ASLR), stack canaries, and non-executable data segments have been deployed, they are often bypassable or incomplete. Dynamic Information Flow Tracking (DIFT) offers a more robust alternative by monitoring the flow of untrusted data. However, previous DIFT implementations suffered from significant performance overheads or high false-positive rates due to "noisy" bounds-check recognition.
This paper presents Raksha, a hardware-accelerated DIFT system that implements a "Pointer Injection" (PI) policy. Raksha provides a "deploy-and-forget" solution that requires no source code modifications, supports legacy binaries, and protects both userspace applications and the operating system kernel with negligible overhead.
System Architecture
Raksha is designed as a hardware-software hybrid. It extends the processor pipeline to handle tag propagation and security checks in real-time, while a software monitor manages security policies and exception handling.
The architecture consists of three main layers:
- Hardware Architecture: Every word in memory and every register is augmented with two tag bits: a Taint (T) bit to mark untrusted data and a Pointer (P) bit to identify legitimate pointers.
- Monitor: A software layer that defines security policies, controls hardware rules, and handles security exceptions.
- Operating System: A tag-aware kernel that manages tags during context switches and cross-process communication.
The Pointer Injection (PI) Policy
The core innovation of Raksha is the Pointer Injection (PI) policy. Unlike traditional DIFT systems that attempt to recognize bounds checks (which is error-prone at the assembly level), PI enforces a simple data invariant: untrusted data cannot be used directly as a pointer.
To be considered a valid pointer, tainted input must be combined with a known, legitimate pointer (e.g., adding an offset to a base address). If an attacker attempts to overwrite a return address or a function pointer with a completely new, tainted value, the system detects the violation and triggers a security exception.
As shown in the propagation rules, operations like add or sub allow a tainted value to influence a pointer's value while maintaining its pointer status. However, direct loads or logical operations that result in a purely tainted value will not have the P-bit set, preventing them from being used in sensitive control-flow operations.
Evaluation and Results
The authors evaluated Raksha using a full-system prototype on an FPGA, booting a complete Gentoo Linux distribution.
- Security Effectiveness: Raksha successfully blocked all tested buffer overflow attacks targeting the stack, heap, and BSS segments in vulnerable applications like
sendmailandtraceroute. - Zero False Positives: By focusing on pointer injection rather than bounds-check logic, Raksha achieved zero false positives on complex, unmodified binaries including GCC and the Apache web server.
- Minimal Overhead: The hardware-accelerated tag propagation resulted in a runtime overhead of less than 0.1% for the SPEC CPU2000 benchmark suite. The only significant latency is a one-time startup scan to identify initial "root" pointers in the binary.
Conclusion
Raksha demonstrates that hardware-supported DIFT can be both practical and highly effective. By shifting the focus from program logic to data invariants through the Pointer Injection policy, it overcomes the limitations of previous security mechanisms. While it requires hardware modifications, its ability to protect both userspace and kernelspace with near-zero overhead makes it a compelling model for future secure processor designs.
Summary updated