Skill Store 33

How to Reverse Engineer an Android APK with AI (JADX MCP + Frida)

Use when someone wants to analyze an Android app they own or are authorized to test (their own app, a pentest engagement, a malware sample) with AI help: decompiling with jadx and apktool, connecting the decompiled code to an agent through JADX MCP, a manifest and exported-component audit checklist, and confirming behavior with Frida on a test device. Covers keeping code private with a local model.

by skillstore33 · MIT

The skill

Use when someone wants to analyze an Android app they own or are authorized to test (their own app, a pentest engagement, a malware sample) with AI help: decompiling with jadx and apktool, connecting the decompiled code to an agent through JADX MCP, a manifest and exported-component audit checklist, and confirming behavior with Frida on a test device. Covers keeping code private with a local model.

How to Reverse Engineer an Android APK with AI (JADX MCP + Frida)

Rule for using this skill: Confirm the app is the user's own, in scope for an authorized security test, or a malware sample being analyzed defensively. Decompile, audit the manifest first, let the agent read code through JADX MCP for targeted questions, and confirm findings with Frida on a test device. If the code is confidential, use a local model. No piracy, license or ad removal, or cheating.

1. Get the APK and decompile it

  • Your own app: the build output. An installed app on a test device: adb shell pm path com.example.app, then adb pull the path it prints.
  • jadx (Java/Kotlin source view): jadx -d out/ app.apk, or open it in jadx-gui.
  • apktool (resources and smali): apktool d app.apk -o app_apktool/.

2. Audit the manifest first (no AI needed)

Open AndroidManifest.xml and list:

Check Why
Exported activities, services, receivers and providers (android:exported="true", or intent filters) Entry points other apps can call
Deep links (intent filters with <data android:scheme=...>) URL-reachable entry points
android:debuggable, android:allowBackup Should be off in release builds
usesCleartextTraffic, the network security config Plain HTTP allowed?
Permissions requested More than the app needs?
Content provider grantUriPermissions and path permissions Data exposure

3. Connect the code to your agent: JADX MCP

JADX MCP servers (zinja-coder/jadx-ai-mcp, Qtty/jadx-mcp-server) let an agent browse the decompiled classes, search, and read methods while jadx-gui has the APK open. Install per the server's README and register it with your MCP client.

Ask targeted questions:

  • "Find where the deep link myapp://reset is handled and show how its parameters are validated."
  • "Which classes handle authentication tokens, and where are they stored?"
  • "List network endpoints the app calls, with the class and method for each."
  • "Answer with class and method names, and quote the lines."

Privacy: decompiled code goes to whatever model your client uses. For confidential apps, use a local model (see the local-LLM skill).

4. Confirm with Frida on a test device

Static reading suggests; dynamic testing confirms. On a test device or emulator with frida-server running:

  • Start the app with a hook script: frida -U -f com.example.app -l hook.js.
  • Hook the method the agent identified, log its arguments and return value, and trigger the feature.
  • Ask the agent to write the hook from the class and method names, using the current Frida API (it changed in Frida 17; older examples may fail).

5. Report

For each finding: the component, the entry point (exported component, deep link, API), the evidence (class and method, code lines, Frida log), the impact, and the fix (set exported="false", validate parameters, use EncryptedSharedPreferences, enforce TLS).

Sources

  • jadx-ai-mcp: https://github.com/zinja-coder/jadx-ai-mcp
  • jadx-mcp-server: https://github.com/Qtty/jadx-mcp-server
  • JADX MCP, letting the AI read the APK: https://infosecwriteups.com/jadx-mcp-i-let-the-ai-read-the-apk-so-i-dont-have-to-548d1e8210e6
  • Accelerating APK analysis with MCP-driven JADX workflows: https://twseptian.github.io/posts/accelerating-apk-analysis-with-mcp-driven-jadx-workflows
  • 8kSec, reverse engineering with a local LLM, disassembly and Frida: https://8ksec.io/reverse-engineering-with-local-llm-disassembly-frida/

Use this skill

Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/how-to-reverse-engineer-an-android-apk-with-ai-60909517366.

Download SKILL.md · Markdown version

Details

Publisher
skillstore33
Category
Security › Application security
License
MIT
Updated
2026-11-30

References

More from skillstore33