# yash-patil-1/mobilesentry architecture

> Architecture diagram of the GitHub repository yash-patil-1/mobilesentry, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yash-patil-1/mobilesentry
- Repository: https://github.com/yash-patil-1/mobilesentry

## Overview

MobileSentry is a command-line mobile application security testing framework. A user selects an APK or IPA analysis, or invokes a separate security-testing capability; the CLI presents results, while unified report generation can combine analysis outputs. The documented product also includes OWASP static checks, obfuscation detection, runtime trace analysis, traffic/TLS analysis, and Frida bypass-script generation. The graph preserves these branches; some links are documented in the README, while unsampled command dispatch and cross-analyzer wiring are not asserted.

Main entry points: [`mobilesentry/cli.py`](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/cli.py) (Command-line interface), [`mobilesentry/report_generator.py`](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/report_generator.py) (Unified reports), [`mobilesentry/static_analyzer.py`](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/static_analyzer.py) (OWASP checks), [`mobilesentry/apk_analyzer.py`](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/apk_analyzer.py) (APK analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["CLI Interface"]
  node_cli["Command-line interface<br/>[cli.py]"]
end

subgraph group_analysis["App Analysis"]
  node_apk["APK analysis<br/>[apk_analyzer.py]"]
  node_ipa["IPA analysis<br/>[ipa_analyzer.py]"]
  node_static["OWASP checks<br/>[static_analyzer.py]"]
  node_obfuscation["Obfuscation detection"]
end

subgraph group_runtime["Runtime Testing"]
  node_dynamic["Dynamic analysis"]
  node_ssl["SSL bypass scripts<br/>[ssl_pinning.py]"]
  node_root["Root bypass scripts<br/>[root_bypass.py]"]
  node_traffic["Traffic and TLS analysis"]
end

subgraph group_reporting["Findings and Reports"]
  node_report["Unified reports"]
end

node_user(("Security tester"))
node_mobileapp["Mobile application"]

node_user -->|"runs commands"| node_cli
node_cli -->|"offers APK analysis"| node_apk
node_cli -->|"offers IPA analysis"| node_ipa
node_cli -->|"offers OWASP checks"| node_static
node_cli -->|"offers detection"| node_obfuscation
node_cli -->|"offers trace analysis"| node_dynamic
node_cli -->|"generates bypass scripts"| node_ssl
node_cli -->|"generates bypass scripts"| node_root
node_cli -->|"offers traffic analysis"| node_traffic
node_static -->|"consumes results"| node_apk
node_static -->|"consumes results"| node_ipa
node_mobileapp -->|"scripts target"| node_ssl
node_mobileapp -->|"scripts target"| node_root
node_report -->|"loads report data"| node_apk
node_report -->|"loads report data"| node_ipa
node_report -->|"loads report data"| node_static
node_report -->|"loads report data"| node_obfuscation
node_report -->|"loads report data"| node_dynamic
node_report -->|"loads report data"| node_traffic

click node_cli "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/cli.py"
click node_apk "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/apk_analyzer.py"
click node_ipa "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/ipa_analyzer.py"
click node_static "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/static_analyzer.py"
click node_obfuscation "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/obfuscation_detect.py"
click node_dynamic "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/dynamic_analyzer.py"
click node_ssl "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/ssl_pinning.py"
click node_root "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/root_bypass.py"
click node_traffic "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/traffic_intercept.py"
click node_report "https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/report_generator.py"

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_cli toneBlue
class node_apk,node_ipa,node_static,node_obfuscation toneAmber
class node_dynamic,node_ssl,node_root,node_traffic toneMint
class node_report toneRose
class node_user,node_mobileapp toneIndigo
```

## Components

### CLI Interface

- [Command-line interface](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/cli.py): `mobilesentry/cli.py`

### App Analysis

- [APK analysis](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/apk_analyzer.py): `mobilesentry/apk_analyzer.py`
- [IPA analysis](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/ipa_analyzer.py): `mobilesentry/ipa_analyzer.py`
- [OWASP checks](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/static_analyzer.py): `mobilesentry/static_analyzer.py`
- [Obfuscation detection](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/obfuscation_detect.py): `mobilesentry/obfuscation_detect.py`

### Runtime Testing

- [Dynamic analysis](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/dynamic_analyzer.py): `mobilesentry/dynamic_analyzer.py`
- [SSL bypass scripts](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/ssl_pinning.py): `mobilesentry/ssl_pinning.py`
- [Root bypass scripts](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/root_bypass.py): `mobilesentry/root_bypass.py`
- [Traffic and TLS analysis](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/traffic_intercept.py): `mobilesentry/traffic_intercept.py`

### Findings and Reports

- [Unified reports](https://github.com/yash-patil-1/mobilesentry/blob/main/mobilesentry/report_generator.py): `mobilesentry/report_generator.py`

### Other components

- **Security tester**
- **Mobile application**

## Connections

- Security tester → Command-line interface: runs commands (evidence: `README.md`)
- Command-line interface → APK analysis: offers APK analysis (evidence: `README.md`)
- Command-line interface → IPA analysis: offers IPA analysis (evidence: `README.md`)
- Command-line interface → OWASP checks: offers OWASP checks (evidence: `README.md`)
- Command-line interface → Obfuscation detection: offers detection (evidence: `README.md`)
- Command-line interface → Dynamic analysis: offers trace analysis (evidence: `README.md`)
- Command-line interface → SSL bypass scripts: generates bypass scripts (evidence: `README.md`)
- Command-line interface → Root bypass scripts: generates bypass scripts (evidence: `README.md`)
- Command-line interface → Traffic and TLS analysis: offers traffic analysis (evidence: `README.md`)
- OWASP checks → APK analysis: consumes results (evidence: `mobilesentry/static_analyzer.py`)
- OWASP checks → IPA analysis: consumes results (evidence: `mobilesentry/static_analyzer.py`)
- Mobile application → SSL bypass scripts: scripts target (evidence: `README.md`)
- Mobile application → Root bypass scripts: scripts target (evidence: `README.md`)
- Unified reports → APK analysis: loads report data (evidence: `mobilesentry/report_generator.py`)
- Unified reports → IPA analysis: loads report data (evidence: `mobilesentry/report_generator.py`)
- Unified reports → OWASP checks: loads report data (evidence: `mobilesentry/report_generator.py`)
- Unified reports → Obfuscation detection: loads report data (evidence: `mobilesentry/report_generator.py`)
- Unified reports → Dynamic analysis: loads report data (evidence: `mobilesentry/report_generator.py`)
- Unified reports → Traffic and TLS analysis: loads report data (evidence: `mobilesentry/report_generator.py`)
