feat(sast): Android and iOS app analysis with mobsfscan
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m13s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m13s
mobsfscan (LGPL-3.0, used unchanged) checks Java, Kotlin, Swift and Objective-C code and the AndroidManifest and Info.plist settings, with a CWE and the OWASP MASVS requirement on each rule. It runs on the image's semgrep (installed --no-deps, its other dependencies pinned) with metrics off. Three of its defaults would mislead on a customer's tree, so: - docker/pruefwerk_mobsfscan.py clears its path ignores: libsast skips any path that merely contains 'spec' or 'fixtures', so code under inspection/ vanished. Ours are anchored as /name/ and passed with -c, which also stops it reading a .mobsf file from the repository. - --type auto configures the iOS rules only when there is no Android code, so a React Native or Flutter app was checked as Android only. It now runs once per platform present. - Manifest and plist matches report line 1; the line that sets the key is looked up. App-wide "missing protection" hints carry no location and are left out. The scan runs in scan_tree after cppcheck when the tree holds Java, Kotlin, Swift or Objective-C (`.m`/`.mm` now count as objc); a failure records a sast_mobile skip, which the CRA view treats like a failed semgrep. The control map binds mobsfscan by CWE to cra-ai-1, 7, 8, 9, 13, 14, 15, 16 and 20, each with only the languages it has rules for. Nightly: android-insecure and ios-insecure fixtures, and one flaw each in the React Native fixture's Java and Swift, so both platforms must run. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
3ad6cc538b
commit
043f3589bd
29 files changed
+961
-15
No files matched your search
@@ -18,7 +18,8 @@ names while the scan runs.
|
||||
- *Firmware analysieren* -- for firmware, lists the libraries and toolchain the build uses.
|
||||
2. **Static code analysis** (*Statische Codeanalyse*) -- Semgrep with
|
||||
Prüfwerk's own rules (Python, JavaScript/TypeScript, C and C++; see
|
||||
[Tools](/reference/tools)); for C and C++ also cppcheck, which follows values through the code
|
||||
[Tools](/reference/tools)); for Android and iOS apps mobsfscan (code,
|
||||
AndroidManifest and Info.plist); for C and C++ also cppcheck, which follows values through the code
|
||||
(out-of-bounds writes, uninitialised reads, null dereferences). Vendor and
|
||||
third-party code (HAL, CMSIS, vendored libraries) is left out of the code
|
||||
findings and listed under **Nicht ausgeführt**; it stays in the SBOM.
|
||||
|
||||
Reference in new issue
Block a user