analyzing-go-binaries

analyzing-go-binaries is a skill for Claude Code from trilwu/secskills. It costs 97 tokens per session (1,930 once invoked), scanned A, original, MIT.

A guide to examining compiled Go programs without their source code. It explains how Go binaries retain runtime information that can reveal function names, types, and program structure.

In plain words
What is it for?
Use it to inspect Go malware, command-line tools, and compiled services, especially when the binary appears stripped or has few recognizable imports.
Why use it?
Go programs are often large, statically linked, and displayed by analysis tools as thousands of unnamed functions. Recovering their built-in information makes the code easier to understand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the secskills-core plugin — 30 skills shipped together

Good fit Use it to inspect Go malware, command-line tools, and compiled services, especially when the binary appears stripped or has few recognizable imports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trilwu/secskills/analyzing-go-binaries
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 trilwu/secskills --skill analyzing-go-binaries
Clone the repo
git clone --depth 1 https://github.com/trilwu/secskills

Made for: Claude Code.

Or install secskills-core, the plugin that ships this one along with the rest of its 30 skills.

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 analyzing-go-binaries

README.md
[![agentmods](https://agentmods.dev/badge/skills/trilwu/secskills/analyzing-go-binaries/github.svg)](https://agentmods.dev/skills/trilwu/secskills/analyzing-go-binaries)
Your own site
<a href="https://agentmods.dev/skills/trilwu/secskills/analyzing-go-binaries"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/analyzing-go-binaries/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 analyzing-go-binaries

Your own site · 80×15
<a href="https://agentmods.dev/skills/trilwu/secskills/analyzing-go-binaries"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/analyzing-go-binaries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,930 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.00097 $0.01930
Opus 5.5 $0.00039 $0.00772
Sonnet 5.5 $0.00019 $0.00386
Haiku 4.5 $0.00010 $0.00193

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

Security

Grade A, and why

analyzing-go-binaries 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 3mo 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.

secskills-core/skills/analyzing-go-binaries/SKILL.md · 178 lines

How it starts

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

Analyzing Go Binaries

Go binaries look hostile — statically linked, tens of megabytes, no imports you recognize, and "stripped" in a way that makes tools show thousands of sub_ functions. They are not. Go ships its own symbol table for runtime reflection and panic traces, and strip does not remove it. Recover it and the binary becomes one of the easiest targets there is.

When to Use

  • strings shows runtime.main, go:buildid, go.buildinfo, or runtime.gopanic
  • A "stripped" binary is 5–50 MB with almost no dynamic imports
  • The disassembler shows thousands of unnamed functions and unreadable strings
  • Analyzing Go malware, a Go CLI tool, or a compiled Go service

When NOT to Use

  • Rust binaries — use analyzing-rust-binaries; the symbol recovery is entirely different
  • .NET assemblies — use analyzing-dotnet-assemblies
  • Suspected malware, before containment — use analyzing-malware for the environment, then come back here
  • General native RE — use analyzing-binaries

Confirm It Is Go, and Which Version

strings -n 6 target | rg -m5 'go1\.[0-9]+|go:buildid|runtime\.main|GOROOT'
go version target                     # works on unstripped and many stripped builds
go version -m target                  # module list and build settings — free SBOM

go version -m is the highest-value first command. It prints the module dependency graph with versions, which gives you the third-party libraries in use before you disassemble anything — often answering the question outright (which HTTP library, which crypto, which C2 framework).

The Go version matters because pclntab layout changed at 1.2, 1.16, 1.18, and 1.20. Tooling that fails is usually version mismatch, not a hardened binary.

Recover Symbols

# GoReSym — extracts pclntab, moduledata, types, and build info
GoReSym -t -d -p target > syms.json
#   -t  user type metadata
#   -d  include standard library
#   -p  paths

# redress — Go-aware analysis, works well when GoReSym struggles
redress info target
redress symbols target
redress types target

# Load into the disassembler
#   IDA:    AlphaGolang, golang_loader_assist, or the GoReSym IDA script
#   Ghidra: GolangAnalyzerExtension, or gotools
#   Binja:  the Golang loader plugin

Read the full file on GitHub · 178 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. 3mo ago First seen · 178 lines · 97 tokens per session scan A b2c754fa9673

Subscribe to this mod's changes

analyzing-go-binaries is a skill published in the GitHub repository trilwu/secskills (217 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 1,930 once invoked, about $0.0004 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-08-30.

Related

analyzing-go-binaries compared with skills from other repositories

analyzing-go-binaries next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyzing-go-binariestrilwu/secskillsSkill2173mo agoMITA97Claude Code
cardputer-buddyanthropics/claude-plugins-officialSkill49ktodayApache-2.0A109Claude Code
migrate-to-rustgoogle/skillsSkill26ktodayApache-2.0A166Claude Code, Codex
wear-compose-m3android/skillsSkill11k10d agoApache-2.0A108Claude Code
ink-custom-brush-builderandroid/skillsSkill11k10d agoApache-2.0A159Claude Code
kotlin-tooling-gradle-to-kotlin-toolchain-projectKotlin/kotlin-agent-skillsSkill1.2ktodayApache-2.0A83Claude Code, Codex
newclacky-ai/openclackySkill1.2ktodayMITA10Claude Code