binary

binary is a skill for Claude Code from yhy0/CHYing-agent. It costs 39 tokens per session (5,766 once invoked), scanned C, original, MIT.

A post-competition review process for a CTF, or capture-the-flag security contest. It reads challenge records and logs to measure solved challenges, identify failure causes, and suggest system-level improvements.

In plain words
What is it for?
Use it to collect challenge outcomes, calculate solve rates by category, diagnose unsolved tasks, and produce improvement recommendations.
Why use it?
It turns scattered notes, commands, checkpoints, and results into an overall picture of what worked and what repeatedly failed. This helps improve the agent for later contests.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to collect challenge outcomes, calculate solve rates by category, diagnose unsolved tasks, and produce improvement recommendations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yhy0/chying-agent/binary
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 yhy0/CHYing-agent --skill binary
Clone the repo
git clone --depth 1 https://github.com/yhy0/CHYing-agent

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yhy0/chying-agent/binary/github.svg)](https://agentmods.dev/skills/yhy0/chying-agent/binary)
Your own site
<a href="https://agentmods.dev/skills/yhy0/chying-agent/binary"><img src="https://agentmods.dev/badge/skills/yhy0/chying-agent/binary/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yhy0/chying-agent/binary"><img src="https://agentmods.dev/badge/skills/yhy0/chying-agent/binary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00039 $0.05766
Opus 5.5 $0.00016 $0.02306
Sonnet 5.5 $0.00008 $0.01153
Haiku 4.5 $0.00004 $0.00577

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

Security

Grade C, and why

binary scanned grade C with 1 finding 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 1mo 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

# 攻击: 在 check 和 use 之间替换 /tmp/file → symlink 到 /etc/shadow
agent-work/.claude/skills/binary/SKILL.md · 535 lines

How it starts

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

CTF Binary Analysis & Exploitation Skill

Core Objective

你是一个专业的 CTF 二进制分析与漏洞利用助手。你的目标是:

  1. 识别二进制特征 判断编译语言、加壳方式、保护机制
  2. 静态分析 反编译理解算法,提取关键数据
  3. 动态分析 调试、插桩、追踪执行流
  4. 理解漏洞 确定漏洞类型和利用方式
  5. 构造 Exploit 生成可执行的 pwntools 脚本
  6. 获取 Flag 完成漏洞利用或逆向分析获取 flag

系统化分析,逐层剥离,不做无信息增益的重复操作。


Phase 1: 初始侦察(Reconnaissance)

对任何二进制文件,立即执行以下检查:

# 1. 文件基本信息
file ./target                   # 文件类型、架构、链接方式
readelf -h ./target 2>/dev/null # ELF 头(入口点、架构)
checksec ./target 2>/dev/null   # 保护机制(NX/PIE/Canary/RELRO)

# 2. 大小与熵值(判断是否加壳)
ls -la ./target                 # 文件大小
binwalk -E ./target             # 熵值分析(高熵 = 加壳/加密)

# 3. 加壳检测
binwalk ./target                # 嵌入数据检测
readelf -S ./target | grep UPX  # UPX 段标记

# 4. 编译语言识别
grep -c 'runtime\.' <<< "$(strings ./target 2>/dev/null)" && echo "Likely Go"
grep -c 'core::' <<< "$(strings ./target 2>/dev/null)" && echo "Likely Rust"
strings ./target | grep -i "GCC\|clang" | head -3

# 5. 关键字符串和符号
strings ./target | grep -iE "flag|shell|bin/sh|system|key|secret|password"
nm ./target 2>/dev/null | head -50

Ghidra MCP 静态分析(核心能力 — 首选)

Ghidra + GhidraMCP 已在 Docker 容器内运行,提供 27 个 MCP 工具。

Step 0: 加载二进制(必须先执行,否则所有 MCP 工具返回空)

/opt/tools/ghidra/support/analyzeHeadless /tmp/ghidra_proj proj \
  -import /tmp/target_binary -overwrite

Step 1: 定位关键函数

mcp__ghidra-mcp__search_functions_by_name:
  query: "main"       # 入口点
  query: "encrypt"    # 加密函数
  query: "decrypt"    # 解密函数
  query: "xor"        # XOR 操作
  query: "key"        # 密钥相关
  query: "flag"       # flag 相关

mcp__ghidra-mcp__list_functions
mcp__ghidra-mcp__list_strings:
  filter: "flag"

Step 2: 反编译 → 读 C 伪代码(核心操作)

mcp__ghidra-mcp__decompile_function:
  name: "main"
mcp__ghidra-mcp__decompile_function_by_address:
  address: "0x401234"

Step 3: 交叉引用追踪数据流

mcp__ghidra-mcp__get_function_xrefs:
  name: "encrypt_data"
mcp__ghidra-mcp__get_xrefs_to:
  address: "0x4a5678"
mcp__ghidra-mcp__get_xrefs_from:
  address: "0x401234"

Read the full file on GitHub · 535 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. 1mo ago First seen · 535 lines · 39 tokens per session scan C 35e6949f4884

Subscribe to this mod's changes

binary is a skill published in the GitHub repository yhy0/CHYing-agent (582 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 5,766 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens