Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Mobile Apk Reverse

DSecurity

Reverse an Android APK end-to-end — jadx/apktool unpacking, manifest and smali analysis, rebuild-sign-install patching, and Frida runtime hooks. Load when handed an .apk to understand, modify, or instrument: login/signing/risk-control logic, root or SSL-pinning checks, cert validation, embedded .so/JNI code. Signals: an APK in scope, "decompile/patch this app", smali, AndroidManifest.xml, jadx/apktool/frida/adb, System.loadLibrary, OkHttp/Retrofit.

20 stars
0 votes
0 copies
0 views
Added 10/4/2026
ai-agentsrustgojavabashgitdocumentation

Security Analysis

D50/100
criticalPipes output to a shell interpreter
criticalAccesses sensitive system or user directories

Pro scans all 2 files and shows the line behind each finding

Scanned 10/4/2026

$npx -y skills add NoorQureshi/SploitAgent --skill mobile-apk-reverse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mobile Apk Reverse?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Mobile Apk Reverse
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/noorqureshi-mobile-apk-reverse/badge)](https://www.skillsdirectory.com/skills/noorqureshi-mobile-apk-reverse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: mobile-apk-reverse
description: >
  Reverse an Android APK end-to-end — jadx/apktool unpacking, manifest and smali analysis,
  rebuild-sign-install patching, and Frida runtime hooks. Load when handed an .apk to understand,
  modify, or instrument: login/signing/risk-control logic, root or SSL-pinning checks, cert
  validation, embedded .so/JNI code. Signals: an APK in scope, "decompile/patch this app",
  smali, AndroidManifest.xml, jadx/apktool/frida/adb, System.loadLibrary, OkHttp/Retrofit.
domain: mobile
type: technique
stability: learning
modes: [pentest, bugbounty]
severity: medium
owasp: [M7:2024-Insufficient-Binary-Protections]
tools: [jadx, apktool, frida, adb, zipalign, apksigner, keytool]
schema_version: 1
---

# APK reversing (unpack → patch → hook)

## When it applies
You have an APK and a device/emulator you're authorized to test (`tradecraft-scope-roe`,
`scope.txt`), and the job is mechanics: read the logic, locate a check, patch and repackage, or
hook the runtime. For the broader *what-to-test* coverage map, work `mobile-android-assessment`
alongside — this skill is the reverse-engineering toolchain it routes into.

## Why it works
An APK is a zip of DEX bytecode plus resources. DEX decompiles to near-readable Java (jadx) and
round-trips losslessly through smali (apktool), so you can read at the Java level but patch at the
smali level and rebuild. Anything the app hides from static reading — decrypted strings, runtime
checks, pinning — yields to Frida instrumentation on a rooted/emulated device.

## Method
> Ready-to-adapt Frida hook recipes (crypto, OkHttp, pinning, root/emulator/anti-debug bypass,
> storage): see [`cheatsheet.md`](cheatsheet.md) next to this file.

1. **Triage — unpack both ways before touching anything.**
   ```bash
   jadx -d jadx_out app.apk            # readable Java view
   apktool d app.apk -o apktool_out    # smali + resources + manifest
   ```
   Read `AndroidManifest.xml` first: package, main activity, exported components, permissions,
   and whether `lib/` ships `.so` files. Grep jadx_out for `login|sign|encrypt|cipher|token|root|
   certificate|trust|okhttp|retrofit|webview`.
2. **Read the Java layer.** Start at `Application` and the launcher activity, then the
   auth/network/crypto classes and third-party SDK init. If jadx output is readable, locate the
   business logic here before going lower.
3. **Drop to smali when jadx is incomplete or you need to patch.** In `apktool_out`: `smali*/`,
   `res/values/strings.xml`, the manifest. Prime patch targets: root-detection return values,
   login/cert-validation branches, debug flags, `android:exported`. jadx failing on a class does
   not mean the logic is unreadable — the smali is always there.
4. **Rebuild, sign, install.**
   ```bash
   apktool b apktool_out -o rebuilt.apk
   zipalign -p 4 rebuilt.apk rebuilt-aligned.apk
   keytool -genkey -v -keystore debug.keystore -alias androiddebugkey \
     -keyalg RSA -keysize 2048 -validity 10000   # once; reuse it
   apksigner sign --ks debug.keystore rebuilt-aligned.apk
   apksigner verify rebuilt-aligned.apk
   adb install -r rebuilt-aligned.apk
   ```
5. **Dynamic hooks when static stalls** (runtime-decrypted strings, pinning, anti-tamper):
   ```bash
   adb devices && frida-ps -U                       # device + process sanity
   frida -U -f com.example.app -l hook.js           # spawn + inject
   frida-trace -U -f com.example.app -j '*!*certificate*'
   ```
   Hook the Java layer first (`javax.crypto.Cipher`, `MessageDigest`, OkHttp, WebView, the
   root/pinning checks); print arguments and returns before you start overriding them. Go to
   native hooks only when the Java layer proves to be a JNI wrapper. Full pinning-bypass technique:
   `mobile-cert-pinning-bypass`.
6. **Split to native when the `.so` carries the real logic** — signals: Java methods are thin JNI
   wrappers, the signing/risk-control logic vanishes after `System.loadLibrary()`, or cert checks
   live in native code. Find JNI entry points (`JNI_OnLoad` for dynamic registration via
   `RegisterNatives`, `Java_<pkg>_<class>_<method>` for static) and continue with
   `reverse-eng-binary-triage` on the extracted `.so`.

## Gotchas
- **Don't patch blind.** Read the manifest and main entry first; never write hooks before you know
  which class/method matters.
- **jadx partial-failure is normal** — it still emits usable output for the rest; switch to smali
  or a second engine (JEB/Ghidra) for the broken classes.
- **Signature scheme v2+ breaks on naive rezipping** — always rebuild with `apktool b` +
  `apksigner`, never by hand-editing inside the zip.
- **The app may detect the emulator/root/frida and refuse to run** — bypass hooks are in
  `cheatsheet.md`; confirm the bypass fired (the check logged) before trusting later observations.
- **Malicious-sample tells** (authorized triage only): transparent/hidden launcher icon,
  `service.d`/`priv-app` persistence, remote `curl|sh` payloads. Record indicators as evidence —
  never execute destructive commands.
- **Clean up** — uninstall patched builds and remove pushed frida-server when done.

## Verify success
You can state: entry components and key classes; whether the critical logic lives in Java, smali,
or a `.so`; every confirmed sensitive point (login, signing, root, SSL, WebView, JNI); exactly
what any patch changed; and which class/method/export each hook covered — with the rebuilt APK
installed and behaving as the patch intended.

## References
jadx & apktool documentation; Frida docs and CodeShare; OWASP MASTG.

---
_Portions adapted from [reverse-skill](https://github.com/zhaoxuya520/reverse-skill) by zhaoxuya520, MIT License._

Attribution

NoorQureshiNoorQureshi
View sourceSee grades on GitHubMore from NoorQureshi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →