2023 · 11 citations · 18 references
ComputingComputer EngineeringComputer ScienceAuthenticationComputer SecurityHardware SecurityControl-flow AnalysisMemory Protection HardwareMemory SafetyMemory Safety VulnerabilitiesMicroarchitectural SecurityControl-flow IntegrityMemory Integrity ProtectionMemory Protection MechanismsMemory Safety Bug DetectionPointer AuthenticationPointer SafetyPrototype EvaluationRuntime Integrity Attacks
Memory safety bugs remain in the top ranks of security vulnerabilities, even after decades of research on their detection and prevention. Various mitigations have been proposed for C/C++, ranging from language dialects to instrumentation. Among these, compiler-based instrumentation is particularly promising, not requiring manual code modifications and being able to achieve precise memory safety. Unfortunately, existing compiler-based solutions compromise in many areas, including performance but also usability and memory safety guarantees. New developments in hardware can help improve performance and security of compiler-based memory safety. ARM Pointer Authentication, added in the ARMv8.3 architecture, is intended to enable hardware-assisted Control Flow Integrity (CFI). But since its operations are generic, it also enables other, more comprehensive hardware-supported runtime integrity approaches. As such, we propose CryptSan, a memory safety approach based on ARM Pointer Authentication. CryptSan uses pointer signatures to retrofit memory safety to C/C++ programs, protecting heap, stack, and globals against temporal and spatial vulnerabilities. We present a full LLVM-based prototype implementation, running on an M1 MacBook Pro, i.e., on actual ARMv8.3 hardware. Our prototype evaluation shows that the system outperforms similar approaches under real-world conditions. This, together with its interoperability with uninstrumented libraries and cryptographic protection against attacks on metadata, makes CryptSan a viable solution for retrofitting memory safety to C/C++ programs.
18
AddressSanitizer: a fast address sanity checker
Konstantin Serebryany, Derek Bruening, Alexander Potapenko et al. · USENIX Annual Technical Conference · 2012 · 642 citations
Santosh Nagarakatte, Milo M. K. Martin, Steve Zdancewic · 2009 · 529 citations
George C. Necula, Scott McPeak, Westley Weimer · 2002 · 371 citations
SoK: Automated Software Diversity
Per Larsen, Andrei Homescu, Stefan Brunthaler et al. · 2014 · 324 citations · Full text