Files
pruefwerk/fixtures/nightly/targets.json
T
sharang 9a0d690036
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Successful in 7m13s
feat(sast): the CRA C rules also run on C++ (#373) (#391)
2026-09-25 11:01:43 +00:00

560 lines
19 KiB
JSON

{
"schema_version": 1,
"name_prefix": "Nightly · ",
"targets": [
{
"key": "plc-codesys-synthetic",
"name": "CODESYS archive (synthetic, old runtime)",
"target_type": "plc_sps",
"description": "Small synthetic .projectarchive with the real CODESYS entry naming and an old runtime (3.5.16.0), so the library SBOM is exact and the NVD CPE match has known CVEs.",
"artifacts": [
{
"kind": "plc_project",
"upload": "fixtures/nightly/plc/line_control.projectarchive",
"plc_format": "project_archive"
}
],
"expect": {
"min_sbom_components": 6
}
},
{
"key": "plc-codesys-proemion",
"name": "CODESYS archive (Proemion CSV-BlackBox sample)",
"target_type": "plc_sps",
"description": "Real CODESYS project archive from Proemion/codesys-examples (Apache-2.0). Not committed (~10 MB): the nightly job downloads it at a pinned commit and sha256 into NIGHTLY_CODESYS_SAMPLE; skipped where that is unset.",
"artifacts": [
{
"kind": "plc_project",
"upload_env": "NIGHTLY_CODESYS_SAMPLE",
"plc_format": "project_archive",
"optional": true,
"pin": "164d8eea7b7483f764b4959788fd2a733624e576"
}
],
"expect": {
"min_sbom_components": 30
}
},
{
"key": "plc-ladder",
"name": "PLCopen ladder diagram",
"target_type": "plc_sps",
"description": "A PLCopen program whose body is a Ladder Diagram, translated to ST before analysis. Planted: unauthenticated Modbus server on 502, FTP on 21, a login block with a default password.",
"artifacts": [
{
"kind": "plc_project",
"upload": "fixtures/nightly/plc/mixer_ld.xml",
"plc_format": "plcopen_xml"
}
],
"expect": {
"sast_rule_ids": [
"plc-insecure-protocol-port",
"plc-insecure-comm"
]
}
},
{
"key": "plc-live-endpoint",
"name": "PLC with a live endpoint (source_only)",
"target_type": "plc_sps",
"description": "Structured Text plus a public-looking Modbus endpoint, with the (opt-in) ICS probe switched on. Under PW_FEATURES=source_only the probe must be recorded as a skipped stage, and the endpoint is never contacted.",
"artifacts": [
{
"kind": "plc_project",
"upload": "examples/plc-demo/traffic_light.st",
"plc_format": "structured_text"
},
{
"kind": "live_url",
"source_ref": "modbus://plc.example.com:502"
}
],
"expect": {
"sast_rule_ids": [
"plc-hardcoded-credential",
"plc-safety-bypass"
]
},
"enabled_scans": [
"icsprobe"
]
},
{
"key": "plc-corrupt-archive",
"name": "Corrupt CODESYS archive",
"target_type": "plc_sps",
"description": "A .projectarchive that is not a valid zip. The scan must fail cleanly with a clear error, never hang or crash the agent.",
"artifacts": [
{
"kind": "plc_project",
"upload": "fixtures/nightly/plc/corrupt.projectarchive",
"plc_format": "project_archive"
}
]
},
{
"key": "fw-make",
"name": "Firmware · Make",
"target_type": "firmware_bare_metal",
"description": "Bare-metal Make project (Firmwerk make provider): cross toolchain from the Makefile.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/make"
}
]
},
{
"key": "fw-make-onboarded-as-service",
"name": "Firmware · Make, onboarded as a backend service",
"target_type": "backend_service",
"description": "The Make firmware project with the wrong type picked at onboarding: detection must still produce the firmware SBOM.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/make"
}
],
"expect": {
"min_sbom_components": 1
}
},
{
"key": "fw-cmake",
"name": "Firmware · CMake",
"target_type": "firmware_bare_metal",
"description": "Bare-metal CMake project with a toolchain file (Firmwerk cmake provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/cmake"
}
]
},
{
"key": "fw-arduino",
"name": "Firmware · Arduino",
"target_type": "firmware_bare_metal",
"description": "Arduino sketch with sketch.yaml (Firmwerk arduino provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/arduino"
}
]
},
{
"key": "fw-platformio",
"name": "Firmware · PlatformIO",
"target_type": "firmware_bare_metal",
"description": "PlatformIO project with extra_configs, a pinned platform and lib_deps (Firmwerk platformio provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/platformio"
}
]
},
{
"key": "fw-cargo-embedded",
"name": "Firmware · embedded Rust",
"target_type": "firmware_bare_metal",
"description": "Embedded Rust crate with a cross target in .cargo/config.toml and a pinned rust-toolchain.toml (Firmwerk cargo_embedded provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/cargo-embedded"
}
]
},
{
"key": "fw-espidf",
"name": "Firmware · ESP-IDF",
"target_type": "firmware_rtos",
"description": "ESP-IDF project with component-manager dependencies in main/idf_component.yml (Firmwerk espidf provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/espidf"
}
]
},
{
"key": "fw-zephyr-pinned",
"name": "Firmware · Zephyr (pinned west.yml)",
"target_type": "firmware_rtos",
"description": "Zephyr application whose west.yml pins zephyr at v3.6.0 and imports three modules (Firmwerk zephyr provider).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/zephyr-pinned"
}
]
},
{
"key": "fw-freertos-cmake",
"name": "Firmware · FreeRTOS via CMake FetchContent",
"target_type": "firmware_rtos",
"description": "CMake project that pulls the FreeRTOS kernel with FetchContent at a pinned tag (V11.1.0), the common FreeRTOS integration.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/freertos-cmake"
}
]
},
{
"key": "fw-freertos-lostbuild",
"name": "Firmware · FreeRTOS, build system lost",
"target_type": "firmware_rtos",
"description": "No build system at all: Firmwerk's source archaeology must still recognise FreeRTOS and the STM32 SDK from the headers.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/freertos-lostbuild"
}
]
},
{
"key": "fw-c-sensor-node",
"name": "Firmware · C sensor node (SAST)",
"target_type": "firmware_bare_metal",
"description": "STM32Cube-style C project with a C++ module and planted flaws: CRA C rules (on C and C++) and cppcheck must fire in Core/, and the vendored HAL under Drivers/ must stay out of SAST.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/c-sensor-node"
}
],
"expect": {
"sast_rule_ids": [
"cra-ai-20-c-unbounded-string-function",
"cra-ai-20-c-non-literal-format-string",
"cra-ai-8-c-hardcoded-credential",
"cra-ai-13-c-broken-hash-or-cipher",
"cra-ai-16-c-predictable-random",
"arrayIndexOutOfBounds",
"uninitvar"
],
"cwes": [
"CWE-120",
"CWE-134",
"CWE-798",
"CWE-788"
]
}
},
{
"key": "fw-embedded-libs",
"name": "Firmware · vendored FreeRTOS, lwIP, Mbed TLS",
"target_type": "firmware_rtos",
"description": "STM32Cube-style tree whose RTOS, TCP/IP stack and TLS library are copied in as source: their versions come from their headers, and their CVEs from NVD by CPE.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/embedded-libs"
}
],
"expect": {
"min_sbom_components": 3
}
},
{
"key": "fw-yocto-layer",
"name": "Firmware · Yocto layer (unsupported)",
"target_type": "embedded_linux_yocto",
"description": "A Yocto layer. Not analysed yet, so the run must record a skipped firmware_sbom stage with the reason instead of completing as if there were no components.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/firmware/yocto-layer"
}
]
},
{
"key": "fw-zephyr-example-pinned",
"name": "Firmware · Zephyr example-application (pinned source)",
"target_type": "firmware_rtos",
"description": "The upstream Zephyr example application as a source archive at a pinned commit, so the result does not drift with upstream main. Not committed: the nightly job downloads it into NIGHTLY_ZEPHYR_EXAMPLE; skipped where that is unset.",
"artifacts": [
{
"kind": "source_archive",
"upload_env": "NIGHTLY_ZEPHYR_EXAMPLE",
"optional": true,
"pin": "38a6d9b276ed434454900130cacc87d058d3ac62"
}
]
},
{
"key": "unscanned-firmware-image",
"name": "Firmware image (nothing unpacks it yet)",
"target_type": "firmware_bare_metal",
"description": "A firmware image on its own. No stage unpacks an image today, so the run must record firmware_static, sbom and cve as skipped with the reason, never complete as if the image had been analysed (#319).",
"artifacts": [
{
"kind": "firmware_image",
"upload": "fixtures/nightly/unscanned/pump-ctl.bin"
}
]
},
{
"key": "unscanned-mobile-package",
"name": "Android package (not analysed yet)",
"target_type": "android_app",
"description": "An APK on its own. Mobile packages are not analysed, so the run must record mobile_static as skipped (#319).",
"artifacts": [
{
"kind": "mobile_package",
"upload": "fixtures/nightly/unscanned/pump-ctl.apk"
}
]
},
{
"key": "unscanned-container-image",
"name": "Container image (not scanned yet)",
"target_type": "backend_service",
"description": "A container image reference on its own. Nothing scans container images, so the run must record container_scan as skipped (#319).",
"artifacts": [
{
"kind": "container_image",
"source_ref": "registry.example.com/pump-ctl:1.4.2"
}
]
},
{
"key": "archive-order-intake",
"name": "Source archive (no git remote)",
"target_type": "backend_service",
"description": "A service delivered as a zip of its sources, the way a customer without a git remote delivers one. It must get the same treatment as a repository: SAST, secret detection, a package SBOM from the lockfile and CVE matching (#325).",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/archive"
}
],
"expect": {
"min_sbom_components": 3,
"sast_rule_ids": [
"github-pat",
"slack-bot-token",
"python.lang.security.audit.subprocess-shell-true.subprocess-shell-true",
"javascript.lang.security.detect-child-process.detect-child-process"
]
}
},
{
"key": "archive-order-intake-tgz",
"name": "Source archive as tar.gz (no git remote)",
"target_type": "backend_service",
"description": "The same source tree uploaded as a .tar.gz (#335): it must unpack and scan exactly like the zip.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/archive",
"pack": "tar_gz"
}
],
"expect": {
"min_sbom_components": 3,
"sast_rule_ids": [
"github-pat",
"slack-bot-token",
"python.lang.security.audit.subprocess-shell-true.subprocess-shell-true",
"javascript.lang.security.detect-child-process.detect-child-process"
]
}
},
{
"key": "js-npm-lock-v3",
"name": "JavaScript/TypeScript · npm lockfile v3",
"target_type": "web_app",
"description": "Uploaded as a source archive. package-lock.json v3 (v2 is covered by the order-intake archive). Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-npm-lock-v3"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "js-yarn-classic",
"name": "JavaScript/TypeScript · yarn classic",
"target_type": "web_app",
"description": "Uploaded as a source archive. yarn.lock v1. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-yarn-classic"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "js-yarn-berry",
"name": "JavaScript/TypeScript · yarn berry",
"target_type": "web_app",
"description": "Uploaded as a source archive. yarn.lock with the berry __metadata header and npm: resolutions. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-yarn-berry"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "js-pnpm",
"name": "JavaScript/TypeScript · pnpm",
"target_type": "web_app",
"description": "Uploaded as a source archive. pnpm-lock.yaml v9. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-pnpm"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "js-no-lockfile",
"name": "JavaScript/TypeScript · no lockfile",
"target_type": "web_app",
"description": "Uploaded as a source archive. package.json alone: nothing pins the versions, and resolving the manifest would fetch from hosts it names, which a shared deployment does not do (#330), so the run records a skipped sbom_dependencies stage. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-no-lockfile"
}
],
"expect": {
"min_graph_nodes": 1
}
},
{
"key": "js-bun",
"name": "JavaScript/TypeScript · Bun (text bun.lock)",
"target_type": "web_app",
"description": "Uploaded as a source archive. bun.lock, Bun's text lockfile and its default since 1.2. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-bun"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "js-bun-binary",
"name": "JavaScript/TypeScript · Bun (binary bun.lockb only)",
"target_type": "web_app",
"description": "Uploaded as a source archive. bun.lockb alone, Bun's older binary lockfile, which the SBOM tooling cannot read. The run must say so, and npm must not re-resolve the project, which would report versions it does not ship. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/js-bun-binary"
}
],
"expect": {
"min_graph_nodes": 1
}
},
{
"key": "py-requirements",
"name": "Python · pinned requirements.txt",
"target_type": "backend_service",
"description": "Uploaded as a source archive. requirements.txt with exact pins. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/py-requirements"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "py-poetry",
"name": "Python · poetry",
"target_type": "backend_service",
"description": "Uploaded as a source archive. pyproject.toml + poetry.lock. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/py-poetry"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "py-pipenv",
"name": "Python · pipenv",
"target_type": "backend_service",
"description": "Uploaded as a source archive. Pipfile + Pipfile.lock. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/py-pipenv"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "py-uv",
"name": "Python · uv",
"target_type": "backend_service",
"description": "Uploaded as a source archive. pyproject.toml + uv.lock. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/py-uv"
}
],
"expect": {
"min_graph_nodes": 1,
"min_sbom_components": 3
}
},
{
"key": "py-bare-pyproject",
"name": "Python · bare pyproject.toml",
"target_type": "backend_service",
"description": "Uploaded as a source archive. pyproject.toml alone: PEP 621 dependencies with nothing pinning them. Plants a vulnerable pinned dependency, a SAST sink, a committed secret and OAuth/PII patterns.",
"artifacts": [
{
"kind": "source_archive",
"upload": "fixtures/nightly/eco/py-bare-pyproject"
}
],
"expect": {
"min_graph_nodes": 1
}
}
]
}