flutter-security
Threat-model, audit, or harden Flutter and Dart applications against concrete security and privacy risks involving authorization, secrets, sensitive storage, cryptography, WebViews, deep links, platform exposure, or dependencies. Use for security findings and control requirements; route sign-in and session implementation to flutter-authentication.
How do I install this agent skill?
npx skills add https://github.com/thienqo/flutter-skills --skill flutter-securityIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The flutter-security skill provides a high-quality framework for security auditing and hardening Flutter applications. It promotes best practices such as least privilege, platform-backed storage, and input validation, and does not contain any malicious instructions or obfuscated code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Flutter Security
Protect user data and privileged operations with controls that match the actual threat model. Treat code, configuration, storage, logs, and binaries shipped to a user-controlled device as inspectable.
Establish scope
- Identify protected assets, actors, trust boundaries, supported platforms, sensitive flows, and realistic abuse cases.
- Inspect
pubspec.yaml,pubspec.lock, platform manifests and entitlements, environment handling, network configuration, storage, logging, WebViews, links, and release settings relevant to those assets. - Distinguish public identifiers from credentials and server-enforced trust. Do not label every client-visible key a secret without checking its provider contract and allowed restrictions.
- Define whether the work is a static review, hardening change, or authorized runtime assessment. Do not probe external systems, rotate credentials, revoke sessions, or change production policy without explicit authorization.
Core rules
- Never rely on obfuscation, environment files, or client-side checks to keep a credential secret or enforce authorization.
- Minimize sensitive data collection, retention, exposure, and logging. Clear user-bound caches and credentials when their lifecycle ends.
- Use platform-backed key and credential storage where the threat model requires it; ordinary preferences and databases are not secret vaults.
- Keep authentication state in the client, but enforce authorization and sensitive business rules on a trusted backend.
- Preserve secure transport defaults. Add exceptions or certificate pinning only for a documented requirement and an operationally viable rotation and recovery plan.
- Use maintained, reviewed cryptographic primitives and protocols. Do not invent algorithms, modes, key derivation, or token formats.
- Validate untrusted inputs at deep links, WebViews, platform channels, files, intents, clipboard boundaries, and remote responses.
- Treat dependency scanner output as leads that require applicability analysis, not automatic proof of an exploitable Flutter finding.
Load references conditionally
- Read application security for secrets, authentication, storage, network transport, cryptography, privacy, and logging.
- Read platform attack surfaces for WebViews, deep links, intents, permissions, backups, screenshots, clipboard, and native boundaries.
- Read security verification when performing an audit, validating dependencies or release configuration, or reporting findings.
Route sign-in and session implementation to flutter-authentication, ordinary cache and database design to flutter-persistence, transport behavior to flutter-networking, native implementation mechanics to flutter-platform-integration, and release artifact handling to flutter-build-release. Security owns the threat and control requirements across those boundaries.
Report with evidence
For each finding, identify the asset, attack precondition, reachable path, impact, concrete evidence, and the smallest proportionate remediation. Separate confirmed vulnerabilities from defense-in-depth improvements and unresolved questions. Do not claim that a package, scanner, encryption flag, or clean static review proves the application secure.
Sources
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/thienqo/flutter-skills/flutter-security">View flutter-security on skillZs</a>