What problem does it solve?
This Skill provides practical guidance for injecting code into macOS processes for security testing and research when you need to reach execution inside a target app or service despite common constraints like Hardened Runtime, SIP, and entitlements.
Core Features & Use Cases
- DYLD and dylib hijacking playbooks: Exploit dynamic loader behavior via DYLD_INSERT_LIBRARIES, weak dylibs, @rpath manipulation, and proxy/re-export dylibs.
- XPC exploitation pathways: Identify XPC services, understand entitlement/token validation gaps, and outline PID-reuse race concepts to influence privileged connections.
- Mach port manipulation and MIG analysis: Use task/exception port techniques and review Mach IPC surfaces for likely weaknesses.
- Electron/Chromium injection surfaces: Target Electron apps via RunAsNode, debugging/protocol attachment, NODE_OPTIONS-style preload ideas, and fuse-based gating.
Quick Start
Use the macos-process-injection skill to select the most applicable macOS injection vector for your target by checking Hardened Runtime/SIP constraints, then follow the corresponding section for DYLD hijacking, XPC, Mach ports, or Electron abuse.