Agent Skillsbuzzer-re/Rikugan › General Reverse Engineering

General Reverse Engineering

GitHub

通用二进制逆向分析技能,用于理解软件功能、架构和行为。通过获取信息、追踪引用和反编译来构建代码图景,支持库、驱动及固件等多种场景,并提供重命名与注释策略以优化分析效率。

rikugan/skills/builtins/generic-re/SKILL.md buzzer-re/Rikugan

Trigger Scenarios

分析二进制文件的功能或架构 逆向工程以理解程序行为 动态链接库或内核模块分析

Install

npx skills add buzzer-re/Rikugan --skill General Reverse Engineering -g -y
More Options

Non-standard path

npx skills add https://github.com/buzzer-re/Rikugan/tree/main/rikugan/skills/builtins/generic-re -g -y

Use without installing

npx skills use buzzer-re/Rikugan@General Reverse Engineering

指定 Agent (Claude Code)

npx skills add buzzer-re/Rikugan --skill General Reverse Engineering -a claude-code -g -y

安装 repo 全部 skill

npx skills add buzzer-re/Rikugan --all -g -y

预览 repo 内 skill

npx skills add buzzer-re/Rikugan --list

SKILL.md

Frontmatter
{
    "name": "General Reverse Engineering",
    "tags": [
        "analysis",
        "reverse-engineering",
        "general"
    ],
    "description": "General-purpose binary analysis — understand functionality, architecture, and behavior"
}

Task: General Reverse Engineering. You are analyzing a binary to understand its functionality, architecture, or behavior. No assumption about maliciousness.

Approach

Build a mental map of the binary's structure. Start at the entry point or user-specified function. Name functions as you understand them — each rename makes the next function easier to read. Focus on what the user is interested in, not exhaustive coverage.

Workflow

  1. get_binary_info — format, architecture, size, function count
  2. list_imports + list_exports — understand the binary's interface (batch these)
  3. Start at the function of interest (or entry if exploring)
  4. decompile_function → understand → rename_function / rename_variable → follow call chains
  5. Use xrefs_to and xrefs_from to trace data and code references
  6. Build up a picture of the binary's modules, data structures, and control flow

Call Graph Strategy

Use xref tools BEFORE decompiling for exploration — they're cheaper:

  1. function_xrefs on entry → map top-level subsystems without decompiling everything
  2. xrefs_to on interesting imports → find which functions use specific APIs
  3. Decompile only the nodes you actually need to understand
  4. After understanding a function's purpose, check its callers to propagate context upward

Depth guidance:

  • Immediate callers/callees: quick orientation
  • 2 levels: neighborhood — usually sufficient
  • 3+ levels: subsystem mapping — only for deep dives

Domain-Specific Tips

Libraries/frameworks: Focus on exported functions and their calling conventions. Use list_exports to map the public API.

Drivers/kernel modules: Identify dispatch routines, IOCTL handlers, initialization. Consider using /driver-analysis for Windows drivers.

Proprietary formats: Trace the parsing code. Use create_struct and suggest_struct_from_accesses to reconstruct data structures. Apply with apply_struct_to_address.

Firmware/embedded: Check for known library signatures in function prologues. Map memory-mapped I/O regions via list_segments.

Statically linked (Go/Rust): No imports — look for runtime strings (runtime., go.itab, panicked at). Function count will be high; focus on entry and user code.

Renaming Strategy

  • Before renaming, form a hypothesis from: decompiled code + xrefs + string references
  • Rename in semantic batches: all network functions together, all crypto together
  • After renaming a batch: re-decompile to verify the renamed code reads correctly
  • Use set_comment and set_function_comment to document non-obvious logic
  • Naming conventions: PascalCase for functions, g_ prefix for globals, PascalCase for structs

Output

Deliver what the user asks for:

  • Function summaries with addresses
  • Architectural overview
  • Data structure definitions (C-style)
  • Specific answers about behavior

Version History

  • ee3951d Current 2026-07-25 11:00

Same Skill Collection

rikugan/skills/builtins/binja-scripting/SKILL.md
rikugan/skills/builtins/ctf/SKILL.md
rikugan/skills/builtins/deobfuscation/SKILL.md
rikugan/skills/builtins/driver-analysis/SKILL.md
rikugan/skills/builtins/ida-scripting/SKILL.md
rikugan/skills/builtins/linux-malware/SKILL.md
rikugan/skills/builtins/malware-analysis/SKILL.md
rikugan/skills/builtins/modify/SKILL.md
rikugan/skills/builtins/smart-patch-binja/SKILL.md
rikugan/skills/builtins/smart-patch-ida/SKILL.md
rikugan/skills/builtins/vuln-audit/SKILL.md

Metadata

Files
0
Version
ee3951d
Hash
9f7b9814
Indexed
2026-07-25 11:00

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 03:15
浙ICP备14020137号-1 $mapa de visitantes$