binary-hardening

binary-hardening is a skill for Codex from OutlineDriven/outline-driven-development. It costs 49 tokens per session (2,042 once invoked), scanned A, original, Apache-2.0.

A guide to checking and enabling protections for Linux ELF programs, the executable format commonly used on Linux. It covers protections such as address randomization, stack canaries, control-flow checks, and restricted system calls.

In plain words
What is it for?
Use it to inspect binaries with checksec, choose hardening flags, enable protections in a build, and verify compiler and system-library support.
Why use it?
It shows which protections a compiled program already has and provides compatible build settings for missing protections.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect binaries with checksec, choose hardening flags, enable protections in a build, and verify compiler and system-library support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/binary-hardening
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/outline-driven-development --skill binary-hardening
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for binary-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/binary-hardening/github.svg)](https://agentmods.dev/skills/outlinedriven/outline-driven-development/binary-hardening)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/binary-hardening"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/binary-hardening/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for binary-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/binary-hardening"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/binary-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.02042
Opus 5.5 $0.00020 $0.00817
Sonnet 5.5 $0.00010 $0.00408
Haiku 4.5 $0.00005 $0.00204

Measured 2mo ago against content hash 98892982d025, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

binary-hardening scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.devin/skills/binary-hardening/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Binary hardening

Contract

Field Bound contract
Trigger Hardening an ELF binary or its build: checksec analysis, RELRO, PIE, stack canaries, FORTIFY_SOURCE, CET and shadow stack, Clang CFI, AArch64 BTI and PAC, MTE, or seccomp syscall filtering.
Authority Read-only. The skill emits flags, commands, and analysis; it writes no files. Nothing to roll back. No remote mutation.
Side effect Hardening flag sets, verification commands, and a protection report per binary.
Done The binary's current mitigations are measured, the missing ones have concrete flags, and each flag is confirmed supported by the project's compiler and libc.

Inputs

  1. Binary or build (required): the ELF to check, or the build to harden.
  2. Toolchain (required): gcc --version or clang --version, ld --version, and ldd --version for the libc. Grounded channels: GCC 16.x, Clang 23.1.0, binutils 2.47, glibc 2.44.
  3. Target platforms (optional): x86-64, AArch64, or both.
  4. Threat scope (optional): which mitigations the deployment actually needs.

Procedure

  1. Measure the binary first:
checksec --file=./mybinary
checksec --dir=/usr/bin
Protection Good Concern
RELRO Full RELRO Partial or none
Stack canary Canary found None
NX NX enabled Disabled
PIE PIE enabled None
FORTIFY Yes No

Done when: every row has a measured value for the binary. 2. Apply the hardening flag set that the toolchain supports:

CFLAGS="-O2 -pipe \
  -fstack-protector-strong \
  -fstack-clash-protection \
  -fcf-protection \
  -D_FORTIFY_SOURCE=3 \
  -D_GLIBCXX_ASSERTIONS \
  -fPIE \
  -Wformat -Wformat-security -Werror=format-security"

LDFLAGS="-pie \
  -Wl,-z,relro \
  -Wl,-z,now \
  -Wl,-z,noexecstack \
  -Wl,-z,separate-code"

gcc ${CFLAGS} -o prog main.c ${LDFLAGS}

Shared libraries compile with -fPIC instead of -fPIE and link with -shared. Gate each flag on the toolchain: _FORTIFY_SOURCE=3 needs GCC 12 or newer, or Clang 9 or newer, plus glibc 2.34 or newer headers; older toolchains fall back to level 2. Done when: the build compiles clean and checksec shows the new values. 3. Read what each mitigation buys:

Read the full file on GitHub · 126 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 126 lines · 49 tokens per session scan A 98892982d025

Subscribe to this mod's changes

binary-hardening is a skill published in the GitHub repository OutlineDriven/outline-driven-development (54 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 49 tokens to every session and 2,042 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

binary-hardening compared with skills from other repositories

binary-hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
binary-hardeningOutlineDriven/outline-driven-developmentSkill542mo agoApache-2.0A49Codex
audit-projectOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A50Claude Code, Codex
duetOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A28Claude Code, Codex
goal-prompt-draftingOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A57Claude Code, Codex
handoff-promptOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A62Claude Code, Codex
publish-branchOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A60Claude Code, Codex
drillOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A67Claude Code, Codex