checksec
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "checksec":https://skillpi.com/zh/skills/deepskill-2653b89475e113ae069d0a3800ec1ab95d145c886483a341c55ab59235541c94。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/inspect-binary-hardening-flags-and-exploit-mitigations-with-checksec。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在发布或事件审查前检查 ELF 或 PE 二进制文件是否存在加固相关的缺失或弱点,例如 NX、PIE、RELRO、堆栈金丝雀 和 Fortify。
介绍来源: third_party · user_3c6cb52e · 1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: checksec
description: "Auth/lab ref: Linux binary and kernel hardening inspection tool for RELRO, canary, NX, PIE, RPATH, RUNPATH, symbols, fortify, and kernel config checks."
compatibility: "Linux primary; macOS can inspect Linux files with limits; Go-based releases plus historical bash usage."
metadata:
author: AeonDave
version: "1.0"checksec
Quick hardening triage for ELF binaries and Linux kernels.
When to use checksec
Use checksec when you need to answer questions like:
- Is PIE enabled?
- Is there a stack canary?
- Is NX enforced?
- Is RELRO partial or full?
- Are symbols stripped?
- What kernel hardening settings are enabled?
This is often the first command in pwn/reversing triage.
Quick Start
# Inspect one binary
checksec file /bin/ls
# JSON output for automation
checksec file /bin/ls --output json
# Kernel hardening survey
checksec kernel
Output Modes
checksec file ./target --output cli
checksec file ./target --output json
checksec file ./target --output yaml
checksec file ./target --output xml
Use machine-readable output when feeding exploit notes, parsers, or dashboards.
Common Workflows
Pwn triage
checksec file ./vuln
Interpret quickly:
- No PIE → static code addresses stay stable
- No canary → stack overflow path is simpler
- NX enabled → likely ret2libc/ROP instead of raw stack shellcode
- Partial RELRO → GOT overwrite may still be viable
Batch or scripted inspection
checksec file ./target --output json
Kernel review
checksec kernel
checksec kernel --output json
Useful for local privesc context or hardening audits.
Fortify-focused check
checksec fortifyProc 1
Use when you want deeper fortify coverage rather than just the summary row in normal binary output.
Cross-Compiled / Offline Filesystem Use
Upstream notes two important limits:
- kernel checks must run on the live system you actually want to assess
- file checks work offline except fortify may need the target libc context
For offline target filesystems, consider pairing checksec with native readelf if the environment is stripped down.
Practical Notes
- Current upstream has moved toward a Go implementation and is faster than the old bash-heavy workflow.
- Checksec is a triage tool, not a full exploitability oracle.
- Always pair the result with real reversing:
readelf,objdump, debugger output, and vulnerability context.
Caveats
- A "hardened" binary can still be exploitable.
- A missing mitigation does not guarantee an easy exploit.
- On non-Linux hosts some checks are limited.
Resources
No bundled scripts/, references/, or assets/.
Use upstream examples for the latest subcommands and output schema.
当前收录版本
1.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- checksec 是二进制安全分析中的高频刚需工具,广泛用于 pwn/reversing 场景,直接解决安全研究人员的核心任务痛点(快速判断二进制加固状态)
亮点
- 触发词精准完整,覆盖多种变体(如 'checksec file'、'checksec kernel'、'fortify'、'binary hardening'、'NX'、'PIE'、'RELRO'、'canary'、'kernel config'),边界清晰
亮点
- Phase/步骤清晰,有出口条件说明,包含端到端示例,frontmatter完整,单文件未超限
亮点
- 工具来源明确,参数正确,覆盖主要异常(离线使用限制、fortify需要libc context、kernel checks需live system)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。