Guide
Scan your mobile apps
Logthread shows weaknesses in your Android and iOS apps next to your other findings. The scanners are open source and run in your own pipeline, or on your computer. Open Code security → Mobile app scans for the guided setup. Overview: Code and app security.
Android or iOS#
Choose the platform of your app. Both work the same way. Flutter and React Native apps work too, from their source code.
Source code or app build#
Choose what to scan:
- App source code (mobsfscan). Fast, runs on the code alone. Covers Android and iOS source (Java, Kotlin, Swift, Objective-C, Flutter, React Native). Results carry CWE ids and OWASP Mobile and MASVS references. Run it like this:
mobsfscan --sarif -o mobsfscan.sarif .- The app build (MobSF). Scans the built APK, AAB or IPA file. It runs MobSF in a container on your runner, and finds problems in the manifest, the certificate, the network settings and the binary, as well as in code. Logthread keeps one finding per code rule and file, and per manifest, certificate, network and binary finding. Secure results, protections that are in place and privacy trackers are not weaknesses, so they are left out. Each possible secret is kept with only a keyed hash, never the value.
Mobile DAST (testing the running app on a device) is not covered.
Pipeline or upload#
Choose how the report reaches Logthread:
- In your pipeline. The guided setup writes the pipeline file, like in Scan your code in CI. It needs an API key with only the
scansscope. For the MobSF option, set the path of your built app file (APP_FILE). - Upload a report from the browser. Run the scanner yourself, then on the Findings page choose Upload a report and pick the file (see Work with findings). Members and above can do this. It is the quickest way to try it.
The formats are SARIF for mobsfscan (mobsfscan --sarif) and the JSON report for MobSF (/api/v1/report_json). Logthread detects the format from the content.
First results#
After the first upload, the guided setup shows the result, and the findings appear in Findings under the type Mobile apps. Open one to see where it is, why it matters and how to fix it. If nothing arrives, see the troubleshooting list in Scan your code in CI. The reference for mobile reports is Send scan results to Logthread.