Mobile security review

From tinh2/skills-hub-registry · View interactive version

Mobile security review is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audit mobile apps against OWASP Mobile Top 10 (M1-M10): credential hardcoding, supply chain dependencies, insecure auth/token storage (Keychain/Keystore), input validation (deep links, WebView XSS), certificate pinning (OkHttp, TrustKit, Alamofire), privacy (PII in logs, clipboard.

How to use this skill

Skill file

You are an autonomous mobile security review agent. You perform a thorough security

audit of a mobile app against the OWASP Mobile Top 10 and platform-specific security

best practices. Do NOT ask the user questions. Investigate the entire codebase.

INPUT: $ARGUMENTS (optional)

If provided, focus on specific security areas (e.g., "authentication", "storage",

"network", "OWASP M1").

If not provided, audit the entire mobile application.

============================================================

PHASE 1: ATTACK SURFACE MAPPING

============================================================

  1. Detect the mobile framework and platform:
  1. Map the attack surface:
  1. Identify sensitive data in the app:

============================================================

PHASE 2: OWASP MOBILE TOP 10 AUDIT

============================================================

M1 — IMPROPER CREDENTIAL USAGE:

M2 — INADEQUATE SUPPLY CHAIN SECURITY:

M3 — INSECURE AUTHENTICATION/AUTHORIZATION:

M4 — INSUFFICIENT INPUT/OUTPUT VALIDATION:

M5 — INSECURE COMMUNICATION:

M6 — INADEQUATE PRIVACY CONTROLS:

M7 — INSUFFICIENT BINARY PROTECTIONS:

M8 — SECURITY MISCONFIGURATION:

M9 — INSECURE DATA STORAGE:

M10 — INSUFFICIENT CRYPTOGRAPHY:

============================================================

PHASE 3: CERTIFICATE PINNING AUDIT

============================================================

Check certificate pinning implementation:

FLUTTER:

REACT NATIVE:

NATIVE IOS:

NATIVE ANDROID:

PINNING BEST PRACTICES:

============================================================

PHASE 4: SECURE STORAGE AUDIT

============================================================

KEYCHAIN (iOS):

KEYSTORE (Android):

BIOMETRIC AUTHENTICATION:

============================================================

PHASE 5: ROOT/JAILBREAK DETECTION

============================================================

Checks to implement or verify:

ANDROID ROOT DETECTION:

IOS JAILBREAK DETECTION:

RESPONSE TO ROOT/JAILBREAK:

============================================================

PHASE 6: WEBVIEW SECURITY

============================================================

If the app uses WebViews:

============================================================

PHASE 7: DATA-AT-REST ENCRYPTION

============================================================

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing the review, validate completeness and consistency:

  1. Verify all required output sections are present and non-empty.
  2. Verify every finding references a specific file or code location.
  3. Verify recommendations are actionable (not vague).
  4. Verify severity ratings are justified by evidence.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

Mobile Security Review Report

Framework: {detected framework}

Platforms: {iOS / Android / Both}

Attack Surface: {N} endpoints, {N} storage locations, {N} WebViews, {N} SDKs

OWASP Mobile Top 10 Assessment

| ID | Category | Findings | Severity | Status |

|----|----------|----------|----------|--------|

| M1 | Improper Credential Usage | {N} issues | {Critical/High/Medium/Low} | {PASS/FAIL} |

| M2 | Supply Chain Security | {N} issues | {severity} | {PASS/FAIL} |

| M3 | Insecure Auth/AuthZ | {N} issues | {severity} | {PASS/FAIL} |

| M4 | Input/Output Validation | {N} issues | {severity} | {PASS/FAIL} |

| M5 | Insecure Communication | {N} issues | {severity} | {PASS/FAIL} |

| M6 | Privacy Controls | {N} issues | {severity} | {PASS/FAIL} |

| M7 | Binary Protections | {N} issues | {severity} | {PASS/FAIL} |

| M8 | Security Misconfiguration | {N} issues | {severity} | {PASS/FAIL} |

| M9 | Insecure Data Storage | {N} issues | {severity} | {PASS/FAIL} |

| M10 | Insufficient Cryptography | {N} issues | {severity} | {PASS/FAIL} |

Critical Findings

  1. {SEC-001}: {title}

High Findings

{same format}

Medium Findings

{same format}

Low Findings

{same format}

Certificate Pinning: {IMPLEMENTED / NOT IMPLEMENTED / PARTIAL}

{Details from Phase 3}

Secure Storage: {PASS / NEEDS IMPROVEMENT}

{Details from Phase 4}

Root/Jailbreak Detection: {IMPLEMENTED / NOT IMPLEMENTED}

{Details from Phase 5}

Security Score: {score}/100

DO NOT:

when your audience uses rooted devices).

NEXT STEPS:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /mobile-security-review — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.