ctf-mobile
БесплатноЗапускает вложенные скриптыНе проверенUse when the user mentions Android, APK, apk, apktool, jadx, smali, dex, AndroidManifest, frida, frida-server, objection, waydroid, Android emulator, rooted…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
CTF mobile — Android-first, iOS-light
Workspace layout, flag log, submission, remote gate: sibling skill ctf
(../ctf/SKILL.md). Native lib/<abi>/*.so reversing once located: sibling skill
ctf-rev. This skill gets you from base.apk/app.ipa to the flag.
Guardrail: challenge APKs/IPAs are untrusted. Static analysis on the host is fine; run the app only inside waydroid or a throwaway emulator image — never on a personal device, never "just to check" outside the challenge run env.
Triage — first 5 minutes
From work/<event>/<chal>/. $ROOT below is the ctf repo root (from a challenge
dir that's ../../..); tool paths are $ROOT-relative, data paths (dist/,
apk-out/) are challenge-dir relative.
$ROOT/skills/ctf-mobile/scripts/apk-triage.sh dist/base.apk # report → apk-out/
If the artifact is an .ipa, skip to references/ios-light.md. If it is an
.xapk/.apkm/.apks, it is still a zip — extract and work on base.apk
(see references/android-recon.md "Split bundles").
Reading the zip listing
| Entry in APK | Meaning | Next step |
|---|---|---|
classes.dex, classes2.dex… |
Dalvik code (count tracks app size) | jadx |
lib/<abi>/*.so |
native libraries; ABI set decides run env | fingerprint below |
assets/ |
app data: bundles, JS, configs, DBs | grep + fingerprint below |
res/raw/ |
uncompiled blobs (audio, models) | file each one |
AndroidManifest.xml |
binary XML until apktool decodes it | manifest checklist in recon ref |
resources.arsc |
compiled resources (strings live here too) | apktool decodes to res/ |
META-INF/*.RSA |
v1 signature cert | rarely useful |
Framework fingerprint (from lib/ and assets/)
| Signal | Framework | Follow-up |
|---|---|---|
libapp.so + libflutter.so |
Flutter | recon ref "Flutter" (blutter) |
assets/index.android.bundle |
React Native | plain JS or Hermes — recon ref |
assets/www/index.html |
Cordova/Ionic | read the JS, it is the app |
libil2cpp.so + assets/bin/Data/.../global-metadata.dat |
Unity IL2CPP | Il2CppDumper → ctf-rev |
Assembly-CSharp.dll |
Unity Mono | dotnet tooling in ctf-rev |
*.pck |
Godot | pck extractors in recon ref |
only lib<name>.so + dex |
NDK app | ctf-rev (ghidra arm64) |
no lib/ at all |
pure Java/Kotlin | jadx straight away |
Run-environment inventory (before any dynamic work)
| Have | Use | Notes |
|---|---|---|
| Rooted physical device + USB | adb over USB + frida-server |
best compat, runs arm64-only APKs |
| No device | waydroid | sudo pacman -S waydroid; root shell; container-isolated |
| No device, want a real emulator | android-studio (AUR) AVD | pick a non-"Play" image so adb root works |
| No root at all | objection patchapk (frida gadget) |
repackaged APK; breaks signature checks |
Setup commands and pitfalls: references/android-dynamic.md.
Decision table
| Signal | Go to |
|---|---|
| secrets / keys / URLs found by the grep sweep | recon ref "Secret sweep"; offline crypto, no device needed |
| exported components in manifest | vulns ref "Exported components" |
| behavior only visible at runtime (pinning, hidden check, obfuscated logic) | dynamic ref — frida-first |
| root/integrity/emulator check blocks you | dynamic ref "Bypass recipes" |
| WebView / JS bridge / deep link in jadx | vulns ref "WebView" / "Deep links" |
.ipa |
ios-light ref |
Playbook
Static → dynamic loop (default)
scripts/apk-triage.sh→ inventory, secrets, manifest quick-look.- jadx: read the launcher activity
onCreate, then follow data flow toward the flag check (registration code, nativenative*()decls, crypto). - Hypothesis → confirm dynamically (adb, frida) → record in
notes.md. - Escalate: vulns-ref bug-class table; obfuscated strings → call the app's own decryptor from frida (recon ref "Obfuscation").
Frida-first when the question is behavioral
For "what does the app do when X" (pinning, hidden unlock, encrypted protocol, string-decrypt calls) skip the static rabbit hole:
- Set up the run env + frida-server (dynamic ref),
frida-ps -Uato see the app. - Start from
scripts/frida-hook.js(guarded root-bypass + unpinning skeletons). - Discovery without reading code:
frida-trace -U -f <pkg> --runtime=v8 -j '*!*keyword*/isu'— trace Java methods whose signature containskeyword(s = match signature, i = ignore case, u = user classes only). - Quick wins via objection:
android sslpinning disable,android hooking watch.
Android bug classes (quick map — full recipes in references/android-vulns.md)
| Attack | Precondition | Command sketch |
|---|---|---|
| Start exported activity | android:exported="true" (or intent-filter pre-12) |
adb shell am start -n pkg/.Act --ez admin true |
| Talk to exported service/receiver | idem | am start-foreground-service -n …, am broadcast -a ACT |
| Query exported provider | exported content:// |
`adb sh |
Установить ctf-mobile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ctf-mobile?
Use when the user mentions Android, APK, apk, apktool, jadx, smali, dex, AndroidManifest, frida, frida-server, objection, waydroid, Android emulator, rooted device, SSL pinning, iOS, IPA, mobile app challenge, reversing an app, or a mobile/Android CTF category. Owns Android static and dynamic app analysis plus iOS-light triage; hands native .so reversing to ctf-rev.
Как установить скилл ctf-mobile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ctf-mobile запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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