Logo de Reversing React Native Apps

Reversing React Native Apps

Comunidade
trilwu
reversing-react-native-apps

Faça engenharia reversa de aplicativos móveis React Native, incluindo bundles de bytecode Hermes, usando hbctool, hermes-dec e Frida. Use quando um APK contiver index.android.bundle ou libhermes.so, quando um IPA contiver main.jsbundle, quando o jadx mostrar apenas classes ReactActivity ou quando um arquivo de bundle começar com os bytes mágicos do Hermes em vez de JavaScript legível.

Add to TypingMind

Visão geral

Publicado portrilwu
Repositóriosecskills
Nome da habilidadereversing-react-native-apps
Estrelas
144
Forks
15
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por trilwu no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Reversing React Native Apps no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-react-native-apps
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/trilwu/secskills.git /tmp/secskills
mkdir -p .claude/skills
cp -r /tmp/secskills/secskills-core/skills/reversing-react-native-apps .claude/skills/reversing-react-native-apps
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Reversing React Native Apps em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Reversing React Native Apps automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Reversing React Native Apps não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Reversing React Native Apps

React Native apps are JavaScript wearing a native shell. That is good news — the application logic ships as a bundle you can read — unless the bundle was compiled to Hermes bytecode, in which case you need a decompiler and the version compatibility problem becomes the whole task.

When to Use

  • jadx shows ReactActivity, ReactNativeHost, and little application logic
  • The APK contains assets/index.android.bundle or lib/*/libhermes.so
  • The IPA contains main.jsbundle
  • You need to find API endpoints, secrets, or business logic in an RN app
  • You need to patch or hook JavaScript-level behaviour

When NOT to Use

  • Flutter (libapp.so, libflutter.so) — use reversing-flutter-apps
  • Unity (global-metadata.dat) — use reversing-unity-il2cpp
  • Native Java/Kotlin apps — use testing-mobile-applications
  • Native modules written in C/C++ — use analyzing-binaries

Identify the Bundle Format

This one check decides whether the job takes ten minutes or a day.

bash
unzip -j target.apk 'assets/index.android.bundle' -d ./out
file ./out/index.android.bundle
xxd ./out/index.android.bundle | head -2
First bytesFormatPath
Readable JS (var __BUNDLE_START, __d(function)Plain JavaScriptBeautify and read directly
Binary, Hermes magic (c6 1f bc 03 little-endian)Hermes bytecodeDecompile — see below
bash
# Plain bundle: beautify, then it reads like any minified web app
npx js-beautify index.android.bundle -o bundle.js
rg -n 'https?://|api[_-]?key|Bearer |secret|token' bundle.js | head -50

A plain bundle is a gift. Module boundaries survive as __d(function(...) registrations, source maps are occasionally shipped by mistake (index.android.bundle.map — always check), and the whole application logic is in front of you.

Hermes Bytecode

Hermes compiles JS to its own bytecode (HBC). The bytecode version is embedded in the header and changes with React Native releases, which is the single biggest practical obstacle: a tool that supports HBC 74 will refuse or misparse HBC 96.

bash
# Read the version out of the header before choosing a tool
hbctool disasm index.android.bundle ./disasm     # HBC 59, 62, 74 ONLY
hermes-dec ...                                    # decompiler; wider version support

Upstream hbctool ships support for exactly three bytecode versions — 59, 62, and 74. Anything else fails at parse. Check the header version first rather than reading a parse error as "the bundle is protected"; on a current React Native release you will usually be above 74 and should reach for hermes-dec or a hermesc you built from the matching Hermes tag.

ToolGives youCaveat
hbctoolDisassembly and reassembly — you can patch and repackSupports a limited set of HBC versions
hermes-decDecompiled pseudo-JavaScriptRead-only; output is approximate
hasmerDisassembly/assembly, alternate version coverageTry when hbctool refuses the version

When every tool rejects the version, the reliable fallback is to build the matching hermesc from the React Native release the app used, and use its tooling. That is slower but version-correct.

What to do with the output. Even imperfect decompilation is enough for the questions that matter: string tables survive intact, so endpoints, keys, and feature flags are recoverable directly:

bash
strings -n 6 index.android.bundle | rg -i 'https?://|api|token|secret|firebase' | sort -u

The Hermes string table is a flat, readable region of the file. Reach for it before decompiling — it often answers the question outright.

Runtime Analysis

Frida is frequently faster than static work on RN, because the interesting boundary is where JavaScript calls into native.

bash
# Enumerate the native modules the JS side can reach
frida -U -f com.target.app -l rn-enumerate-modules.js

# Hook the bridge: every JS↔native call, with arguments
# (target the ReactNative bridge / TurboModule dispatch)
objection -g com.target.app explore

Useful hook points: fetch/XMLHttpRequest in the JS runtime, the native networking module (OkHttp on Android — hookable with standard pinning bypass), AsyncStorage reads and writes, and any NativeModules.* the app defines.

TLS interception is ordinary here — unlike Flutter, RN uses the platform HTTP stack, so the usual system-CA plus proxy setup works, and standard pinning bypasses apply. If interception fails, suspect pinning in a native module, not a separate trust store.

Where the Findings Usually Are

React Native apps concentrate the same few problems:

  • Secrets in the bundle. API keys, Firebase configs, and third-party tokens shipped in JS because "it's compiled." Hermes is not encryption.
  • Client-side authorization. Role checks and feature gates implemented in JS, trivially patched or simply ignored by calling the API directly.
  • AsyncStorage as a credential store. Unencrypted by default; tokens and PII routinely land there.
  • Over-broad native modules. Custom bridge methods that expose file system or shell access to JS, reachable from any injected script.
  • Debug artifacts. Source maps, dev-mode bundles, and console.log output left in release builds.

Patching and Repacking

bash
hbctool disasm index.android.bundle ./work
# edit ./work/instruction.hasm and ./work/metadata.json
hbctool asm ./work index.android.bundle.patched
# replace in the APK, then re-sign
apktool b target -o patched.apk && apksigner sign --ks debug.keystore patched.apk

Patch only what you must, and only with authorization. Repacking trips integrity checks in hardened apps; if the app validates its own bundle, hook the check rather than defeating it by editing.

Rationalizations to Reject

  • "The bundle is binary, so the logic is protected." Hermes is a compiler, not a protection. The string table alone often gives up the API.
  • "jadx found nothing, so it's obfuscated." There is nothing in the dex. Look in assets/.
  • "No tool supports this HBC version, dead end." Build hermesc from the matching React Native release, or read the string table.
  • "The key is only used client-side." It is in the bundle, so it is public. Treat every bundle secret as disclosed.
  • "The app enforces the role check." The app is the client. Verify the check server-side by calling the API without it.

References

  • testing-mobile-applications — the wider assessment, storage, and platform issues
  • testing-apis — the backend, which is where the real findings are
  • reversing-flutter-apps — the other common cross-platform framework
  • hbctool, hermes-dec, hasmer, Frida/objection, jadx, apktool

Perguntas frequentes

O que a habilidade de IA Reversing React Native Apps faz?

Faça engenharia reversa de aplicativos móveis React Native, incluindo bundles de bytecode Hermes, usando hbctool, hermes-dec e Frida. Use quando um APK contiver index.android.bundle ou libhermes.so, quando um IPA contiver main.jsbundle, quando o jadx mostrar apenas classes ReactActivity ou quando um arquivo de bundle começar com os bytes mágicos do Hermes em vez de JavaScript legível.

Por que usar Reversing React Native Apps no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Reversing React Native Apps é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Reversing React Native Apps no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-react-native-apps. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Reversing React Native Apps?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Reversing React Native Apps?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Reversing React Native Apps com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Reversing React Native Apps é gratuita?

Sim. A habilidade é publicada no GitHub por trilwu sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇