# index-login/mobilere-skill architecture

> Architecture diagram of the GitHub repository index-login/mobilere-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/index-login/mobilere-skill
- Repository: https://github.com/index-login/mobilere-skill

## Overview

MobileRE-Skill is an AI-agent-led mobile reverse-engineering toolkit: a user describes an analysis task, the Kilo agent routes it through domain guidance to scripts, tools, and optional analysis services, producing dumps, observations, or analysis results. The graph preserves the documented static, dynamic, unpacking, native, behavioral, cryptographic, and compliance capabilities. Some connections are documented only at the README level; sampled source confirms the emulator-to-harness dependency, but unsampled modules are not treated as inspected.

Main entry points: [`.kilo/skill/frida-mobile-security/SKILL.md`](https://github.com/index-login/mobilere-skill/blob/main/.kilo/skill/frida-mobile-security/SKILL.md) (Task router), [`tools/unpack.py`](https://github.com/index-login/mobilere-skill/blob/main/tools/unpack.py) (Unpack pipeline), [`.kilo/agent/reverser.md`](https://github.com/index-login/mobilere-skill/blob/main/.kilo/agent/reverser.md) (Reverse agent), [`tools/frida_run.py`](https://github.com/index-login/mobilere-skill/blob/main/tools/frida_run.py) (Frida runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Agent guidance"]
  node_agent["Reverse agent<br/>[reverser.md]"]
  node_guidance["Task router<br/>[SKILL.md]"]
  node_domain_guides["Domain guides"]
end

subgraph group_dynamic["Dynamic analysis"]
  node_frida_runner["Frida runner<br/>[frida_run.py]"]
  node_frida_modules["Frida monitors<br/>[monitors]"]
  node_bypass_modules["Frida bypasses<br/>[bypass]"]
  node_frida_utilities["Runtime dump tools<br/>[utils]"]
  node_device_ui["Device interaction<br/>[device_ui.py]"]
end

subgraph group_unpack["Unpacking"]
  node_dex_dumper["Memory DEX dumpers<br/>[rev-dex-dumper]"]
  node_unpack_pipeline["Unpack pipeline<br/>[unpack.py]"]
  node_dex_rebuilder["DEX repair and rebuild<br/>[dex_rebuilder.py]"]
  node_dex_dedupe["DEX deduplication<br/>[dex_dedupe.py]"]
end

subgraph group_native["Native analysis"]
  node_so_analysis["SO static analysis<br/>[so.py]"]
  node_native_skills["Native workflows<br/>[rev-symbol]"]
  node_emu_runner["Function emulator<br/>[emu_run.py]"]
  node_uniharness["Unicorn harness<br/>[uniharness.py]"]
end

subgraph group_analysis["Analysis and compliance"]
  node_behavior_tools["File event monitor<br/>[fsmon_run.py]"]
  node_trace_recon["Trace reconstruction<br/>[trace_recon.py]"]
  node_cipher_lab["Cipher analysis<br/>[cipher_lab.py]"]
  node_compliance["Compliance checks<br/>[checklist]"]
end

node_user(("Analysis requester"))
node_target_device(("Android device and app"))
node_jadx{{"JADX MCP"}}
node_ghidra{{"Ghidra MCP"}}

node_user -->|"describes task"| node_agent
node_agent -->|"routes task"| node_guidance
node_guidance -->|"consults guidance"| node_domain_guides
node_guidance -->|"selects tools"| node_frida_runner
node_frida_runner -->|"attaches scripts"| node_target_device
node_frida_modules -->|"observes behavior"| node_target_device
node_bypass_modules -->|"alters behavior"| node_target_device
node_frida_utilities -->|"dumps runtime"| node_target_device
node_device_ui -->|"controls app"| node_target_device
node_guidance -->|"selects workflow"| node_unpack_pipeline
node_unpack_pipeline -->|"dumps app"| node_target_device
node_dex_dumper -->|"dumps memory DEX"| node_target_device
node_unpack_pipeline -->|"repairs DEX"| node_dex_rebuilder
node_unpack_pipeline -->|"deduplicates DEX"| node_dex_dedupe
node_guidance -->|"selects analysis"| node_so_analysis
node_so_analysis -->|"informs emulation"| node_emu_runner
node_emu_runner -->|"uses harness"| node_uniharness
node_native_skills -->|"uses MCP"| node_ghidra
node_guidance -->|"requests decompilation"| node_jadx
node_guidance -->|"selects monitoring"| node_behavior_tools
node_behavior_tools -->|"collects file events"| node_target_device
node_guidance -->|"selects reconstruction"| node_trace_recon
node_guidance -->|"selects cipher analysis"| node_cipher_lab
node_guidance -->|"selects checks"| node_compliance

click node_agent "https://github.com/index-login/mobilere-skill/blob/main/.kilo/agent/reverser.md"
click node_guidance "https://github.com/index-login/mobilere-skill/blob/main/.kilo/skill/frida-mobile-security/SKILL.md"
click node_domain_guides "https://github.com/index-login/mobilere-skill/tree/main/references"
click node_frida_runner "https://github.com/index-login/mobilere-skill/blob/main/tools/frida_run.py"
click node_frida_modules "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/monitors"
click node_bypass_modules "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/bypass"
click node_frida_utilities "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/utils"
click node_device_ui "https://github.com/index-login/mobilere-skill/blob/main/tools/device_ui.py"
click node_dex_dumper "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/rev-dex-dumper"
click node_unpack_pipeline "https://github.com/index-login/mobilere-skill/blob/main/tools/unpack.py"
click node_dex_rebuilder "https://github.com/index-login/mobilere-skill/blob/main/tools/dex_rebuilder.py"
click node_dex_dedupe "https://github.com/index-login/mobilere-skill/blob/main/tools/dex_dedupe.py"
click node_so_analysis "https://github.com/index-login/mobilere-skill/blob/main/tools/so.py"
click node_native_skills "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/rev-symbol"
click node_emu_runner "https://github.com/index-login/mobilere-skill/blob/main/tools/emu_run.py"
click node_uniharness "https://github.com/index-login/mobilere-skill/blob/main/tools/uniharness.py"
click node_behavior_tools "https://github.com/index-login/mobilere-skill/blob/main/tools/fsmon_run.py"
click node_trace_recon "https://github.com/index-login/mobilere-skill/blob/main/tools/trace_recon.py"
click node_cipher_lab "https://github.com/index-login/mobilere-skill/blob/main/tools/cipher_lab.py"
click node_compliance "https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/checklist"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_agent,node_guidance,node_domain_guides toneBlue
class node_frida_runner,node_frida_modules,node_bypass_modules,node_frida_utilities,node_device_ui toneAmber
class node_dex_dumper,node_unpack_pipeline,node_dex_rebuilder,node_dex_dedupe,node_user toneMint
class node_so_analysis,node_native_skills,node_emu_runner,node_uniharness toneRose
class node_behavior_tools,node_trace_recon,node_cipher_lab,node_compliance,node_target_device,node_jadx,node_ghidra toneIndigo
```

## Components

### Agent guidance

- [Reverse agent](https://github.com/index-login/mobilere-skill/blob/main/.kilo/agent/reverser.md): `.kilo/agent/reverser.md`
- [Task router](https://github.com/index-login/mobilere-skill/blob/main/.kilo/skill/frida-mobile-security/SKILL.md): `.kilo/skill/frida-mobile-security/SKILL.md`
- [Domain guides](https://github.com/index-login/mobilere-skill/tree/main/references): `references`

### Dynamic analysis

- [Frida runner](https://github.com/index-login/mobilere-skill/blob/main/tools/frida_run.py): `tools/frida_run.py`
- [Frida monitors](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/monitors): `.kilo/skill/frida-mobile-security/scripts/monitors`
- [Frida bypasses](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/bypass): `.kilo/skill/frida-mobile-security/scripts/bypass`
- [Runtime dump tools](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/utils): `.kilo/skill/frida-mobile-security/scripts/utils`
- [Device interaction](https://github.com/index-login/mobilere-skill/blob/main/tools/device_ui.py): `tools/device_ui.py`

### Unpacking

- [Memory DEX dumpers](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/rev-dex-dumper): `.kilo/skill/rev-dex-dumper`
- [Unpack pipeline](https://github.com/index-login/mobilere-skill/blob/main/tools/unpack.py): `tools/unpack.py`
- [DEX repair and rebuild](https://github.com/index-login/mobilere-skill/blob/main/tools/dex_rebuilder.py): `tools/dex_rebuilder.py`
- [DEX deduplication](https://github.com/index-login/mobilere-skill/blob/main/tools/dex_dedupe.py): `tools/dex_dedupe.py`

### Native analysis

- [SO static analysis](https://github.com/index-login/mobilere-skill/blob/main/tools/so.py): `tools/so.py`
- [Native workflows](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/rev-symbol): `.kilo/skill/rev-symbol`
- [Function emulator](https://github.com/index-login/mobilere-skill/blob/main/tools/emu_run.py): `tools/emu_run.py`
- [Unicorn harness](https://github.com/index-login/mobilere-skill/blob/main/tools/uniharness.py): `tools/uniharness.py`

### Analysis and compliance

- [File event monitor](https://github.com/index-login/mobilere-skill/blob/main/tools/fsmon_run.py): `tools/fsmon_run.py`
- [Trace reconstruction](https://github.com/index-login/mobilere-skill/blob/main/tools/trace_recon.py): `tools/trace_recon.py`
- [Cipher analysis](https://github.com/index-login/mobilere-skill/blob/main/tools/cipher_lab.py): `tools/cipher_lab.py`
- [Compliance checks](https://github.com/index-login/mobilere-skill/tree/main/.kilo/skill/frida-mobile-security/scripts/checklist): `.kilo/skill/frida-mobile-security/scripts/checklist`

### Other components

- **Analysis requester**
- **Android device and app**
- **JADX MCP**
- **Ghidra MCP**

## Connections

- Analysis requester → Reverse agent: describes task (evidence: `README.md`)
- Reverse agent → Task router: routes task (evidence: `README.md`)
- Task router → Domain guides: consults guidance (evidence: `README.md`)
- Task router → Frida runner: selects tools (evidence: `README.md`)
- Frida runner → Android device and app: attaches scripts (evidence: `README.md`)
- Frida monitors → Android device and app: observes behavior (evidence: `README.md`)
- Frida bypasses → Android device and app: alters behavior (evidence: `README.md`)
- Runtime dump tools → Android device and app: dumps runtime (evidence: `README.md`)
- Device interaction → Android device and app: controls app (evidence: `README.md`)
- Task router → Unpack pipeline: selects workflow (evidence: `README.md`)
- Unpack pipeline → Android device and app: dumps app (evidence: `README.md`)
- Memory DEX dumpers → Android device and app: dumps memory DEX (evidence: `README.md`)
- Unpack pipeline → DEX repair and rebuild: repairs DEX (evidence: `README.md`)
- Unpack pipeline → DEX deduplication: deduplicates DEX (evidence: `README.md`)
- Task router → SO static analysis: selects analysis (evidence: `README.md`)
- SO static analysis → Function emulator: informs emulation (evidence: `README.md`)
- Function emulator → Unicorn harness: uses harness (evidence: `tools/emu_run.py`)
- Native workflows → Ghidra MCP: uses MCP (evidence: `README.md`)
- Task router → JADX MCP: requests decompilation (evidence: `README.md`)
- Task router → File event monitor: selects monitoring (evidence: `README.md`)
- File event monitor → Android device and app: collects file events (evidence: `README.md`)
- Task router → Trace reconstruction: selects reconstruction (evidence: `README.md`)
- Task router → Cipher analysis: selects cipher analysis (evidence: `README.md`)
- Task router → Compliance checks: selects checks (evidence: `README.md`)
