android-legacy-security
/android-legacy-security
Zabezpiecza obsługę Intentów, konfigurację WebView i dostęp do plików przez FileProvider w aplikacjach Android.
- Autor
- HoangNguyen0403 ↗
- Repozytorium
- agent-skills-standard ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 22.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 22.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Zabezpiecza obsługę Intentów, konfigurację WebView i dostęp do plików przez FileProvider w aplikacjach Android.
Oryginalny opis (EN)
Harden Intent handling, WebView configuration, and FileProvider access in Android apps. Use when securing Intent extras, configuring WebViews, or exposing files via FileProvider; defer manifest export flags and generic Bundle typing to focused Android security guidance.
Jak działa
- Priority: P0 (CRITICAL)
- 1. Secure Intents and Components
- 2. Lock Down WebViews
- 3. Protect Storage and Files
- Anti-Patterns
- References
Podgląd SKILL.md
---
name: android-legacy-security
description: Harden Intent handling, WebView configuration, and FileProvider access in Android apps. Use when securing Intent extras, configuring WebViews, or exposing files via FileProvider; defer manifest export flags and generic Bundle typing to focused Android security guidance.
metadata:
triggers:
files:
- '**/*Activity.kt'
- '**/*WebView*.kt'
- 'AndroidManifest.xml'
keywords:
- Intent
- WebView
- FileProvider
- javaScriptEnabled
---
# Android Legacy Security Standards
## **Priority: P0 (CRITICAL)**
## 1. Secure Intents and Components
- Set `android:exported="false"` for all internal Activities/Services unless needed for deep links.
- Verify `resolveActivity` before starting implicit intents.
- Treat all incoming Intent extras as untrusted — validate all schema/data types.
See [hardening examples](references/implementation.md) for manifest and component restrictions.
## 2. Lock Down WebViews
- Default to `javaScriptEnabled = false`. Use `WebViewClient` and `WebChromeClient` to restrict navigation.
- Disable `allowFileAccess` and `allowFileAccessFromFileURLs` to prevent local file theft via XSS.
- If using `@JavascriptInterface` (API 17+), strictly limit exposed API surface.
See [hardening examples](references/implementation.md) for WebView lockdown patterns.
## 3. Protect Storage and Files
- **NEVER expose `file://` URIs**. Use `FileProvider` to generate `content://` URIs with temporary permissions.
- Use `EncryptedSharedPreferences` for auth tokens and PII. Never use legacy public-read file modes.
- Use `NetworkSecurityConfig` to disable `cleartextTrafficPermitted` and implement certificate pinning.
## Anti-Patterns
- **No Implicit Intents Internally**: Use explicit intents with component class name.
- **No Public Read Modes**: Never expose SharedPreferences or files with global read access.
## References
- [Hardening Examples](references/implementation.md)
Pliki w paczce (3)
- SKILL.md 2 KB
- evals/evals.json 3 KB
- references/implementation.md 2 KB
Wersje
W bazie nie ma innych skilli o nazwie android-legacy-security.
Migawka bazy z 13.11.2026 · wersja paczki 5d8cc462d359 (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
- 95android-intent-security
Audytuje konfigurację komponentów w AndroidManifest.xml i kod obsługujący przychodzące Intenty, aby zapobiegać przekierowaniu Intentów i nieautoryzowanemu dostępowi. - 90kotlin-android-security-privacy
Statycznie sprawdza bezpieczeństwo i prywatność aplikacji Android według OWASP MASVS: wyeksportowane komponenty, deep linki, WebView, ruch nieszyfrowany, magazyn lokalny, kopie zapasowe i dane osobowe w logach. - 95android-intent-security
Sprawdza konfiguracje komponentów Androida w manifeście i kod obsługujący Intenty, zapobiegając nieautoryzowanemu dostępowi. - 98android-webview-app
Pomaga zbudować aplikację Android w formie powłoki WebView dla strony HTML, zainstalować ją na telefonie i naprawić typowe problemy routingu. - 100watchdog-go-mobile-app
Audytuje aplikację mobilną Android, iOS, Flutter lub React Native pod kątem przypinania certyfikatów, przechowywania danych i WebView. - 100kotlin-security
Pomaga zabezpieczać aplikacje Kotlin (backend i Android): przegląd podatności i bezpieczne wzorce implementacji.