System Security

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!

24 challenges

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

Challenges

CHALLENGE 01

level1.0

— solves

Ease into kernel exploitation with this simple crackme level!

CHALLENGE 02

level1.1

— solves

Ease into kernel exploitation with this simple crackme level!

CHALLENGE 03

level2.0

— solves

Ease into kernel exploitation with another crackme level.

CHALLENGE 04

level2.1

— solves

Ease into kernel exploitation with another crackme level.

CHALLENGE 05

level3.0

— solves

Ease into kernel exploitation with another crackme level, this time with some privilege escalation (whoami?).

CHALLENGE 06

level3.1

— solves

Ease into kernel exploitation with another crackme level, this time with some privilege escalation (whoami?).

CHALLENGE 07

level4.0

— solves

Ease into kernel exploitation with another crackme level and learn how kernel devices communicate.

CHALLENGE 08

level4.1

— solves

Ease into kernel exploitation with another crackme level and learn how kernel devices communicate.

CHALLENGE 09

level5.0

— solves

Utilize your hacker skillset to communicate with a kernel device and get the flag.

CHALLENGE 10

level5.1

— solves

Utilize your hacker skillset to communicate with a kernel device and get the flag.

CHALLENGE 11

level6.0

— solves

Utilize a 'buggy' kernel device and shellcode to escalate privileges to root and get the flag!

CHALLENGE 12

level6.1

— solves

Utilize a 'buggy' kernel device and shellcode to escalate privileges to root and get the flag!

CHALLENGE 13

level7.0

— solves

Utilize a 'buggy' kernel device and shellcode to escalate privileges to root and get the flag!

CHALLENGE 14

level7.1

— solves

Utilize a 'buggy' kernel device and shellcode to escalate privileges to root and get the flag!

CHALLENGE 15

level8.0

— solves

Utilize a userspace binary to interact with a kernel device.

CHALLENGE 16

level8.1

— solves

Utilize a userspace binary to interact with a kernel device.

CHALLENGE 17

level9.0

— solves

Exploit a buggy kernel device to get the flag!

CHALLENGE 18

level9.1

— solves

Exploit a buggy kernel device to get the flag!

CHALLENGE 19

level10.0

— solves

Exploit a buggy kernel device with KASLR enabled to get the flag!

CHALLENGE 20

level10.1

— solves

Exploit a buggy kernel device with KASLR enabled to get the flag!

CHALLENGE 21

level11.0

— solves

Exploit a kernel device utilizing a userspace binary, with a twist!

CHALLENGE 22

level11.1

— solves

Exploit a kernel device utilizing a userspace binary, with a twist!

CHALLENGE 23

level12.0

— solves

Exploit a kernel device utilizing a userspace binary, with a twist!

CHALLENGE 24

level12.1

— solves

Exploit a kernel device utilizing a userspace binary, with a twist!