Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
noorqureshi/mobile-apk-reverseMobile, firmware e hardware

mobile-apk-reverse

⁨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/⁩

v2026.10.14-ee0e0c53 instalações+3 em 7 dias27 EstrelasMITsincronizado há 22 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/mobile-apk-reverse

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
CB5165f4MY…ywlGgCBA==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacotefa6752cb…06d2a990
fa6752cb3b05…4e1b06d2a9902 arquivos · ⁦5.2 KB⁩
VarreduraMédio2 achados
  • command.pipe_to_shellSKILL.md:88
  • Links para domínios externos
Ver a varredura completa
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/mobile/mobile-apk-reverse@ee0e0c5

Este item ainda não foi escrito no seu idioma, então aparece em English.

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 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 by zhaoxuya520, MIT License.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosSimSim
Roda comandos no shellSimSim
Usa a redeSimSim
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

  1. MédiaComando · command.pipe_to_shellSKILL.md:88
  2. InfoLink · Links para domínios externos

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.10.14-ee0e0c513 de nov. de 2026ee0e0c5fa6752cbAssinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login