Scroll to navigation

KERNEL-HARDENING-CHECKER(1) User Commands KERNEL-HARDENING-CHECKER(1)

NAME

kernel-hardening-checker - tool for checking the security hardening options of the Linux kernel

SYNOPSIS

kernel-hardening-checker [OPTIONS]

DESCRIPTION

kernel-hardening-checker is a tool for checking the security hardening options of the Linux kernel. It can analyze Kconfig options (compile-time), kernel command line arguments (boot-time), and sysctl parameters (runtime) for the following architectures: X86_64, X86_32, ARM64, ARM, RISC-V.

Please note that changing the Linux kernel security parameters may also affect system performance and functionality of userspace software. Therefore, when setting these parameters, consider the threat model of your Linux-based information system and thoroughly test its typical workload.

OPTIONS

Show the help message and exit.

Show program's version number and exit.

Select a special output mode instead of the default one:
Provide additional information: print the configuration options without a corresponding check and show the internals of complex checks.
Report in JSON format.
Show only successful checks.
Show only failed checks.

Autodetect and check the security hardening options of the running kernel.

Check the security hardening options in a Kconfig file (also supports *.gz files).

Extract the kernel version from a version file (such as /proc/version) instead of using a Kconfig file.

Check the security hardening options in a kernel command line file (such as /proc/cmdline).

Check the security hardening options in a sysctl output file (the result of "sudo sysctl -a > file").

Print security hardening recommendations for the selected architecture.

Generate a Kconfig fragment containing the security hardening options for the selected architecture.

AUTHOR

Written by Alexander Popov with help from the contributors.

REPORTING BUGS

Report bugs at: <https://github.com/a13xp0p0v/kernel-hardening-checker/issues>

COPYRIGHT

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

July 2025 kernel-hardening-checker