Skip to main content

What Is checksec?

Checksec is a Go-based utility (a rewrite of the original Tobias Klein checksec.sh) that inspects compiled ELF executables, shared libraries, and running processes to verify compiler security mitigations. It reports on Stack Canaries, No-Execute (NX), Position Independent Executables (PIE), Read-Only Relocations (RELRO), and Fortify Source protections.

Use Cases

Verifying that third-party packages and production binary releases include required compiler mitigations.

Strengths and Limitations

Strengths

  • +Inspection across individual files, whole directories, or running process IDs.
  • +Outputs JSON, XML, and YAML for automated CI/CD build verification.
  • +Checks the shared libraries mapped into a running process, not only the main executable.

Limitations

  • -Evaluates binary headers and compile flags rather than runtime logic flaws.
  • -Focuses primarily on ELF binaries on Unix-based systems.

Defensive Use

Auditing production builds to confirm that memory safety mitigations are active before software deployment.

checksec Alternatives

3 tools
ToolPricing
pwndbg

GDB and LLDB plugin that improves debugging for exploit development and reverse engineering with low-level inspection helpers.

Open Source
pwntools

Python framework and exploit development library tailored for rapid prototyping, socket handling, and binary exploitation.

Open Source
ROPgadget

Gadget finder tool that searches binary files for ROP and JOP sequences for exploit development and mitigation research.

Open Source

Frequently Asked Questions

What is checksec?→

Checksec is a Go-based utility (a rewrite of the original Tobias Klein checksec.sh) that inspects compiled ELF executables, shared libraries, and running processes to verify compiler security mitigations. It reports on Stack Canaries, No-Execute (NX), Position Independent Executables (PIE), Read-Only Relocations (RELRO), and Fortify Source protections.

What is checksec used for?→

Verifying that third-party packages and production binary releases include required compiler mitigations.

What are the strengths of checksec?→
  • +Inspection across individual files, whole directories, or running process IDs.
  • +Outputs JSON, XML, and YAML for automated CI/CD build verification.
  • +Checks the shared libraries mapped into a running process, not only the main executable.
What are the limitations of checksec?→
  • +Evaluates binary headers and compile flags rather than runtime logic flaws.
  • +Focuses primarily on ELF binaries on Unix-based systems.
How is checksec used defensively?→

Auditing production builds to confirm that memory safety mitigations are active before software deployment.