System Security

Microarchitecture Exploitation

Modern CPUs are impressive feats of engineering effort. Consistently offering performance improvements every generation, but how? This module explores security vulnerabilities that can lurk hidden, below the assembly, in CPU architecture itself!

Note: Meltdown challenges must be performed inside the VM!

13 challenges

Microarchitecture Exploitation - Below Assembly

Microarchitecture Exploitation - Flush and Reload

Microarchitecture Exploitation - Meltdown

Microarchitecture Exploitation - Spectre

Challenges

CHALLENGE 01 · OPTIONAL

Shared Memory 1

— solves
This challenge is optional, it will not count towards dojo completion.

Get started with interacting with processes via shared memory.

CHALLENGE 02 · OPTIONAL

Shared Memory 2

— solves
This challenge is optional, it will not count towards dojo completion.

Get started with interacting with processes via shared memory.

CHALLENGE 03

Baby Spectre 1

— solves

Get started with a binary that side-channels itself!

CHALLENGE 04

Baby Spectre 2

— solves

A binary that side-channels itself, now using multiple pages.

CHALLENGE 05

Baby Spectre 3

— solves

Measure memory access timings to leak the flag via a side-channel.

CHALLENGE 06

Baby Spectre 4

— solves

Perform a full flush and reload side-channel attack!

CHALLENGE 07

Baby Spectre 5

— solves

This binary never reads the flag bytes.. or does it?

CHALLENGE 08

Prefetch Peek

— solves

Locate the flag in memory using shellcode after all references to it have been DESTROYED, you will only have access to the "exit" system call. You will need a creative way of locating the flag's address in your process!

CHALLENGE 09

Spooky Spectre 1

— solves

Use a speculative bounds check bypass which accesses a page mapped in userspace to leak the flag.

CHALLENGE 10

Spooky Spectre 2

— solves

Use a speculative indirect call which accesses a page mapped in userspace to leak the flag.

CHALLENGE 11

Yan85 Reloaded

— solves

Use a cache side channel triggered through y85 shellcode which accesses a page mapped in userspace to leak the flag.

CHALLENGE 12

Ghost in the YPU 1

— solves

Use a Spectre v1 channel triggered through y85 shellcode which accesses a page mapped in userspace to leak the flag.

CHALLENGE 13

Ghost in the YPU 2

— solves

Use a Spectre v2 side channel triggered through y85 shellcode which accesses a page mapped in userspace to leak the flag.

CHALLENGE 14

Molten Access

— solves

Use meltdown to read the flag from the kernel module's memory. Note - This challenge must be executed inside the VM!

CHALLENGE 15

Molten Walk

— solves

Leak the flag via meltdown from another process after getting the address of its task_struct from the kernel module and using it to find and walk its page tables. Note - This challenge must be executed inside the VM!