一键导入
security-check
Security audit of current changes for Android/Kotlin vulnerabilities and best practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Security audit of current changes for Android/Kotlin vulnerabilities and best practices
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Quick review of the current diff for bugs, logic errors, convention violations, and test gaps
Scaffold a new feature module with the appropriate layers and MESA conventions
Scaffold a new Strata interactor with interface, implementation, fake, and test
Add a new screen to an existing feature module with StateHolder, UI, factories, and tests
Add missing test cases, targeting a specific file or all changed files on the branch
Bump library versions in gradle.properties and prepare release notes
| name | security-check |
| description | Security audit of current changes for Android/Kotlin vulnerabilities and best practices |
| disable-model-invocation | true |
| argument-hint | [--staged | --uncommitted] |
Perform a focused security audit on the current changes. Analyze the diff and the full content of changed files for security vulnerabilities, insecure patterns, and Android-specific risks.
Scope: $ARGUMENTS
Determine which changes to audit:
--staged → git diff --cached (only staged changes)--uncommitted → git diff HEAD (only uncommitted changes)git diff main (all changes on the branch vs main, committed and uncommitted)Also run git status to identify new untracked files.
Read the diff output AND the full content of every changed file. Security issues often depend on context beyond the changed lines.
BuildConfig fields, or gradle.properties committed to source.gitignore covers sensitive files (local.properties, *.jks, *.keystore)SharedPreferences (use EncryptedSharedPreferences or equivalent)Parcelable/Serializable objects passed via Intent extras without validation@RawQuery or SimpleSQLiteQuery)rememberSaveable state that persists across process deathandroid:usesCleartextTraffic and network security config)TrustManager that accepts all certsandroid:exported="false" where appropriate)Intent data validated before use (no unguarded getStringExtra, getParcelableExtra, etc.)PendingIntent created with FLAG_MUTABLE unnecessarilyaddJavascriptInterface exposing sensitive methodsWebViewClient.shouldOverrideUrlLoading validates URLssetAllowFileAccess(false) for WebViews loading remote contentMIXED_CONTENT_NEVER_ALLOW)Runtime.exec() or ProcessBuilder with unsanitized inputClass.forName, DexClassLoader) with untrusted inputeval-style execution of user-provided dataLog.d, Log.e, Timber, etc.)ProGuard/R8 rules do not expose sensitive class or method namesBrief assessment of the security posture of the changes.
Show all completed checklists from Steps 2-10 with pass/fail/not-applicable indicators. Skip entire sections that are not applicable to the changed files.
List by severity:
For each vulnerability:
If no issues are found, state that the changes pass the security audit.