Skip to content

MikeHorn-git/LKD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kernelnewbies

Description

A Linux Kernel developer environments.

Plugins

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-libvirt
VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-reload

Images

  • Alpine
  • Arch
  • Debian
  • Gentoo
  • Ubuntu

Providers

  • Libvirt
  • Virtualbox

Build

git clone https://github.com/MikeHorn-git/LKD.git
cd LKD
make help

Makefile

Usage: make <target>
Targets:
  help         Display this help message
  base         Deploy base VM
  build        Deploy VM and build kernel with defconfig
  custom       Deploy VM miscs tools
  all          Execute base, build and custom command
  format       Format all .c, .h files with clang-format

Vagrant Provisionning

Default

  • Update & Upgrade distros
  • Mandatory kernel-build packages
  • System tweaks:
    • CTRL+L clears the terminal.
    • Sets TERM=xterm-256color to prevent terminal type errors.

VAGRANT_KERNEL

Use make build or export VAGRANT_KERNEL=true in env:

  • Kernel Download: Linux kernel version 6.11.
  • Kernel Compilation and Installation:
    • Extracts and compiles the kernel.
    • Installs kernel modules and the kernel itself.
  • Initramfs Creation
  • Bootloader Update

VAGRANT_CUSTOM

Use make custom or export VAGRANT_CUSTOM=true in env:

  • Oh-My-Bash (OMB): Installs Oh-My-Bash.
  • Rsyslog:
    • Installs rsyslog.
    • Starts the service and enables it at boot.

Src

  • hello syscall
  • jiffy syscall
  • Userland test

Module

Important

These samples are for educational and research purposes only.

  • Kprobe-based hide LKM
  • Openrc persistence
  • Local revshell

List

  • file_hide
  • hello
  • lkm_hide
  • persistence
  • pid_hide
  • port_hide
  • revshell

About

Linux Kernel development lab. With LKM rootkit samples

Topics

Resources

License

Stars

Watchers

Forks