feat(mobile): legacy Android and Unity builds flagged, not resolved; Android found everywhere
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 7m43s

The first pilot scan of an Android + Unity repository on prod showed:
the two Android apps were not recognised, Unity was typed as a desktop
app, and the SBOM was empty without saying why.

- Classification: every AndroidManifest.xml outside test folders is an
  Android module: Gradle's src/main, an Eclipse/ADT project's root, a
  Unity project's Assets/Plugins/Android. #449 counted only src/main and
  the repository root, so the ADT apps (and with #458 the target type)
  were missed.
- build-lifecycle (new, like dotnet-lifecycle; CWE-1104, medium):
  - legacy-build-system-no-sbom for an ADT project (properties file, no
    Gradle) and a Unity project without Packages/manifest.json; the
    remedy is migrating the build. Bound to cra-ai-23.
  - android-sdk-end-of-support for target=android-N below 29.
  - unity-editor-end-of-support, judged conservatively (before 2021, and
    the 2021-2023 tech streams). Both bound to cra-ai-22.
  Such builds are not resolved (decided: flag, do not support); they also
  record a skipped sbom_dependencies stage, so the SBOM requirements read
  "Nicht bewertet" instead of clean.
- Unity SBOM: the editor version, and for modern projects the packages
  in Packages/packages-lock.json (else manifest.json); listed as not
  matched for CVEs (no advisory database covers Unity).
- A syft failure is no longer silent: a skipped `sbom` stage (tool syft),
  so the SBOM requirements are not assessed; syft gets 10 minutes.

Nightly fixture mobile-legacy-adt-unity in the pilot's shape.

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:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-05 23:09:48 +02:00
1 parent 0da96110c3
commit 5a71bc2ea2
24 files changed
+836 -28

No files matched your search

@@ -0,0 +1,19 @@
{
"scan_status": "completed",
"skipped_stages": [
"cve_lookup",
"sbom_dependencies"
],
"sbom": [
"unity:Unity Editor@2019.2.4f1"
],
"findings": [
"mobsfscan:android_manifest_insecure_minsdk_error AndroidManifest.xml:3",
"mobsfscan:android_manifest_missing_explicit_allow_backup AndroidManifest.xml:1"
],
"cves": [
"android-sdk-end-of-support",
"legacy-build-system-no-sbom",
"unity-editor-end-of-support"
]
}
@@ -0,0 +1 @@
<Project ToolsVersion="4.0"><PropertyGroup><TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion></PropertyGroup></Project>
@@ -0,0 +1,3 @@
using UnityEngine;
public class PumpGauge : MonoBehaviour { }
@@ -0,0 +1,2 @@
m_EditorVersion: 2019.2.4f1
m_EditorVersionWithRevision: 2019.2.4f1 (c63b2af89a85)
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump.phone">
<uses-sdk android:minSdkVersion="8" />
<application android:label="Pump">
<activity android:name=".Main" />
</application>
</manifest>
@@ -0,0 +1,3 @@
# Automatically generated by Android Tools.
split.density=false
target=android-8
@@ -0,0 +1,7 @@
package com.example.pump;
import android.app.Activity;
/** Shows the pump's status. */
public class Main extends Activity {
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump.tablet">
<uses-sdk android:minSdkVersion="11" />
<application android:label="Pump">
<activity android:name=".Main" />
</application>
</manifest>
@@ -0,0 +1 @@
target=android-11
@@ -0,0 +1,7 @@
package com.example.pump;
import android.app.Activity;
/** Shows the pump's status. */
public class Main extends Activity {
}
+20
View File
@@ -724,6 +724,26 @@
"expect": {
"min_sbom_components": 4
}
},
{
"key": "mobile-legacy-adt-unity",
"name": "Legacy Android (Eclipse/ADT) and Unity 2019",
"target_type": "android_app",
"description": "Uploaded as a source archive. The shape of a real pilot repository: two Eclipse/ADT Android apps (manifest at the project root, default.properties / project.properties with target=android-8 and android-11, no Gradle) beside a Unity 2019.2 project without Packages/. Prüfwerk does not resolve such builds: each must give a legacy-build-system finding, the old API levels and the Unity editor end-of-support findings, the Unity editor as an SBOM component, and a recorded sbom_dependencies skip so the SBOM does not read as complete.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/mobile/legacy-adt-unity"
}
],
"expect": {
"sast_rule_ids": [
"legacy-build-system-no-sbom",
"android-sdk-end-of-support",
"unity-editor-end-of-support"
],
"min_sbom_components": 1
}
}
]
}