- Logos 86.1%
- Shell 12.2%
- Makefile 1.7%
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mv4cYzKfvLeyj7JQmDVd3M |
||
|---|---|---|
| .github | ||
| tools | ||
| .gitignore | ||
| control | ||
| LICENSE | ||
| Makefile | ||
| RadarSDKFraudShim.plist | ||
| README.md | ||
| Tweak.x | ||
Radar iOS compromised bypass
The finding in one paragraph
On Android, Radar's compromised signal is anchored by Play Integrity's hardware-backed STRONG verdict, which reflects verified boot — rooting a device generally breaks it. On iOS there is no equivalent. App Attest attests app identity + integrity (unmodified on-disk binary + genuine Apple hardware); it does not attest jailbreak/boot state. Radar therefore gathers compromised_jailbroken from ordinary in-process checks (file paths, canOpenURL:, a fork() sandbox test, a dlopen/dyld injected-library scan). On a jailbroken device that process is attacker-controlled, so those checks can be forged without modifying the binary, Team ID, or bundle ID — which means App Attest still succeeds and trackVerified() returns a server-accepted JWT carrying a false compromised = false. That asymmetry (iOS weaker than Android) is the disclosable weakness.
Why we override the verdict function, not the payload
The fraud payload is bound into the App Attest clientDataHash. Editing the payload after it's built breaks the binding and the server rejects the token. So the PoC overrides the one function that produces the verdict — FraudDetection.isJailbroken() — which runs upstream of payload assembly and attestation. The genuine SDK then builds an already-clean payload and attests over that. The result is a valid attestation over a false signal — which is the whole point. (Overriding the function instead of the underlying stat/fopen/canOpenURL:/fork/dyld primitives is also version-robust: Radar can reshuffle the primitive checks freely, but the verdict still funnels through this one symbol.)
Run
# On regulad-fedora (WSL), from poc/tweak:
make package install THEOS_DEVICE_IP=<ipad-ip>
Launch the harness, trigger trackVerified(), and watch the device log (Console.app / idevicesyslog / oslog):
[RadarSDKFraudShim] isJailbroken() -> forced FALSE
[RadarSDKFraudShim] fraud result (attested as-is) => { ... jailbroken = 0; ... }
Prove the token is actually accepted (this is the real evidence)
A false local boolean means nothing unless the server accepts the JWT. Validate it exactly as your backend would:
// verify.js -> node verify.js "<jwt-from-harness>"
import jwt from 'jsonwebtoken';
const token = process.argv[2];
const secret = process.env.RADAR_JWT_SECRET; // Settings -> Fraud
const decoded = jwt.verify(token, secret); // throws if signature/binding invalid
console.log('signature: VALID');
console.log('passed: ', decoded.passed);
console.log('compromised: ', decoded.user?.fraud?.compromised);
console.log('full payload:', JSON.stringify(decoded, null, 2));
What this does NOT claim (keep the report honest)
- It does not forge App Attest or defeat the Secure Enclave. It shows App Attest is the wrong tool to carry a jailbreak verdict.
- If Radar's server cross-checks something App Attest can see that instrumentation perturbs, some runs may fail — capture those; the delta is itself useful signal for them.
- The
mocked_*(CoreLocationsourceInformation) andsharing_*signals are out of scope here.
The tweak
A single Theos/ElleKit tweak, persistent:
Tweak.x— finds theRadarSDKFraudimage via_dyld_get_image_header(works because__TEXTvmaddr is 0), then resolvesFraudDetection.isJailbroken()by walking the image'sLC_SYMTABat runtime for the mangled name (…12isJailbroken…) andMSHookFunctions every matching body/thunk to returnfalse. No hardcoded offset and no dSYM needed on the device, so it reproduces across SDK versions as long as symbols aren't stripped. A read-onlyMSHookMessageExon-[RadarSDKFraud getFraudPayloadWithOptions:completionHandler:]logs the payload that gets attested. Both installers are idempotent and re-driven from_dyld_register_func_for_add_image, so they fire the instant RadarSDKFraud maps — at launch or later.
Injection & scoping
The filter (RadarSDKFraudShim.plist) injects into every UIKit app, not a specific bundle id, and all work is gated in-process on RadarSDKFraud being present. This is deliberate:
- Triage's harness bundle id is unknown, so we can't filter on it.
- A
Classes: [RadarSDKFraud]filter is evaluated once, at injection time; if RadarSDKFraud is loaded after launch (dynamically, or as a lazily-pulled sub-framework) the filter's pass has already happened and the tweak is never injected — its%ctor/callbacks never run. Broad-inject + in-process gate avoids that entirely.
Trade-off: the tweak is resident in every app but inert unless that process loads RadarSDKFraud — in which case it will force the verdict there. So run this on a dedicated jailbroken test device, not a daily driver, since it would silence the compromised signal in any Radar-fraud app on that device.
Debug diagnostics (non-FINALPACKAGE builds only)
Because the tweak injects broadly but only acts where RadarSDKFraud is present, a debug build (anything not built with FINALPACKAGE=1) emits — gated by -DRADAR_DIAG=1, added automatically by the Makefile — logging to confirm injection and watch for the framework, even in processes where it never activates:
- On load in every injected process:
loaded into '<proc>' (bundle …, pid …), then a one-time snapshot listing every*.frameworkalready mapped and aRadarSDKFraud=… RadarSDK=…presence line. - On each framework mapped after launch (lazy load /
dlopen/ sub-framework):new framework loaded: <path>, re-reporting Radar presence when it's one of Radar's.
This is how you tell "the tweak isn't injecting" apart from "it's injecting but this app never loads Radar." A FINALPACKAGE=1 package strips all of it; only the functional hook lines remain.
Notes:
-
Wholesale replace (
MSHookFunctionreturningfalse) skips the SDK's internalfork()/dyld checks entirely, so there's nothing for its in-function anti-tamper to notice. -
Resolution is build-aware. The symtab walk is tried first (works on unstripped/debug builds); release builds strip the local Swift symbol, so it falls back to a verified offset keyed on the image's Mach-O
LC_UUIDin thekIsJailbrokenOffsetstable (Tweak.x). UUID — not version string — because the version string does not identify a build: every0.0.xbeta reportsCFBundleShortVersionString "1.0"(same as real 1.0.0) across four different offsets, and1.3.0-beta.1reports"1.2.0". TheLC_UUIDis unique per build and readable at runtime. Offsets derived from each build's deviceios-arm64dSYM (__TEXTvmaddr0on all):build UUID symbol offset 1.3.02C0957F1-…1A51Swift …Tf4d_n0x4b181.2.024EB49B1-…8D76Swift …Tf4d_n0xecf01.1.0371E795A-…FC3ASwift …Tf4d_n0x4b181.0.0CA4CC662-…996DObj-C -[RadarSDKFraud isJailbroken]0x46bc1.3.0-beta.15455BDB7-…9B4CSwift …Tf4d_n0xde6c0.0.3-beta.124BA0720-…B976Obj-C 0x46a00.0.2-beta.7/8/9386AF5F8-…8436Obj-C 0x46a00.0.2-beta.6D301048D-…341EObj-C 0x46140.0.1-beta.3..13 / 0.0.2-beta.5405E51B6-…FA70Obj-C 0x4584(
0.0.1-beta.1/2/5/7ship no xcframework asset, so there's nothing to hook.) Through 1.0.0 the check is Obj-C-[RadarSDKFraud isJailbroken]; 1.1.0 refactored it to the SwiftFraudDetection.isJailbroken()static. If the running build's UUID isn't in the table, the tweak logs the UUID + version and refuses to hook (leavingjailbrokentrue) rather than corrupting a guessed address. To add a build: from its.xcframeworkdSYM runllvm-nm --defined-only .../ios-arm64/dSYMs/.../DWARF/RadarSDKFraud | grep -i isJailbroken(take thetcode symbol), confirm__TEXTvmaddr0and readLC_UUIDviallvm-objdump --macho --private-headers, and add{ "<uuid>", 0x<off>, "<label>" }. Thetools/derive_offsets.shhelper does this across every published release. -
ElleKit handles arm64e/PAC on the A12; the third-party harness itself runs arm64, so the arm64 slice does the hooking.
-
roothide already hides many jailbreak paths from apps, so Radar's file-based checks may pass on their own — but the
isJailbroken()override is what guarantees afalseverdict against checks roothide doesn't mask (e.g. thefork()sandbox test, the dyld scan for the injected tweak). Overriding the verdict function is strictly more complete than relying on roothide's hiding.
Suggested remediation to include for Radar
- Treat iOS
compromisedas advisory, not authoritative, and say so in the docs at the same strength as Android. - Where a hardware anchor is required on iOS, there isn't a true jailbreak equivalent — so the honest guidance is defense-in-depth: server-side behavioral/impossible-travel checks, and never gating solely on
compromised. - Bind more instrumentation-sensitive evidence into the attested
clientDataHash, and document the residual in-process trust assumption plainly.
License
Licensed under the GNU Affero General Public License v3.0 — see LICENSE (verbatim FSF text).