Skip to content

Our artifacts to our Paper: "Algorithmic Heap Layout Manipulation in the Linux Kernel"

Notifications You must be signed in to change notification settings

fkie-cad/Algorithmic-Heap-Layout-Manipulation-in-the-Linux-Kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithmic Heap Layout Manipulation in the Linux Kernel

This repository contains the code and auxilliary tools for the Paper "Algorithmic Heap Layout Manipulation in the Linux Kernel". For information on how to setup and run KEvoHeap, see RUNNING_KEVOHEAP.md. More information about the exemplary vulnerable kernel module can be found in EXAMPLE_VULN.md. The "ftrace" folder contains instructions and tools for debugging memory allocation using ftrace. The "visualisation" folder contains scripts to visualize candidate solutions in an animated fashion. The "exploit" folder contains an exemplary exploit for the given vulnerable kernel module (found in "vuln").

Getting started

Just follow the instruction at RUNNING_KEVOHEAP.md.

Structure

  • algorithms: This folder contains the algorithms developed in our paper
  • exploits: This folder contains an exemplary exploit for the given vulnerable kernel module (found in vuln).
  • ftrace: This folder contains a script to enable the logging allocations via ftrace.
  • kernel sieve: This folder contains kernel sieve our framework for evaluating heap layout manipulation algorithms that target the SLAB/SLUB allocator in the Linux kernel.
  • kprobe: This folder conatins a kretprobe which observes all allocations in the target cache and creations of new slabs. This was our first approach in order to observe these allocations. Later we switched to eBPF to do the same.
  • netcat from Debian Buster: This folder contains the netcat version from Debian Buster used in our framework.
  • visualisation: This folder contains scripts for visualisation. This might be either an animation of the algorithmic solutions or the plotting of the results as bar charts/box plots.
  • vuln: This folder contains an exemplary vulnerable kernel module.

Dependencies

  • = python3.6

  • deap (pip3 install deap)

For the visualisation:

  • pyglet (pip3 install pyglet)
  • numpy (pip3 install numpy)
  • matplotlib (pip3 install matplotlib)

About

Our artifacts to our Paper: "Algorithmic Heap Layout Manipulation in the Linux Kernel"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published