KERNEL-HARDENING-CHECKER(1)
π 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_64X86_32ARM64ARMRISC-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*.gzfiles). 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 ofsudo 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 π
- 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
- alpine 3.24: kernel-hardening-checker-doc 0.6.17.1-r1 Β· GPL-3.0-or-later
- ubuntu resolute: kernel-hardening-checker 0.6.17.1-1 Β· GPL-3.0-only
- ubuntu stonking: kernel-hardening-checker 0.6.17.1-3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms