No description
Find a file
Guillaume "B.B." Van Hemmen f16ab2ab36 #0000 - Add Docker setup for MobSF with Traefik integration
Introduce Docker Compose configuration for MobSF, integrated with Traefik for domain management and basic auth. Enhanced documentation with installation and usage instructions, and added a template for environment variables.
2024-10-13 18:29:13 +02:00
.env.dist #0000 - Add Docker setup for MobSF with Traefik integration 2024-10-13 18:29:13 +02:00
.gitignore #0000 - Add Docker setup for MobSF with Traefik integration 2024-10-13 18:29:13 +02:00
docker-compose.yml #0000 - Add Docker setup for MobSF with Traefik integration 2024-10-13 18:29:13 +02:00
README.md #0000 - Add Docker setup for MobSF with Traefik integration 2024-10-13 18:29:13 +02:00

MobSF

Introduction

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.

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Installation
  4. Usage
  5. Post-launch

Prerequisites

  • Docker: Make sure Docker is installed and running on your system.
  • Docker Compose: Docker Compose is required to orchestrate the container setup.
  • Traefik Deployment:

Installation

  1. Clone the repository:
git clone https://git.van-hemmen.com/GuillaumeHemmen-DockerCompose-Infra/mobsf.git
cd mobsf
  1. Copy the environment variable template:
cp .env.dist .env
  1. Customize the .env file as necessary for your environment.

Note: You must define a basic authentication in MOBSF_BASIC_AUTH to protect your instance of MobSF.

Usage

Start the MobSF service with Docker Compose:

docker compose up -d

Access MobSF by navigating to https://<MOBSF_FQDN> in your web browser. You will need to authenticate using the basic auth setup in your .env file.

Post-launch

MobSF uses a fixed UID for the files persisted. To have the volume approach work, you must change the ownership of the data inside the volume as follows:

docker run --rm -v mobsf_data:/vol alpine sh -c "chown --recursive 9901:9901 /vol"

Note: The default volume name is assumed to be mobsf_data. Please adapt your command if it is different.