Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Enable A2/C23/C24 JB kernel patches in runtime dispatcher

Lakrdb5a2886faf0
diff --git a/research/patch_comparison_all_variants.md b/research/patch_comparison_all_variants.md
index af44588b..90a7a427 100644
--- a/research/patch_comparison_all_variants.md
+++ b/research/patch_comparison_all_variants.md
@@ -227,6 +227,10 @@ keystone/capstone-encoded instructions only.
All 24 kernel JB patch methods are implemented in `scripts/patchers/kernel_jb.py`
with capstone semantic matching and keystone-generated patch bytes only:
+- Runtime dispatch status: `KernelJBPatcher.find_all()` now enables the full A1-C24
+ set (including A2/C23/C24), so JB patch application matches the documented 34
+ JB-only kernel patches.
+
**Group A: Core patches**
1. `AMFIIsCDHashInTrustCache` function rewrite
diff --git a/scripts/patchers/kernel_jb.py b/scripts/patchers/kernel_jb.py
index f967eeea..e9c9b226 100644
--- a/scripts/patchers/kernel_jb.py
+++ b/scripts/patchers/kernel_jb.py
@@ -57,11 +57,9 @@ class KernelJBPatcher(
def find_all(self):
self.patches = []
- # Commented patches are broken to boot into panic.
-
# Group A: Existing patches
self.patch_amfi_cdhash_in_trustcache() # A1
- # self.patch_amfi_execve_kill_path() # A2 (PANIC)
+ self.patch_amfi_execve_kill_path() # A2
self.patch_task_conversion_eval_internal() # A3
self.patch_sandbox_hooks_extended() # A4
@@ -86,8 +84,8 @@ class KernelJBPatcher(
# Group C: Complex shellcode patches
self.patch_cred_label_update_execve() # C21
self.patch_syscallmask_apply_to_proc() # C22
- # self.patch_hook_cred_label_update_execve() # C23 (PANIC)
- # self.patch_kcall10() # C24 (NOT_BOOT)
+ self.patch_hook_cred_label_update_execve() # C23
+ self.patch_kcall10() # C24
return self.patches