ghidra-re
БесплатноБез исполняемых скриптовНе проверенUse for Ghidra-based reverse engineering on this machine, especially Apple Mach-O and dyld-extracted binaries. Trigger when the user wants headless Ghidra…
от lza6★ 19 звёзд на GitHubОб этом скилле
Ghidra RE
Use this skill for repeatable, headless-first Ghidra work on macOS or Windows. It assumes:
- Ghidra install:
- macOS:
/Applications/Ghidra - Windows:
/c/Program Files/Ghidra
- macOS:
- JDK:
- macOS:
/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home - Windows:
/c/Program Files/Eclipse Adoptium/jdk-21
- macOS:
- Workspace root:
~/ghidra-projects - Skill root — resolve this first before running any script (see below)
The skill is host-agnostic. Every script under scripts/ resolves its own root from $BASH_SOURCE, so there is no hardcoded install location. The unified host layer lives in scripts/lib/skill_host.sh and is the single source of truth for Codex vs Claude Code install paths. Use scripts/install_skill --host auto|codex|claude|both to copy the checkout into one or more hosts.
Resolving the Skill Root
Before running any scripts/ command, resolve SKILL_ROOT with this one-liner. It checks the standard install locations first, then searches Claude Code's plugin directory as a fallback — covering every load path automatically:
SKILL_ROOT="$(
for p in \
"${CODEX_HOME:-$HOME/.codex}/skills/ghidra-re" \
"${CLAUDE_HOME:-$HOME/.claude}/skills/ghidra-re"; do
-f "$p/SKILL.md" && printf '%s' "$p" && break
done
)" ; -z "$SKILL_ROOT" && SKILL_ROOT="$(
find "$HOME/Library/Application Support/Claude/local-agent-mode-sessions/skills-plugin" \
-maxdepth 5 -name 'SKILL.md' -path '*/ghidra-re/SKILL.md' 2>/dev/null \
| head -1 | xargs -I{} dirname {}
)"
echo "Skill root: $SKILL_ROOT"
Once set, prefix every scripts/ call with "$SKILL_ROOT/":
"$SKILL_ROOT/scripts/bootstrap"
"$SKILL_ROOT/scripts/ghidra_import_analyze" <binary> [project_name]
Known root paths (for reference — use the discovery snippet above rather than hardcoding):
~/.codex/skills/ghidra-re— OpenAI Codex standard install~/.claude/skills/ghidra-re— Claude Code standard install viainstall_skill~/Library/Application Support/Claude/local-agent-mode-sessions/skills-plugin/.../skills/ghidra-re— Claude Code plugin install (UUID subdirectories vary per machine)
V1 is optimized for Apple Mach-O reversing and dyld-extracted binaries. It now includes a localhost GUI bridge extension for live inspection, annotation, and controlled program surgery inside open Ghidra sessions, plus mission workspaces for multi-target investigation across frameworks, daemons, and helpers.
The custom automation scripts ship as Java Ghidra scripts because that is the most reliable headless path on this machine.
On Windows, the public repo now also ships a native PowerShell wrapper layer in powershell/ for people who want first-class PowerShell commands instead of starting in Git Bash.
Quick Start
All
scripts/paths below are relative to$SKILL_ROOT. Run the discovery snippet in "Resolving the Skill Root" first, then prefix every command with"$SKILL_ROOT/".
- On a fresh machine, run
"$SKILL_ROOT/scripts/bootstrap"once. - If bootstrap cannot find Ghidra or Java 21, run
"$SKILL_ROOT/scripts/doctor". - On Windows, if the targets live in a mounted or extracted macOS image, register that source first:
scripts/ghidra_source_add mac-image root=/d/macos-root platform=macos-image copy=cache
- Start a multi-target mission when the task spans more than one framework, daemon, or helper:
scripts/ghidra_mission_start <mission_name> goal=... target=... [target=...] [seed=...]
- Extend the mission with a seed-driven trace:
scripts/ghidra_mission_trace <mission_name> seed=<kind:value>
- For a more autonomous pass, let the mission keep driving its own next hops:
scripts/ghidra_mission_autopilot <mission_name> [rounds=3]
- Read the mission report:
scripts/ghidra_mission_report <mission_name>scripts/ghidra_mission_report <mission_name> format=casefile
- Finish the mission and close its live Ghidra sessions unless you explicitly keep them open:
scripts/ghidra_mission_finish <mission_name>
- For a single target, import and analyze into a dedicated project:
scripts/ghidra_import_analyze <binary|source:name:/path/in/image> [project_name]
- Export the default Apple-focused bundle:
scripts/ghidra_export_apple_bundle <project_name> <program_name>
- For Swift-heavy Apple targets, resolve
_OUTLINED_FUNCTION_*stubs before exporting or decompiling — this is essential for any dyld-extracted binary (WorkflowKit, BackgroundTaskAgent, etc.) where the Swift compiler outlined ARC/copy/move helpers:
"$SKILL_ROOT/scripts/ghidra_resolve_swift_outlined" <project_name> <program_name> [dry_run=true] [inline=false] [skip_stubs=true] [scan_fun_stubs=true] [second_pass=true] [build_authstub_map=true] [cache_path=<path>]- Pass
build_authstub_map=trueto resolve auth stubs to real symbol names (e.g.outlined$authstub$swift_retain) using the live dyld shared cache. Requires macOS with the
Установить ghidra-re в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ghidra-re?
Use for Ghidra-based reverse engineering on this machine, especially Apple Mach-O and dyld-extracted binaries. Trigger when the user wants headless Ghidra import/analysis, to run Ghidra scripts, inspect decompilation, or export structured reversing artifacts such as functions, strings, symbols, Objective-C metadata, or xrefs. Prefer this skill over ad hoc shell commands when the task should create or reuse a Ghidra project under ~/ghidra-projects. Works identically whether loaded by OpenAI Codex or Anthropic Claude Code.
Как установить скилл ghidra-re?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ghidra-re запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic