Skip to content
yaklang avatar

Macos Process Injection

Catalog entry for a macOS process injection playbook covering dylib hijacking, DYLD variables, XPC, and Mach ports.

CCM score
62 of 100
skills.sh installs
3.9K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers DYLD_INSERT_LIBRARIES injection, dylib hijacking (weak, rpath, and proxy), XPC PID reuse, Mach port manipulation, and Electron/Chromium abuse
  • Includes entitlement and restriction tables, binary-discovery shell one-liners, and otool/nm/dyldinfo enumeration commands
  • Documents which conditions block injection, such as Hardened Runtime, SIP, SUID, and App Sandbox, and which entitlements lift those blocks
  • Designed for security researchers working on offensive macOS process injection, with a companion reference for step-by-step methodology and code examples

Install

$ npx -y skills add yaklang/hack-skills --skill macos-process-injection -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SKILL: macOS Process Injection — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert macOS process injection techniques. Covers DYLD_INSERT_LIBRARIES, dylib hijacking (weak/rpath/proxy), XPC PID reuse attacks, Mach port manipulation, MIG abuse, and Electron injection. Base models miss entitlement prerequisites and SIP constraints on injection vectors.

0. RELATED ROUTING

Before going deep, consider loading:

Advanced Reference

Also load DYLIB_XPC_TECHNIQUES.md when you need:

  • Step-by-step dylib hijacking methodology with tooling commands
  • XPC exploitation walkthrough with code examples
  • Mach port technique details and task_for_pid patterns

1. DYLD_INSERT_LIBRARIES INJECTION

The most straightforward injection: set an environment variable that forces the dynamic linker to preload your dylib.

1.1 Requirements and Restrictions

Details

Repository
github.com/yaklang/hack-skills
Category
Security
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Similar to Macos Process Injection

More Security