Communitygithub.com

ghidra-reverse

Ghidra를 사용한 무료/오픈소스 리버스 엔지니어링 스킬입니다. 헤드리스 또는 GUI 모드에서 디컴파일, 크로스 레퍼런스, Ghidra MCP 워크플로우를 지원하며 IDA를 사용할 수 없을 때 적합합니다.

ghidra-reverse란 무엇인가요?

이 스킬은 AI 에이전트가 Ghidra를 사용하여 리버스 엔지니어링 작업을 수행할 수 있도록 설계되었습니다. IDA Pro 라이선스가 없거나 오픈소스 도구를 선호하는 환경에서 주요 리버스 엔지니어링 진입점 역할을 합니다. 헤드리스(CLI) 모드와 GUI 모드를 모두 지원하며, `analyzeHeadless` 명령어를 통한 배치 분석, Ghidra 스크립트(Java/Python Jython)를 통한 자동화, 그리고 `ghidra-mcp`를 통한 AI 에이전트와의 통합을 제공합니다. 또한 `binary-diff`와 `patch-diff-exploit` 스킬과 연동하여 패치 분석 및 익스플로잇 개발을 지원합니다. 사용자는 `field-journal`과 `tool-index`에서 사전 정보를 확인하고, 적절한 도구 경로와 MCP 포트를 설정한 후 워크플로우를 진행해야 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/ghidra-reverse

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Ghidra 리버스 엔지니어링

ACTION REQUIRED (읽은 후 즉시 실행)

  1. 지금: ../field-journal/precedent-reverse.md 읽기
  2. 지금: Ghidra 필요 여부 확인 (IDA 없음 / 오픈소스 선호 / 배치 헤드리스)
  3. 다음: ../tool-index.md 읽어 ghidra / ghidra-mcp 경로 확인
  4. 다음: 도구 없음 → ghidra-mcp 부트스트랩 (매니페스트 지원 시) 또는 수동으로 Ghidra 설치
  5. 실행: 샘플 가져오기 → 자동 분석 → 주요 함수 디컴파일 내보내기

적용 시나리오

  • IDA 라이선스가 없을 때의 주요 리버스 엔트리 포인트
  • 배치 헤드리스 분석 / CI에서 디컴파일
  • Ghidra 스크립트 (Java/Python Jython/PyGhidra) 자동화
  • binary-diff / patch-diff-exploit의 ghidriff와 연동

IDA와의 역할 분담

요구 사항우선 순위
기존 IDA MCP 심층 분석ida-reverse/
오픈소스 / 배치 / 교육본 스킬
CLI만 빠른 정찰radare2/

워크플로우

1. 프로젝트 및 자동 분석

□ 새 프로젝트 → 파일 가져오기 → 분석 (기본 분석기)
□ 언어/컴파일러 식별 결과 및 베이스 주소 기록
□ 진입점, 내보내기 테이블, 문자열 xref 표시

2. 주요 함수

□ 문자열 / 가져온 API로 역추적
□ 디컴파일 창으로 알고리즘 복원
□ 함수/변수 이름 변경; Plate 주석 작성
□ 동적 분석 필요 시 Frida/GDB에 인계 (reverse-engineering 동적 섹션)

3. 헤드리스 (배치)

# 예시: analyzeHeadless 경로는 설치에 따라 다름, 반드시 tool-index에서 가져올 것
analyzeHeadless /path/to/project Proj -import sample.bin -postScript ExportDecomp.py

4. MCP (설정된 경우)

□ ghidra MCP 포트 확인 (일반 8765, tool-index 기준)
□ MCP 도구를 사용해 디컴파일 / xrefs 가져오기, 포트 추측 금지

도구 체인

도구용도자가 설치
Ghidra디컴파일 주요 도구수동 릴리스 / 패키지 관리자
ghidra-mcpAI 브리지부트스트랩 능력명 ghidra-mcp
ghidriff패치 차이patch-diff-exploit 참조

참고

  • references/ghidra-cheatsheet.md
  • ../ida-reverse/ ../radare2/ ../binary-diff/

라우팅 컨텍스트

상위: MASTER R22
하위: 동적 검증 → Frida/GDB; 익스플로잇 → pwn-chain
동급: ida-reverse (상업용 심층 분석)

작업 완료 자가 점검

  • 실제 Ghidra/tool-index 경로를 기반으로 했는가?
  • 함수 주소와 이름 변경을 기록했는가?
  • 재현 가능한 단계가 있는가?
  • 체크리스트 / 저널을 기록했는가?

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

apk-reverse

在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。

attack-chain

Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

binary-diff

|

binary-ninja-reverse

Use for authorized binary analysis in Binary Ninja, including HLIL/MLIL/LLIL inspection, strings/imports/exports, cross-references, types, patch review, Python API automation, and optional Binary Ninja MCP or localhost HTTP integration.

browser-automation

|

browser-extension-reverse

Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.

case-review

Reviews a reverse-skill case package for scope readiness, Evidence to Finding to Path traceability, work item coverage, timeline references, and optional artifact hash integrity before report handoff.

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

code-audit

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

ctf-sandbox

Thin PRIMARY for CTF / AWD / 靶场 multi-type orchestration. Hands off to the sidecar CTF-Sandbox-Orchestrator. Use when the user says CTF, AWD, 靶场, or 比赛题 and no more specific pwn/APK/IDA route already won.

database-security

Use for authorized database security assessment covering PostgreSQL/MySQL/MSSQL/Mongo/Redis exposure, authz, UDF/command paths, and misconfiguration review.

diagram-generator

generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. supports mermaid by default, graphviz dot for complex graph layout, plantuml for uml-heavy engineering diagrams, and svg output when direct markup is more reliable.

digital-forensics

Use for authorized digital forensics including memory dumps, disk timelines, PCAP investigation, artifact triage, and IR evidence preservation.

docs-generator

|

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp* 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering / ida-reverse)。

edr-bypass-re

|

email-security

Use for authorized email security review including phishing analysis, header authentication (SPF/DKIM/DMARC), BEC patterns, and mailbox token abuse research.

firmware-pentest

|

go-rust-reverse

Use for reverse engineering stripped Go and Rust binaries including runtime recognition, pclntab/moduel data recovery, panic strings, and idiomatic decompilation recovery.

관련 스킬