No description
  • Python 96.7%
  • C 3.3%
Find a file
Leeksov 6760e2581e usbliter8ra1n: tethered jailbreak toolkit for A12/A13
Full boot chain coverage:
- iboot_patchfinder: image4 bypass + CTRR NOP + boot-args (17/17 devices)
- sptm_patchfinder: CTRR lockdown bypass (16/16 devices)
- txm_patchfinder: code signing + policy bypass (15/15 devices)
- kernel_patchfinder: 20 kernel targets (17/17 devices)
- SSH ramdisk: dropbear arm64e + trustcache
- orchestrator: RP2350 monitor + PWND DFU + payload loader
- handler.c: extended USB handler with memory read/write

Tested on iOS 17.0 through 27.0 beta, A12X through M1.
Waiting for RP2350 hardware for on-device testing.

For research purposes only.
2026-06-22 04:06:52 +03:00
ramdisk usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
tools usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
usb_req_handler usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
.gitignore usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
BYPASS_MAP.md usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
firmware_keys.json usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
LICENSE usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
RAMDISK_PLAN.md usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
README.md usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
requirements.txt usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00
STATUS.md usbliter8ra1n: tethered jailbreak toolkit for A12/A13 2026-06-22 04:06:52 +03:00

usbliter8ra1n

Tethered jailbreak research toolkit for A12/A13 devices via the usbliter8 BootROM exploit.

Patches every layer of the boot chain: SecureROM → iBoot → SPTM → TXM → Kernel → Userland SSH.

Status: All patchfinders work and are tested. Waiting for RP2350 hardware to test the full chain on device.

Boot Chain

[DFU Mode]
    │
    ├── usbliter8 exploit via RP2350 (~1 sec)
    │
[PWND DFU] ← swap cable to Mac
    │
    ├── usbliter8ctl boot ibss_patched.raw
    │
[Patched iBSS] ← IMG4 bypassed, CTRR unlocked
    │
    ├── loads iBEC from USB
    │
[Patched iBEC] ← boot-args: rd=md0 -v serial=3 debug=0x2014e
    │
    ├── loads SPTM (patched, won't re-lock CTRR)
    ├── loads TXM (patched, code signing disabled) [iOS 27 only]
    ├── loads kernel + devicetree + ramdisk + trustcache
    │
[Patched Kernel] ← 20 security checks bypassed
    │
    ├── mounts ramdisk as root (rd=md0)
    ├── dropbear SSH starts on port 44
    │
[SSH Shell] ← iproxy 2222 44 → ssh root@localhost -p 2222

Tools

Patchfinders (zero hardcoded offsets, pattern-based)

Tool Layer Targets Tested
iboot_patchfinder.py iBoot/iBSS/iBEC image4 bypass + CTRR NOP + boot-args 17/17 devices ✅
sptm_patchfinder.py SPTM ctrr_lock_boot + cpu_lock + determine_ctrr 16/16 devices ✅
txm_patchfinder.py TXM (iOS 27) device_type + policy flags + trustcache + get-task-allow 15/15 devices ✅
kernel_patchfinder.py XNU kernel PE_i_can_has_debugger + AMFI + sandbox + 17 more 17/17 devices ✅

Post-exploit tools

Tool Purpose
usbliter8ctl Extended control tool: serial, info, test, read, write, dump, boot, kbag, pongo
orchestrator.py Unified Mac-side workflow: RP2350 monitor → PWND detect → payload load → PongoOS shell
dfu_probe.py USB DFU research probe: descriptor enum, request sweep, timing analysis
handler.c Extended USB handler with memory read/write/test/AES_GID commands

SSH Ramdisk

File Size Description
ramdisk/ramdisk_ssh.dmg 22 MB Stock iOS 17.0 restore ramdisk + dropbear SSH
ramdisk/dropbear 316 KB arm64e SSH server (cross-compiled, static, port 44)
ramdisk/trustcache.im4p 812 B IM4P-wrapped trustcache v2 for ramdisk binaries

Device Support

usbliter8 exploit targets (A12/A13)

Device Chip Latest iOS Exploit
iPhone XS / XS Max A12 18.7.9 ✅
iPhone XR A12 18.7.9 ✅
iPhone 11 / 11 Pro / 11 Pro Max A13 27.0 beta ✅
iPhone SE 2nd gen A13 27.0 beta ✅
iPad Pro 2018 A12X 27.0 beta ✅ (offsets TBD)
iPad Mini 5 / iPad Air 3 A12 26.5 ✅
iPad 9th gen A13 27.0 beta ✅

What needs patching per iOS version

                iBoot    SPTM    TXM     Kernel
iOS 17.0        ✅       —       —       ✅ (AMFI only)
iOS 18.7.9      ✅       —       —       ✅ (AMFI only)
iOS 26.5        ✅       —*      —*      ✅ (AMFI only)
iOS 27.0 beta   ✅       ✅      ✅      ✅ (AMFI + TXM)

* A15+ has SPTM/TXM on iOS 26.5, but A12/A13 do not

Quick Start

# 1. Extract and patch firmware (example: iPhone 11, iOS 26.5)
python3 tools/iboot_patchfinder.py ibss.raw ibss_patched.raw --mode ibss
python3 tools/iboot_patchfinder.py ibec.raw ibec_patched.raw --mode ibec
python3 tools/kernel_patchfinder.py kernelcache.raw  # find offsets

# For iOS 27 only:
python3 tools/sptm_patchfinder.py sptm.raw sptm_patched.raw
python3 tools/txm_patchfinder.py txm.raw txm_patched.raw

# 2. After usbliter8 exploit (RP2350 → PWND DFU → cable swap)
python3 tools/orchestrator.py monitor          # watch RP2350
python3 tools/usbliter8ctl test                # verify handler
python3 tools/usbliter8ctl boot ibss_patched.raw  # load patched iBSS

# 3. SSH via USB
iproxy 2222 44 &
ssh root@localhost -p 2222

Limitations

  • Tethered — needs RP2350 every reboot
  • SEP not bypassed — no Face ID / Touch ID / Keychain
  • iOS 17+ /var encrypted by SEP — user data not accessible without SEP cooperation
  • AES GID seed bits — may be disabled by SEP before DFU (needs hardware testing)

Full Bypass Map

See BYPASS_MAP.md for the complete diagram of every security check bypassed at every boot stage.

Credits

License

MIT — For research purposes only.