Kalevala

kernel

First challanges focus on very basics of kernel modules. Then in small steps testing how messed up can we make the system by hotpatching the kernel. For me this was a nice way to learn some of kernel internals.

10 challenges

Challenges

CHALLENGE 01

level.01

— solves

Make a kernel module to access the flag

CHALLENGE 02

level.02

— solves

Make a kernel module to communicate with the challenge binary to get the flag

CHALLENGE 03

level.03

— solves

Make a kernel module that hides files/folders in directory '/' from command 'ls /' to get the flag.

Some might consider a syscall as an asm instruction that CPU executes on HW-level. But actually its a jump to another world called Kernel. Sys_call_table is used there as interface. Lets mess with it some. Unfortunately this is no longer so trivial in later kernel versions but luckily here should be doable.

CHALLENGE 04

level.04

— solves

Make a kernel module that hides files/folders in directory '/' from command 'ls /' to get the flag. kaslr on.

CHALLENGE 05

level.06

— solves

Make a kernel module that hides file '/challange' but not file '/flag' from command 'ls /' to get the flag. kaslr on.

CHALLENGE 06

level.07

— solves

Command 'ls /' should find a file named as 'l/e/t/s//r/o/c/k' to get the flag. kaslr on.

CHALLENGE 07

level.09

— solves

Challenge binary tries to find installed kernel module and then to kill itself. Fool it to exit correctly and hide your .ko and show your personality (this time in stdout) to get the flag. kaslr on.

CHALLENGE 08

level.10

— solves

Pass checks to get the flag. kaslr on.

CHALLENGE 09

level.11

— solves

Feel free to run any binary. Pass checks to get the flag. kaslr on.

CHALLENGE 10

level.12

— solves

As level11 but now some too simply non intended solutions should not be possible.