feat(sast): Android and iOS app analysis with mobsfscan (#442)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Canceled after 0s
CI / Deploy Docs (push) Canceled after 0s
CI / Deploy Agent (push) Successful in 9m28s

This commit was merged in pull request #442.
This commit is contained in:
sharang committed 2026-10-05 13:38:45 +00:00
1 parent 82736a1eec
commit a9ca31d60c
29 files changed
+964 -15

No files matched your search

+26
View File
@@ -33,6 +33,32 @@ finds the defects that matter in firmware: out-of-bounds writes, uninitialised
reads, null dereferences and leaks. It parses the code and never runs it. Its
findings are **Codeanalyse (SAST)** findings with the tool name `cppcheck`.
## mobsfscan -- Android and iOS Apps
[mobsfscan](https://github.com/MobSF/mobsfscan) (LGPL-3.0, used unchanged) runs
on trees with Java, Kotlin, Swift or Objective-C code. It checks the code and
the app settings:
- **AndroidManifest.xml:** `debuggable`, `allowBackup`, cleartext traffic, an
outdated `minSdkVersion`, exported components, task hijacking.
- **Info.plist:** App Transport Security exceptions (`NSAllowsArbitraryLoads`).
- **Code:** WebViews with a JavaScript bridge or ignored TLS errors, weak hashes
and ciphers, ECB mode and static IVs, `java.util.Random` for security,
world-readable storage, trust-all certificate handling, command and SQL
injection, unsafe deserialisation, sensitive data in logs.
Each finding carries its CWE and the OWASP MASVS requirement. mobsfscan runs
once with the Android and once with the iOS rules when a repository holds both
apps (React Native, Flutter); on its own it would check such a repository as
Android only. It runs on the same Semgrep engine with metrics off, never reads
a `.mobsf` file from your repository, and skips `Pods/`, `build/`, `.gradle/`,
`DerivedData/`, `Carthage/` and `node_modules/`. Its findings are
**Codeanalyse (SAST)** findings with the tool name `mobsfscan`.
Not reported: the app-wide "missing protection" hints (no certificate pinning,
no root or jailbreak detection, no screenshot protection). They name no place in
the code and are heuristics. Dart code (Flutter) has no rules yet.
## Vendor Code Exclusion
Firmware projects carry their silicon vendor's SDK (HAL, CMSIS, board support)