How lauriewired/ios_reverse_engineering works
Project Type and Purpose
• This repository is an open-source toolkit and learning resource for iOS reverse engineering.
• It bundles:
• Example IPA binaries demonstrating obfuscation techniques.
• Ghidra helper scripts (Python) to automate common tasks (Swift name demangling, swizzling detection).
• Documentation and image assets for the wiki/README.
File-Structure Analysis
• Top-level
• ObfuscatedAppExamples/ ← sample IPA files
• SwiftNameDemangler.py ← Ghidra script
• SwizzlingDetector.py ← Ghidra script
• images/ ← logos/screenshots
• README.md ← high-level overview, linking to wiki
• No “frontend” or “backend” directories – it’s a CLI/desktop-tool integration with Ghidra.
• No build scripts or deployment manifests; main interaction is via Git operations and Ghidra’s scripting API.
README Insights
• Emphasizes the “Comprehensive iOS RE Wiki” for guides.
• Showcases example IPAs and Ghidra scripts.
• No runtime services – focus is on local analysis workflows.
a. Main Components
1. User (Reverse Engineer)
2. GitHub Repository
– Source code: Python scripts
– Example IPA files
– Documentation (README, images)
3. Ghidra (External Analysis Platform)
4. Wiki/Documentation Website
b. Relationships & Data Flows
1. User clones Repo from GitHub.
2. User launches Ghidra; loads an IPA from ObfuscatedAppExamples.
3. User imports the Python scripts into Ghidra’s scripting console.
4. Scripts process the IPA in Ghidra, producing:
– Demangled symbols
– Swizzling reports
5. User refers to the Wiki/README for guidance.
c. Architectural Patterns & Principles
• Plugin/Extension architecture for Ghidra: Python scripts act as lightweight plugins.
• Data-centric flow: binary → Ghidra → scripts → annotated analysis.
• Separation of concerns: sample binaries, scripts, and docs stored independently.
d. Key Technologies & Libraries
• Ghidra (Java-based reverse-engineering suite)
• Python (Jython) for Ghidra scripting
• Git/GitHub for version control and distribution
Essential Detail
• Scripts as plugins in Ghidra.
• Dual nature of the repo as both sample-binary storage and script library.
• Flow from sample binary ingestion to analysis output.