KERNEL-HARDENING-CHECKER(1)

πŸ“¦ version 0.6.17.1, in alpine 3.24, ubuntu resolute, ubuntu stonking

πŸ’– kernel-hardening-checker(1) πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about locking down your Linux kernel and honestly? it's giving main character energy 🫢


✨ NAME ✨

kernel-hardening-checker β€” the tool that checks the security hardening options of the Linux kernel 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

kernel-hardening-checker [OPTIONS]

that's it. that's the whole vibe. one command, all the options. periodt πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

so kernel-hardening-checker is a tool for checking the security hardening options of the Linux kernel, and it is lowkey iconic. it can analyze Kconfig options (that's compile-time, bestie), kernel command line arguments (boot-time, the moment of truth), and sysctl parameters (runtime, the everyday slay) for these architectures:

  • X86_64
  • X86_32
  • ARM64
  • ARM
  • RISC-V
🚨 real talk, no cap: changing the Linux kernel security parameters may also affect system performance and functionality of userspace software. like, this is not a "just send it" situation.

so when you're setting these parameters, consider the threat model of your Linux-based information system and thoroughly test its typical workload. i'm serious. test it. all of it. the whole typical workload. πŸ™ˆ


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” show the help message and exit. the classic. the icon. when in doubt, ask for help πŸ’–
  • --version β€” show program's version number and exit. gotta know which queen you're running ✨
  • -m {verbose,json,show_ok,show_fail}, --mode {verbose,json,show_ok,show_fail} β€” select a special output mode instead of the default one. and the modes are:
    • verbose β€” provide additional information: print the configuration options without a corresponding check and show the internals of complex checks. she's nosy and we love her for it πŸ”
    • json β€” report in JSON format. for when your pipeline needs to eat πŸ“
    • show_ok β€” show only successful checks. hype yourself up bestie πŸŽ€
    • show_fail β€” show only failed checks. the callout post 😭
  • -a, --autodetect β€” autodetect and check the security hardening options of the running kernel. she does the work so you don't have to πŸ’…
  • -c CONFIG, --config CONFIG β€” check the security hardening options in a Kconfig file (also supports *.gz files). yes gz, we love compression here 🫢
  • -v KERNEL_VERSION, --kernel-version KERNEL_VERSION β€” extract the kernel version from a version file (such as /proc/version) instead of using a Kconfig file. sometimes you just want the number, not the whole story ✨
  • -l CMDLINE, --cmdline CMDLINE β€” check the security hardening options in a kernel command line file (such as /proc/cmdline). boot-time check, we're doing it live πŸ”₯
  • -s SYSCTL, --sysctl SYSCTL β€” check the security hardening options in a sysctl output file (the result of sudo sysctl -a > file). runtime vibes only 🌈
  • -p {X86_64,X86_32,ARM64,ARM,RISCV}, --print {X86_64,X86_32,ARM64,ARM,RISCV} β€” print security hardening recommendations for the selected architecture. it's giving advice column πŸ’œ
  • -g {X86_64,X86_32,ARM64,ARM,RISCV}, --generate {X86_64,X86_32,ARM64,ARM,RISCV} β€” generate a Kconfig fragment containing the security hardening options for the selected architecture. she made you a whole fragment. say thank you 🧚

🌸 AUTHOR 🌸

Written by Alexander Popov with help from the contributors. the whole squad ate, fr fr πŸ‘‘


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report bugs at: <https://github.com/a13xp0p0v/kernel-hardening-checker/issues>

(that's the URL as it is, bestie β€” it just wrapped all pretty in the original page πŸ’–)


  • Copyright: 2018-2025, Alexander Popov <alex.popov@linux.com>
  • License: GPL-3.0

and that's the whole page, no notes. this manual is from the kernel-hardening-checker manual, dated July 2025 β€” and that's your cute lil sign-off, mwah πŸ’‹ stay hardened, stay slay, iykyk ⭐

πŸ“¦ where this page comes from