ret2dir: Deconstructing Kernel Isolation Vasileios P. Kemerlis Michalis Polychronakis Angelos D. Keromytis Network Security Lab Department of Computer Science Columbia University
[email protected] (Columbia University) ret2dir BHEU ’14 1 / 43 $whoami I Ph.D. candidate @Columbia University I Member of the Network Security Lab [http://nsl.cs.columbia.edu] I Research interests [http://www.cs.columbia.edu/˜vpk]: OS/Kernel self-protection Automated software hardening • • I kGuard [USENIX Sec ’12] I Virtual Partitioning [CCS ’12] High-performance data flow tracking Auditable cloud services • • I ShadowReplica [CCS ’13] I CloudFence [RAID ’13] I TFA [NDSS ’12] I Cloudopsy [HCI ’13] I libdft [VEE ’12] Web app. security O↵ensive research • • I ARC [ACNS ’12] I ret2dir [USENIX Sec ’14] Network/system deception I CellFlood [ESORICS ’13] • I BotSwindler [RAID ’10] I Wifi Decoys [WiSec ’10]
[email protected] (Columbia University) ret2dir BHEU ’14 2 / 43 Agenda Introduction Kernel attacks & defenses Problem statement Attack [ret2dir ] Background Bypassing SMEP/SMAP, PXN,PaX,kGuard Conclusion Recap
[email protected] (Columbia University) ret2dir BHEU ’14 3 / 43 Introduction Kernel attacks & defenses The Kernel as a Target Why care? Increased focus on kernel exploitation 1. Exploiting privileged userland processes has become harder Canaries+ASLR+WˆX+Fortify+RELRO+BIND NOW+BPF SECCOMP+...! I Sergey Glazunov (Pwnie Awards) 14 bugs to takedown Chrome “A Tale of Two Pwnies” (http://blog.chromium.org) 2. High-value asset Privileged piece of code ! I Responsible for the integrity of OS security mechanisms 3. Large attack surface syscalls, device drivers, pseudo fs, ... ! I New features & optimizations New attack opportunities [APP] ! [KERNEL] ASLR W^X FORTIFY_SRC RELRO BPF_SECCOMP BIND_NOW vs.