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

    1. Re-sign the shipped binary with a distribution profile; get-task-allow must be false or absent for release.
    2. 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 app

    References

    Related checks (M7)