inspect_keyed_archiveHow to REA Apple Applications: Mach-O Slices, Dyld Chained Fixups & Plists
Deconstruct macOS and iOS application bundles: select universal FAT Mach-O slices (Apple Silicon ARM64 vs Intel x86_64), parse dyld chained fixups, verify code-signing entitlements, and safely inspect binary property lists without class instantiation.
In this official REA guide for Apple Applications & Bundles (.app / .dylib), AI coding agents (Claude Code, Cursor, Windsurf) execute 'rea inspect-keyed-archive ./Info.plist --json' to safely extract file layout, symbols, and code logic without launching unverified binaries.
The Problem & Target Artifact
macOS application security audit: You are analyzing a modern macOS application. You need to inspect its sandbox entitlements, parse Mach-O chained fixups on Apple Silicon, and read complex NSKeyedArchiver state plists safely.
Natural Language Agent Instructions
Copy and paste this prompt directly into your AI coding agent when REA is registered via Model Context Protocol (MCP):
Inspect this macOS app bundle. Select the arm64 slice, verify hardened runtime flags and sandbox entitlements, and parse Info.plist without running system deserializers.Run REA Analysis Command
Execute the following command in your terminal or inspect the MCP JSON-RPC call executed by your agent:
rea inspect-keyed-archive ./Info.plist --jsonWhat REA Extracts & Returns
Extracted Entitlements & Chained Fixup Status
The verified findings and synthesized clean-room structures generated from this investigation:
{
"architecture": "arm64",
"hardened_runtime": true,
"entitlements": {
"com.apple.security.app-sandbox": true,
"com.apple.security.network.client": true,
"com.apple.security.files.user-selected.read-write": true
},
"chained_fixups": {
"format": "DYLD_CHAINED_PTR_ARM64E",
"imports_count": 142,
"starts_in_segments": 4
}
}Zero-Execution Keyed Archive & PAC Traversal
Using system APIs like `NSKeyedUnarchiver` on untrusted inputs creates critical deserialization RCE vulnerabilities. REA implements an independent zero-execution byte parser that resolves `$objects` index graphs and scalar values without calling `init` on any Objective-C class, imposing a 64 MiB input boundary and 128-level recursion ceiling.