ios-exploiting

Analyzes iOS kernel, WebKit, and sandbox exploitation techniques with mitigation bypass methods.

1.7k|238|Updated Dec 7, 2019
One-click install
npx skills add https://github.com/wgpsec/AboutSecurity --skill ios-exploiting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-exploiting
Source: https://github.com/wgpsec/AboutSecurity/tree/main/skills/mobile/ios-exploiting
Command: npx skills add https://github.com/wgpsec/AboutSecurity --skill ios-exploiting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Security researchers studying iOS internals lack a structured methodology for analyzing system-level vulnerabilities, from kernel heap exploitation to WebKit renderer compromise and PAC bypass, forcing them to piece together fragmented public research.

Core Features & Use Cases

  • Kernel Exploitation Methodology: Covers heap feng shui, kalloc_type isolation, freelist poisoning, IOSurface physical UAF, and kernel read/write primitive construction across old and modern iOS versions.
  • Full Exploit Chain Analysis: Documents WebKit JIT bugs, sandbox escape paths, PAC bypass techniques (dlsym, SLOP, signing gadgets), and PPL/SPTM bypass strategies.
  • Real-World CVE Case Studies: Walks through known exploit chains such as Intellexa Predator, FORCEDENTRY, and Operation Triangulation, plus a mitigation evolution matrix from code signing to EMTE/MIE.
  • Use Case: A researcher analyzing a patched iOS kernel vulnerability uses the BinDiff workflow to locate the patched function, then follows the heap layout guidance to assess exploitability on iOS 15+ with kalloc_type protections.

Quick Start

Ask the agent to explain how to build a kernel read/write primitive from an IOSurface UAF on iOS 16, including which mitigations must be bypassed.

Frequently Asked Questions about ios-exploiting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract and analyze the iOS kernelcache for vulnerability research?

Download the target IPSW from ipsw.me, unzip it, and decrypt the kernelcache using img4tool or jtool2. Load the result into Ghidra as ARM64/AARCH64 for function and symbol analysis, then use BinDiff to compare vulnerable and patched versions.

What is the difference between Corellium and a jailbroken device for iOS kernel research?

Corellium provides cloud-based iOS virtualization with kernel debugging, snapshots, and multi-version support, making it the highest-value research environment. Jailbroken devices via checkra1n work only on A11 and below and cannot debug kernel boot.

How does kalloc_type change iOS kernel heap exploitation on iOS 15 and later?

kalloc_type isolates allocations by both type and size, so attacker-sprayed objects like OSData can no longer sit adjacent to targets like ipc_port. Combined with XOR-encoded freelist pointers and per-CPU caches, classic heap feng shui and freelist poisoning no longer work directly.

What techniques bypass PAC on iOS user-space targets?

User-space PAC bypasses reuse pre-signed pointers from the dyld shared cache, call dlsym to obtain A-key signed function pointers, or exploit ObjC runtime structures via SLOP (SeLector Oriented Programming). Kernel PAC bypass generally requires implementation bugs, as no generic method exists.

Why is PPL a barrier even after achieving kernel read/write on iOS?

PPL (Page Protection Layer) protects page tables, trust caches, and entitlement data so that even kernel read/write cannot modify them. Known bypasses include TLB stale entry tricks or bugs in PPL code itself, with SPTM replacing PPL on newer chips.

What are the limitations of iOS exploit research on A19 and newer devices?

A19 devices add EMTE/MIE memory tagging, which detects UAF, heap overflow, and out-of-bounds access synchronously with confidential tags. This raises exploitation difficulty to the highest level, requiring tag collision or leakage strategies that remain largely open research problems.