mobsfscan scans Android, iOS, and hybrid mobile source for insecure code patterns. It applies MobSF rules through semgrep and libsast from the CLI or a Python API.
Overview
mobsfscan is a static analysis tool aimed at mobile application security. It searches source trees for code patterns that may indicate security weaknesses in native and hybrid mobile projects.
The scanner covers Android code in Java and Kotlin, manifest and resource XML, and iOS Swift and Objective-C plus App Transport Security settings in Info.plist. It also analyzes JavaScript, TypeScript, and related web files used by React Native, Expo, Cordova, Ionic, Capacitor, and WebView stacks, along with those frameworks’ configuration files. Matching uses MobSF static analysis rules with semgrep and the libsast pattern matcher, including Tree-sitter AST rules for hybrid JavaScript and TypeScript.
You install it with pip and run it from the command line or embed it through a Python API. A `.mobsf` file in the project root configures scans; severity overrides and suppression comments let teams tune reporting. Output can feed SARIF, SonarQube, GitLab SAST, and other report formats used in review tooling.
The project documents hooks for CI and DevSecOps pipelines, including GitHub Actions, GitLab CI, Travis CI, Circle CI, and Bitrise. A prebuilt Docker image is available for containerized runs alongside local installs.
Key features
- MobSF rules with semgrep and libsast
- Android Java, Kotlin, and XML coverage
- iOS Swift, Objective-C, and Info.plist checks
- Hybrid JS/TS and framework config scanning
- CLI and Python API
- .mobsf config and inline rule suppression
- SARIF, SonarQube, and GitLab SAST export
- CI/CD workflow examples
Use cases
- Local mobile code security review
- Pipeline SAST for Android and iOS repos
- Hybrid app configuration auditing
- GitLab vulnerability report integration
- SonarQube external issues import
Does the same job as
mobsfscan doesn't name these products itself, but its own description shows it does the same job.