Always-on WebKit JIT mitigation for jailbroken iOS 15 and later.
Kakushin disables JavaScript JIT compilation at the WKProcessPoolConfiguration level. This removes one of the entry primitives used by iOS spyware chains that start with a JavaScriptCore RCE, such as the chains documented by Google and iVerify in 2026 (Coruna and DarkSword). Both rely on JIT-compiled code to build the type confusion primitives that lead to memory corruption.
Kakushin is a small, always-on protective layer. It is not a full security solution and it does not replace OS updates or Apple LockDown Mode.
- Always on. No settings screen, no toggle.
- Hooks both the public WKProcessPoolConfiguration and the private _WKProcessPoolConfiguration.
- Forces setJITEnabled:NO on every pool configuration and blocks any later attempt to turn JIT back on.
- Surrounded by respondsToSelector: guards. If Apple ever drops the SPI, the hook no-ops instead of crashing the WebKit process.
- No preference bundle, no sandbox profile dependencies.
- When a process pool configuration is initialized, Kakushin immediately sends setJITEnabled:NO.
- The setter is hooked on both pool configuration classes, so any caller that tries to re-enable JIT gets its argument forced to NO.
- The extension is injected into every process that loads WebKit.framework, covering Safari, SafariViewService, WKWebView host apps, and the WebKit daemons.
- Jailbroken iOS 15 or later, rootless layout (ElleKit compatible).
- The filter uses Bundles matching against loaded bundles, which most Substrate-compatible loaders support.
Requires clang and ld64.lld (LLVM) on the host.
./build.sh
This produces:
build/dev.frostynxth.kakushin_1.0.0_iphoneos-arm64.deb
The output dylib is arm64, links with undefined symbols so it resolves objc_msgSend, objc_getClass, sel_registerName, and MSHookMessageEx from the running process at load time. No Apple SDK headers are needed to build.
src/Kakushin.m the hook code
DEBIAN/control package metadata
layout/var/jb/Library/MobileSubstrate/DynamicLibraries/Kakushin.plist
build.sh build script
dpkg -i dev.frostynxth.kakushin_1.0.0_iphoneos-arm64.deb
or install through Sileo or Zebra, then respring. Protection is active immediately.
- Only removes the WebKit JavaScript JIT vector. Later chain stages (sandbox escape, PAC bypass, kernel privesc) are outside its scope.
- Disabling JIT makes JavaScript-heavy sites noticeably slower and breaks WebAssembly-backed content.
- On iOS 16 and later the reliable way Apple gives to disable JIT is LockDown Mode. Kakushin extends the pool-level knob on top of that, but an up-to-date OS plus LockDown Mode is the stronger baseline.
Security research on the spyware chains that open with a JavaScriptCore RCE.
- Google Threat Intelligence Group: "The Proliferation of DarkSword: iOS Exploit Chain Adopted by Multiple..." https://cloud.google.com/blog/topics/threat-intelligence/darksword-ios-exploit-chain
- Cloud Security Alliance: "DarkSword: Full-Chain iOS Zero-Day Exploitation by State Actors" https://labs.cloudsecurityalliance.org/research/csa-research-note-darksword-ios-fullchain-zeroday-multiactor/
- Lookout: "DarkSword Exploit Kit" https://security.lookout.com/threat-intelligence/article/darksword-exploit-kit
- BleepingComputer: "New DarkSword iOS exploit used in infostealer attack on iPhones" https://www.bleepingcomputer.com/news/security/new-darksword-ios-exploit-used-in-infostealer-attack-on-iphones/
- SecurityWeek: "'DarkSword' iOS Exploit Kit Used by State-Sponsored Hackers, Spyware Vendors" https://www.securityweek.com/darksword-ios-exploit-kit-used-by-state-sponsored-hackers-spyware-vendors/
- WebKit Bug 191822: Add SPI to disable JavaScript JIT for a WebView (the API this tweak forces) https://bugs.webkit.org/show_bug.cgi?id=191822
CVEs chained by DarkSword. The two that require a JIT-enabled engine are CVE-2025-31277 and CVE-2025-43529.
- CVE-2025-31277 JavaScriptCore memory corruption, JIT optimization/type confusion. Patched in iOS 18.6.
- CVE-2025-43529 JavaScriptCore use-after-free in the DFG JIT. Patched in iOS 18.7.3 / 26.2.
- CVE-2026-20700 dyld PAC/TPRO bypass. Patched in iOS 26.3.
- CVE-2025-14174 ANGLE memory corruption, sandbox escape via the GPU process. Patched in iOS 18.7.3 / 26.2.
- CVE-2025-43510 iOS kernel copy-on-write memory management bug. Patched in iOS 18.7.2 / 26.1.
- CVE-2025-43520 iOS kernel memory corruption, privilege escalation. Patched in iOS 18.7.2 / 26.1.