← Reddit

Claude Code / Codex Skill for Ghidra

Reddit · FiendForMath · April 14, 2026
A reverse engineering tool for Apple binaries has been built, optimized for Swift and Objective-C with LLDB live tracing capabilities. The tool currently works reliably on macOS, with Windows support planned. Community contributions are being sought to develop the project further.

Detailed Analysis

A developer known as OwenPawl has released an open-source Claude Code and OpenAI Codex skill specifically engineered for reverse engineering Apple binaries, hosted at the GitHub repository ghidra-re-skill. Unlike general-purpose Ghidra automation tools, this skill is deliberately scoped to the Apple ecosystem, with optimization targeting Swift and Objective-C binaries — the two dominant languages in macOS and iOS software development. A distinguishing capability is its integration with LLDB, Apple's native debugger, enabling live runtime tracing rather than purely static analysis. The tool currently runs reliably on macOS, with Windows support announced as a future goal, and the author has explicitly invited community contributions to expand its capabilities.

The skill operates within the broader Claude Code "skills" framework, a paradigm in which modular instruction sets — defined via `SKILL.md` files — are placed in a standard directory (`~/.claude/skills/`) and automatically discovered by the agent at runtime. This architecture enables progressive context loading, a design that prevents the agent's context window from being overwhelmed by tool documentation. The Ghidra integration specifically leverages Ghidra's headless analyzer (`analyzeHeadless`) rather than its GUI, allowing Claude to programmatically decompile binaries to C pseudocode, extract strings, symbols, and function lists, and generate call graphs in JSON format — all without human-in-the-loop graphical interaction. The setup requires a working Ghidra installation with OpenJDK 17 or later and the `GHIDRA_HOME` environment variable properly configured.

The release lands within a rapidly expanding ecosystem of AI-assisted binary analysis tools. The skills format itself has proven transferable across multiple AI coding agents — Claude Code, OpenAI Codex, Cursor, and Gemini CLI all support compatible variants — meaning a skill built for one platform carries immediate utility across others. Parallel developments in the space include Ghidra MCP (Model Context Protocol) servers offering over 110 discrete tools for decompilation, disassembly, and annotation via Claude Code, as well as community repositories cataloguing hundreds of skills for diverse engineering tasks. Real-world applications documented in the community include ransomware analysis workflows and the reverse engineering and porting of legacy games, illustrating that AI-augmented binary analysis has moved from experimental to practical utility.

The Apple-specific focus of this skill addresses a meaningful gap in the existing tooling landscape. General Ghidra automation handles architecture-agnostic binaries but does not account for the idiosyncrasies of Apple's runtime environments — Objective-C's dynamic message dispatch, Swift's name mangling conventions, and the tight coupling between Apple frameworks and LLDB's introspection APIs. By targeting these specifics, the skill positions itself as a precision instrument for security researchers, malware analysts, and developers working within Apple's closed ecosystem, where third-party tooling has historically lagged behind the complexity of the platform. LLDB integration for live tracing is particularly significant, as it bridges the gap between static decompilation and dynamic analysis, allowing an AI agent to correlate decompiled pseudocode with actual runtime behavior — a workflow that previously required substantial manual orchestration.

The project reflects a broader trend in AI-augmented security research: the commoditization of sophisticated reverse engineering workflows through agent-accessible tooling. Tasks that once required deep expertise in Ghidra scripting, Java-based plugin development, and platform-specific debugging are increasingly being abstracted into declarative skill definitions that an AI agent can execute on behalf of a researcher. As community contributions accumulate — the author has explicitly called for them — the skill has the potential to develop into a comprehensive Apple binary analysis suite, potentially covering areas such as dyld shared cache analysis, code signature inspection, and entitlement auditing, domains of considerable interest to both offensive security practitioners and platform integrity researchers.

Read original article →