本文へ移動
cccskills
無料GitHub で公開

mobile-security

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.

インストール方法を見る

含まれるファイル(9)

  • SKILL.md4.9 KB
  • references/android.md2.2 KB
  • references/android/intent-security.md22.2 KB
  • references/auth.md8.2 KB
  • references/flutter.md1.9 KB
  • references/flutter/secure-token-store.md634 B
  • references/ios.md1.8 KB
  • references/kotlin-multiplatform.md1.3 KB
  • references/react-native.md1.7 KB

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.

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audits and fixes mobile accessibility across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform, including shared Compose UI and native hosts. Covers TalkBack/VoiceOver labels, roles, state, reading order, touch targets, text scaling, contrast and focus. Use for a11y audits, screen-reader bugs or accessible UI implementation.

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

Builds native Android apps with the Android team's guides — Jetpack Compose UI, adaptive layouts, edge-to-edge, Compose styles, migrating XML views to Compose, Navigation 3 and predictive back; Android Gradle Plugin 9 upgrades, R8 keep rule analysis, profiling with Android Studio and Perfetto, and the Android CLI; Google Play policy compliance, Play Billing upgrades and the Engage SDK; Credential Manager restore and verified email; CameraX and Media3 Cast; App Functions and the ML Kit GenAI Prompt API; Wear OS, Android TV and display glasses. Use when writing, upgrading or auditing native Android (Kotlin) code for any of these topics, even if the user does not name the library.

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

Designs and reviews mobile architecture across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers state ownership, data flow, modules, dependency boundaries, navigation, offline data and KMP shared source sets versus host apps. Use when structuring a feature, choosing state management, refactoring layers or deciding where a real class or screen belongs.

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

Reviews mobile code for production bugs across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform, including KMP source-set and host API contracts. Covers lifecycle, concurrency, UI state and native boundaries with file:line evidence. Use for a code review, PR, project audit, quality check or /reis-mobile:review.

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

Diagnoses build and runtime failures across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers pub/Dart, Gradle/AGP, Xcode/CocoaPods, Metro, KMP source sets and iOS frameworks, crashes and deep links. Use for failing builds, app launches, stack traces or /reis-mobile:debug.

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

Detects the mobile stack of the current project (Flutter, Android, iOS, React Native, Kotlin Multiplatform), its languages and target platforms, using the reis-mobile detector. Use when you need to know which mobile stack a project uses before reviewing, debugging or changing it, or when the user asks "what stack is this project?".

日本語の概要は準備中です。原文の説明を表示しています。

wrsilva/reis-mobile72026年9月24日 更新

wrsilva のスキルをすべて見る

このスキルの問題を報告する