跳到正文
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.

中文简介正在准备中。当前显示原文说明。

集成工具Firebase
查看安装方法

包含的文件(9)

  • SKILL.md5.1 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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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年10月14日 更新

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年10月14日 更新

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年10月14日 更新

Implements and reviews mobile identity and session flows across Flutter, Android, iOS, React Native and Kotlin Multiplatform. Use for sign-in, passkeys, account recovery, provider linking, reauthentication, logout and concurrent refresh. Security audits belong to mobile-security; account deletion belongs to mobile-privacy.

中文简介正在准备中。当前显示原文说明。

wrsilva/reis-mobile72026年10月14日 更新

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年10月14日 更新

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年10月14日 更新

查看 wrsilva 的全部技能

报告此技能的问题