Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

security

/security

Przegląda aplikację Flutter pod kątem sekretów, przechowywania tokenów, logów danych osobowych i flag debugowania, po czym je poprawia.

Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przegląda aplikację Flutter pod kątem sekretów, przechowywania tokenów, logów danych osobowych i flag debugowania, po czym je poprawia.

Oryginalny opis (EN)

Review a Flutter app for security problems - hard-coded secrets, insecure token storage, logging of personal data, missing certificate pinning, unvalidated deep links, debug flags in release, and platform configuration - and fix them. Use before a release, for apps handling money, health or personal data, or when the user asks for a security review.

Jak działa

  1. 1. Secrets in the code
  2. 2. Storage
  3. 3. Network
  4. 4. Logging and analytics
  5. 5. Input from outside
  6. 6. Release configuration
  7. 7. Device integrity (money and health apps)
  8. Report
Sekcje z nagłówków SKILL.md, w oryginale · 59 linii, 487 słów
Podgląd SKILL.md
---
name: security
description: Review a Flutter app for security problems - hard-coded secrets, insecure token storage, logging of personal data, missing certificate pinning, unvalidated deep links, debug flags in release, and platform configuration - and fix them. Use before a release, for apps handling money, health or personal data, or when the user asks for a security review.
---

# Flutter security review

Work through each area, record findings with file and line, and fix what's safe to fix. Don't paste any secret you find into chat or commit messages: refer to it by file and line.

## 1. Secrets in the code

```bash
git grep -nIE "(api[_-]?key|secret|token|password|BEGIN (RSA|EC|PRIVATE)|AIza[0-9A-Za-z_-]{35}|sk_live_|AKIA[0-9A-Z]{16})" -- . ':!*.lock'
```

- Anything compiled into the app can be extracted. Keys for paid or privileged APIs must move to a backend.
- Firebase config (`google-services.json`, `GoogleService-Info.plist`) isn't secret, but it must be protected by security rules and App Check.
- Build-time config: `--dart-define-from-file=config/prod.json`, with that file outside git.
- If a real secret was ever committed, it must be **rotated**: removing it from history isn't enough. Tell the user.

## 2. Storage

| Data | Where |
|---|---|
| Access and refresh tokens, credentials | `flutter_secure_storage` (Keychain / Keystore) |
| Personal or financial data cached offline | Encrypted database (SQLCipher / drift with encryption) or encrypted files |
| Preferences, flags | `SharedPreferences` is fine |

Check that logout deletes tokens and cached personal data.

## 3. Network

- HTTPS only. Android: no `usesCleartextTraffic="true"` in release; iOS: no broad `NSAllowsArbitraryLoads`.
- For money or health apps, **certificate (public key) pinning** with at least one backup pin and a plan for rotation.
- No disabled certificate checks (`badCertificateCallback` returning `true`) outside debug.
- Timeouts on every request; don't put tokens or personal data in URLs (they end up in logs).

## 4. Logging and analytics

Search for `print(`, `debugPrint(`, `log(` and the logger: no tokens, OTPs, passwords, card or ID numbers (Aadhaar, PAN), health values, or full request/response bodies. Crash reports and analytics events follow the same rule.

## 5. Input from outside

- **Deep links and app links:** validate host, path and parameters; never navigate to an arbitrary URL or perform an action (payment, account change) straight from a link without confirmation.
- **Push payloads:** treat as untrusted hints; fetch real data from the API.
- **WebViews:** restrict navigation to allowed origins; don't expose JavaScript channels to arbitrary pages.
- Android: `exported` components only where needed; check `intent-filter`s.

## 6. Release configuration

- Release builds: `--obfuscate --split-debug-info=build/symbols` (upload symbols to the crash reporter).
- No debug banners, test endpoints, verbose logging or developer menus reachable in release (`kReleaseMode` checks).
- Android: `android:allowBackup="false"` (or backup rules excluding sensitive files) for sensitive apps; `FLAG_SECURE` on screens with secrets.
- iOS: hide sensitive content in the app switcher snapshot.

## 7. Device integrity (money and health apps)

Consider Play Integrity / App Attest checks on the server for sensitive operations, and limiting features on rooted or jailbroken devices. These raise the bar; they're not a guarantee.

## Report

A table: **severity** (high, medium, low) → **finding** (file:line) → **fix made or recommended**. High: exposed secrets, tokens in plain storage, disabled TLS checks, unvalidated actions from links. Say clearly what still needs a human or backend change.

Wersje

RepozytoriumWynikLicencja
Ta strona · ChandraChaan/flutter-agent-skills100MIT
flavien-ia/hypervibe-craft100Apache-2.0
boshu2/agentops100Apache-2.0
iamalisson/landspec100MIT
asckye/tia_portal_openness_mcp100MIT
Esposter/Esposter100Apache-2.0
event4u-app/agent-config100MIT
motormetrics/motormetrics100MIT
motormetrics/motormetrics100MIT

Migawka bazy z 13.11.2026 · wersja paczki f5a7e0dd0133 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100static-security
    Przegląda aplikacje Flutter i kod Dart pod kątem sekretów w kodzie, niebezpiecznego przechowywania danych, niezabezpieczonych wywołań sieciowych i wycieków w logach.
  • 90react-native-security
    Zabezpiecza przechowywanie danych, ruch sieciowy i deep linki w aplikacjach mobilnych React Native: bezpieczny storage, certificate pinning i walidacja deep linków.
  • 100watchdog-go-mobile-app
    Audytuje aplikację mobilną Android, iOS, Flutter lub React Native pod kątem przypinania certyfikatów, przechowywania danych i WebView.
  • 96security-review
    Przegląda kod i zmiany pod kątem podatności: wstrzyknięć, sekretów, niebezpiecznego wejścia i uprawnień.
  • 90flutter-security
    Modeluje zagrożenia, audytuje i wzmacnia aplikacje Flutter i Dart pod kątem ryzyk bezpieczeństwa i prywatności: autoryzacja, sekrety, wrażliwe dane, kryptografia, WebView, deep linki i zależności.
  • 100mobile-app-security-review
    Przegląda bezpieczeństwo aplikacji iOS i Android według OWASP MASVS i MASTG przed wydaniem, na autoryzowanych buildach testowych.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.