skills/binary-exploitation/ios-exploiting/imessage-media-parser-zero-click-coreaudio-pac-bypass/SKILL.md
Analyze iOS zero-click attack chains, CoreAudio vulnerabilities, PAC bypass techniques, and CryptoTokenKit abuse patterns. Use this skill whenever the user mentions iOS security research, iMessage exploitation, zero-click attacks, CoreAudio/AudioConverterService vulnerabilities, arm64e PAC/RPAC bypass, kernel escalation, CryptoTokenKit abuse, BlastDoor bypass, or any iOS exploitation chain analysis. Also trigger for defensive hardening recommendations, vulnerability research, or when analyzing iOS security tutorials and CVE chains.
npx skillsauth add abelrguezr/hacktricks-skills ios-exploit-chain-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A skill for analyzing iOS zero-click attack chains, understanding exploitation techniques, and generating defensive recommendations for security researchers and defenders.
Use this skill when:
Break down the exploitation chain into stages:
Delivery → Auto-ingestion → Parser Bug → Userland RCE → PAC Bypass → Kernel Escalation → Post-Exploitation
For each stage, identify:
From the source material, capture:
| Field | Example |
|-------|--------|
| CVE IDs | CVE-2025-31200, CVE-2025-31201 |
| Affected versions | iOS 18.x < 18.4.1 |
| Primary component | CoreAudio → AudioConverterService |
| Delivery vector | iMessage/SMS with malicious audio |
| Key logs | ACMP4AACBaseDecoder.cpp: inMagicCookie=0x0 |
Document how isolation is defeated:
Normal path: iMessage → BlastDoor (hardened parser) → Safe
Bypass path: iMessage → "Known sender" framing → BlastDoor disabled → CoreAudio → RCE
Key indicators:
BlastDoor: Disabled for framing messagesBlackhole disabled; user has disabled filtering unknown sendersFor arm64e Pointer Authentication bypasses:
Research notes:
Map userland primitives to kernel control:
Userland R/W + PAC bypass → Kernel surface (IOKit, networking, shared memory) → Kernel PC control
Common paths:
Key logs to watch:
IO80211ControllerMonitor::setAMPDUstat unhandled kAMPDUStat_ type 14
With kernel compromise, enumerate capabilities:
| Capability | Mechanism | Impact | |------------|-----------|--------| | Unauthorized signing | CryptoTokenKit + identityservicesd impersonation | Token/message/payment signing | | Keychain access | Secure Enclave key operations | Credential theft | | 2FA interception | Message/identity services | Account takeover | | Stealth surveillance | Mic/camera/GPS without prompts | Persistent monitoring |
Key logs:
CryptoTokenKit operation:2 algo:algid:sign:ECDSA:digest-X962:SHA256
CryptoTokenKit <sepk:p256(d) kid=9a86778f7163e305> parsed for identityservicesd
When researching similar vulnerabilities:
Watch for these indicators in telemetry:
# Parser issues
AudioConverterService ACMP4AACBaseDecoder.cpp: inMagicCookie=0x0
# BlastDoor bypass
IDSDaemon BlastDoor: Disabled for framing messages
SpamFilter Blackhole disabled
# Kernel escalation
IO80211ControllerMonitor::setAMPDUstat unhandled kAMPDUStat_
# Post-exploitation
CryptoTokenKit operation:2 algo:algid:sign:ECDSA
## Vulnerability: [Name]
- **CVE**: [IDs]
- **Affected**: [Versions]
- **Component**: [Subsystem]
- **Delivery**: [Vector]
- **Chain**: [Stage 1] → [Stage 2] → [Stage 3]
- **Impact**: [What can be done]
- **Mitigation**: [Patch/hardening]
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Delivery │ → │ Parser Bug │ → │ Userland │
│ (iMessage) │ │ (CoreAudio) │ │ RCE │
└─────────────┘ └──────────────┘ └─────────────┘
↓
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Kernel │ ← │ PAC Bypass │ ← │ Info Leak │
│ Escalation │ │ (RPAC) │ │ (KASLR) │
└─────────────┘ └──────────────┘ └─────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ Post-Exploitation │
│ CryptoTokenKit abuse, Keychain, Surveillance │
└─────────────────────────────────────────────────────┘
## iOS Hardening Checklist
- [ ] Update to latest iOS version
- [ ] Review BlastDoor/Blackhole configuration
- [ ] Audit CryptoTokenKit entitlements
- [ ] Enable runtime attestation for CTK
- [ ] Monitor parser telemetry for anomalies
- [ ] Harden wireless stack inputs
- [ ] Review PAC gadget availability
- [ ] Implement defense-in-depth isolation
When analyzing iOS exploitation chains, consult:
Remember: Understanding these attack chains helps defenders build better protections. Use this knowledge responsibly to improve iOS security posture, not to exploit devices.
testing
How to perform a House of Lore (small bin attack) heap exploitation. Use this skill whenever the user mentions heap exploitation, small bin attacks, fake chunks, glibc heap vulnerabilities, or needs to insert fake chunks into small bins for arbitrary read/write. Trigger for CTF challenges involving heap corruption, glibc 2.31+ exploitation, or when the user needs to bypass malloc sanity checks using fake chunk linking.
testing
How to perform House of Force heap exploitation attacks. Use this skill whenever the user mentions heap exploitation, House of Force, top chunk manipulation, arbitrary memory allocation, malloc manipulation, or wants to allocate chunks at specific addresses. Also trigger for CTF challenges involving heap overflows, top chunk size overwrites, or when the user needs to calculate evil_size for heap attacks. Make sure to use this skill for any binary exploitation task involving glibc heap manipulation, even if they don't explicitly say "House of Force".
tools
How to perform House of Einherjar heap exploitation to allocate memory at arbitrary addresses. Use this skill whenever the user mentions heap exploitation, glibc heap attacks, arbitrary memory allocation, off-by-one overflow exploitation, tcache poisoning, fast bin attacks, or any CTF challenge involving heap manipulation. This is essential for binary exploitation tasks where you need to control malloc() return addresses.
testing
How to identify, analyze, and exploit heap overflow vulnerabilities in binary exploitation challenges and real-world scenarios. Use this skill whenever the user mentions heap overflows, memory corruption, heap grooming, tcache poisoning, fast-bin attacks, or any heap-related vulnerability in CTF challenges, binary analysis, or security research. This skill covers heap overflow fundamentals, exploitation techniques, heap grooming strategies, and real-world CVE analysis.