Desktop & WebZero Extra Tools NeededMCP Tool: inspect_keyed_archive

How 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.

AI Overview Direct AnswerHow to REA: Apple Applications & Bundles (.app / .dylib) Quickstart Summary

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.

Investigation ScenarioReal-World Objective

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.

Target Artifact: macOS .app bundle, dynamic library (.dylib), or binary plist (.plist).
AI PromptClaude Code / Cursor / Windsurf

Natural Language Agent Instructions

Copy and paste this prompt directly into your AI coding agent when REA is registered via Model Context Protocol (MCP):

Prompt Template:Select All to Copy
Inspect this macOS app bundle. Select the arm64 slice, verify hardened runtime flags and sandbox entitlements, and parse Info.plist without running system deserializers.
ExecutionTerminal & MCP Tool Call

Run REA Analysis Command

Execute the following command in your terminal or inspect the MCP JSON-RPC call executed by your agent:

CLI Command Execution
rea inspect-keyed-archive ./Info.plist --json

What REA Extracts & Returns

Universal FAT container slicing: arm64 (Apple Silicon) vs x86_64 (Intel) architectures
LC_DYLD_CHAINED_FIXUPS and ARM64e Pointer Authentication (PAC) pointer chain validation
Code signing certificates, team identifier, Hardened Runtime flags, and com.apple.security entitlements
NSKeyedArchiver binary plist decoding: $objects array and $top roots without Objective-C class loading

Extracted Entitlements & Chained Fixup Status

The verified findings and synthesized clean-room structures generated from this investigation:

Extracted Entitlements & Chained Fixup Status
{
  "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
  }
}
Internal MechanicsProduction Engineering

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.

Security Guardrails & Analysis Boundary Rules

Safe room: Eliminates remote code execution risks during forensic plist inspection.
Parses modern ARM64e PAC signed pointers and Objective-C class metadata records.
Audits App Sandbox escape vectors and insecure temporary directory file access.