[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108734":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":29,"discoverSource":30},108734,"iOS-Research","AzozzALFiras\u002FiOS-Research","AzozzALFiras","Static reverse-engineering notes, patch-diffs, and trust-boundary analysis of modern iOS","",null,"C",97,17,75,0,2,21,1,46.87,"Other",false,"main",true,[],"2026-11-19 00:25:26","2026-11-21 23:42:51","# iOS-Research\n\nStatic reverse-engineering notes, patch-diffs, and trust-boundary analysis of modern iOS\nsystem security — **for learning and experimentation**.\n\n**Author:** Azozz ALFiras · [github.com\u002FAzozzALFiras](https:\u002F\u002Fgithub.com\u002FAzozzALFiras)\n\n---\n\n## ⚠️ Purpose & scope (please read first)\n\nThis repository is an **educational security-research notebook**. Its goal is to *understand how\nmodern iOS defends itself* — the monitors (SPTM\u002FTXM), the Secure-Kernel \"exclave\" world, the\nkernel's zone-pointer mitigations, and the media parsers — by reading the shipping firmware and\nwriting down, clearly, how each mechanism works and where its trust boundaries are.\n\n- **Everything here is static analysis of publicly downloadable firmware** (Apple IPSWs) and,\n  where a device is involved, of the author's **own research devices** with the owner's\n  authorization. No third-party systems are touched.\n- **No weaponized exploit, no 0-day, no jailbreak is published here.** Where a vulnerability is\n  discussed, it is either (a) already fixed by Apple in a later release (documented as a\n  patch-diff, the way public security writeups do), or (b) a *trust-boundary observation*\n  (e.g. \"mitigation X assumes attacker does not yet have capability Y\") — not a working attack.\n  The recurring result across this research is, honestly, **\"hardened — no exploitable bug\n  found.\"** That negative result is itself the point: it documents *why* current iOS is hard.\n- The author does this kind of work for **responsible disclosure** (Apple Security Bounty) and\n  for CV \u002F skill development. Nothing in this repo is intended to enable harm to real users or\n  real systems, and it must not be used that way.\n- This is **not** affiliated with or endorsed by Apple. \"iOS\", \"Apple Silicon\", SPTM, TXM, etc.\n  are Apple's.\n\nIf you are from Apple PSIRT and something here concerns you, please open an issue — happy to\nadjust or take it down.\n\n---\n\n## Platform under study\n\n| | |\n|---|---|\n| Device | iPhone 17,2 (A18 Pro-class, arm64e), DeviceTree `d94ap` |\n| iOS builds | 27.0 (24A437), **27.0.1 (24A446)**, **27.2 (24B119)**, **27.3 beta (24C5037i)** |\n| Primary technique | `ipsw` extraction → Ghidra headless decompile → function-body patch-diff → targeted `ipsw macho disass` \u002F REA |\n| SPTM (measured) | `820.0.22` (27.0.1) → `820.40.24` (27.2) → `820.60.12` (27.3β) |\n| TXM (measured) | `txm-374`, **byte-identical** (557,088 B) across all three builds |\n| Also | SK\u002FcL4 exclave kernel; exclave bundle 32.33 → 32.56 → 32.98 MB |\n\n**Three-version trajectory:** 27.0.1 → 27.2 = media + monitor hardening (all confirmed-patched);\n27.2 → 27.3β = feature + recompile, **no** new fix to any tracked surface. The standout\nlive-across-all-three observation is the GMMU-TLBI DeviceTree gating gap (defense-in-depth, public\nprior art). See [`diffs\u002F`](diffs\u002F) for the full 3-way diff with reproducible evidence.\n\nSee [`methodology\u002F`](methodology\u002F) for the full toolchain and the patch-diff pipeline, and\n[`methodology\u002Fverification-guide.md`](methodology\u002Fverification-guide.md) to reproduce any claim.\n\n---\n\n## What's inside\n\n```\nSTATUS.md          Where we got to · open questions · not-yet-reached — the honest map\nSTRUCTURE.md       Folder conventions (how this scales as more iOS versions are added)\nmethodology\u002F       Tooling, the decompile+diff pipeline (+ scripts), and how we PROVE a verdict\n  patch-diff-scripts\u002F   the normalized function-body diff tooling (runnable)\n  proof-methodology.md  how we prove \"road blocked \u002F hardened\" vs \"success \u002F real bug\"\n  verification-guide.md how to reproduce ANY claim from a public IPSW (extraction + gotchas)\ncommon\u002F            Version-agnostic reference (glossary of SPTM\u002FTXM\u002FSPRR\u002FPAN\u002FCTRR\u002Fzone terms)\n27.0.1\u002F            The primary build studied. Each area = README (summary) + reports\u002F + evidence\u002F\n  sptm\u002F            Secure Page Table Monitor: architecture + GL1 attack surface + 6 findings\n  txm\u002F             Code-Signing Monitor: W^X \u002F code-signing enforcement audit\n  exclaves\u002F        Secure-Kernel (cL4) world: bundle teardown, pmm, kernel+PAN, EXSurface, ANE\n  kernel-zone\u002F     zone-pointer validation, proc_task layout, the post-R\u002FW trust boundary\n  iokit-fuzzing\u002F   On-device IOKit fuzzing (code\u002F + experiments\u002F), honest low-yield result\n  media-parsers\u002F   ImageIO \u002F CMPhoto \u002F MediaToolbox zero-click decode surface (static audit)\n27.2\u002F              Landing page: what changed in 27.2 (advisory mapping; findings live in diffs\u002F)\n27.3\u002F              Landing page: 27.3 beta = feature + recompile, no new tracked-surface fix\ndiffs\u002F             Cross-version analysis — START HERE for the 3-version story\n  README.md             the 3-way overview + trajectory + persistence-findings table\n  evidence\u002F             reproducible receipts (sizes, version tags, DeviceTree grep, disasm)\n  27.0.1-to-27.2\u002F       function-body patch-diffs (confirmed-patched bugs, before\u002Fafter)\n  27.2-to-27.3\u002F         feature release; AGXG17P GPU OOB-read fix (live in 27.2\u002F27.0.1, reach pending)\n```\n\nNew to the repo? Read `STATUS.md` (the map), then `methodology\u002Fproof-methodology.md` (how claims are\nproven), then dive into any `27.0.1\u002F\u003Carea>\u002F`. Structure conventions for adding versions: `STRUCTURE.md`.\n\n---\n\n## TL;DR of the findings\n\nA one-paragraph honest summary (full detail in [`STATUS.md`](STATUS.md)):\n\n- **Media parsers (ImageIO\u002FUSD\u002FCoreMedia\u002FCoreGraphics + some kernel kexts):** several memory-safety\n  bugs were precisely reverse-engineered **but all were already patched by Apple in 27.2** (clean\n  patch-diffs with before\u002Fafter). Every variant hunt came back negative → the current media\n  surface is a saturated, well-combed target.\n- **SPTM \u002F TXM monitors:** fully mapped architecturally; six 27.0.1→27.2 hardening changes\n  located. After deep reachability tracing only the T8110 DART concurrency fix held up as a real\n  GL1-runtime bug (already patched); one TLB-verification fix turns out to be DeviceTree-gated-off\n  on this device. No unpatched, bounty-eligible monitor bug confirmed.\n- **Exclaves (first teardown in this project):** the physical-memory manager (C), the cL4\n  micro-kernel, the EXSurface service (Swift) and the ANE compute-program deserializer (C++)\n  were each audited — **all comprehensively hardened.** The most interesting finding is\n  architectural, not a bug: the micro-kernel addresses capabilities by a raw caller pointer with\n  no software bound, and is kept safe purely by **PAN** (Privileged Access Never) + the AP[1]\u002FPAN\n  mutual exclusion.\n- **Kernel zone mitigations:** `zone_id_require` (165 sites) is bypassable *once you already have\n  kernel R\u002FW* (the metadata array is writable), but the real wall — read-only (`ZC_READONLY`)\n  zones holding credentials — holds against **data-only** R\u002FW. That wall is itself only a\n  data-only boundary: it falls to **EL1 code-execution** (the `sprr_pperm_el1` remap is\n  EL1-writable), which is in turn what PAC + CTRR + SPTM exist to prevent.\n\n**Net:** current iOS (27.0.1) is hardened across every surface examined here. The value of this\nrepo is the *map* — the mechanisms, the trust boundaries, and the methodology — not a break.\n\n---\n\n## License\n\nDocumentation and original analysis © Azozz ALFiras, released for educational use\n(see [`LICENSE`](LICENSE)). Firmware, symbol names, and Apple trademarks belong to Apple Inc.\n","这是一个面向 iOS 系统安全研究的静态逆向分析笔记库，聚焦于现代 iOS（iOS 27.x）固件的可信边界分析、安全监控组件（SPTM\u002FTXM）演进对比及内核防护机制（如 zone-pointer 缓解、exclave 架构）的静态解读。项目基于公开可下载的 IPSW 固件，使用 Ghidra 等工具进行无设备依赖的头部分析与多版本补丁差异比对，强调教育性与负责任研究，不包含漏洞利用代码或越狱工具。适用于移动安全研究人员、系统安全学习者及 iOS 底层机制教学场景，帮助理解 Apple 当前防御体系的设计逻辑与实际硬化效果。","2026-11-24 04:35:05","CREATED_QUERY"]