svc-mobile-android
БесплатноБез исполняемых скриптовНе проверенAndroid APK static analysis — OWASP Mobile Top 10, Retrofit API audit, transport security, smali reading, component export, auth flow analysis. Use when…
от lza6★ 19 звёзд на GitHubОб этом скилле
Android APK Static Analysis — Full Methodology
Load this skill when the target is an Android APK (decompiled or not). This covers SAST — for dynamic testing (Frida, MITM), combine with playbook-webapp.
Task Decomposition — MANDATORY
An APK audit is NOT one grep job. Decompose into these independent tasks (run in parallel):
- API Security Audit — read ALL Retrofit/API interface files, find sensitive data in URLs
- Transport Security — network_security_config, certificate pinning, cleartext
- Auth Flow Analysis — full auth chain, session management, token handling
- Component Security — exported activities/receivers/providers/services, intent filters, deep links
- Build Hygiene — debug flags, dev tools in production, staging endpoints, logging
- Secrets & Crypto — hardcoded keys (but FILTER non-issues — see Known Non-Vulns below)
- Data Storage — SharedPreferences, Room/SQLite, file storage, backup flags
- Root/Tamper Detection — what's present AND what's MISSING
How to Read Decompiled Code
Smali basics (you'll see this from apktool/baksmali)
.method public someMethod(Ljava/lang/String;)V # method signature
invoke-virtual {v0}, Lcom/example/Foo;->bar()V # method call
const-string v1, "hardcoded_value" # string constant
sget-object v0, Lcom/example/Config;->API_KEY:Ljava/lang/String; # static field
Retrofit annotations in smali (THE most important pattern)
# @GET("endpoint") — HTTP method + path
.annotation runtime Lretrofit2/http/GET;
value = "auth/password"
.end annotation
# @Query("password") — parameter goes in URL query string!
.annotation runtime Lretrofit2/http/Query;
value = "password"
.end annotation
# @QueryMap — ALL params go in URL query string!
.annotation runtime Lretrofit2/http/QueryMap;
.end annotation
# @Body — parameter goes in request body (SAFE)
.annotation runtime Lretrofit2/http/Body;
.end annotation
# @Field — parameter goes in form body (SAFE)
.annotation runtime Lretrofit2/http/Field;
value = "password"
.end annotation
# @Header — parameter sent as HTTP header
.annotation runtime Lretrofit2/http/Header;
value = "Authorization"
.end annotation
CRITICAL CHECK: Any @Query/@QueryMap on a POST/PUT that carries sensitive data (password, PIN, OTP, token) = CRITICAL finding. Sensitive data in URL is logged everywhere (server access logs, proxies, CDNs, browser history, HTTP interceptors).
Jadx output (Java-like, easier to read)
@POST("auth/password")
Call<AuthResponse> login(@QueryMap Map<String, String> params);
// ^ This means login credentials go in URL query string = CRITICAL
Checklist: OWASP Mobile Top 10
M1: Improper Platform Usage
- Exported components without permission protection
- Deep links with sensitive actions (password reset, transfers)
- Content providers with
grant-uri-permissionsor no read/write permission - Intent filters on activities that handle sensitive data
-
android:debuggable="true"in manifest -
android:allowBackup="true"(data extractable via ADB) -
android:usesCleartextTraffic="true"
grep -r 'exported="true"' resources/AndroidManifest.xml
grep -r 'android:debuggable' resources/AndroidManifest.xml
grep -r 'allowBackup' resources/AndroidManifest.xml
M2: Insecure Data Storage
- Sensitive data in SharedPreferences (tokens, passwords, PII)
- Unencrypted SQLite/Room databases with sensitive data
- Sensitive data in external storage
- Logging of sensitive data (Log.d/Log.i with tokens/credentials)
# SharedPreferences usage
grep -rn "SharedPreferences\|getSharedPreferences\|PreferenceManager" sources/
# Logging sensitive data
grep -rn "Log\.\(d\|i\|v\|w\|e\)" sources/ | grep -i "token\|password\|secret\|key\|auth"
# External storage
grep -rn "getExternalStorage\|EXTERNAL_STORAGE\|Environment.getExternalStorageDirectory" sources/
M3: Insecure Communication
- Certificate pinning — check network_security_config.xml for
<pin-set>elements - Cleartext traffic —
cleartextTrafficPermittedshould be false - Custom TrustManager — accepting all certs (X509TrustManager with empty checkServerTrusted)
- HostnameVerifier — custom verifier that always returns true
- WebView —
setMixedContentMode(MIXED_CONTENT_ALWAYS_ALLOW)
# Certificate pinning
grep -r "pin-set\|CertificatePinner\|sha256/" resources/ sources/
# Trust all certs
grep -rn "X509TrustManager\|checkServerTrusted\|TrustAllCerts\|ALLOW_ALL" sources/
# Hostname verifier bypass
grep -rn "HostnameVerifier\|ALLOW_ALL_HOSTNAME_VERIFIER\|verify.*return true" sources/
M4: Insecure Authentication
- Auth credentials in URL query params (
@Query/@QueryMapon auth endpoints) - Biometric auth without server-side validation (local-only bypass)
- Hardcoded credentials (admin/password patterns in code)
- Token sto
Установить svc-mobile-android в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл svc-mobile-android?
Android APK static analysis — OWASP Mobile Top 10, Retrofit API audit, transport security, smali reading, component export, auth flow analysis. Use when target is an APK/Android app. Triggers - APK, Android, mobile app, decompiled, smali, jadx, apktool.
Как установить скилл svc-mobile-android?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл svc-mobile-android запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic