low · M8 · MASVS-PLATFORM-1 · PTKD-CFG-CUSTOMPERM
Custom permission with a weak protection level
A custom permission is declared with a normal/dangerous protection level, so any installed app can be granted it, weak protection for whatever it guards.
How it is exploited
A custom permission with protectionLevel normal or dangerous can be requested by any third-party app. Anything you guarded with it (providers, services) is effectively open to apps the user happens to install.
Why it matters
Internal interfaces believed to be private are callable by other apps, leaking data or triggering privileged actions.
How to fix it
- Set android:protectionLevel="signature" so only your own signing key can hold the permission.
- Audit which components are guarded by the permission and what they expose.
Does your app have this?
PTKD checks your build or your source project for PTKD-CFG-CUSTOMPERM and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen