high · M7 · MASVS-CODE-4 · PTKD-REVIEW-REMOTE-CODE
Framework that downloads and runs code after review
The app includes a hot-patch framework that downloads code and runs it after App Review. Apple rejects and has removed apps for this (JSPatch, Rollout). It is also a remote-code-execution channel if its server or transport is compromised.
How it is exploited
A hot-patch SDK downloads a script at launch and swaps method implementations. Apple scans for these frameworks; separately, anyone who can tamper with the patch server or its TLS can run code in every installed copy.
Why it matters
Rejection or removal under 2.5.2, and a remote-code-execution path into the app.
How to fix it
- Remove the SDK and its runtime.
- Ship native fixes through App Review (expedited review exists for critical bugs).
- Limit OTA updates to JavaScript bundles through Expo Updates/CodePush, signed, within Apple's rules.
Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-REMOTE-CODE and every other check in this knowledge base.
Scan your appReferences
Related checks (M7)
- Executable built without stack canaries
- iOS binary is not encrypted (cryptid = 0)
- Executable is not position-independent (no PIE/ASLR)
- On-device cryptocurrency mining code
- iOS build is debuggable (get-task-allow = true)
- Debuggable release (get-task-allow in code signature)
- Source maps shipped inside the app
- Large DEX code without R8 shrinking and obfuscation