Skip to content
KitploitKITPLOIT
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Silverseal — Linux post-exploitation framework with a UEFI bootkit that persistently and stealthily loads a Rust-based kernel module rootkit on modern Linux systems. | Kitploit
Tools/GitHubGitHub/idov31/silverseal
Persistence MechanismsExploitationPost-ExploitationMalware AnalysisRed TeamingPayload DevelopmentBinary Exploitation
GitHubidov31/silverseal

Silverseal

Linux post-exploitation framework with a UEFI bootkit that persistently and stealthily loads a Rust-based kernel module rootkit on modern Linux systems.

View Repository
118736 days agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Silverseal

Silverseal Logo

rust assembly linux

Silverseal is a Linux post exploitation framework that demonstrates the ability of a UEFI bootkit to persistently and stealthily load a Rust-based kernel module rootkit on modern Linux systems. The project includes:

  • silverseal-bootkit: A UEFI bootkit implemented in Rust that hooks the Linux kernel's early boot process to load the rootkit module.
  • silverseal-rootkit: A Rust-based Linux kernel module.

Design

Silverseal Design Diagram

Installing Dependencies

Ubuntu

Installs the packages needed for Rust-for-Linux external module builds, installs rustup if needed, switches the default toolchain to stable, adds rust-src, installs bindgen-cli, and warns if the currently running kernel does not expose CONFIG_RUST=y.

root@kitploit:~
./scripts/install_dependencies.sh

WSL

[!IMPORTANT]
If you're using WSL, make sure to set up WSL 2 and install Ubuntu. This script builds a custom Rust-enabled WSL2 kernel, prepares a modules VHDX, and can optionally write a Windows .wslconfig entry that points WSL at the generated kernel.

root@kitploit:~
./scripts/wsl_setup.sh

The script automatically installs the Ubuntu build dependencies, clones the matching Microsoft WSL2 kernel source, enables CONFIG_RUST, builds the kernel with LLVM, and wires /lib/modules/<release>/build for external module builds.

To see the supported options:

root@kitploit:~
./scripts/wsl_setup.sh --help

To build the rootkit against your wanted target kernel, you need to run the following script on your build machine (either WSL or a native Linux machine):

root@kitploit:~
./scripts/ubuntu_target_setup.sh <uname -r of your target kernel>

This flow installs the matching linux-headers-<kernel> and linux-lib-rust-<kernel> packages, installs the Ubuntu-packaged Rust 1.82 toolchain used by the generic-kernel flow, repairs /usr/src/linux-headers-<kernel>/rust if that symlink is broken, and prints the exact make command to use afterward.

Build

Rootkit

Build the rootkit with the kernel build system. Do not use Cargo for the real module build.

root@kitploit:~
cd Silverseal/silverseal-rootkit
make

The module artifacts are staged into silverseal-rootkit/target/ after the build.

Build the rootkit for an Ubuntu generic target kernel from WSL:

root@kitploit:~
cd Silverseal/silverseal-rootkit
make clean
PATH=/usr/bin:/bin:$PATH \
RUST_LIB_SRC=/usr/src/rustc-1.82.0/library \
make RUST_MIN_TOOLCHAIN= \
KDIR=/usr/src/linux-headers-6.17.0-20-generic \
CC=x86_64-linux-gnu-gcc-13 \
RUSTC=rustc-1.82 \
RUSTDOC=rustdoc-1.82

The module Makefile auto-detects /usr/src/linux-headers-* targets and passes the Rust compatibility cfg through Kbuild's Rust flag variables so the newer Ubuntu module! metadata schema uses authors instead of the older author key.

After the build, verify the target kernel version was embedded correctly:

root@kitploit:~
modinfo target/silverseal_rootkit.ko | grep vermagic

Bootkit

The bootkit build requires nasm on PATH. The crate is already configured to target x86_64-unknown-uefi, and the build script assembles both asm/x64/lkm_loader.asm and asm/x64/lkm_stager.asm into flat binary blobs embedded into the EFI image.

root@kitploit:~
cd Silverseal/silverseal-bootkit
cargo build --release

The resulting EFI binary is written to:

root@kitploit:~
Silverseal/target/x86_64-unknown-uefi/release/silverseal-bootkit.efi

Test

The deployment script currently expects a file named silverseal-bootkit.efi in the repository root. After building the bootkit, copy the EFI artifact there and then run the setup script from the repository root.

root@kitploit:~
cd Silverseal
cp target/x86_64-unknown-uefi/release/silverseal-bootkit.efi ./silverseal-bootkit.efi
sudo ./scripts/setup_silverseal.sh

The script performs a direct swap on the EFI partition:

  • moves /boot/efi/EFI/ubuntu/grubx64.efi to /boot/efi/EFI/ubuntu/grubx64.efi.original
  • moves ./silverseal-bootkit.efi into place as /boot/efi/EFI/ubuntu/grubx64.efi

Remove Silverseal

To remove Silverseal, restore the original GRUB binary from the .original backup:

root@kitploit:~
cd Silverseal
sudo ./scripts/restore_silverseal.sh

Serial Logging Setup

Linux

  • Identify the serial port:
root@kitploit:~
ls -la /dev/ttyS*

Common ports: /dev/ttyS0 (COM1), /dev/ttyS1 (COM2)

  • Monitor serial output with minicom:
root@kitploit:~
sudo minicom -D /dev/ttyS0 -b 115200

# Or with `screen`:
sudo screen /dev/ttyS0 115200

# Or with `picocom`:
sudo picocom -b 115200 /dev/ttyS0

Windows

  • Download and run PuTTY
  • Select "Serial" connection type
  • Enter the serial line you created in the VM (e.g., \\.\pipe\com_1)
  • Set speed to 115200
  • Under Connection > Serial, set "Flow control" to "None" and "Parity" to "None"
  • Click Open

You can also use the helper script, which continuously reconnects PuTTY to \\.\pipe\com_1 at 115200 baud:

root@kitploit:~
powershell -ExecutionPolicy Bypass -File .\scripts\connect-vm.ps1

Resources

  • UEFI Crate
  • Elixir Bootlin
  • memN0p's Bootkit
Download Tool