Mobile app: class M checklist
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
This page continues Mobile app. Read the main page first. This part holds the audit checklist items for class M.
Audit checklist
+ If it has users, personal data or API keys (M)
- One package manager, lockfile committed
- What: Exactly one package manager is used and enforced; the lockfile is committed; installs are done from the lockfile (for example
--frozen-lockfile). - How to check: Look for a lockfile in the repository and a rule that forbids other managers; check the CI and Docker install commands.
- Evidence: Lockfile path; install command lines.
- What: Exactly one package manager is used and enforced; the lockfile is committed; installs are done from the lockfile (for example
- Store policies were read before coding
- What: The current Google Play and App Store policies (permissions, data safety, privacy details, review guidelines) were read from official pages and the app follows them.
- How to check: Find the policy notes; compare the app’s permissions and data use with the store forms.
- Evidence: Policy note with links and dates; completed store forms.
- Permissions are minimal
- What: Only needed permissions are requested, in context; the system picker is used where it is enough (for example the photo picker instead of full storage access).
- How to check: Read the manifest or Info.plist permission list; check each against a feature.
- Evidence: Permission list with a reason for each.
- Tested on real devices
- What: The release build was tested on real phones (at least one Android and one iOS device if both are shipped), not only emulators.
- How to check: Find the device test record.
- Evidence: Dated test log with device models and OS versions.
- A forced-update mechanism exists
- What: The app can require users to update when a version is unsafe or incompatible with the server.
- How to check: Find the minimum-version check and test it with an old build.
- Evidence: Server setting; test result.
- Secrets use platform secure storage
- What: Tokens and keys are kept in the Keychain (iOS) or Keystore (Android), not in plain files or preferences.
- How to check: Search for token storage code; inspect app files on a test device.
- Evidence: Storage code; file inspection result.
- Network traffic is encrypted and validated
- What: Only HTTPS is used, certificates are validated, and there is no setting that turns certificate checks off.
- How to check: Search for cleartext allowances and custom trust managers.
- Evidence: Search result; network configuration.
- Store privacy declarations match the real data use
- What: The Play Data safety form, the Apple privacy details and the privacy manifest list exactly what the app and its libraries collect.
- How to check: List data collected by the app and each SDK; compare with the forms.
- Evidence: Forms and the data list side by side.
- Target SDK meets the current store requirement
- What: The app targets the API level or SDK version the stores currently require.
- How to check: Read the build file target setting and the store’s current requirement page.
- Evidence: Build file line and the store page date.
- External API keys stay on the server
- What: Third-party API keys (including LLM keys) are kept on the server and never shipped to the browser or app.
- How to check: Search the client bundle and app package for key-like strings; check that client calls go to your own server.
- Evidence: Search result with zero keys in the client build.
- Authentication uses a mature library or service
- What: Login is built with a well-known library or hosted service; no home-made cryptography; passwords are hashed with a current algorithm.
- How to check: Find the login code; check the password hashing function (for example Argon2id, scrypt, bcrypt); search for hand-written crypto.
- Evidence: Library name and version; hashing configuration.
- Permissions are checked on the server
- What: Every action checks who the user is and what they may do on the server; a hidden button is not security.
- How to check: Call each protected endpoint without a session and with the wrong user; read the permission checks in the handlers.
- Evidence: Test names for unauthenticated and wrong-user requests; code lines of the checks.
- Personal data fields are documented
- What: For every personal data field the purpose, retention time and legal basis (KVKK, GDPR) are written down.
- How to check: List the database columns and form fields with personal data; find the matching entries in the data note.
- Evidence: Data note listing each field with purpose, period and basis.
- One deletion schedule covers all data
- What: Every kind of data has a deletion period, collected in one deletion schedule document, and the code implements it.
- How to check: Find the document; for each row find the job or code that deletes the data.
- Evidence: Schedule document and the matching job names.
- Automatic backups with a tested restore
- What: The database is backed up automatically, retention is written down, and a restore has actually been tried.
- How to check: Find the backup job and its schedule; find the record of the last restore test.
- Evidence: Backup schedule, retention setting and dated restore-test record.
- Critical flows have automated tests and a local check
- What: Login, saving data, payment (if any) and permission checks have automated tests; one local command runs the checks before pushing.
- How to check: List the test files; run the check command; look for a git hook that runs it.
- Evidence: Test names and a passing run log.
- Open source licenses are shown
- What: A published app or site shows the name and license of each library (for example Settings → Open source licenses), generated from the lockfile; forbidden licenses fail a check.
- How to check: Find the licenses screen or file and how it is generated; look for a license check in CI.
- Evidence: Generated license list; CI step.
- Accessibility basics meet WCAG 2.2 AA
- What: Correct heading order, text alternatives, enough contrast, keyboard navigation, visible focus, sufficient touch targets, and respect for reduced-motion settings.
- How to check: Tab through every screen; run an automated checker (for example axe) and a contrast check; test with a screen reader once; check
prefers-reduced-motionhandling. - Evidence: Checker report, list of screens tried with keyboard and screen reader.
- Logs contain no personal data or secrets
- What: Logs do not record passwords, tokens, keys or personal data; if needed they are masked.
- How to check: Read the logging setup; trigger a login and a form and inspect the log lines; search for e-mail and token patterns.
- Evidence: Sample log lines after a test run showing masking.
Sources
- OWASP MASVS (Mobile Application Security Verification Standard) — OWASP MAS
- OWASP MASTG (Mobile Application Security Testing Guide) — OWASP MAS
- Mobile Application Security Cheat Sheet — OWASP Cheat Sheet Series
- Security checklist — Android Developers
- Minimize your permission requests — Android Developers
- Request runtime permissions — Android Developers
- In-app updates — Android Developers
- Android Keystore system — Android Developers
- Provide information for Google Play's Data safety section — Google Play Console Help
- User Data policy — Google Play Console Help
- Target API level requirements for Google Play apps — Google Play Console Help
- App Review Guidelines — Apple Developer
- Privacy manifest files — Apple Developer
- App Privacy Details — Apple Developer
- Keychain services — Apple Developer
- PHPickerViewController — Apple Developer
- Pro Build Guide v1.2: compiled team practices — Pro Build Guide