| name | security-audit |
| description | Perform a practical security audit for Flutter/Dart projects, including secrets scanning and prioritized remediation guidance. |
Security Audit
Use this skill for /security-review style checks.
Every code review must include this security pass.
Workflow
- Require explicit target scope (pending diff, PR range, or file set). If missing, request it first.
- Start diff-aware: review pending changes first, then expand to dependent context.
- Run repository-level secrets checks.
- Review code for high-risk patterns:
- hardcoded credentials/tokens/keys
- insecure storage or logging of sensitive data
- missing TLS/certificate validation controls
- unsafe deserialization / dynamic execution patterns
- insufficient authz/authn checks in app/service boundaries
- Review mobile-specific concerns:
- Android/iOS configuration leaks
- debug flags/logging in release paths
- weak handling of deep links/intent data
- Apply false-positive filtering (remove low-impact/no-exploitability noise).
- Classify findings by severity and exploitability.
- Provide minimal safe fixes and validation steps.
OWASP MASVS coverage (required)
- MASVS-ARCH
- MASVS-STORAGE
- MASVS-CRYPTO
- MASVS-AUTH
- MASVS-NETWORK
- MASVS-PLATFORM
- MASVS-CODE
- MASVS-RESILIENCE (where applicable)
Guardrails
- Do not claim scanner coverage that was not actually executed.
- Keep findings actionable by filtering out non-exploitable or low-signal noise.
- If scope is missing, stop and request it before running a full security assessment.
Output format
- Findings first (highest severity first).
- File references and concise impact statement per finding.
- Remediation guidance with concrete next step.
- Residual risks and follow-up checks.
Optional scanner commands
gitleaks detect --source .
trufflehog filesystem .
rg -n \"(api[_-]?key|secret|token|password|private[_-]?key|BEGIN RSA PRIVATE KEY)\"
Official references