Introducing a new way to review your PRs.

Read the announcement

mobsf / mobile-security-framework-mobsf

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.

View on GitHub

13 documents · Updated Nov 16, 2026

overview

Knowledge Base updated: 2026-11-16

Knowledge Base Index

1. Orientation

MobSF (Mobile Security Framework) is a Django-based mobile application security analysis platform. Its highest-level flow is: a user or API client uploads an app, MobSF routes it through static or dynamic analyzers, persists findings, and renders reports through the web UI or REST API.

Main parts:

  • mobsf/MobSF/ — Django project shell, routing, settings, middleware, auth, and shared web views.
  • mobsf/StaticAnalyzer/ — static analysis for Android, iOS, Windows, and shared analysis primitives.
  • mobsf/DynamicAnalyzer/ — runtime analysis for Android and iOS devices/emulators with Frida/proxy/device helpers.
  • mobsf/MalwareAnalyzer/ and mobsf/signatures/ — malware intelligence integrations, trackers, APKID, domain/IP feeds, and VirusTotal support.
  • mobsf/templates/ and mobsf/static/ — server-rendered UI, report templates, and bundled front-end assets.
  • scripts/, docker/, and project config — deployment, worker startup, dependency setup, and maintenance tooling.

Critical state lives in:

  • The Django database models under analyzer apps, which store scan metadata, findings, dynamic sessions, and malware-related records.
  • Filesystem scan workspaces and uploaded/extracted app artifacts, coordinated by static/dynamic analyzer code and deployment settings.
  • Background task/queue infrastructure started by operational scripts for asynchronous analysis work.
  • Bundled signature datasets under mobsf/signatures/, used as local malware/tracker intelligence inputs.

2. Architecture diagrams

flowchart TD
  subgraph Web[MobSF Django Web App]
    URLs[mobsf/MobSF/urls.py]
    CoreViews[MobSF views]
    API[MobSF views/api]
    Templates[mobsf/templates]
  end

  subgraph Static[StaticAnalyzer]
    StaticCommon[views/common]
    AndroidStatic[views/android]
    IOSStatic[views/ios]
    WindowsStatic[views/windows]
  end

  subgraph Dynamic[DynamicAnalyzer]
    DynCommon[views/common]
    AndroidDyn[views/android]
    IOSDyn[views/ios]
    DynTools[tools]
  end

  subgraph Malware[Malware intelligence]
    MalwareAnalyzer[MalwareAnalyzer]
    Signatures[mobsf/signatures]
  end

  subgraph Ops[Operations]
    Scripts[scripts]
    Docker[docker and Dockerfile]
    Config[pyproject and settings]
  end

  User[Browser or API client] --> URLs
  URLs --> CoreViews
  URLs --> API
  CoreViews --> Templates
  API --> Static
  API --> Dynamic
  Static --> MalwareAnalyzer
  MalwareAnalyzer --> Signatures
  Dynamic --> DynTools
  Scripts --> Web
  Docker --> Web
  Config --> Web
flowchart LR
  Upload[Upload or scan request] --> Routing[MobSF routing/API]
  Routing --> StaticCommon[StaticAnalyzer common setup]
  StaticCommon --> Platform{Input platform}
  Platform --> Android[Android static analyzer]
  Platform --> IOS[iOS static analyzer]
  Platform --> Windows[Windows static analyzer]
  Android --> Malware[MalwareAnalyzer/signatures]
  IOS --> Malware
  Windows --> Malware
  Malware --> Persist[Database and scan workspace]
  Android --> Persist
  IOS --> Persist
  Windows --> Persist
  Persist --> Report[HTML/PDF/API report]
flowchart LR
  Start[Dynamic session request] --> Core[MobSF API or UI]
  Core --> Platform{Target}
  Platform --> AndroidEnv[Android environment/device]
  Platform --> IOSEnv[iOS Corellium/device]
  AndroidEnv --> Proxy[MITM capture/web proxy]
  AndroidEnv --> FridaA[Android Frida/Xposed/TLS tools]
  IOSEnv --> FridaI[iOS Frida helpers]
  Proxy --> Results[Runtime findings]
  FridaA --> Results
  FridaI --> Results
  Results --> Report[Dynamic report]
sequenceDiagram
  participant Client as Browser/API Client
  participant Django as MobSF Django URLs/Views
  participant API as API Views
  participant Analyzer as Static/Dynamic Analyzer
  participant Intel as MalwareAnalyzer/Signatures
  participant Store as DB + Workspace

  Client->>Django: upload, scan, or report request
  Django->>API: route API calls when applicable
  Django->>Analyzer: dispatch web-driven analysis
  API->>Analyzer: dispatch API-driven analysis
  Analyzer->>Intel: enrich with malware/tracker intelligence
  Analyzer->>Store: persist metadata, files, findings
  Store-->>Django: report data
  Django-->>Client: UI, PDF, or JSON response

3. Glossary

  • MobSF — Mobile Security Framework, the Django application in this repository.
  • StaticAnalyzer — MobSF app that inspects uploaded mobile/desktop packages without executing them.
  • DynamicAnalyzer — MobSF app that runs apps on Android/iOS environments and collects runtime behavior.
  • MalwareAnalyzer — MobSF app that enriches analysis with malware signatures, tracker data, domain/IP feeds, and VirusTotal.
  • Corellium — iOS virtualization/device backend used by the iOS dynamic-analysis code paths.

4. Codebase-wide invariants

  • The repository is organized as a Django project under mobsf/, with the project shell in mobsf/MobSF/ and Django app packages in mobsf/StaticAnalyzer/, mobsf/DynamicAnalyzer/, and mobsf/MalwareAnalyzer/.
  • Platform-specific static analyzers are partitioned by directory: Android code under mobsf/StaticAnalyzer/views/android/**, iOS code under mobsf/StaticAnalyzer/views/ios/**, and Windows code under mobsf/StaticAnalyzer/views/windows/**.
  • Platform-specific dynamic analyzers are partitioned by directory: Android code under mobsf/DynamicAnalyzer/views/android/**, iOS code under mobsf/DynamicAnalyzer/views/ios/**, and shared dynamic helpers under mobsf/DynamicAnalyzer/views/common/**.
  • REST API view code is centralized under mobsf/MobSF/views/api/**, separate from general web views such as mobsf/…/home.py, authentication.py, and scanning.py.
  • Operational entrypoints and deployment assets live outside the Django package in top-level files/directories such as Dockerfile, docker/**, scripts/**, run.sh, and setup.sh.

5. Routing table