tr4mpass/26.3-vulnerability.md
tr4m0ryp ee4e7c56fd chore: remove research workspace from public tool repo
Moves the iOS 26.3+ research materials (captive_portal/, vulnhunt/,
plus untracked submission/, bounty/, notes/, tasks/, .irecovery) out
of the public tr4mpass tool repository into a separate private
research workspace.

This repo now contains only what is needed to build and run the
public tr4mpass tool: src/, include/, Makefile, start.sh, README.md,
26.3-vulnerability.md.

Updates .gitignore to drop the obsolete entries for the moved
directories and add tr4mpass + .irecovery.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 18:57:36 +02:00

15 KiB

iOS 26.3 Bypass Research

Status: ACTIVE RESEARCH -- Live device testing completed 2026-04-06. Multiple attack vectors tested on iPad8,10 (A12Z) iOS 26.3.

Last updated: 2026-04-06


Live Device Testing Results

Device Under Test

  • Model: iPad Pro 11-inch (2nd gen, Cellular) -- iPad8,10
  • Chip: A12Z Bionic (CPID: 0x8027)
  • iOS: 26.3
  • UDID: 00008027-001C484C3A62802E
  • Serial: DMPC20KDPV13
  • IMEI: 356622100389197

What Apple Changed in iOS 26.2+

Factory Activation Commands REMOVED

The most critical change: Apple completely removed the factory activation code path from mobileactivationd on iOS 26.2+. The following commands existed on iOS 26.1 but return "Received unknown command" on iOS 26.3:

  • CreateTunnel1FactoryActivationInfoRequest
  • CreateFactoryActivationInfoRequest
  • HandleFactoryActivationInfoRequest
  • FactoryActivateRequest
  • DeactivateRequest

This is what broke Checkm8.info and iRemoveTools. They used the factory activation path (FActivation / createFActivationInfo), which no longer exists.

Only 6 Commands Remain on iOS 26.3

Brute-force enumeration of 1,800+ command names confirmed only these work:

  1. GetActivationStateRequest -- returns "Unactivated"
  2. CreateTunnel1SessionInfoRequest -- returns CollectionBlob + HandshakeRequestMessage
  3. CreateActivationInfoRequest -- fails (DRM session locked)
  4. HandleActivationInfoRequest -- accepts Value, validates nonce
  5. HandleActivationInfoWithSessionRequest -- accepts Value + headers, validates nonce
  6. DeactivateRequest -- returns {} (already unactivated)

Activation Nonce Enforcement

Every activation attempt returns "Invalid activation nonce" (Error Code -1). The nonce is generated by the FairPlay DRM engine inside mobileactivationd. The DRM session refuses to establish on iCloud-locked devices because the FairPlay engine checks the lock status LOCALLY before generating the nonce.


USB Attack Vectors Tested

Activation Protocol (all failed -- nonce barrier)

Attempt Result
HandleActivationInfoRequest with crafted record Code -1: Invalid activation nonce
HandleActivationInfoWithSessionRequest + headers Code -1: Invalid activation nonce
FDR-LOCAL signed activation record Nonce check happens before cert validation
Host-key signed activation record Same nonce error
Escrow bag as activation credential Same nonce error
Personalization nonce as activation nonce Wrong crypto domain
activate_with_session (pymobiledevice3) Accepted silently, state unchanged
set_value ActivationState "Activated" Accepted, overridden by mobileactivationd
drmHandshake with real Apple + session blob Apple returns 200, device: "Invalid input" (DRM locked)
Full Apple proxy (handshake + activation) Apple returns buddyml (iCloud login form)

Filesystem Manipulation (AFC -- sandboxed)

Attempt Result
Write SkipSetup to /iTunes_Control/iTunes/ Written, ignored after reboot
Write SetupDone to /iTunes_Control/iTunes/ Written, ignored after reboot
Write .mobileconfig profiles Written, not auto-installed
Write WiFi configuration plist Written, not processed
Write crafted downloads.28.sqlitedb (bookassetd exploit) Written, not processed on 26.3
Write BLDatabaseManager.sqlite Written, not processed on 26.3
AFC path traversal (../, absolute, encoded) Blocked (status 7/8)
Symlink creation to outside sandbox Blocked (status 15)

Lockdownd Flag Manipulation

25 out of 27 flags set and verified persistent across reboot:

Domain Key Value Persists
default allow-hactivation True Yes
default DisableHactivation True Yes
default IsProtoDevice True Yes
default FactoryDevice True Yes
default InternalBuild True Yes
default FDRForceLegacySigning True Yes
default FDRSkipSealing True Yes
default TrustedHostAttached True Yes
com.apple.mobile.iTunes SetupComplete True Yes
com.apple.mobile.iTunes BuddySetupComplete True Yes
com.apple.purplebuddy SetupState Finished Yes
com.apple.purplebuddy buddyComplete True Yes
com.apple.purplebuddy SkipSetup True Yes
com.apple.mobile.data_sync BuddyComplete True Yes
com.apple.MobileActivation allow-hactivation True Yes

None of these flags affect the activation state. mobileactivationd reads the SEP state, not lockdownd key-value pairs. The hactivation and factory flags are only read by restored_external during DFU restore flows.

Recovery Mode

Attempt Result
setenv activation-related NVRAM vars Accepted, don't survive A12+ boot
setenv boot-args skip-activation=1 Accepted, no effect
Capture NONC/SNON nonces Successful
Roll personalization nonce Successful (different crypto domain)

Other Vectors

Attempt Result
Boot timing race (200 rapid activations) All rejected atomically
mobileactivationd fuzzing (500KB payloads) No crashes, graceful error handling
Notification proxy activation signals Accepted, no state change
Device pairing + trust tap Paired, no new services unlocked
Escrow bag keybag unlock No useful keybag on first-boot device
Developer mode enable Blocked on locked device
mobile_image_mounter queries Service available, no images mountable

Firmware Analysis Discoveries

FDR-LOCAL Private Keys (Extractable from IPSW)

Apple's FairPlay Data Recovery local signing keys are embedded in libFDR.dylib on the restore ramdisk. Extractable with strings command from any publicly downloadable IPSW.

  • RSA-2048 Private Key -- CN=FDR-LOCAL-V1, O=Apple Inc., OU=CoreOS
  • ECDSA P-256 Private Key -- CN=FDR-LOCAL, O=Apple Inc., OU=Devices
    • Signed by FDR-CA1-ROOT-LOCAL, valid 2022-2032

Both keys verified valid with OpenSSL. Identical across both ramdisks in the same IPSW (universal, not per-device).

Functions using these keys: AMFDRCryptoCreateLocalSignedCertificateData, AMFDRCryptoCreateLocalSignedFDRCertificateData, AMFDRCryptoCreateLocalSignedDataSignature.

Impact: Records signed with these keys are accepted by the activation daemon (no format error), but the activation nonce check happens BEFORE certificate chain validation, so the nonce barrier must be overcome first.

Hactivation Flags in restored_external

The restore daemon (restored_external on the ramdisk) contains:

  • DisableHactivation -- disable hacktivation checks
  • allow-hactivation -- allow hacktivation
  • [TEST] Apple iPhone Activation -- test activation certificate
  • FDRForceLegacySigning -- force legacy signing path
  • FDRSkipSealing -- skip FDR sealing
  • FillmoreBypassOTDataPersist -- bypass flag

These are only read during DFU restore flows, not by the normal mobileactivationd on the running iOS system.

Kernel Analysis (59MB Mach-O arm64e extracted from IPSW)

  • AppleKeyStoreTestUserClient exists in kernel (test IOKit interface)
  • IOCommandGate race condition surface (CVE-2026-20687 target)
  • mobileactivationd paths referenced in kernel
  • Kernel exploit cannot be triggered over USB (needs code execution first)

WiFi Captive Portal Attack (Partially Successful)

What Worked

  1. DNS interception -- Python DNS server on port 53 intercepts all Apple domain queries from the iPad. captive.apple.com, albert.apple.com, mesu.apple.com all resolve to our server IP (192.168.2.106).

  2. HTTP captive portal -- iPad probes http://captive.apple.com/hotspot-detect.html over plain HTTP. Our server returns a non-"Success" response. iOS WebSheet opens automatically on the activation lock screen.

  3. JavaScript execution in WebSheet -- Our HTML page with embedded JavaScript executes inside WebSheet on the activation-locked iPad. Confirmed by XHR callback to our server containing device info:

    {
      "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15",
      "url": "http://captive.apple.com/hotspot-detect.html",
      "screen": "834x1194"
    }
    

    JavaScript runs on EVERY reboot when the iPad reconnects to the WiFi network.

  4. HTTPS connection attempts -- After captive portal check, the iPad attempts HTTPS connections to albert.apple.com:443 (our server). TCP handshake completes, TLS ClientHello sent, ~1.5KB of data exchanged.

What Failed

  1. HTTPS certificate validation -- iOS rejects our self-signed certificate for albert.apple.com. The iPad sends RST after TLS handshake, closing the connection. Apple uses certificate pinning on activation endpoints.

  2. Profile installation from WebSheet -- Clicking the profile download link in WebSheet returns "fout bij laden pagina" (page loading error). WebSheet on the activation lock screen cannot install configuration profiles despite having the com.apple.managedconfiguration.profiled-access entitlement.

  3. JavaScript URL scheme escape -- URL schemes (prefs:, App-prefs:, diags://, legacy-diagnostics://) attempted via iframe injection. No observable effect on the device (schemes likely blocked in WebSheet sandbox).

The Remaining Barrier: HTTPS Certificate Pinning

The iPad makes activation requests over HTTPS to albert.apple.com:443. iOS certificate-pins this endpoint. Our self-signed certificate (even signed by our Root CA) is rejected during TLS handshake. Without being able to MITM the HTTPS connection, we cannot serve fake activation responses.

To overcome this, one of the following would be needed:

  • A WebKit RCE exploit to escape WebSheet and install the Root CA programmatically
  • An HTTP (non-HTTPS) activation endpoint
  • A way to disable certificate pinning from within WebSheet's JavaScript context
  • A vulnerability in iOS's TLS implementation

Services Available on Activation-Locked iPad8,10 iOS 26.3

Service Available Notes
com.apple.mobileactivationd Yes 6 commands only
com.apple.afc Yes Read/write to /var/mobile/Media/
com.apple.mobile.diagnostics_relay Yes Reboot, shutdown, sleep
com.apple.syslog_relay Yes Live system logs
com.apple.pcapd Yes Network packet capture
com.apple.crashreportcopymobile Yes Crash log access
com.apple.mobile.mobile_image_mounter Yes No images mountable
com.apple.mobile.notification_proxy Yes Send/receive notifications
com.apple.os_trace_relay Yes OS trace logs
com.apple.mobile.heartbeat Yes Keepalive
com.apple.afc2 No Root filesystem blocked
com.apple.mobile.MCInstall No Profile installer blocked
com.apple.webinspector No Web inspector blocked
com.apple.mobile.installation_proxy No App installer blocked
com.apple.misagent No Blocked

Captured Data

Captured during research (not in this repo -- moved to the private research workspace):

  • Apple's real drmHandshake response (serverKP, FDRBlob, SUInfo, HandshakeResponseMessage)
  • Device session blobs (CollectionBlob 26KB, HandshakeRequestMessage 21B)
  • Device nonces from recovery mode (NONC, SNON)
  • JavaScript callback data from WebSheet (user agent, screen size, URL)
  • IngestBody JSON (serial, IMEI, UDID, productType, scrt-part2, pcrt crypto blobs)

Potential Paths Forward

Path 1: WebKit RCE via Captive Portal (Highest Potential)

We have JavaScript execution in WebSheet. If a WebKit vulnerability exists on iOS 26.3 that can be triggered from JavaScript, we could achieve code execution in the WebSheet process. From there:

  1. Use WebSheet's profiled-access entitlement to install Root CA
  2. With Root CA trusted, MITM albert.apple.com HTTPS
  3. Serve crafted activation response
  4. Or: use opensensitiveurl entitlement to launch unsandboxed diagnostics app

CVEs to investigate: CVE-2026-20698 (kernel, patched 26.4), CVE-2026-20687 (kernel IOCommandGate UAF, patched 26.4) -- both exist on 26.3 but need WebKit entry point first.

Path 2: HTTP Activation Endpoint Discovery

If Apple has ANY activation-related endpoint that accepts HTTP (not HTTPS), we can inject responses without the certificate pinning barrier. The captive portal detection itself uses HTTP -- there may be other setup-phase endpoints that haven't been upgraded to HTTPS-only.

Path 3: TLS Downgrade Attack

During the captive portal phase, iOS may temporarily relax TLS validation to allow authentication with arbitrary hotspot login pages. If this relaxation window can be extended or exploited, HTTPS MITM might be possible during the transition from captive portal to activation.

Path 4: Firmware Diff (iOS 26.1 vs 26.3)

Obtain the iOS 26.1 IPSW and diff mobileactivationd against 26.3. The exact nonce check Apple added would be visible in the binary diff. This might reveal a bypass condition or code path that skips the nonce.


Background: Why Current Methods Fail

tr4mpass implements two bypass paths for iCloud activation lock removal:

  • Path A (A5-A11): DFU -> checkm8 BootROM exploit -> jailbreak -> NVRAM unlock -> local activation record injection.
  • Path B (A12+): DFU -> identity manipulation -> drmHandshake session mode activation protocol.

Both fail on iOS 26.2+ due to four hardened security layers:

  1. Server-mandatory activation -- device requires server-signed cert
  2. MEID-based record signing -- records must be signed with device MEID
  3. Secure Enclave activation state -- stored in SEP, not modifiable
  4. Code signing persistence -- AMFI kills unsigned binaries

VU#346053: XML Payload Injection

Status

Unpatched as of April 2026. The vulnerability in humb.apple.com/humbug/baa accepts unauthenticated XML payloads without signature validation.

Our Testing

The captive portal + DNS interception works. The iPad resolves humb.apple.com to our server. However, the endpoint uses HTTPS with certificate pinning, so we cannot currently inject payloads. The VU#346053 PoC likely worked on iOS 18.5 because the researcher had a way to bypass the TLS layer (possibly via proxy with installed certificate on an unlocked device).

References

Source URL
VU#346053 PoC https://github.com/JGoyd/iOS-Activation-Flaw
Full Disclosure https://seclists.org/fulldisclosure/2025/Jun/27
GBHackers analysis https://gbhackers.com/apple-ios-activation-flaw-enables-injection/
Apple activation endpoint https://humb.apple.com/humbug/baa
DRM handshake endpoint https://albert.apple.com/deviceservices/drmHandshake
gaster (checkm8 in C) https://github.com/0x7ff/gaster
go-ios (activation protocol) https://github.com/danielpaulus/go-ios
pymobiledevice3 https://github.com/doronz88/pymobiledevice3