Skip to content

Installation

Sam MG Harish edited this page Oct 30, 2026 · 4 revisions

Installation

Python package

Requires Python 3.12 or newer.

pip install lu77U-MobileSec

Four parts are optional extras rather than base dependencies:

pip install "lu77U-MobileSec[claude]"     # Claude provider (the anthropic SDK)
pip install "lu77U-MobileSec[semgrep]"    # the Semgrep pass in the scanner layer
pip install "lu77U-MobileSec[mitmproxy]"  # the HTTPS interception check in dynamic analysis
pip install "lu77U-MobileSec[dev]"        # pytest, for running the test suite
pip install "lu77U-MobileSec[all]"        # all of the above

Semgrep and mitmproxy are extras so that a default install carries no package with a known vulnerability. Their newest releases still pin older versions of mcp and opentelemetry-api (Semgrep) and tornado (mitmproxy) that have published vulnerabilities, in an MCP server and client, an incoming tracing-header parser and an HTTP server, none of which this tool runs. Either can also be installed outside the project's environment, with brew install semgrep / brew install mitmproxy or pipx install, and is found on PATH. Without Semgrep the Semgrep pass is skipped; without mitmproxy the HTTPS interception check is. The Settings page shows which are installed.

From a checkout:

pip install -e .

The install pulls in FastAPI, uvicorn, python-multipart, websockets, androguard, loguru, the ollama client, frida 16.7.19, frida-tools, uiautomator2, WeasyPrint and Pillow (not on Windows, where PDFs come from Edge), keyring, cryptography, platformdirs, httpx, Pygments, defusedxml, json_repair and colorama. The other API providers are reached over plain HTTPS through httpx, so they need no SDK; only Anthropic's is an extra. See [project.dependencies] in pyproject.toml for exact pins.

The entry point is lu77U-MobileSec, defined in pyproject.toml as lu77U_MobileSec.cli.main:main.

Required external tools

Tool Needed for Notes
JADX Every static scan Path must be set in Settings. brew install jadx on macOS, or a release from https://github.com/skylot/jadx
An AI provider Every static scan One of Ollama, Claude, OpenAI, Gemini, or a custom OpenAI-compatible endpoint. Several API keys per provider can be stored and are rotated on an exhausted quota. See AI providers

A scan will not start until /api/status reports ready_for_analysis: true, which requires both a valid JADX path and a configured active provider. This gate is unaffected by whether Flutter/React Native tools are installed. See below.

Framework decompiler tools (optional, per framework)

Unlike JADX, none of these block scanning at all. Blutter and hermes-decomp are only needed the first time you scan a release Flutter app or a Hermes React Native app, and a scan of one without its tool configured degrades to a detection-only report instead of being blocked. Debug Flutter builds and plain-JavaScript React Native bundles need no tool: their source is recovered directly from the APK. See Static analysis for how each fits into the pipeline, and Configuration for the exact enforcement rule.

Tool Needed for Notes
Blutter Flutter static analysis, release builds Clone and build from https://github.com/worawit/blutter, then set blutter_path to blutter.py in that checkout. Building needs CMake, Ninja, Capstone and pyelftools (brew install cmake ninja capstone on macOS, pip install pyelftools). Compiles a Dart-version-specific executable on its first run against an unseen Dart version, so expect the first Flutter scan to take a while. arm64-v8a only
hermes-decomp React Native static analysis, Hermes-compiled bundles Download a release or build from source at https://github.com/SymbioticSec/hermes-decomp (Rust 1.70+), then set hermes_decomp_path. Supports Hermes bytecode versions 40-99. On macOS a downloaded binary may be killed by Gatekeeper (exit 137) until its quarantine flag is cleared: xattr -d com.apple.quarantine <path>
react-native-decompiler Fallback for plain-JavaScript bundles the built-in splitter does not recognise (Webpack, Haul) npm install -g react-native-decompiler, then set rn_decompiler_path to its executable. Not needed for ordinary Metro bundles. Does not support Hermes bytecode or Webpack v5 bundles
Ghidra Decompiling native .so libraries to C, in any framework's scan https://ghidra-sre.org, or brew install ghidra on macOS; needs a JDK. Set ghidra_path to ghidraRun, the install directory, or support/analyzeHeadless. Runs headless, on demand, the first time the agent or the file review inspects a library, and the result is reused for the rest of the scan. Without it native libraries are inspected by symbols and strings only
ilspycmd Xamarin/.NET MAUI decompilation to C# dotnet tool install -g ilspycmd. Found on PATH when xamarin_decompiler_path is unset. Like Ghidra, its absence does not make a scan detection-only. See below

Two frameworks need no external tool at all:

  • Cordova. The app's logic ships as plain HTML/JS under assets/www/ inside the APK, so the analyzer extracts it with stdlib zipfile and is always ready.
  • Xamarin / .NET MAUI. The .NET assemblies are recovered in pure Python, including LZ4 decompression and AssemblyStore unpacking. ilspycmd is optional in a stronger sense than Blutter or hermes-decomp: without it the scan analyses the assemblies' extracted strings, and because Xamarin builds are usually shipped unobfuscated those hold endpoint URLs, connection strings and API keys largely intact. Installing it adds decompiled C# on top.

Optional external tools

Tool Needed for Notes
adb (Android platform-tools) Dynamic verification, device endpoints Must be on PATH
A rooted emulator or device Frida injection, CA installation, run-as inspection An emulator running a Google APIs (not Play Store) image is the usual choice
objdump (binutils) The symbol table in inspect_native on .so libraries Without it the string scan and security signals are still produced; with Ghidra configured the decompiled C does not need it

Frida server binaries are downloaded automatically per device architecture and cached; see Dynamic verification.

PDF rendering

PDF export goes through two different backends depending on the host:

  • macOS and Linux: WeasyPrint, which needs Pango and its dependencies at the system level. brew install weasyprint on macOS; sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 on Debian and Ubuntu; sudo dnf install pango on Fedora.
  • Windows: headless Microsoft Edge, so pip install skips WeasyPrint and Pillow there (sys_platform != 'win32' markers). msedge.exe is located under C:\Program Files (x86)\Microsoft\Edge\Application\ or C:\Program Files\Microsoft\Edge\Application\, falling back to PATH.

JSON and HTML export never depend on either backend.

Verifying the install

lu77U-MobileSec -v      # prints the version
lu77U-MobileSec -h      # prints usage
lu77U-MobileSec         # starts the server and opens the dashboard
lu77U-MobileSec -V      # same, plus verbose logging and a persisted scan.log

The server binds 127.0.0.1 only. It tries port 8000, then 8765, then 8123, then an OS-assigned ephemeral port. The chosen URL is printed to the terminal.

Clone this wiki locally