Repository navigation
Releases
Releases · rorkai/rork-hook
0.3.1
0.3.0
- Add
RorkHookReplaceFunctionWithSizeso callers can validate the available prologue length before installing a destructive arm64 detour. - Harden Mach-O, dyld shared-cache, symbol-table, and arm64 instruction parsing with bounded reads, overflow checks, and deterministic malformed-input failures.
- Preserve original page protections during protected pointer writes and correctly balance TPRO write-window state.
- Harden image-local and global rebinding for authenticated arm64e slots, future image loads, and loader-lock-safe filtering.
- Add production C coverage thresholds, strict warning and sanitizer gates, downstream Swift 5 consumer builds, and a Tuist-generated physical-device harness.
0.2.0
Changes
- Require a Swift 6.0 or newer toolchain and compile Swift targets in Swift 6 language mode.
- Preserve the exported C ABI, supported platforms, and deployment targets.
- Keep the downstream smoke client in Swift 5 language mode to verify consumer compatibility.
- Query the host VM page size through
getpagesize()in tests instead of reading Darwin's mutablevm_page_sizeglobal.
Full Changelog: 0.1.4...0.2.0
0.1.4
- Resolve symbol-pointer section addresses with
getsectiondatainstead of
section->addr + __TEXT slide. In the dyld shared cache,__TEXTand the
data segments are split into separate regions with different offsets, so the
__TEXTslide does not apply to a data section's link-time address and the
computed pointer landed in an unmapped cache hole — faulting (SIGBUS /
KERN_PROTECTION_FAILURE) while rebinding shared-cache images.getsectiondata
returns the correct mapped address and size for both cache and on-disk images.
0.1.3
- Re-sign rewritten
__auth_gotslots with the IB (process-independent code)
key instead of IA, matching the arm64e authenticated-GOT ABI. Signing with IA
produced a pointer the call site could not authenticate, crashing when the
rebound symbol was first called. Also restores theptrauth_auth_function
slot read (reverting the 0.1.2 strip change).
0.1.2
- Fix SIGBUS during global symbol rebinding on FPAC-capable arm64e devices
(A17/A18 and later).RorkHookRebindSectionauthenticated every__auth_got
slot withptrauth_auth_function, which faults under FPAC when a foreign slot
is signed under a scheme other than IA + address diversity. Strip the
signature for the slot comparison instead; matching slots are still re-signed
correctly when rewritten.
0.1.1
- Fix intermittent SIGBUS in
RorkHookStoreProtectedPointeron arm64e devices.
The TPRO write window is now opened whenever the device supports TPRO, not
only whenvm_protectfails, so stores into TPRO-hardened shared-cache
__DATA_CONST/__AUTH_CONSTslots no longer fault whenvm_protectreports
success.
0.1.0
Changes
- Add the source-only
RorkHookSwiftPM product. - Export the public C ABI used by Swift, Objective-C, Objective-C++, C, and C++ clients.
- Add version probes through
RorkHookVersion()andRorkHookABIVersion(). - Add host-runnable Swift tests for deterministic helpers and safe fallbacks.
- Add correctness coverage for arm64 decoding, protected memory writes, loaded image symbol lookup, and image-local rebinding.
- Add downstream SwiftPM smoke tests and CI.