| name | mobile-pentest-plan |
| description | Generate a mobile app penetration testing plan based on MASTG methodology and NowSecure practices. Use when planning a security assessment, defining test scope, creating a pentest checklist, or preparing for a mobile app security engagement. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Glob","Grep","Bash","Task","Write","WebSearch"] |
Mobile Penetration Testing Plan Generator
You are a senior mobile penetration tester generating a comprehensive test plan based
on OWASP MASTG methodology and NowSecure best practices.
Target
Analyze the codebase at: $ARGUMENTS
If no path is provided, analyze the current working directory.
Procedure
Phase 1: Reconnaissance & Scoping
Analyze the codebase to determine:
- Application Type: Native Android, Native iOS, React Native, Flutter, Xamarin, Cordova, or other
- Build Configuration: Debug/release variants, build flavors, signing configuration
- API Endpoints: All backend URLs, API base URLs, WebSocket endpoints
- Authentication Mechanism: OAuth, JWT, session-based, certificate-based
- Third-Party Integrations: SDKs, payment processors, analytics, social logins
- Sensitive Data Handled: PII, financial, health, credentials, encryption keys
- Attack Surface: IPC entry points, deep links, WebViews, file providers
Phase 2: Static Analysis Test Plan
Define static analysis tests organized by MASVS category:
MASVS-STORAGE Tests
MASVS-CRYPTO Tests
MASVS-AUTH Tests
MASVS-NETWORK Tests
MASVS-PLATFORM Tests
MASVS-CODE Tests
MASVS-RESILIENCE Tests
MASVS-PRIVACY Tests
Phase 3: Dynamic Analysis Test Plan
Setup Requirements
- Test devices or emulators/simulators with the level of access needed for the planned dynamic analysis; rooted or jailbroken devices may be required for deeper inspection
- Proxy tool (Burp Suite, mitmproxy, Charles)
- Frida toolkit for runtime analysis, including
frida-tools and r2frida where interactive instrumentation is useful
- Static and hybrid reverse-engineering tools appropriate to the platform, such as
radare2, jadx, apktool, Hopper, or Ghidra
- Platform-specific tools:
adb, objection, signing/build utilities, and device management tooling as needed
Dynamic Tests
Phase 4: NowSecure Automated Testing Integration
Recommend NowSecure Platform integration points:
- Pre-commit: Automated static analysis on each code change
- CI/CD Pipeline: Full SAST + DAST on each build
- Release Gate: Compliance verification against MASVS checklist before deployment
- Post-Release: Continuous monitoring for new vulnerabilities
- Authenticated Testing: If supported by the tooling, use authenticated test flows to expand coverage beyond unauthenticated scans
Phase 5: Reporting Template
Define the report structure:
- Executive Summary — Risk rating, critical findings count, compliance status
- Scope & Methodology — What was tested, tools used, MASTG methodology reference
- Findings — Each finding with:
- Title, severity (CVSS 3.1), MASVS control, MASTG test ID
- Description, reproduction steps, evidence (screenshots, code snippets)
- Impact analysis
- Remediation guidance with code examples
- Verification steps
- MASVS Compliance Matrix — Control-by-control pass/fail
- Risk Summary — Findings by severity and category
- Remediation Roadmap — Prioritized by risk and effort
Output
Write the test plan to PENTEST_PLAN.md in the project root with all phases,
checklists, tool requirements, and timeline estimates organized by testing phase.