agentleFS
wrsilvawrsilva/reis-mobile/skills/mobile-security/SKILL.md

mobile-security

Skill8 starsChanged 58 days agoMITView on GitHub

Reviews mobile security across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform using OWASP MASVS. Covers credential storage, secrets, transport, deep links, WebViews, logging and platform implementations of shared KMP contracts. Use for security audits, auth/token handling, pentest findings or release hardening.

  • Reads credentials

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every finding needs evidence in the code or configuration at file:line.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mobile Security

Organized by the OWASP MASVS categories. Apply the general checks below, then the reference for the detected stack. In cross-platform apps, also apply the Android and iOS references to the native folders.

1. Pick the reference

ProjectRead
Flutterreferences/flutter.md
Native Android (Kotlin/Java), or android/ in any appreferences/android.md
Native iOS (Swift/Objective-C), or ios/ in any appreferences/ios.md
React Native or Exporeferences/react-native.md
Kotlin Multiplatform shared code and platform implementationsreferences/kotlin-multiplatform.md
OAuth 2.0 / OIDC login, PKCE, tokens and biometric gating, on any stackreferences/auth.md

Firebase-specific protection (security rules, App Check) is covered by mobile-firebase.

For implementing identity/session transitions, use mobile-auth. For consent, SDK collection and account/data deletion, use mobile-privacy. Keep this skill focused on the security properties of those flows.

2. Evidence and severity

Every finding needs evidence in the code or configuration at file:line. Severity:

  • Critical: exposed credential or sensitive data, TLS validation disabled, exported component that performs a privileged action, backend authorization missing.
  • High: token in insecure storage, cleartext traffic to the API, WebView with a JavaScript bridge exposed to remote content, deep link acting without validation.
  • Medium/Low: missing hardening, verbose logs, backup enabled without need, missing screenshot protection.

3. General checks (all stacks)

MASVS-STORAGE

  • Access token, refresh token and personal data kept in insecure storage (preferences, plain files, unencrypted database) instead of the Keychain or Keystore-backed storage.
  • Sensitive data in logs, analytics events or crash reports.

MASVS-CRYPTO

  • Private API keys, client secrets, signing keys or passwords in source code, assets or bundled configuration. Everything shipped in the app can be extracted; a real secret stays on the backend.
  • Homemade cryptography, fixed IV or key, MD5/SHA-1 for passwords.

MASVS-AUTH

  • Authorization decided only on the client (a local isAdmin flag, hiding a button as access control).
  • Sessions without expiration, or refresh tokens never invalidated on logout.
  • Biometrics used only as a local boolean, without unlocking a key in the Keychain or Keystore.

For anything involving a login flow — OAuth 2.0, OpenID Connect, PKCE, redirect URIs, token rotation or biometric-gated keys — read references/auth.md before reviewing the stack reference.

MASVS-NETWORK

  • http:// URLs for APIs.
  • Certificate validation disabled or overridden to accept everything.
  • Pinning, if present, without a rotation strategy (a single pin with no backup).

MASVS-PLATFORM

  • Deep links and universal/app links that perform actions without validating parameters or without authentication.
  • WebViews loading remote content with JavaScript and a native bridge enabled.
  • Sensitive data on the clipboard or visible in the app switcher snapshot.

MASVS-CODE / RESILIENCE

  • Release builds without obfuscation or minification when the app has sensitive logic.
  • Debug code, test endpoints or feature flags that bypass checks reachable in release.
  • Dependencies with known vulnerabilities, or abandoned security-sensitive libraries.

MASVS-PRIVACY

  • Permissions requested without real use in the code.
  • Third-party SDKs collecting data that is not declared (privacy manifest and App Store privacy details on iOS, Data safety on Google Play).

4. Useful commands (read-only)

# Signing material and environment files that should not be in the repository
git ls-files | grep -Ei '\.(jks|keystore|p12|p8|pem|mobileprovision)$|key\.properties|(^|/)\.env(\.|$)'

# Android manifest flags worth reading in context
grep -rn --include='AndroidManifest.xml' -E 'usesCleartextTraffic|allowBackup|exported="true"|debuggable' . 2>/dev/null

# iOS App Transport Security exceptions
grep -rn --include='*.plist' 'NSAllowsArbitraryLoads' . 2>/dev/null

google-services.json and GoogleService-Info.plist identify a Firebase project and ship in every app; committing them is not a leak by itself. The findings there are unrestricted API keys and weak security rules.

Output

Report under Security (or Critical, when the severity is Critical), with the MASVS category, file:line, impact and fix.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.