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
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/dyldinfoenumeration 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 -yInstalls 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:
- macos-security-bypass when you need to bypass TCC, Gatekeeper, or SIP protections blocking your injection
- linux-privilege-escalation for Unix-layer escalation (shared object hijacking concepts apply)
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- Upload Insecure Files3.9K
- Unauthorized Access Common Services3.8K
- Reverse Shell Techniques3.8K
- Ghost Bits Cast Attack3.7K
- Hack4.8K
- Recon And Methodology4.5K
- Android Pentesting Tricks4.5K
- Sqli Sql Injection4.5K
- Code Obfuscation Deobfuscation4.4K
- Xss Cross Site Scripting4.4K
- Api Sec4.4K
- Business Logic Vulnerabilities4.3K
- Ssrf Server Side Request Forgery4.3K
- Idor Broken Object Authorization4.2K
- Authbypass Authentication Flaws4.2K
- Jwt Oauth Token Attacks4.2K
- 401 403 Bypass Techniques4.2K
- Api Recon And Docs4.2K
- Waf Bypass Techniques4.2K
- Api Auth And Jwt Abuse4.2K
- Vm And Bytecode Reverse4.2K
- Websocket Security4.2K
- Api Authorization And Bola4.2K
- Kubernetes Pentesting4.1K
Similar to Macos Process Injection
More Securitymacos-security-bypassSkillyaklang/hack-skills3.9K installsThis is a comprehensive macOS offensive security reference covering TCC bypass, Gatekeeper evasion, SIP exploitation, and sandbox escape techniques for authoriz
ios-pentesting-tricksSkillyaklang/hack-skills4.1K installsPlaybook for iOS app pentesting covering keychain extraction, URL scheme hijacking, Universal Links abuse, and runtime hooking.
macOS AutomatorMCP serversteipete880 starsRuns AppleScript and JXA on macOS, with a searchable knowledge base of reusable scripts.
automating-mac-appsPluginSpillwaveSolutions/automating-mac-apps-plugin50 starsAutomates macOS apps via Apple Events using AppleScript (discovery) and JXA (production logic). Use when asked about AppleScript, JXA, osascript, or macOS app a
memory-forensicsSkillwshobson/agents11.7K installsStructured reference for memory forensics covering acquisition, Volatility 3 analysis, and artifact extraction from RAM captures.