- compliance_core::enisa_docs: per actively exploited CVE alert (CISA KEV,
SSVC active) whose product is affected or under investigation, a draft of
the three CRA Article 14(2) stages (early warning 24 h, vulnerability
notification 72 h, final report 14 days after a fix) in the fields of
ENISA's single reporting platform: numbers, names and per-stage
requirements of the ENISA CRA SRP Glossary v1.4 (2026-10-01, recorded in
the output), each with its cra_art14_ref. Filled from the alert, its
exploitation and the VEX statement; required fields Prüfwerk cannot fill
(always the Member States) are listed under to_complete. Stamped "Draft,
not submitted"; nothing is submitted.
- CveAlert.exploited_seen_at: set once, by the first scan that finds the
alert actively exploited; the deadlines run from it (or ?aware_at=).
- API: GET /api/v1/targets/{id}/enisa (reportability per alert),
GET /api/v1/cves/{id}/enisa?aware_at= (draft; 422 with the reason when not
reportable). Evidence pack: enisa-drafts.json when any is reportable.
- Dashboard: "ENISA-Meldung (Entwurf)" and the early warning's due time on
reportable rows of the VEX card.
- Docs DE/EN (ENISA section, glossary version); test plan check 31.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
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
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
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
On top of the committed-binary inventory (#465), natively in Rust:
- PE: ASLR (DYNAMICBASE, relocations), high-entropy ASLR, DEP, CFG,
SafeSEH, /GS, Authenticode present; IL-only .NET assemblies skip the
native-only checks
- ELF (dynamically linked only): RELRO, NX stack, PIE, stack protector,
FORTIFY; static and bare-metal ELF are not assessed
- .NET: AssemblyRefs from the CLI metadata tables (own ECMA-335 reader)
- native PE: CPE/purl candidates from the version resource, low confidence
- Intel HEX: record checksums, address ranges, size, start address
Evidence goes on the inventory finding; each gap is its own Low/Info
finding per rule (grouped by #477). ASLR/NX/RELRO gaps bind to cra-ai-1 and
a damaged HEX image to cra-ai-6 through attach-only control-map bindings,
which never make a control count as checked.
PE/ELF headers are read with the object crate, already in the build via
firmwerk-sbom: no new crate, no Python helper, no image change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Every CVE alert, and the SBOM's reference to the same advisory, now says
whether the CVE is exploited: its entry in CISA's KEV catalog (date added,
known ransomware use), FIRST's EPSS score and percentile, and the SSVC
exploitation decision of CISA's Vulnrichment.
- pipeline/cve_enrichment.rs reads KEV (one JSON, at most daily), EPSS
(FIRST API, 50 CVE ids per request) and Vulnrichment (per-CVE record on
raw.githubusercontent.com, a 404 is an answer) through guarded_net. Only
CVE ids leave the agent. Bounded: 500 uncached CVEs, 8 at once, 2 min.
- Answers are cached a day for all tenants in <prefix>__admin
(cve_exploitation per CVE, cisa_kev for the catalog), TTL index like the
NuGet licence cache. A failed source stays unknown, is not cached and
never fails the scan. CVE_EXPLOIT_LOOKUP=false turns it off.
- Runs in the scan (after the CVE stage), the PLC control-app path and the
hourly CVE monitor (which now refreshes an existing alert's exploitation).
- CVE issues (#452): a KEV CVE always opens an issue, rated at least high;
an EPSS percentile at or above CVE_ISSUE_EPSS_PERCENTILE (default 0.95)
rates it one step higher. The body names KEV, EPSS (with FIRST's credit)
and SSVC.
- LLM triage: a finding that names a CVE gets its exploitation in the
prompt. No scanner sets Finding.cve today, so this is a hook for now.
- Dashboard: "Aktiv ausgenutzt (KEV)" and "EPSS … · P…" badges on the SBOM
page's CVE cards, a KEV marker on the row, SSVC line, EPSS attribution.
- Docs: tools.md section and egress rows, SBOM and issues guides, staging
check 18. Tests run on trimmed real fixtures and a loopback stand-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB