table of contents
other versions
- Tumbleweed 3.2.0-1.1
- Leap-16.0
- Leap-15.6
| CHECKSEC(1) | General Commands Manual | CHECKSEC(1) |
NAME¶
checksec — check
executable and kernel security properties
SYNOPSIS¶
checksec |
[--help] [--version]
[--output
table|xml|json|yaml] [--libc
path] [--no-banner]
[--no-headers]
[--no-warnings] [--color
auto|always|never] command
[command-options] |
DESCRIPTION¶
checksec is a Go implementation of the
checksec utility. It inspects ELF binaries and the running kernel for common
hardening features such as RELRO, NX, PIE, RPATH/RUNPATH, stack canaries,
Clang CFI hints, and fortify-able libc usage. Results can be printed as a
table or serialized for machine consumption.
GLOBAL OPTIONS¶
-h,--help- Display help and exit.
-v,--version- Show version and exit.
-o,--output=table|xml|json|yaml- Set output format. Default is table.
-l,--libc=path- Set libc location (useful for fortify checks on offline/embedded filesystems).
- Disable the startup banner.
--no-headers- Disable table headers.
--no-warnings- Suppress warning messages (e.g., missing libc, unreadable symbol tables).
--color=auto|always|never- Control color output. Default is auto (color when writing to a terminal). Use always to preserve color through pipes.
COMMANDS¶
filepath- Inspect a single ELF file.
dirdirectory- Inspect all ELF files in a directory. Use
-r,--recursiveto recurse into subdirectories. fortifyFilepath- Report fortified/fortifiable libc calls in a file.
fortifyProcpid- Report fortified/fortifiable libc calls for a running process ID.
kernel[config]- Inspect kernel hardening via /proc/config.gz , /boot/config-<release> , or a supplied config path.
procpid- Inspect the executable of a running process ID.
procAll- Inspect all running processes. Kernel threads and processes without readable /proc/<pid>/exe are skipped.
COMPATIBILITY NOTES¶
- The legacy v2/bash options such as --file, --dir, and --proc-all are not the primary v3 interface.
- Use v3 subcommands instead (for example, checksec file /path/to/bin or checksec procAll).
EXAMPLES¶
DIAGNOSTICS¶
Most commands exit non-zero on fatal errors (e.g., unreadable
files). The procAll command skips processes it
cannot read and continues.
SEE ALSO¶
HISTORY¶
checksec was originally written by
Tobias Klein. The current project is maintained by
Brian Davis
<slimm609@gmail.com>.
| February 2026 | Linux 6.4.0-150700.53.73-default |