Visible to the public Architectural Supports to Protect OS Kernels from Code-Injection Attacks and Their Applications

TitleArchitectural Supports to Protect OS Kernels from Code-Injection Attacks and Their Applications
Publication TypeJournal Article
Year of Publication2017
AuthorsMoon, Hyungon, Lee, Jinyong, Hwang, Dongil, Jung, Seonhwa, Seo, Jiwon, Paek, Yunheung
JournalACM Trans. Des. Autom. Electron. Syst.
Volume23
Pagination10:1–10:25
ISSN1084-4309
Keywordsarchitectural support for security, code-injection attacks, composability, Metrics, operating system security, Operating Systems Security, pubcrawl, Resiliency, return oriented programming, return-oriented programming, shadow stack
Abstract

The kernel code injection is a common behavior of kernel-compromising attacks where the attackers aim to gain their goals by manipulating an OS kernel. Several security mechanisms have been proposed to mitigate such threats, but they all suffer from non-negligible performance overhead. This article introduces a hardware reference monitor, called Kargos, which can detect the kernel code injection attacks with nearly zero performance cost. Kargos monitors the behaviors of an OS kernel from outside the CPU through the standard bus interconnect and debug interface available with most major microprocessors. By watching the execution traces and memory access events in the monitored target system, Kargos uncovers attempts to execute malicious code with the kernel privilege. On top of this, we also applied the architectural supports for Kargos to the detection of ROP attacks. KS-Stack is the hardware component that builds and maintains the shadow stacks using the existing supports to detect this ROP attacks. According to our experiments, Kargos detected all the kernel code injection attacks that we tested, yet just increasing the computational loads on the target CPU by less than 1% on average. The performance overhead of the KS-Stack was also less than 1%.

URLhttp://doi.acm.org/10.1145/3110223
DOI10.1145/3110223
Citation Keymoon_architectural_2017