Skillshub flutter-security
OWASP Mobile security standards for Flutter. ALWAYS consult when storing data, making network calls, handling tokens/PII, or preparing a release build — not just dedicated security tasks. (triggers: lib/infrastructure/**, pubspec.yaml, secure_storage, obfuscate, jailbreak, pinning, PII, OWASP)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/flutter-security" ~/.claude/skills/comeonoliver-skillshub-flutter-security && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/flutter-security/SKILL.mdsource content
Mobile Security
Priority: P0 (CRITICAL)
Standards for basic mobile security and PII protection.
Implementation Guidelines
- Secure Storage: Use
for tokens/PII. Never useflutter_secure_storage
.shared_preferences - Hardcoding: Never store API keys or secrets in Dart code. Use
or--dart-define
..env - Obfuscation: Always release with
and--obfuscate
. Note: This is a deterrent, not cryptographic protection. For sensitive logic, move to backend.--split-debug-info - SSL Pinning: For high-security apps, use
.dio_certificate_pinning - Root Detection: Use
for financial/sensitive applications.flutter_jailbreak_detection - PII Masking: Mask sensitive data (email, phone) in logs and analytics.
Reference & Examples
For SSL Pinning and Secure Storage implementation details: See references/REFERENCE.md.
Anti-Patterns
- ❌
— tokens/PII must useprefs.setString('auth_token', token)
, never SharedPreferencesflutter_secure_storage - ❌
hardcoded in Dart — store secrets viaconst apiKey = 'sk-…'
or a secure vault; never in source--dart-define - ❌ Release build without
flags — unobfuscated binaries expose class/method names--obfuscate --split-debug-info - ❌
— mask or omit PII in logs and analytics events entirelyprint('User email: $email')
Related Topics
common/security-standards | layer-based-clean-architecture | performance