# owasp/mastg architecture

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

- Interactive diagram: https://gitdiagram.com/owasp/mastg
- Repository: https://github.com/owasp/mastg

## Overview

MASTG is a content-centered mobile application security testing and reverse-engineering guide, not a conventional runtime application. The principal workflow is for a tester to consult platform and topic guidance, use test cases and supporting tools or demonstrations, and assess mobile-app security weaknesses against MASVS controls. The README documents the MASVS–MASWE–MASTG alignment and the guide’s verification purpose; relationships among the content directories are not established by the sampled source, so those links are shown as unverified.

Main entry points: [`Document`](https://github.com/owasp/mastg/tree/master/Document) (MASTG Guide), [`Document/0x05b-Android-Security-Testing.md`](https://github.com/owasp/mastg/blob/master/Document/0x05b-Android-Security-Testing.md) (Android Testing), [`Document/0x06b-iOS-Security-Testing.md`](https://github.com/owasp/mastg/blob/master/Document/0x06b-iOS-Security-Testing.md) (iOS Testing), [`Document/0x04b-Mobile-App-Security-Testing.md`](https://github.com/owasp/mastg/blob/master/Document/0x04b-Mobile-App-Security-Testing.md) (Cross-Platform Testing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_standards["Security Standards"]
  node_masvs["MASVS Controls"]
  node_maswe["MASWE Weaknesses"]
end

subgraph group_guidance["Testing Guidance"]
  node_mastg["MASTG Guide"]
  node_android["Android Testing"]
  node_ios["iOS Testing"]
  node_generic["Cross-Platform Testing"]
  node_tests["Test Cases"]
  node_beta_tests["Beta Test Cases"]
end

subgraph group_practice["Practical Resources"]
  node_techniques["Testing Techniques"]
  node_tools["Testing Tools"]
  node_demos["Demonstrations"]
  node_apps["Test Applications"]
  node_crackmes["Reverse-Engineering Challenges"]
end

subgraph group_reference["Reference Content"]
  node_knowledge["Platform Knowledge"]
  node_best_practices["Best Practices"]
  node_rules["Security Rules"]
  node_prerequisites["Prerequisites"]
  node_samples["Sample Apps"]
end

node_tester(("Security Tester"))

node_tester -.->|"consults"| node_mastg
node_masvs -->|"aligned with"| node_maswe
node_mastg -->|"verifies weaknesses"| node_maswe
node_masvs -->|"controls guide"| node_mastg
node_mastg -.->|"includes platform guidance"| node_android
node_mastg -.->|"includes platform guidance"| node_ios
node_mastg -.->|"includes testing guidance"| node_generic
node_tester -.->|"uses"| node_tests
node_tester -.->|"may consult"| node_beta_tests
node_tester -.->|"applies"| node_techniques
node_tester -.->|"uses"| node_tools
node_tester -.->|"studies"| node_demos
node_tester -.->|"tests against"| node_apps
node_tester -.->|"practices on"| node_crackmes
node_tester -.->|"consults"| node_knowledge
node_tester -.->|"consults"| node_best_practices
node_tester -.->|"consults"| node_rules
node_tester -.->|"reviews"| node_prerequisites
node_tester -.->|"examines"| node_samples

click node_mastg "https://github.com/owasp/mastg/tree/master/Document"
click node_android "https://github.com/owasp/mastg/blob/master/Document/0x05b-Android-Security-Testing.md"
click node_ios "https://github.com/owasp/mastg/blob/master/Document/0x06b-iOS-Security-Testing.md"
click node_generic "https://github.com/owasp/mastg/blob/master/Document/0x04b-Mobile-App-Security-Testing.md"
click node_tests "https://github.com/owasp/mastg/tree/master/tests"
click node_beta_tests "https://github.com/owasp/mastg/tree/master/tests-beta"
click node_techniques "https://github.com/owasp/mastg/tree/master/techniques"
click node_tools "https://github.com/owasp/mastg/tree/master/tools"
click node_demos "https://github.com/owasp/mastg/tree/master/demos"
click node_apps "https://github.com/owasp/mastg/tree/master/apps"
click node_crackmes "https://github.com/owasp/mastg/tree/master/Crackmes"
click node_knowledge "https://github.com/owasp/mastg/tree/master/knowledge"
click node_best_practices "https://github.com/owasp/mastg/tree/master/best-practices"
click node_rules "https://github.com/owasp/mastg/tree/master/rules"
click node_prerequisites "https://github.com/owasp/mastg/tree/master/prerequisites"
click node_samples "https://github.com/owasp/mastg/tree/master/Samples"

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_masvs,node_maswe toneBlue
class node_mastg,node_android,node_ios,node_generic,node_tests,node_beta_tests toneAmber
class node_techniques,node_tools,node_demos,node_apps,node_crackmes toneMint
class node_knowledge,node_best_practices,node_rules,node_prerequisites,node_samples toneRose
class node_tester toneIndigo
```

## Components

### Security Standards

- **MASVS Controls**
- **MASWE Weaknesses**

### Testing Guidance

- [MASTG Guide](https://github.com/owasp/mastg/tree/master/Document): `Document`
- [Android Testing](https://github.com/owasp/mastg/blob/master/Document/0x05b-Android-Security-Testing.md): `Document/0x05b-Android-Security-Testing.md`
- [iOS Testing](https://github.com/owasp/mastg/blob/master/Document/0x06b-iOS-Security-Testing.md): `Document/0x06b-iOS-Security-Testing.md`
- [Cross-Platform Testing](https://github.com/owasp/mastg/blob/master/Document/0x04b-Mobile-App-Security-Testing.md): `Document/0x04b-Mobile-App-Security-Testing.md`
- [Test Cases](https://github.com/owasp/mastg/tree/master/tests): `tests`
- [Beta Test Cases](https://github.com/owasp/mastg/tree/master/tests-beta): `tests-beta`

### Practical Resources

- [Testing Techniques](https://github.com/owasp/mastg/tree/master/techniques): `techniques`
- [Testing Tools](https://github.com/owasp/mastg/tree/master/tools): `tools`
- [Demonstrations](https://github.com/owasp/mastg/tree/master/demos): `demos`
- [Test Applications](https://github.com/owasp/mastg/tree/master/apps): `apps`
- [Reverse-Engineering Challenges](https://github.com/owasp/mastg/tree/master/Crackmes): `Crackmes`

### Reference Content

- [Platform Knowledge](https://github.com/owasp/mastg/tree/master/knowledge): `knowledge`
- [Best Practices](https://github.com/owasp/mastg/tree/master/best-practices): `best-practices`
- [Security Rules](https://github.com/owasp/mastg/tree/master/rules): `rules`
- [Prerequisites](https://github.com/owasp/mastg/tree/master/prerequisites): `prerequisites`
- [Sample Apps](https://github.com/owasp/mastg/tree/master/Samples): `Samples`

### Other components

- **Security Tester**

## Connections

- Security Tester → MASTG Guide: consults
- MASVS Controls → MASWE Weaknesses: aligned with (evidence: `README.md`)
- MASTG Guide → MASWE Weaknesses: verifies weaknesses (evidence: `README.md`)
- MASVS Controls → MASTG Guide: controls guide (evidence: `README.md`)
- MASTG Guide → Android Testing: includes platform guidance
- MASTG Guide → iOS Testing: includes platform guidance
- MASTG Guide → Cross-Platform Testing: includes testing guidance
- Security Tester → Test Cases: uses
- Security Tester → Beta Test Cases: may consult
- Security Tester → Testing Techniques: applies
- Security Tester → Testing Tools: uses
- Security Tester → Demonstrations: studies
- Security Tester → Test Applications: tests against
- Security Tester → Reverse-Engineering Challenges: practices on (evidence: `README.md`)
- Security Tester → Platform Knowledge: consults
- Security Tester → Best Practices: consults
- Security Tester → Security Rules: consults
- Security Tester → Prerequisites: reviews
- Security Tester → Sample Apps: examines
