Logotipo de Reversing React Native Apps

Reversing React Native Apps

Comunidad
trilwu
reversing-react-native-apps

Aplica ingeniería inversa a aplicaciones móviles React Native, incluidos los paquetes de bytecode de Hermes, con hbctool, hermes-dec y Frida. Úsalo cuando un APK contenga index.android.bundle o libhermes.so; cuando un IPA contenga main.jsbundle; cuando jadx solo muestre clases ReactActivity; o cuando un archivo de paquete empiece por los bytes mágicos de Hermes en lugar de contener JavaScript legible.

Add to TypingMind

Descripción general

Editortrilwu
Repositoriosecskills
Nombre de la habilidadreversing-react-native-apps
Estrellas
144
Forks
15
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por trilwu en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Reversing React Native Apps en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-react-native-apps
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Reversing React Native Apps en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Reversing React Native Apps automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Reversing React Native Apps no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu 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

Preguntas frecuentes

¿Qué hace la habilidad de IA Reversing React Native Apps?

Aplica ingeniería inversa a aplicaciones móviles React Native, incluidos los paquetes de bytecode de Hermes, con hbctool, hermes-dec y Frida. Úsalo cuando un APK contenga index.android.bundle o libhermes.so; cuando un IPA contenga main.jsbundle; cuando jadx solo muestre clases ReactActivity; o cuando un archivo de paquete empiece por los bytes mágicos de Hermes en lugar de contener JavaScript legible.

¿Por qué usar Reversing React Native Apps en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Reversing React Native Apps está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Reversing React Native Apps en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-react-native-apps. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Reversing React Native Apps?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Reversing React Native Apps?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Reversing React Native Apps con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Reversing React Native Apps?

Sí. trilwu la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇