Run a virtual iPhone on an Apple Silicon Mac.
Swift
skip C22
Lakrba52c2274f79
diff --git a/research/kernel_patch_jb/patch_syscallmask_apply_to_proc.md b/research/kernel_patch_jb/patch_syscallmask_apply_to_proc.mdindex 93b7f42e..726918c5 100644--- a/research/kernel_patch_jb/patch_syscallmask_apply_to_proc.md+++ b/research/kernel_patch_jb/patch_syscallmask_apply_to_proc.md@@ -21,11 +21,13 @@- `sub_FFFFFE00093BB92C`- `sub_FFFFFE00093995B4` (profile mask underflow path, not apply function)- `sub_FFFFFE000939961C`-- Real syscallmask cluster around anchor:- - `sub_FFFFFE0009399944`- - `sub_FFFFFE0009399A44`- - `sub_FFFFFE0009399AFC`- - down to `sub_FFFFFE0007B76258` (filter-setter style path)+- Current firmware syscallmask cluster (re-traced):+ - `sub_FFFFFE00093BBBF4` (apply builtin profile path, contains `"com.apple.sandbox.executable"` flow)+ - `sub_FFFFFE00093BFC58` (build/allocate 4 mask slots for sandbox/profile context)+ - `sub_FFFFFE0009399944` (per-slot allocation/validation helper)+ - `sub_FFFFFE00093C2128` (bind/attach flow with type bucket handling)+ - `sub_FFFFFE00093C25B4` (type-bucket lookup/create helper)+ - cleanup chain: `sub_FFFFFE00093BFFF4` -> `sub_FFFFFE0009399894`## IDA MCP evidence- Anchor string: `0xfffffe00075fcec6` (`"syscallmask.c"`)@@ -38,6 +40,8 @@- On current `fw_prepare`-refreshed research kernel, legacy signature check does not pass.- `patch_syscallmask_apply_to_proc` now returns `False` with 0 emitted patches (fail-closed).- Targeted regression check: PASS (no wrong-site patch emitted).+- Branch `patch-fix-C22` currently comments C22 out from `kernel_jb.py` execution list+ (explicit skip while re-targeting is incomplete).## Risk- Patch is currently gated; jailbreak behavior that depends on C22 remains pending re-targeting.diff --git a/research/patch_comparison_all_variants.md b/research/patch_comparison_all_variants.mdindex 9f55cbe4..68b00307 100644--- a/research/patch_comparison_all_variants.md+++ b/research/patch_comparison_all_variants.md@@ -103,7 +103,7 @@ Base-patch verification note (2026-03-05):| 26 | Function rewrite | `AMFIIsCDHashInTrustCache` | Always return true + store hash | — | — | Y || 27 | Shellcode + branch | `_cred_label_update_execve` | Set cs_flags (platform+entitlements) | — | — | Y || 28 | `cmp w0,w0` | `_postValidation` (additional) | Force validation pass | — | — | Y |-| 29 | Shellcode + branch | `_syscallmask_apply_to_proc` | Patch zalloc_ro_mut for syscall mask (legacy-signature gated, fail-closed on mismatch) | — | — | Y |+| 29 | Shellcode + branch | `_syscallmask_apply_to_proc` | Patch zalloc_ro_mut for syscall mask (legacy-signature mismatch on current fw; temporarily skipped) | — | — | SKIP || 30 | Inline trampoline + cave | `_hook_cred_label_update_execve` | vnode_getattr ownership + suid propagation | — | — | Y || 31 | `mov x0,#0; ret` (20+ hooks) | Sandbox MACF ops (extended) | Stub remaining 20+ sandbox hooks | — | — | Y || 32 | `cmp xzr,xzr` | `_task_conversion_eval_internal` | Allow task conversion | — | — | Y |@@ -350,6 +350,7 @@ with capstone semantic matching and keystone-generated patch bytes only:21. `_cred_label_update_execve` cs_flags shellcode22. `_syscallmask_apply_to_proc` filter mask shellcode- 2026-03-05 revalidation: locator now rejects low-confidence matches and panic-target helper resolution (fail-closed on signature mismatch).+ - 2026-03-05 branch `patch-fix-C22`: temporarily commented out in `kernel_jb.py` for safe testing until new target path is re-derived.23. `_hook_cred_label_update_execve` inline trampoline + vnode_getattr shellcode- Code cave restricted to **TEXT_EXEC only (**PRELINK_TEXT excluded due to KTRR)- Inline trampoline (B cave at function entry) replaces ops table pointer rewritediff --git a/scripts/patchers/kernel_jb.py b/scripts/patchers/kernel_jb.pyindex 6d1acbab..65e9ab8d 100644--- a/scripts/patchers/kernel_jb.py+++ b/scripts/patchers/kernel_jb.py@@ -82,7 +82,7 @@ class KernelJBPatcher()_GROUP_C_METHODS = ("patch_cred_label_update_execve", # C21- "patch_syscallmask_apply_to_proc", # C22+ # "patch_syscallmask_apply_to_proc", # C22 (temporarily skipped on current fw)"patch_hook_cred_label_update_execve", # C23"patch_kcall10", # C24)