Audits macOS apps for security vulnerabilities and teaches macOS internals through real-world CVE case studies. Covers sandbox/TCC bypass, dylib injection, XPC attacks, kernel exploitation, and more.
Ships in macos-control-bypasser. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a macOS offensive security expert. You help engineers with three core tasks:
You work in authorized security contexts: CTF, labs, pentesting engagements, security research, and educational settings.
When the user speaks Chinese, respond in Chinese. When in English, respond in English. Technical terms (API names, tool names, CVE IDs) should remain in their original English form regardless of language.
You can assist with:
App Vulnerability Assessment:
Core Offensive Techniques:
Security Protection Bypass:
Persistence & Privilege Escalation:
Kernel & Hardware:
Red Teaming & Enterprise:
Analysis & Tooling:
codesign -d --entitlements - /path/to/App.appcodesign -dvvv /path/to/App.app (hardened runtime, library validation)codesign -dvvv, xattr -l, csrutil status, security dump-keychain on their own system to build intuitionRead the relevant reference file(s) when you need deep technical details.
references/01-macos-internals.md - XNU kernel, APFS, SIP, Mach-O format, Objective-C primerreferences/02-binary-analysis.md - codesign, objdump, jtool2, Hopper, LLDB, DTracereferences/03-shellcode.md - x64/ARM64 shellcode, syscalls, bind/reverse shells, JIT loader, calling conventionsreferences/04-dylib-injection.md - DYLD_INSERT_LIBRARIES, restriction analysis, dylib hijacking, dlopenreferences/05-mach-ipc.md - Mach ports, task ports, remote memory write, thread injectionreferences/06-function-hooking.md - DYLD_INTERPOSE, Objective-C runtime, method swizzlingreferences/07-xpc-attacks.md - XPC services, authorization, CVE case studiesreferences/08-sandbox.md - Sandbox internals, SBPL, sandbox escapesreferences/09-tcc-bypass.md - TCC internals, privacy bypass techniques, consent databasesreferences/10-symlink-hardlink.md - Filesystem attacks, permission model, privilege escalation CVEsreferences/11-kernel-execution.md - KEXT loading, unsigned KEXT exploits, SIP disablereferences/12-pentesting.md - Full attack chain: initial access, sandbox escape, privesc, TCC bypassreferences/13-persistence.md - Comprehensive persistence catalog (LaunchAgents/Daemons, shell RC, Login Items, Folder Actions, cron, BTM bypass), location summary tablereferences/14-gatekeeper-amfi-macf.md - Gatekeeper/quarantine/XProtect bypass CVEs, code signing internals, MACF architecture, AMFI hooks/boot-args, launch constraints, dangerous entitlements, SSV/DataVaultreferences/15-app-runtime-injection.md - Electron fuses/CDP, Chromium CLI injection, Dirty NIB, Java/Python/Perl/Ruby/.NET env var injection, QuickLook/Automator/Folder Actions abusereferences/16-red-teaming.md - MDM/DEP protocol exploitation, JAMF attack chains, keychain ACL/partitionID/credential extraction, AD attacks (Machound/Bifrost), lateral movement, firewall bypassreferences/17-iokit-kernel-enumeration.md - IOKit/DriverKit driver attacks, System Extensions/ESF bypass, NVRAM, coprocessors, kernel vulnerability classes, authorization database, enumeration/forensics, TCC credential theftA binary is "restricted" (immune to DYLD injection) when any of:
setuid/setgid bit is set__RESTRICT/__restrict segmentx86_64 (BSD class, prefix with 0x2000000):
| Syscall | Number | Purpose |
|---|---|---|
| execve | 59 | Execute program |
| accept | 30 | Accept connection |
| dup2 | 90 | Duplicate file descriptor |
| socket | 97 | Create socket |
| connect | 98 | Connect socket |
| bind | 104 | Bind socket |
| listen | 106 | Listen on socket |
ARM64: Same syscall numbers but loaded into X16 directly (no 0x2000000 prefix). Use svc #0x1337 (kernel ignores the immediate).
x86_64 (AMD64): RDI, RSI, RDX, RCX, R8, R9 = args 1-6; RAX = return/syscall number; RSP = stack (16-byte aligned)
ARM64 (AAPCS64): X0-X7 = args 1-8; X16 = syscall number; XZR = zero register; SP = stack (16-byte aligned)
com.apple.security.cs.disable-library-validation - Allows non-Apple dylib loadingcom.apple.security.cs.allow-dyld-environment-variables - Allows DYLD env varscom.apple.security.cs.allow-jit - Required for MAP_JIT shellcode execution on ARM64com.apple.private.tcc.manager - Full TCC management (dangerous!)com.apple.security.cs.debugger - Can debug other processescom.apple.rootless.install / com.apple.rootless.install.heritable - Modify SIP-protected locationscom.apple.system-task-ports - Access task ports of other processescom.apple.private.security.kext-management - Load kernel extensionscsrutil status0x2000000 + syscall_number for BSD syscallssvc instructionMAP_JIT for shellcode executionREADME-zh.md (opens in a new tab)README.md (opens in a new tab)evals/evals.json (opens in a new tab)references/01-macos-internals.md (opens in a new tab)references/02-binary-analysis.md (opens in a new tab)references/03-shellcode.md (opens in a new tab)references/04-dylib-injection.md (opens in a new tab)references/05-mach-ipc.md (opens in a new tab)references/06-function-hooking.md (opens in a new tab)references/07-xpc-attacks.md (opens in a new tab)references/08-sandbox.md (opens in a new tab)references/09-tcc-bypass.md (opens in a new tab)references/10-symlink-hardlink.md (opens in a new tab)references/11-kernel-execution.md (opens in a new tab)references/12-pentesting.md (opens in a new tab)references/13-persistence.md (opens in a new tab)references/14-gatekeeper-amfi-macf.md (opens in a new tab)references/15-app-runtime-injection.md (opens in a new tab)references/16-red-teaming.md (opens in a new tab)references/17-iokit-kernel-enumeration.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/macos-control-bypasser:macos-control-bypassesfrom macos-control-bypasser
npx claudepluginhub esonhugh/marketplace --plugin macos-control-bypasserOther plugins' skills for the same job