Files
pruefwerk/fixtures/nightly/baselines/fw-c-sensor-node.json
T
Sharang ParnerkarandClaude Opus 5.5 46b22e5589
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 9m42s
fix(sast): run only our own semgrep rules, no registry rules or metrics
The Semgrep registry rules (`--config=auto`, `p/...`) are licensed under the
Semgrep Rules License v1.0: internal business use only, not a service for
others. `auto` also refuses to run with metrics off, so every customer scan
reported to Semgrep. Semgrep now runs only rules/cra_semgrep.yaml, with
--metrics=off and --disable-version-check, and fails the stage if the rules
cannot be staged.

So that Python and JavaScript/TypeScript targets keep their core coverage,
eight rules of our own replace what the registry found in the fixtures:
shell commands and SQL built from variables, unsafe deserialisation,
request input echoed into an Express response (cra-ai-20), hard-coded
credentials in Python (cra-ai-8) and plain http:// requests (cra-ai-15).
Annotated cases live next to the rules (semgrep --test).

The control map's semgrep bindings now list exactly our rule ids and the
languages those rules cover. Before, they claimed Java, Go, Ruby, PHP, C#
and Kotlin on the strength of registry rules, so the CRA view could call
such code free of violations although nothing checked it; it now says
"Keine Prüfregel für den gefundenen Code".

The nightly harness drops `registry_rules`: every semgrep finding is now
deterministic and compared exactly. All baselines reblessed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-01 20:45:38 +02:00

27 lines
967 B
JSON

{
"scan_status": "completed",
"skipped_stages": [
"sast_vendor_code"
],
"sbom": [
"toolchain:arm-none-eabi-gcc@"
],
"findings": [
"cppcheck:arrayIndexOutOfBounds sensors.c:15",
"cppcheck:memleak sensors.c:32",
"cppcheck:uninitvar sensors.c:19",
"semgrep:cra-ai-13-c-broken-hash-or-cipher comms.c:36",
"semgrep:cra-ai-16-c-predictable-random comms.c:35",
"semgrep:cra-ai-20-c-non-literal-format-string cli.cpp:15",
"semgrep:cra-ai-20-c-non-literal-format-string comms.c:23",
"semgrep:cra-ai-20-c-unbounded-string-function cli.cpp:11",
"semgrep:cra-ai-20-c-unbounded-string-function comms.c:20",
"semgrep:cra-ai-20-c-unbounded-string-function comms.c:25",
"semgrep:cra-ai-8-c-hardcoded-credential cli.cpp:8",
"semgrep:cra-ai-8-c-hardcoded-credential comms.c:10",
"semgrep:cra-ai-8-c-hardcoded-credential comms.c:9",
"semgrep:cra-ai-8-c-hardcoded-credential net_config.h:7"
],
"cves": []
}