Kernel Security
The kernel is the core component of an operating system, serving as the bridge between software and hardware. Operating at the lowest level of the OS, the kernel's access is so profound that it can be likened to impersonating the system itself, surpassing even the highest privileges of a root user. Kernel security is paramount because a breach at this level allows attackers to act as if they are the system. Vulnerabilities can lead to scenarios like unauthorized data access, system crashes, or the silent installation of rootkits.
In order to get started on kernel challenges, you will need to run the challenges inside a virtual machine. You can start this VM done by running a command while at a terminal, vm start. The virtual machine will automatically load the kernel module located in the /challenge directory. You can then connect your terminal to this virtual machine with vm connect!
Kernel: Introduction
Kernel: Environment Setup
Kernel: Kernel Modules
Kernel: Privilege Escalation
Kernel: Escaping Seccomp
Kernel Security: Memory Management
Kernel Security: Mitigations
Kernel Security: Writing Kernel Shellcode
The VM
These challenges need to be solved in a virtual machine!
You can launch with the virtual machine using the vm command, then interact with the challenges.
Further Reading
- Some notes to Linux Virtual Memory management.
- A collection of links related to Linux kernel security and exploitation.
- An awesome series on OS haxx0ring from the perspective of an OS developer.
- A blog/walkthrough on x86_64 virtual address translation.