binary-analysis

binary-analysis is a skill for Claude Code, Codex from prime-radiant-inc/greenfield. It costs 50 tokens per session (3,202 once invoked), scanned A, original, Apache-2.0.

A method for examining compiled software when its original source code is unavailable. Compiled software includes binaries, bytecode archives, managed assemblies, and bundled applications.

In plain words
What is it for?
It is for identifying compiled artifacts, extracting strings and metadata, decompiling supported formats, and documenting where findings came from.
Why use it?
It provides a structured way to learn how software behaves without running the compiled files or relying on source code.

Skill for Claude CodeCodex

Part of the greenfield plugin — 22 skills, 2 commands, 2 agents shipped together

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.

agentmods
npx agentmods add skills/prime-radiant-inc/greenfield/binary-analysis
Any agent
npx skills add prime-radiant-inc/greenfield --skill binary-analysis
Clone the repo
git clone --depth 1 https://github.com/prime-radiant-inc/greenfield

Made for: Claude Code, Codex.

Or install greenfield, the plugin that ships this one along with the rest of its 22 skills, 2 commands, 2 agents.

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-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/binary-analysis.svg)](https://agentmods.dev/skills/prime-radiant-inc/greenfield/binary-analysis)
Your own site
<a href="https://agentmods.dev/skills/prime-radiant-inc/greenfield/binary-analysis"><img src="https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/binary-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,202 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.03202
Opus 5 $0.00025 $0.01601
Sonnet 5 $0.00010 $0.00640
Haiku 4.5 $0.00005 $0.00320

Measured 5d ago against content hash abf3fb2b474f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

binary-analysis 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 5d 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.

skills/binary-analysis/SKILL.md · 329 lines

How it starts

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

Binary Analysis Methodology

Extract behavioral intelligence from compiled artifacts when source code is unavailable. Static analysis only — the binary is never executed.

When This Mode Applies

Binary analysis activates when:

  • The /analyze command detects compiled artifacts in the target
  • The discovery inventory identifies compiled binaries at the target path
  • Other modes discover compiled artifacts during analysis (e.g., a bundled native binary inside an npm package)

Binary Type Taxonomy

Artifact Type Format Survey Tools Decompiler Decompilation Quality Default Confidence
Native binaries ELF, Mach-O, PE file, readelf/otool/objdump, nm, strings Ghidra, radare2 (disassembly only) N/A (no source recovery) assumed
JVM bytecode .class, .jar, .war jar tf, javap -public, manifest extraction CFR, Procyon, FernFlower Very high inferred
.NET assemblies .dll, .exe (managed) dotnet ildasm, type enumeration, attributes ILSpy (ilspycmd) Very high inferred
Python bytecode .pyc, .pyo Magic number inspection, strings uncompyle6, decompyle3, pycdc Very high inferred
Electron apps .asar bundles npx asar extract, package.json N/A (lossless source recovery) Lossless inferred
WebAssembly .wasm wasm-tools print, export/import enumeration wasm2wat (text format only) Limited assumed

Agents

Agent Role Output Location
binary-surveyor Initial triage: type ID, strings, symbols, metadata, dependencies, decompilation attempts workspace/raw/binary/survey/
binary-deep-analyzer Deep analysis: disassembly, control flow, data structures, algorithms, protocols workspace/raw/binary/analysis/

The surveyor always runs first. The deep analyzer runs on modules the surveyor recommends.

Read the full file on GitHub · 329 lines

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. 5d ago First seen · 329 lines · 50 tokens per session scan A abf3fb2b474f

Subscribe to this mod's changes

binary-analysis is a skill published in the GitHub repository prime-radiant-inc/greenfield (270 stars, last pushed 29d ago), licensed Apache-2.0. It adds 50 tokens to every session and 3,202 once invoked, about $0.0003 per session on Opus 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-08-30.