Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
rustproofing-linux — Educational examples porting Linux kernel vulnerabilities to Rust, featuring intentionally vulnerable code and exploits for learning kernel security and Rust's safety. | Kitploit
Tools/GitHubGitHub/nccgroup/rustproofing-linux
Static AnalysisVulnerability AnalysisCode AnalysisLearning & EducationCurated ResourcesBinary ExploitationLabs & Practice
GitHubnccgroup/rustproofing-linux

rustproofing-linux

Educational examples porting Linux kernel vulnerabilities to Rust, featuring intentionally vulnerable code and exploits for learning kernel security and Rust's safety.

View Repository
221303 years agoReviewed by Kitploit
Share

Rustproofing Linux (Porting Linux Kernel Bugs to Rust)

This source code repository is a collection of examples accompanying the blog post at https://research.nccgroup.com/?p=18577.

DO NOT USE these examples for anything but following the blog post. They intentionally contain vulnerabilities, and even the "fixed" versions might contain bugs.

If you wish to run the examples from the blog post, the following guidelines should hopefully make it easy to do so.

Get dependencies

Get Rust for Linux source code. You might need to install some dependencies listed on [https://github.com/Rust-for-Linux/linux/blob/rust/Documentation/rust/quick-start.rst](the quick start page) .

git clone https://github.com/Rust-for-Linux/linux rust-for-linux
cd rust-for-linux
git checkout bd123471269354fdd504b65b1f1fe5167cb555fc  # latest commit at the point of writing

Get virtme. You might also need to install QEMU and some other dependencies.

git clone https://github.com/amluto/virtme

I find virtme really useful for quickly testing a change in either core kernel or a kernel module.

Compile the kernels

Build kernel base most examples will run on:

cd rust-for-linux
mkdir `pwd`.out
cp ../rustproofing-linux/configs/config-base `pwd`.out/.config
KBUILD_OUTPUT=`pwd`.out make -j$(nproc) LLVM=1

And variants with slightly different config options:

mkdir `pwd`.out.ovf
cp `pwd`.out/.config `pwd`.out.ovf
scripts/config --file `pwd`.out.ovf/.config -d CONFIG_RUST_OVERFLOW_CHECKS
KBUILD_OUTPUT=`pwd`.out.ovf make -j$(nproc) LLVM=1

mkdir `pwd`.out.stackinit
cp `pwd`.out/.config `pwd`.out.stackinit
scripts/config --file `pwd`.out.stackinit/.config -e CONFIG_INIT_STACK_ALL_ZERO
KBUILD_OUTPUT=`pwd`.out.stackinit make -j$(nproc) LLVM=1

Running a built kernel

Use the following command to start the built kernel inside QEMU:

../virtme/virtme-run --kdir `pwd`.out --show-command --show-boot-console --mods=auto -a "kasan_multi_shot" --qemu-opts -cpu core2duo -m 1G -smp 2

Change the --kdir option when you need to run the other two kernels.

The modules are then compiled with following command. Note that KDIR needs to point to the directory with compiled kernel, and that you will need to recompile for ../rust-for-linux.out.stackinit and ../rust-for-linux.out.ovf when testing examples that require differently compiled kernels.

cd ../rustproofing-linux
make LLVM=1 KDIR=../rust-for-linux.out

Modules are loaded and proof-of-concept exploits are ran with help of test.sh script. Examples are found in the blog post.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    500
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    466
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    339
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    317
  • 5

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    307
  • 6

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    294

Explore all tools

Browse our collection of tools

View all tools →