
Macos Security Bypass
Follow an expert macOS bypass playbook for authorized red-team or pentest work covering TCC, Gatekeeper, SIP, sandbox, and entitlements.
Install
npx skills add https://github.com/yaklang/hack-skills --skill macos-security-bypassWhat is this skill?
- Covers TCC, Gatekeeper, SIP, sandbox escape, code signing, and entitlement abuse on macOS
- Routes to companion skills: macos-process-injection, linux-privilege-escalation, linux-security-bypass
- Optional TCC_BYPASS_MATRIX.md for per-version bypass mapping and FDA/automation abuse patterns
- Explicitly scoped to authorized red team and pentest engagements—not casual shipping
Adoption & trust: 1k installs on skills.sh; 987 GitHub stars; 0/3 security scanners passed (skills.sh audits).
Recommended Skills
Azure Compliancemicrosoft/azure-skills
Openclaw Secure Linux Cloudxixu-me/skills
Entra Agent Idmicrosoft/azure-skills
Firebase Security Rules Auditorfirebase/agent-skills
Firestore Security Rules Auditorfirebase/agent-skills
Skill Vetteruseai-pro/openclaw-skills-security
Journey fit
Common Questions / FAQ
Is Macos Security Bypass safe to install?
skills.sh reports 0 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Macos Security Bypass
# SKILL: macOS Security Bypass — Expert Attack Playbook > **AI LOAD INSTRUCTION**: Expert macOS security bypass techniques. Covers TCC bypass, Gatekeeper evasion, SIP restrictions, sandbox escape, and entitlement abuse. Base models miss version-specific bypass nuances and protection interaction effects. ## 0. RELATED ROUTING Before going deep, consider loading: - [macos-process-injection](../macos-process-injection/SKILL.md) when you need dylib injection, XPC exploitation, or Electron abuse after achieving initial access - [linux-privilege-escalation](../linux-privilege-escalation/SKILL.md) for Unix-layer privesc techniques that also apply to macOS (SUID, cron, writable paths) - [linux-security-bypass](../linux-security-bypass/SKILL.md) for shared Unix security bypass concepts ### Advanced Reference Also load [TCC_BYPASS_MATRIX.md](./TCC_BYPASS_MATRIX.md) when you need: - Per-macOS-version TCC bypass mapping - Protection-type-specific techniques (Camera, Microphone, FDA, Automation) - MDM/configuration profile abuse patterns --- ## 1. TCC (TRANSPARENCY, CONSENT, CONTROL) OVERVIEW TCC is macOS's permission framework controlling access to sensitive resources (camera, microphone, contacts, full disk access, etc.). ### 1.1 TCC Database Locations | Database | Path | Controls | Protection | |---|---|---|---| | User-level | `~/Library/Application Support/com.apple.TCC/TCC.db` | Per-user consent decisions | SIP-protected since Catalina | | System-level | `/Library/Application Support/com.apple.TCC/TCC.db` | System-wide consent decisions | SIP-protected | | MDM-managed | Via configuration profiles | Push PPPC (Privacy Preferences Policy Control) | Device management | ```sql -- Query TCC database (requires FDA or SIP off) sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db \ "SELECT service, client, allowed FROM access;" ``` ### 1.2 TCC Bypass Categories | Category | Mechanism | Typical Prerequisite | |---|---|---| | FDA app exploitation | Piggyback on apps already granted Full Disk Access | Write access to FDA app's bundle or plugin dir | | Direct DB modification | Edit TCC.db to grant consent | SIP disabled or FDA | | Inherited permissions | Child process inherits parent's TCC grants | Code execution in context of FDA-granted app | | Automation abuse | Apple Events / osascript to control TCC-granted app | Automation permission (lower bar than direct TCC) | | Mounting tricks | Mount a crafted disk image containing modified TCC.db | Local access, pre-Ventura | | SQL injection in TCC | Malformed bundle IDs triggering SQL injection in TCC subsystem | CVE-2023-32364 and similar | ### 1.3 Known TCC Bypass Patterns **Terminal / iTerm FDA inheritance**: Terminal.app granted FDA → any command run inherits FDA → read any file. ```bash # If Terminal has FDA, this reads protected files directly cat ~/Library/Mail/V*/MailData/Envelope\ Index cat ~/Library/Messages/chat.db ``` **Finder automation**: Automate Finder (lower permission bar) to access files in protected locations. ```applescript tell application "Finder" set f to POSIX file "/Users/target/Library/Mail/V9/MailData/Envelope Index" duplicate f to desktop end tell ``` **System Preferences / System Settings injection**: Inject into a process that already has TCC permissions by writing to its Application Scripts folder. **MDM profile abuse**: PPPC profiles can pre-approve TCC permissions. Rogue MDM enrollment or compromised MDM server → push PPPC payload. --- ## 2. GATEKEEPER BYPASS Gatekeeper blocks unsigned or unnotarized apps from executing. Core enforcement depends on the `com.apple.quarantine` extended attribute. ### 2.1 Quarantine Attribute Removal ```bash # Check quarantine attrib