Files
zqxwceandClaude Fable 5 fdf9487bfd kernel-jb: Add opt-in Frida Stalker kernel patches
Two narrowly-scoped patches, emitted only under the Frida opt-in:

- thread_set_state: clear TSSF_CHECK_ENTITLEMENT in the thread_set_state user
  setters (mov w6,#0x201 -> #0x1) so Frida can follow an existing thread without
  a GUARD_TYPE_MACH_PORT kill, while preserving TSSF_TRANSLATE_TO_USER and the
  TH_IN_MACH_EXCEPTION guard.
- vm_map_delete: retarget the immutable-code exception from current-protection
  execute (bit 9) to max-protection execute (bit 13) so a debugger-created
  RW/max-RWX permanent mapping survives repeated VM_PROT_COPY re-instrumentation
  instead of returning KERN_PROTECTION_FAILURE.

Both matchers are semantic (entitlement-string / developer-mode / call-flow
anchored, no hardcoded offsets/VAs/registers/bytes) and fail closed; replacement
bytes come from ARM64Encoder and are Capstone-verified.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-12 11:40:24 +03:00
..