high · M7 · MASVS-RESILIENCE-4 · PTKD-IOS-ENT-GET-TASK-ALLOW
Debuggable release (get-task-allow in code signature)
The binary's code-signature entitlements grant get-task-allow, so a debugger can attach and read process memory at runtime. Release builds must not carry this entitlement.
How it is exploited
The shipped binary's real code-signature entitlements grant get-task-allow, so on a connected machine any process can attach a debugger to the running app, dump its memory, swizzle methods, and lift live tokens. This reads the signature itself, not just the provisioning profile, so it catches builds an ad-hoc profile would hide.
Why it matters
A distributed build keeps its development anti-debugging posture, so the platform's runtime protection baseline is simply off for every user.
How to fix it
- Re-sign the shipped binary with a distribution profile; get-task-allow must be false or absent for release.
- Verify with: codesign -d --entitlements :- YourApp.app and confirm get-task-allow is not present.
Does your app have this?
PTKD checks your build or your source project for PTKD-IOS-ENT-GET-TASK-ALLOW 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)
- Source maps shipped inside the app
- Large DEX code without R8 shrinking and obfuscation
- Framework that downloads and runs code after review