بنقرة واحدة
analyze-apk
Full security analysis of an Android application — from APK to report
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Full security analysis of an Android application — from APK to report
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Compare two versions of an Android app — diff permissions, APIs, security, code changes
Discover, document, and map all API endpoints of an Android application
Intelligent traffic interception — SSL bypass, HTTP logging, traffic collection
Automated account registration in an Android app using temp email and UI automation
| name | analyze-apk |
| description | Full security analysis of an Android application — from APK to report |
| user_invocable | true |
| argument | <package_name_or_apk_path> |
| agent | android-reverser |
You are performing a comprehensive security analysis. Think, don't checklist.
$ARGUMENTS — either a package name (com.example.app) or path to APK fileIf given a package name (not a file path):
# Option A: Pull from device (if connected)
adb shell pm path $ARGUMENTS
adb pull <path> workspace/samples/
# Option B: Download from store (no device needed)
justapk download $ARGUMENTS -o workspace/samples/
If given a file path, use directly.
Set $APK = path to the APK file, $PKG = package name.
This phase determines your entire strategy. Do not skip.
# 1. Protection detection
apkid $APK
# 2. Check native libraries
unzip -l $APK | grep '\.so' | head -20
# 3. Check assets for framework indicators
unzip -l $APK | grep -E 'flutter|react|index\.android\.bundle|il2cpp|global-metadata'
# 4. Quick manifest check
java -jar tools/apktool/apktool.jar d -s -f -o /tmp/apk_quick $APK
# Read AndroidManifest.xml
DECIDE based on findings:
tools/il2cppdumper/Il2CppDumper.exe libil2cpp.so global-metadata.dat output/ + Ghidra with recovered symbolsclsdumper to dump DEX first, then proceedsimplify first (java -jar tools/simplify/simplify.jar -i app.apk -o clean.apk), then java-deobfuscator/threadtear# Primary: jadx
jadx -d workspace/output/$PKG --deobf --show-bad-code $APK
# Resources + smali: apktool
java -jar tools/apktool/apktool.jar d -o workspace/output/$PKG-smali $APK
If packed and clsdumper was used, decompile the dumped DEX instead.
Read AndroidManifest.xml and analyze:
exported="true" or intent-filters (implicit export)debuggable, allowBackup, usesCleartextTraffic, networkSecurityConfig<intent-filter> with android.intent.action.VIEW + <data> elements# Step 1: apkleaks — fast APK-level scan
apkleaks -f $APK --json -o workspace/reports/$PKG-secrets.json
# Step 2: trufflehog — deep scan on decompiled source (800+ secret types, validates if live!)
tools/trufflehog/trufflehog.exe filesystem workspace/output/$PKG/ --json
Then search decompiled source using expert patterns from the agent reference. Focus on: API keys, hardcoded credentials, Firebase configs, cloud service keys.
For every secret found: determine scope and impact. trufflehog validates automatically — check its output for verified credentials.
Find all network endpoints:
Build endpoint table: Method | Path | Auth Required | Request Model | Response Model
Walk through patterns:
Only if device is available (adb devices shows device):
# If app detects Frida (crashes on attach), use phantom-frida:
# Read tools/phantom-frida/build-info.json for <NAME> and <PORT>
# adb push tools/phantom-frida/<NAME>-server /data/local/tmp/<NAME>-server
# adb shell chmod 755 /data/local/tmp/<NAME>-server && adb shell /data/local/tmp/<NAME>-server -D &
# adb forward tcp:<PORT> tcp:<PORT>
# Then use: frida -H 127.0.0.1:<PORT> instead of frida -U
# Check root detection
frida -U -f $PKG -l workspace/frida-scripts/root-bypass.js
# Monitor crypto (reveals actual keys/algorithms in use)
frida -U -f $PKG -l workspace/frida-scripts/crypto-tracer.js
# Monitor SharedPrefs (reveals actual stored data)
frida -U -f $PKG -l workspace/frida-scripts/shared-prefs-monitor.js
# Check actual stored data on device
adb shell run-as $PKG ls shared_prefs/
adb shell run-as $PKG ls databases/
Generate report at workspace/reports/$PKG-$(date +%Y-%m-%d).md following the report format in the agent reference.
Critical: The report must show chain of reasoning, not just findings. Each finding should explain WHY it matters and WHAT an attacker could do with it.