Commit Graph
338 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 f552a6a72a feat(cve): closing CVE issues settled by VEX behind ISSUE_AUTOCLOSE (off by default)
No new notification or issue for a not_affected/fixed CVE stays always on.
Closing an issue that is already open now depends on ISSUE_AUTOCLOSE
(off | dry_run | on, unknown -> off with a warning), like ISSUE_CATCHUP:
dry_run logs one line per target with the counts per VEX status and makes
no tracker call; on closes at most 20 per target and scan (every Gitea
request waits for its instance's slot) and logs closed/deferred/failed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 18:53:52 +02:00
Sharang ParnerkarandClaude Opus 5.5 f15d1e5066 fix(cve): notifications and tracker issues respect VEX not_affected and fixed
A CVE alert whose VEX statement is not_affected or fixed (by a person, by
the scan from Yocto CVE_STATUS / CVE: patches, or imported OpenVEX) still
raised a notification and opened or kept a tracker issue.

- core: CveAlert::is_resolved_by_vex (via VexStatus::resolves), plus
  OpenVEX names for statuses and justifications.
- vex_lifecycle::attach_stored_vex gives the scan's alerts (which carry no
  VEX) the statement stored on the alert.
- cve_notify::notify_new_cves: one notification path for the scans (code and
  PLC control-app) and the hourly CVE monitor; skips settled alerts.
- The code pipeline now notifies after the Yocto statements are applied, so a
  recipe's not_affected suppresses the notification on the first scan too.
- cve_issues: no issue for a settled CVE; an open one is closed with a
  comment naming the VEX status and justification (not gated on a complete
  scan); a withdrawn statement reopens the same issue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 18:53:52 +02:00
sharang 8d6be32c83 fix(yocto): recipe lint binds attack-surface findings to cra-ai-2 and counts suppressed findings (#554)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Agent (push) Successful in 8m39s
CI / Deploy Docs (push) Successful in 1m13s
CI / Deploy Dashboard (push) Successful in 6m15s
CI / Deploy MCP (push) Successful in 3m26s
2026-10-09 16:49:27 +00:00
sharang ac50880b25 feat(yocto): the recipe inventory becomes SBOM components, CVE_STATUS and CVE patches become VEX (#551)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Successful in 1m13s
CI / Deploy Agent (push) Successful in 12m32s
CI / Deploy Dashboard (push) Successful in 7m53s
CI / Deploy MCP (push) Successful in 3m26s
2026-10-09 16:17:47 +00:00
sharang e382746cfb feat(issues): a catch-up files Gitea issues for open findings that never got one (off by default) (#553)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 8m58s
CI / Deploy Dashboard (push) Successful in 6m35s
CI / Deploy MCP (push) Successful in 2m54s
2026-10-09 16:08:23 +00:00
sharang 7e3856db31 feat(yocto): recipes are checked with oelint-adv and our own secure-by-default rules (#552)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Successful in 1m32s
CI / Deploy Agent (push) Successful in 13m11s
CI / Deploy MCP (push) Successful in 5m11s
CI / Deploy Dashboard (push) Successful in 16m16s
2026-10-09 15:48:31 +00:00
sharang 750f1d7308 feat(yocto): layer trees are detected as Embedded Linux / Yocto, and the scan matrix says what runs (#550)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m15s
CI / Deploy Agent (push) Successful in 8m49s
CI / Deploy MCP (push) Successful in 4m46s
CI / Deploy Dashboard (push) Successful in 6m40s
2026-10-09 14:58:09 +00:00
sharang 528c9d4f7f feat(dashboard): Embedded Linux / Yocto is marked as a preview (#549)
CI / Deploy Docs (push) Successful in 1m15s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Successful in 6m20s
CI / Deploy Dashboard (push) Successful in 4m9s
CI / Deploy MCP (push) Skipped
2026-10-09 14:41:47 +00:00
sharang cc5b667870 fix(scheduler): scheduled scans are spread out and at most two clones run per git host (#547)
CI / Deploy Docs (push) Skipped
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Successful in 6m28s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-09 14:37:22 +00:00
sharang 11e3b98c99 fix(issues): Gitea issue sync lists once per scan and keeps at most two requests in flight per instance (#548)
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 8m50s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy MCP (push) Skipped
2026-10-09 14:25:29 +00:00
sharang dcf78b8e66 fix(git): clone and fetch retry three times on a 5xx or connection error (#546)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 6m4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-09 14:22:34 +00:00
sharang 6f1172589e fix(sbom): SPDX licences are declared, and copyleft is found by SPDX id (#545)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 6m53s
CI / Deploy Dashboard (push) Successful in 6m31s
CI / Deploy MCP (push) Successful in 4m48s
2026-10-09 13:57:47 +00:00
sharang 7f2b128efd feat(webhooks): the target page shows its last webhook deliveries, refused ones too (#544)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 9m6s
CI / Deploy Dashboard (push) Successful in 5m29s
CI / Deploy MCP (push) Successful in 3m28s
2026-10-09 13:51:47 +00:00
sharang 2c2fea6222 fix(sbom): known licence names are exported as SPDX ids (#543)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Dashboard (push) Successful in 5m51s
CI / Deploy Agent (push) Successful in 8m27s
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Successful in 3m26s
2026-10-09 13:39:28 +00:00
sharang 44b2f38841 fix(vex): CVE is the primary vulnerability id in VEX, CSAF and CycloneDX, GHSA an alias (#542)
CI / Deploy Agent (push) Successful in 8m37s
CI / Check (push) Skipped
CI / Deploy Docs (push) Successful in 1m15s
CI / Detect Changes (push) Successful in 5s
CI / Deploy Dashboard (push) Successful in 5m49s
CI / Deploy MCP (push) Successful in 3m33s
2026-10-09 13:22:05 +00:00
sharang 69a4c2084a feat(dashboard): the targets page pages server-side with page size and total (#541)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 9m13s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 6m11s
2026-10-09 13:18:20 +00:00
sharang 2ca73acabf fix(vex): the startup purl backfill always logs its count (#540)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m15s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-09 13:00:15 +00:00
sharang 2c5b2eb003 fix(malware): an unreachable or silent clamd is logged as an error (#539)
CI / Check (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Agent (push) Successful in 5m12s
CI / Deploy MCP (push) Skipped
2026-10-09 13:00:12 +00:00
sharang e396141490 fix(webhooks): the managed Gitea webhook answers 202 and works in the background (#538)
CI / Detect Changes (push) Successful in 2s
CI / Deploy Docs (push) Skipped
CI / Check (push) Skipped
CI / Deploy Agent (push) Successful in 5m24s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-09 11:22:00 +00:00
sharang ac4064daed fix(vex): alerts stored before purls get their component's purl (#537)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 4m58s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
v0.4.6
2026-10-08 22:55:22 +00:00
sharang b6955db9e0 fix(dashboard): the SBOM arrow on a target opens the SBOM filtered to it (#533)
CI / Deploy Docs (push) Successful in 1m2s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Successful in 5m15s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 3m33s
2026-10-08 21:50:28 +00:00
sharang 10cebd894f fix(dashboard): target page reloads findings, SBOM and CRA status when a scan finishes (#530)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Dashboard (push) Canceled after 0s
CI / Deploy Docs (push) Successful in 59s
CI / Deploy MCP (push) Skipped
2026-10-08 21:50:22 +00:00
sharang 0586f2c639 feat(dashboard): the CSAF draft's TLP label as a coloured badge with its meaning (#535)
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Dashboard (push) Canceled after 0s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy MCP (push) Skipped
2026-10-08 21:45:50 +00:00
sharang 0f22455db9 fix(sbom): npm registry policy per project, from nested .npmrc/.yarnrc.yml (#534)
CI / Deploy Agent (push) Successful in 7m9s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Dashboard (push) Skipped
CI / Deploy Docs (push) Canceled after 0s
CI / Deploy MCP (push) Skipped
2026-10-08 21:45:43 +00:00
sharang 1f02a89226 fix(vex): keep the alert's purl for components that left the SBOM (#532)
CI / Deploy Docs (push) Successful in 1m17s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Dashboard (push) Canceled after 0s
CI / Deploy MCP (push) Successful in 2m38s
2026-10-08 21:45:37 +00:00
sharang a22b4497a5 fix(scan): uploads carry their sha256, so change detection compares the bytes (#531)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Canceled after 0s
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Dashboard (push) Successful in 5m32s
CI / Deploy MCP (push) Skipped
2026-10-08 21:45:32 +00:00
sharang 90c19b5a94 fix(plc): a repository holding only a CODESYS archive is a PLC project (#528)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 59s
CI / Deploy Agent (push) Successful in 7m26s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-08 21:38:23 +00:00
sharang ffe31964e6 fix(dashboard): targets named owner/repo can be edited and saved (#527)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 5m11s
2026-10-08 21:24:15 +00:00
sharang c8af053d9d fix(semgrep): short finding titles, rule messages shown as Markdown (#529)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 10m54s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 4m10s
2026-10-08 21:23:20 +00:00
sharang dd70ec753c fix(release): one Prüfwerk version in every document, crates at 0.4.6 (#526)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m2s
CI / Deploy MCP (push) Successful in 2m55s
CI / Deploy Dashboard (push) Successful in 5m10s
2026-10-08 21:15:41 +00:00
sharang e1bf9e861c fix(cve): KEV from CISA's GitHub mirror, exploitation cached per source (#493) (#525)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m10s
CI / Deploy Agent (push) Successful in 5m6s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-06 19:02:52 +00:00
sharang 85aff4cd2c docs(release): pre-verification of the v0.4.5 batch, daily CVE monitor (#524)
CI / Deploy Agent (push) Successful in 5m9s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m10s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-06 17:38:00 +00:00
sharang 90d8d072a4 fix(csaf): vendor remediations named through product groups (#515) (#523)
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Check (push) Skipped
CI / Deploy Agent (push) Successful in 9m50s
CI / Deploy MCP (push) Successful in 2m22s
CI / Deploy Dashboard (push) Successful in 6m11s
2026-10-06 17:23:22 +00:00
sharang 8ea3731b51 feat(csaf): match components against vendor CSAF advisories (#515, part C) (#521)
CI / Deploy Agent (push) Successful in 5m4s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy MCP (push) Successful in 3m31s
CI / Deploy Dashboard (push) Successful in 4m19s
2026-10-06 16:45:55 +00:00
sharang ff570bac66 feat(csaf): index vendor CSAF advisories daily (#515, part B) (#520)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy Agent (push) Successful in 5m38s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-06 16:33:00 +00:00
sharang dc9ca8dcd8 fix(plc): CVE alerts of PLC targets resolve, their issues sync (#519)
CI / Check (push) Skipped
CI / Deploy Docs (push) Successful in 1m9s
CI / Detect Changes (push) Successful in 3s
CI / Deploy Agent (push) Successful in 5m21s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-06 16:13:58 +00:00
sharang b4dc84671f feat(csaf): read vendor CSAF advisories for matching (#515, part A) (#518)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m33s
CI / Deploy MCP (push) Successful in 3m59s
CI / Deploy Dashboard (push) Successful in 5m50s
2026-10-06 16:11:07 +00:00
sharang d96509db8c feat(secrets): Betterleaks instead of gitleaks, findings carry over (#516) (#517)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m12s
CI / Deploy Agent (push) Successful in 6m54s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-06 15:59:10 +00:00
sharang 908e6b8449 feat(vex): ENISA deadlines evaluated by the agent, one notification per CVE (#498 follow-up) (#514)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m6s
CI / Deploy Agent (push) Successful in 5m43s
CI / Deploy Dashboard (push) Successful in 3m30s
CI / Deploy MCP (push) Successful in 2m57s
2026-10-06 15:36:38 +00:00
sharang 5f8fbe9802 feat(vex): draft ENISA notifications of actively exploited vulnerabilities (CRA Art. 14) (#498, 4/4) (#513)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m10s
CI / Deploy Agent (push) Successful in 6m26s
CI / Deploy Dashboard (push) Successful in 4m40s
CI / Deploy MCP (push) Successful in 2m33s
2026-10-06 15:16:19 +00:00
sharang 77d27646b8 feat(sbom): component creator from registries and purls (#508, part B2) (#512)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 5m57s
CI / Deploy Dashboard (push) Successful in 4m1s
CI / Deploy MCP (push) Successful in 3m12s
2026-10-06 15:03:16 +00:00
sharang cd943b8d67 feat(sbom): lockfile hashes and download URLs in the SBOM (#508, part B1) (#511)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Agent (push) Successful in 5m5s
CI / Deploy Docs (push) Successful in 1m16s
CI / Deploy MCP (push) Successful in 2m31s
CI / Deploy Dashboard (push) Successful in 4m0s
2026-10-06 14:48:40 +00:00
sharang 8538b31682 feat(vex): CSAF 2.0 VEX advisory draft (#498, 3/4) (#510)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m23s
CI / Deploy Agent (push) Successful in 9m36s
CI / Deploy MCP (push) Successful in 2m54s
CI / Deploy Dashboard (push) Successful in 11m5s
2026-10-06 14:38:42 +00:00
sharang 1923a6c433 feat(sbom): CycloneDX 1.6 export with BSI TR-03183-2 properties (#508, part A) (#509)
CI / Deploy Agent (push) Successful in 6m54s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m13s
CI / Deploy Dashboard (push) Successful in 5m9s
CI / Deploy MCP (push) Successful in 2m21s
2026-10-06 14:23:40 +00:00
sharang 4448a5394f feat(dashboard): VEX editor and OpenVEX/CycloneDX VEX downloads on the target page (#498, 2/4) (#505)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m15s
CI / Deploy Agent (push) Successful in 7m14s
CI / Deploy MCP (push) Successful in 2m34s
CI / Deploy Dashboard (push) Successful in 5m25s
2026-10-06 14:07:10 +00:00
sharangandClaude Opus 5.5 63a2bf2bcb test(nightly): baselines for the vendored semgrep packs and DevSkim (#492, #494) (#507)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Agent (push) Skipped
CI / Deploy Docs (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
Blessed by the nightly run 8514 (workflow_dispatch, bless) on the image of
34e3f6c: the vendored gitlab-/0xdea- rules in fw-c-sensor-node, the Python
targets, archive-order-intake and git-cra-vuln-demo, and new baselines for
the .NET targets dotnet-framework48 and dotnet-legacy-sample (DevSkim, the
C# semgrep rules and the .NET config checks). py-uv also records the
malware stage as skipped and one more PYSEC id, as the current image
reports them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 13:17:33 +00:00
sharangandClaude Opus 5.5 34e3f6cf6a feat(sast): DevSkim for .NET without a build (#494) (#506)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m19s
CI / Deploy Agent (push) Successful in 8m23s
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 5m25s
Legacy .NET Framework code often cannot be built outside the customer's
Windows toolchain, so no Roslyn analyser applies. DevSkim (MIT, Microsoft)
matches its rules on the source text and now runs as the sast_dotnet stage
on every tree with C# or VB.NET code: .cs, .vb, Razor/ASP.NET pages and
.config files, skipping bin/, obj/, packages/ and vendor directories
(anchored at the tree root).

- Only DevSkim's own rules at Critical/Important/Moderate (its ManualReview
  and BestPractice hints are not findings); DS205000 (NuGet feed mapping),
  DS184626 (controller base class) and DS440000 (generic twin of DS440020)
  are left out, and two that flood real C# (OpenRA, eShopOnWeb): DS148264
  matches any method named Random (71 hits in OpenRA), DS126858 the bare
  words md5/sha1, identifiers included (35). DS168931 and our own semgrep
  rules still cover broken hashes and System.Random. What remains: 3 hits
  in OpenRA (test vectors), 14 Low http:// hits in eShopOnWeb seed data;
  each run took about 2 s.
- SARIF is read with import::sarif::parse; findings are normalised like the
  other scanners (relative path, whole source line as snippet, one finding
  per rule/file/line), severity from DevSkim's own Critical/Important/
  Moderate (its SARIF level says "error" for both of the first two).
- DevSkim's SARIF names no CWE, so pipeline/devskim.rs gives each rule one;
  the control map binds the devskim tool by CWE to cra-ai-1, 8, 10, 13, 14,
  15, 16 and 20 for csharp and vb. A test checks every mapped rule reaches a
  control. A failed run is a sast_dotnet skip, so those controls read "not
  assessed" instead of clean.
- languages.rs now records VB.NET (vb).

Image: the CLI is published as a .NET tool on nuget.org only (no release
binaries). Dockerfile.agent pins the 1.0.100 nupkg by sha256 and the .NET
10.0.12 runtime (no SDK) by sha512, keeps only the linux-x64 natives, and
runs it through docker/devskim.sh with invariant globalisation (no ICU).
The tools stage grows from 1.525 GB to 1.623 GB (+98.5 MB: runtime 80 MB,
DevSkim 16 MB). Checked in that image as the unprivileged user with an empty
environment and --network none: it runs offline. tool-versions.json lists
devskim and dotnet-runtime.

Fixtures: fixtures/dotnet/legacy-sample, a small vulnerable C#/VB.NET
library with a Web.config (SSL 3, certificate validation off, DES, XXE,
BinaryFormatter in VB.NET, tracing, cookies without Secure), and nightly
targets for it and for framework48; their baselines need a bless run after
deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 12:51:10 +00:00
sharangandClaude Opus 5.5 e51a790d59 feat(sbom): sbomqs quality score as CRA evidence for the SBOM (#496) (#503)
CI / Deploy Docs (push) Successful in 1m19s
CI / Deploy Agent (push) Successful in 9m41s
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Successful in 6m41s
CI / Deploy MCP (push) Successful in 4m49s
At the end of every completed scan the target's CycloneDX SBOM (the same
document as the evidence pack's sbom.cdx.json) is scored by sbomqs against
BSI TR-03183-2 v2.1 and the NTIA minimum elements (2021).

- Dockerfile.agent pins sbomqs 2.1.2 (Apache-2.0) with the sha256 from the
  release's checksums.txt and lists it in tool-versions.json.
- Profiles by explicit name (bsi-v2.1, ntia-2021): in 2.1.2 `bsi` and
  `ntia` float to the newest BSI and CISA 2026 profiles.
- pipeline/sbom_quality.rs runs it offline through tool_cmd (empty
  environment, 120 s), keeps per profile the score, grade and the checks
  not fully met; stored on the scan run as sbom_quality. Without sbomqs the
  run records the skipped stage sbom_quality.
- Supporting evidence, not findings: attached to cra-ai-23 in the CRA
  status without changing its state, sbom-quality.json in the evidence
  pack, GET /api/v1/sbom/quality for the SBOM page.
- Dashboard: SBOM-Qualität card on the SBOM page, a supporting-evidence line
  on cra-ai-23 on the CRA page.
- Docs: tools.md, SBOM and target guides, staging check 20.

Our export (CycloneDX 1.5, no creator, timestamp, supplier or hashes)
grades F against BSI; the failed checks list what it needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 12:35:01 +00:00
sharangandClaude Opus 5.5 d406741907 feat(sast): vendored MIT semgrep packs and a guard against registry rules (#492) (#504)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m13s
CI / Deploy Agent (push) Successful in 6m21s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
Our ~35 own rules left whole languages without SAST findings. Three
permissively licensed community packs now run next to them, on the same
semgrep invocation (--metrics=off, local files only):

- GitLab sast-rules v2.10.1 (53bf5cf6): 148 rules for C#, Java,
  JavaScript/TypeScript, Python and one Go rule; only files whose header says
  "License: MIT (c) GitLab Inc.". Not vendored: c/ (every file GPL-2.0,
  generated from flawfinder), go/ apart from one file (Apache-2.0 gosec
  ports), scala/, rules/lgpl, rules/lgpl-cc (Commons Clause), rules/gitlab (EE).
- 0xdea semgrep-rules (dae50da6, MIT): 35 C/C++ rules.
- elttam semgrep-rules (24426856, MIT; its LICENSE carries the Semgrep
  template's copyright line): 34 rules for Java, Go and Struts/Spring XML.

Each pack lives in compliance-agent/rules/vendor/<source>/ with LICENSE,
NOTICE (provenance, what was left out and why) and UPSTREAM (pinned commit):
upstream/ holds the selected files unchanged with their tests, pack.yaml the
rules the agent runs, ids prefixed per source (gitlab-, 0xdea-, elttam-),
rules.json an index for the tests. scripts/vendor-semgrep-rules.py
regenerates all of it deterministically.

Provenance: every candidate rule was compared with the Semgrep registry
(semgrep/semgrep-rules, read only for the comparison). Eight GitLab Python/JS
rules with the same message or the same patterns are not vendored, nor are
elttam's Kubernetes rules (registry-derived). Also left out: elttam's
entrypoint enumerators, its ORM-leak hints, three files whose upstream
tests fail on semgrep 1.177 and a join-mode rule.

Noise budget: run over the nightly fixtures, the public samples and
FreeRTOS-Kernel, lwIP, OpenRA, eShopOnWeb, requests, express and
spring-petclinic. 15 rules that flood real code (0xdea missing-return 1514
hits, typos 989, interesting-api-calls 718, signed-unsigned-conversion 221,
suspicious-assert 176, format-string-bugs 61 ...; GitLab assert-used) are
dropped from the pack, each listed with its reason in NOTICE. CPU time of
the semgrep run roughly doubles on C-heavy trees (FreeRTOS-Kernel 70 s ->
136 s, lwIP 18 s -> 68 s), well inside the 10-minute stage timeout.

Ids stay bare (#473 logic covers the vendored ids, fingerprint() unchanged).
The control map gets one vendored semgrep binding per control, by CWE (by
rule id for the few elttam rules without one), with exactly the languages of
the rules behind it; a test checks every vendored rule maps to a control
that claims its languages.

Guard: semgrep_args() builds the one invocation; a test fails if any
--config is not a staged local pack, or is auto, p/, r/ or a URL, and
another scans the agent source, scripts, docker/, CI and Dockerfile.agent for
a registry config.

Nightly baselines with C, Python, C# or JS code change and need a bless run
after the image is deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 12:22:50 +00:00
sharang 9bf7aad5b1 feat(vex): VEX status on CVE alerts, OpenVEX and CycloneDX VEX, a valid CycloneDX SBOM (#498, 1/4) (#502)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m20s
CI / Deploy Agent (push) Successful in 9m6s
CI / Deploy Dashboard (push) Successful in 6m25s
CI / Deploy MCP (push) Successful in 3m26s
2026-10-06 11:56:04 +00:00