checksec reports security properties of ELF executables, running processes, and Linux kernel configuration. A Go rewrite ships as a single static binary with multiple output formats.
Overview
checksec inspects security mitigations on ELF binaries and related Linux system settings, including RELRO, stack canaries, NX, PIE, control-flow integrity, and FORTIFY_SOURCE. It can scan individual files, whole directories, processes by PID, and the running kernel’s hardened configuration.
The tool started as a bash script and is now implemented in Go as a single static binary, aiming for fewer runtime dependencies so checks work on embedded systems, distroless containers, and cross-compiled filesystems. Results can be shown on the command line or exported as JSON, XML, or YAML.
Optional modes reason about which attack techniques the reported posture may not block, and can emit a self-contained Markdown report formatted for use with an LLM assistant. Prebuilt binaries, distribution packages, Docker, and go install are documented install paths.
For offline cross-compiled target filesystems, file checks generally work except Fortify when libraries differ from the host; kernel checks need a running system or an supplied kernel config file.
Key features
- ELF RELRO, canary, NX, and PIE checks
- Kernel hardening configuration inspection
- Directory and process scan modes
- JSON, XML, YAML, and CLI output
- Cross-compiled filesystem offline checks
- Exploitability reasoning option
- LLM-oriented report output
- Docker and package installs
Use cases
- Validating binary hardening on Linux
- Auditing directories of executables
- Reviewing kernel security configuration
- Offline embedded filesystem assessment