Known limitations¶
This document spells out what the Secure SDLC Evidence Collector does not do, where heuristics can produce false positives or false negatives, and which scenarios require human interpretation on top of the bundle. Publishing these limits up-front is part of the project's public contract: the tool aims at traceable honesty, not marketing.
1 · Not a scanner¶
- The collector does not scan source code, containers, or infrastructure. It ingests the output of third-party tools.
- Rule selection, severity thresholds, and exploitability labels are decided by the upstream scanner. We never override them.
- If a scanner misses a vulnerability, the collector cannot synthesize it. Reference evidence is the signal, not the ground truth.
2 · SARIF classification heuristic¶
SARIF is a format, not a taxonomy. A single SARIF file may contain
multiple runs from different tools with overlapping intent (Trivy
exports vuln + secret + misconfig in one file; Snyk exports SAST + SCA
separately; Sonar exports a mix). The collector classifies each run
into exactly one evidence_type based on that run's own driver name,
and emits one evidence record per run.
- Until 3.x only
runs[0]set the record's identity while the findings of every run were aggregated into it, so a merged semgrep+gitleaks+trivy file produced a singlesast_scanand the release reported the secrets and SCA controls as missing critical evidence — with both scans supplied. Splitting per run removed that; exporting each scanner to its own file is no longer necessary, though it remains perfectly valid. - False-negative risk: an unknown driver defaults to
sast_scan. If the driver was actually a DAST tool, thesast_scancontrol is credited whiledast_scanremains missing. - Two known drivers are exceptions to that default, and their runs are
skipped instead of being recorded as
sast_scan. OpenSSF Scorecard SARIF (driverScorecard) holds repository posture checks that no evidence type models. The collector's own gap log fromsdlc-evidence sarif(driversecure-sdlc-evidence-collector) lists unmet controls, not scan results. A file holding only such runs is listed among the ignored artifacts; in a merged file the other runs are collected and the skip is logged as a warning. Before this, a Scorecard upload with no high or critical result satisfied SSDF-PW.7, and so did a gap log from an earlier ready release left in the artifacts directory. - Mitigation: since
v1.1.1every SARIF-derived record carries a first-classevidence[*].classificationfield withconfidence(high/medium/low),reason(driver_match/manual_override/fallback_sast) and the originaldriver_name, so reviewers can see why the collector chose a label. Evidence records have norationalefield (only control evaluations do). Downstream consumers can filter or weight evidence by classification confidence, and afallback_sastreason is a reliable signal that the underlying tool was unknown to the heuristic. - IaC scanners (Checkov, KICS, tfsec, Terrascan) are classified as
iac_scan. tfsec is matched by the driver name it writes,defsec. Until 4.2.0 Checkov was matched as a SAST tool, so a Terraform-only scan met SSDF-PW.7 at high classification confidence. Trivy's SARIF still cannot be split by finding class from its driver name; the native Trivy JSON route (§6b) does that. - Each result is bucketed by its effective SARIF level (SARIF 2.1.0
§3.27.10): the result's
level, thennonefor a result whosekindis notfail, then thedefaultConfiguration.levelof the rule it references (by index, guid or id, in the driver or atool.extensionsentry), thenwarning. Semgrep, Gitleaks and KICS leave the result level out, so before 4.3.0 every one of their results counted as medium and anERRORrule hit never failed the scan. A rule's numericsecurity-severitycan raise the bucket (9.0 critical, 7.0 high, 4.0 medium), never lower it. InvocationruleConfigurationOverridesare not applied. - A run whose invocation says
executionSuccessful: falseis recorded asinvalidand cannot satisfy a control: the scanner itself says it did not complete. A run with noresultsarray, or with error-level tool notifications, keeps its status but drops tolowconfidence and logs a warning. Semgrep 1.179.0, for one, writesexecutionSuccessful: trueplus an error notification when a rule does not parse, then exits 2. - A result whose every suppression is
accepted, or carries no status (a# nosemgrepline), is not an open finding. It is counted inmetadata.suppressed_countand named in the summary.underReviewandrejectedsuppressions leave the result open. - In a
secrets_scanan open result is a detected secret unless itskindispass,notApplicableorinformational, which SARIF defines as no problem found. One detected secret fails the scan whatever its level. The counts keep the level the scanner reported. In a native Trivy report any finding of the secret class fails the scan.
3 · Evidence quality is shallow¶
The collector checks presence, not correctness.
- A SAST SARIF with zero findings still satisfies the
sast_scancontrol — the control asks "was a scan run?", not "was the scan effective?". - Attestations are validated against a Pydantic schema (shape,
required fields,
extra='forbid') but the content of those fields is not audited. Arelease_approval.yamlnamingApprover: joe@example.comis accepted at face value. - Suppressions are visible only when the scanner writes them into its
SARIF. From 4.3.0, a result whose suppressions are all
accepted, or carry no status (a# nosemgrepline), is not counted as an open finding; the number of such results is recorded inmetadata.suppressed_countand named in the evidence summary.underReviewandrejectedsuppressions leave the result open. Up to 4.2.0 a suppressed result was counted like any other. Code excluded before the scan (a.semgrepignoreentry, for example) never reaches the SARIF, so the collector cannot see it. A scan in which every result was suppressed still passes; the count is the only signal. - SBOM evidence carries a
metadata.cisa_2025_minimum_elementspresence map and ametadata.cisa_2025_conformantflag, checked against CISA's 2025 Minimum Elements for an SBOM (author, timestamp, supplier, component name, version, unique identifier, dependency relationships, hash, license, tool name, generation context). A component-level element is reported present only when every component carries it. This checks the SBOM's shape, not the correctness of the values — a component with a bogus license string still counts thelicenseelement as present. - For CycloneDX 1.6/1.7, SBOM evidence also surfaces counts of ML-BOM
components (
metadata.ml_bom), CBOM cryptographic assets (metadata.cbom), anddeclarations.attestations(metadata.cyclonedx_attestation_count) — added only when present, so a classic dependency SBOM stays byte-identical to pre-1.7 bundles. These are presence/count signals, not a validation of the ML, crypto, or attestation content. - SPDX 3.0.x JSON-LD documents (a
@context+@graphof typed elements, rather than the 2.xpackages[]shape) are detected and ingested; their AI / Dataset / Security profile element counts surface asmetadata.spdx_profiles. The legacy CISA 2025 presence check above is shaped for SPDX 2.x / CycloneDX and is not applied to SPDX 3.0 documents. The CISA 2026 map is applied to SPDX 3.0, but most of its elements reportunsupported_mapping.
CISA 2026 and AI SBOM mappings (since 4.0.0)¶
The new CISA 2026 map covers 17 elements with explicit unsupported states. AI-bearing SBOMs also have 50 G7 presence states. Both are project mappings; neither verifies accuracy, completeness, signatures or regulatory compliance. SPDX 3 mappings are partial. Legacy 2025 fields remain for compatibility. See migration and limits for CRA operator context, CR26 source versions, catalog changes and output-lock recovery.
4 · Control catalog is small on purpose¶
- The default catalog has 13 controls focused on widely supported SSDF + OWASP SAMM practices plus four org-internal controls.
- It is not a full SSDF implementation (PS.1, PS.3-partial, PW.2,
PW.5, PW.6, RV.* are out of scope). Custom catalogs via
--catalogare the supported extension point. - Criticality decides the verdict. A gap on a
criticalcontrol makes the releasenot_ready; a gap on any other control,highincluded, makes itconditionalat worst. In the default catalog the scanner and test controls arehigh, so a release with no SAST, SCA, secrets or test evidence but every critical control met isconditional, which exits0under the default--fail-on not_ready. The bundledcatalog-fedramp-cr26has onlyhighcontrols, so it never returnsnot_ready. Use--fail-on conditionalwhen those gaps must block.
5 · SCM coverage¶
- GitHub is reachable from the CLI (
run --pull-requestand--workflow-run). GitLab merge requests and pipelines are read only through theGitLabCollectorPython API; no CLI option, Action input or GitLab component input uses it. Azure DevOps and Bitbucket collectors are not implemented and not scheduled; they are listed in Discussion #188 as built on demand. - GitHub code review reads every page of REST
/pulls/:n/reviewsand keeps each reviewer's latest decisive review (APPROVED,CHANGES_REQUESTEDorDISMISSED;COMMENTEDand pending reviews do not change a decision). An approval counts only when that latest review isAPPROVEDand itscommit_idequals the PR head SHA. Commit dates are never consulted, because the author sets them. The evidence passes when the counted approvals reach the required number and no reviewer's current decision is a change request. Approvals on an older commit appear asstale_approvalsin the evidence metadata, alongsidehead_shaandchanges_requested. The metadata keylast_approval_after_last_commitkeeps its name and now means "at least one counted approval is on the head commit". - Required-reviewer policies on protected branches, CODEOWNERS and reviewer eligibility (write access) are not checked. The required count is the number of still-requested reviewers, with a floor of one.
- GitLab does not bind an approval to a commit in its REST API, so a
commit-bound rule like GitHub's is not possible there. The collector
compares the latest approval timestamp in
/merge_requests/:iid/approvalswith the time GitLab recorded the MR head (sha) as a diff version (every page of/merge_requests/:iid/versions), never with commit dates. If the approvals response carries no timestamp, or no version matches the head, the review does not pass. The approval count is GitLab's ownapprovals_required - approvals_left. Turning on the project setting that removes approvals when commits are added gives the strongest guarantee; the collector does not read that setting. - Paged lists are read through their
Link: rel="next"headers up to 50 pages of 100 items. Past that cap, or when a next link points to a different host than the configured API, collection stops with an error instead of deciding on a partial list. - Code-review evidence from providers without reviewer metadata (e.g.
signed-off-by on plain git) is not parsed; supply a
code_review.yamlattestation instead. - Workflow-run evidence passes only when the run concluded with
success. A GitHub run that is queued or in progress (no conclusion yet), or that endedskipped,neutral,action_requiredorstale, is recorded asunknown, and so is a GitLab pipeline that iscreated,pending,running,manual,scheduledor otherwise unfinished. Failure-like conclusions (failure,timed_out,cancelled,startup_failure; GitLabfailed,canceled,skipped) arefailed. Neither satisfies a control such as OSPS-QA-03.01. Consequently, passing the id of the run that is executing the collector (for example${{ github.run_id }}from the same job) can never satisfy the control: that run is in progress when it is read. Pass the id of a run that has already finished, such as the CI run of the released commit. - A workflow run or GitLab pipeline is bound to the commit it ran on. When
its
head_sha(GitLabsha) is not the release--commit-sha(an abbreviated SHA matches by prefix), the run is recorded asunknownwhatever its conclusion, the summary names both commits, andmetadata.release_commit_matchisfalse. A run whose payload reports no SHA is not compared (release_commit_matchisnull). - Pull and merge request evidence is not bound the same way, because a
release is usually a later commit that contains the merge, and equality
cannot tell that apart from an unrelated PR.
metadata.release_commit_matchrecords whether the PR head or merge (or squash) commit is the release commit, and the summary says so when it is not, but the verdict is unchanged.
6 · DAST coverage¶
- The ZAP parser reads ZAP's JSON baseline/full-scan reports. Nuclei, Burp XML, Wapiti, and ZAP's automation framework output are not parsed.
- If a release's DAST evidence is a screenshot or a PDF, it must be
attested via
dast_scaningeneric_attestation.yamlwith a link.
6b · Native Trivy JSON¶
- Pinned to
SchemaVersion: 2. Trivy publishes no JSON Schema for this format (aquasecurity/trivy discussion #7552), so the version field is the only compatibility signal there is. Another version fails with a diagnostic rather than being parsed under version-2 assumptions. Results[].Classdrives the mapping:os-pkgsandlang-pkgsbecomesca_scan,secretbecomessecrets_scan,configbecomesiac_scan. Note the class is literallyconfig— "misconfiguration" is what the format is called in prose, not in the report.license,license-file,customandunknownclasses are read past. No evidence type in the bundle means what they mean, and inventing one would be worse than declining.- An empty result class produces no evidence at all, rather than a passing one. "Trivy found no secrets" and "Trivy was not asked about secrets" are different claims, and the report cannot tell them apart.
- A clean report, which Trivy writes without a
Resultskey, produces no evidence, for the same reason. From 4.3.0 it is recognised as a Trivy report; up to 4.2.0 it was listed among the files that matched no parser. - The dependency and
configclasses fail on a critical or high finding. From 4.3.0 thesecretclass fails on any finding, whatever its severity, because every entry is a detected secret; the counts keep the severity Trivy reported. Up to 4.2.0 a report holding only medium, low or unknown-severity secrets passed. - Misconfigurations whose
StatusisPASS(present when Trivy runs with--include-non-failures) are not counted as findings. - Only the dependency lane carries
cve_ids. Secret rule ids and misconfiguration check ids are not CVEs and are never fed to EPSS/KEV enrichment as if they were.
6c · GitLab Security Reports¶
- A JSON file is read as a GitLab Security Report when its
versionhas major 15, it has avulnerabilitiesarray, andscan.typeissast,secret_detection,dependency_scanning,container_scanningordast. The file name plays no part, as in GitLab itself. Other scan types (API fuzzing, coverage fuzzing, cluster image scanning) and other schema majors are listed among the files that matched no parser. sastbecomessast_scan,secret_detectionbecomessecrets_scan,dependency_scanningandcontainer_scanningbecomesca_scan, anddastbecomesdast_scan. Container scanning sharessca_scanwith Trivy'sos-pkgsresults; there is no container evidence type.- One report is one evidence. An empty
vulnerabilitiesarray is a passed scan: unlike a Trivy result class,scan.typestates which scan ran. scan.status: failuremakes the evidenceinvalid. In a secrets scan any finding fails it, whatever its severity; otherwise a critical or high finding fails it. Severities are counted as reported, and a word outside the schema's list counts asunknown.cve_idscome only from identifiers typedcve. The top-levelcvefield of a finding is a location key in SAST reports and is not used.- Vulnerability flags (such as GitLab's likely-false-positive flag),
remediations, dependency lists and
scanned_resourcesare not read. A flagged finding still counts. - Checked against reports from GitLab's
semgrep:6,secrets:7,gemnasium-python:6,container-scanning:8anddast:6analyzer images (tests/fixtures/real/gitlab/). No capture of a failed scan exists: an analyzer that cannot run usually writes no report, which leaves the control missing.
7 · Signing verification¶
- The collector records
artifact_signaturepresence (a file exists and declares the signed digest). It does not verify the signature against a key or an identity. - Verification of cosign keyless signatures is expected upstream (for
example in the
publish-pypi.ymlworkflow or on the consumer side). The project's own release workflow signs its artifacts; downstream consumers still need to runcosign verify-blobthemselves. - The same boundary applies to every in-toto attestation the collector ingests — SLSA provenance, VSA, and release attestations. A DSSE envelope or Sigstore bundle is decoded, never verified: the signature and the verification material are read past, not checked.
- In particular, an in-toto release attestation states no issuer of
its own. The only identity in the file lives in the Sigstore
verification material, and treating that as authoritative would be
signature verification. The normalized evidence therefore records
producer = "in-toto-release-attestation"— the format that was read — rather than naming an organization the collector did not authenticate.
7b · in-toto predicates the collector does not model¶
- An in-toto Statement whose
predicateTypehas no dedicated parser is ingested as ageneric_attestationwith statusunknown, and the collector logs a warning naming the predicate. It is recorded, not interpreted: no verdict is derived from it, and it satisfies no control on its own. This is deliberate — before it existed, such a Statement was dropped with no trace at all. - Predicates that are modelled: SLSA provenance, SLSA VSA, the release
predicate,
svr/v0.2,test-result/v0.1, andvulns/v0.2. spdx3/v0.1is a known gap. Its predicate is an SPDX 3 document that should route to the SBOM parser, butparse_sbomreads from a path rather than an in-memory document. Until that is reshaped, an SPDX 3 Statement is ingested as a generic attestation: preserved, but not parsed as an SBOM and not counted toward SBOM controls.- A DSSE-wrapped or Sigstore-bundled VSA also lands here rather than in the dedicated VSA parser, which reads raw Statements only. The evidence survives, but with less detail than an unwrapped VSA.
7c · Package-registry attestations¶
- PyPI (PEP 740) and npm attestations are read from a file you saved.
The collector never calls a registry: no network access, no tokens, and
the same workflow you already use for
gh attestation download. - What is recorded is the envelope of publication — which registry,
which
publisher.kind, and the predicate types the bundle carries. The embedded predicates are not each turned into separate evidence, so a SLSA provenance inside a PyPI provenance object does not currently satisfy build-provenance controls on its own. Save the provenance attestation separately if you need that. publisher.kindis recorded as the open string PEP 740 defines it to be, never mapped to a closed set.- Only the names of
publisher.claimsare kept, not their values: claim values are publisher-specific and can carry repository, ref and workflow detail that should not land in a shareable bundle by default. - When npm's declared
predicateTypedisagrees with the Statement inside the signed DSSE payload, the payload wins. The declared field sits outside the signature, so trusting it would let unsigned registry metadata relabel an attestation. - The
attestations[]envelope is not unique to npm — GitHub'sGET /repos/{owner}/{repo}/attestations/{digest}returns the same shape. npm statespredicateTypebeside each bundle and GitHub does not, so that is the discriminator. Without it the evidence recordsregistry: unspecified-registryrather than guessing:produceris what a reviewer reads to answer "who asserted this", and naming the wrong registry there is worse than declining to name one. The embedded predicate types are surfaced either way. - A GitHub attestation saved this way is therefore recorded as a
publication envelope, not as full SLSA provenance. To get the builder
identity, build type and invocation extracted, save the bundle with
gh attestation download— that shape routes to the provenance parser.
8 · Determinism boundaries¶
- Bundle JSON is deterministic for a fixed set of inputs after
stripping four per-run timestamp fields:
generated_at,evaluated_at,collected_at, and the release-uniquebundle_id. Those four fields intentionally change per run; everything else (includingevidence_id, which is derived from a SHA-256 of the input artifact and context, not from a random UUID) is stable. - File iteration order depends on the filesystem. The collector sorts
paths before ingestion, so Linux and Windows should produce the same
bundle — the
test_sample_release_bundle_is_stable_across_artifact_reorderregression test catches drift if this ever changes. - Catalogs and attestation files are hashed as raw bytes, so the same
YAML saved with CRLF line endings gives a different
catalog.sha256or different evidence ids, and a different structural digest, than the LF copy. A repository checked out on Windows withcore.autocrlf=true(the Git for Windows default) and on Linux can therefore pin different digests for identical content. Add*.yaml text eol=lfand*.yml text eol=lf(or* text=auto eol=lf, as this repository does) to.gitattributesso every runner sees LF. - Output files are written with LF line endings on every platform. Before 3.0 they were written in the platform's default text mode, so a bundle produced on Windows differed from the same bundle produced on Linux in every single line ending. The structural hash is computed over parsed JSON and was never affected, but "byte-for-byte identical output" only became true across operating systems here.
9 · Performance envelope¶
- Individual artifact hard cap: 25 MB.
- No concurrency inside a single
run; a 100-artifact bundle is processed serially. Benchmarks on the sample and lab fixtures finish under 2 s; releases with hundreds of SARIF files will take longer. - No streaming mode: every artifact is parsed into memory and held until export. Very large bundles may need a catalog split.
10 · Out of scope for vulnerability reports¶
The project has no paid bug bounty. These are out of scope for security
reports (see SECURITY.md):
- issues in third-party SARIF / SBOM parsers we call,
- DoS that requires privileged filesystem access,
- missing security headers in the
summary.htmlartifact when served outside the tool's default invocation.
10b · The bundle carries the identifiers you put in it¶
A bundle is meant to be shared — with an auditor, a customer, a regulator — and
it repeats back whatever identifies people in the evidence you fed it. In the
shipped sample that is five distinct values: the approver on a waiver, the
approver on a release approval, the author on PR metadata, and the
reviewers on a code review. The waiver approver also appears in report.md
and in the summary.html exceptions table, so it reaches the two files a
reviewer actually opens.
None of this is accidental. A waiver without an accountable approver is not worth recording, and the model requires the field. But three consequences are worth knowing before you decide what to type into it:
- It is published. The tool has an explicit control for keeping filesystem
paths out of a shared bundle (
--artifact-root) and no equivalent for these. - It is signed. The release pipeline signs the bundle with Sigstore, which binds a named person to "I approved waiving this control" in a form that is tamper-evident and meant to be durable. That is the point for an audit trail; it is also a stronger and more permanent link than someone writing a YAML file is likely to have in mind.
- It is inside the structural hash. Editing it later invalidates
verify --expected, so it is not something you remove after the fact.
If your policy needs the accountability without the personal identifier, record
a role or a ticket reference (security-review-board, RISK-4471) rather than
an individual's address. The tool treats the field as an opaque string and does
not care which you choose.
11 · Things the verdict does not imply¶
readydoes not mean "legally compliant with SSDF / PCI-DSS / SOC 2 / ISO 27001". It means "every control in the active catalog is met, waived or not applicable, with no required or recommended evidence missing".conditionaldoes not mean "ship at your own risk", and it does not mean only minor gaps remain. It means no critical control lacks required evidence, but ahigh,mediumorlowcontrol lacks required evidence, or only recommended evidence is missing. A missing SAST or SCA scan in the default catalog is ahighgap, so it givesconditional, which exits0under the default--fail-on not_ready. Review the gaps before promotion, or gate with--fail-on conditional.not_readydoes not automatically mean "the release is broken". A critical control without evidence may also reflect an immature evidence pipeline rather than an unsafe release.- A
waivedornot_applicablecontrol is not a demonstrated one. Inoscal --kind assessment-resultsonlymetbecomessatisfied; waived and not-applicable findings arenot-satisfiedwith anot_satisfied_reasonproperty (waived/not_applicable). A waived finding also lists itsexception_idvalues and links to an OSCAL risk with statusdeviation-approvedthat carries the justification, approver, reference and earliest expiry. Before this, both mapped tosatisfied. The in-toto SVR statement likewise leaves both out of the properties it asserts.
12 · When results need human interpretation¶
- SARIF from a scanner run with
--severity=low— the collector records it, but the release manager has to decide whether a low-severity-only run counts as a meaningful SAST check. - Waivers (
exceptions/*.yaml) that are expired vs. valid — the collector flags expiry but never decides whether the waiver should have existed. - DAST coverage on an API release where only UI was scanned — the
collector sees a
dast_scan, not its coverage.
13 · Enriched bundles are not byte-stable across EPSS / KEV feed refreshes¶
sdlc-evidence enrichwrites EPSS / KEV signal into evidence. (There is norun --enrich; enrichment is a separate command run against an existingbundle.json.) The structural-hash gate deliberately capturesepss_feed_date,epss_model_version, andkev_feed_dateso a feed bump (or an EPSS model-version change) surfaces as drift.- This means the same source artifacts produce different bundle hashes on different days when enrichment is on. That is the intent: drift in the EPSS feed is meaningful, not noise.
- If a downstream signer needs a single durable hash, sign the
base bundle (the one written before
enrichruns) and ship the enriched view as a separate, time-bound delta. The base bundle is byte-stable across runs on identical inputs.
14 · Risk-weighted verdict only downgrades¶
- Freshly collected evidence never carries EPSS / KEV data; only
sdlc-evidence enrichattaches it, to an existing bundle. Sorun --risk-mode epss-weightedon its own cannot change the verdict: it records the mode and threshold insummary.risk_assessment, keeps the presence-based verdict, and says no intelligence was present. sdlc-evidence enrichthen re-derivesrelease_statusandrisk_assessmentunder the mode and threshold recorded in the bundle, starting fromrisk_assessment.base_release_status. Re-enriching with a newer feed reflects that feed. A bundle built with the default--risk-mode offkeeps its verdict and summary unchanged byenrich.- When
enrichchangesrelease_statusorrisk_assessment, it also re-rendersreport.mdandsummary.htmlwith the same renderersrunuses, written together with the bundle (all or nothing). In place, the reports that exist next to the bundle are overwritten. With--outputin another directory, each report is written next to the output only if the input bundle's directory had it; no report is created out of nothing. With--outputas a different file in the input's own directory, the reports there still describe the input bundle (which keeps its old verdict), so they are left alone and a warning says so (reports_left_aloneunder--json-logs). When the verdict does not change, the reports are left alone. A bundle that is itself namedreport.mdorsummary.html, on either side, is never treated as a report or overwritten by one. - With only one feed, the source that was not supplied is not read as a
clean result. Each CVE keeps that source's intelligence from an
earlier enrichment (KEV counts and flags without
--kev-feed, EPSS scores and the whole earlier ranking, not cut to the current--top-risk-limit, without--epss-feed). On a first enrichment the record is markedkev_consulted: falseorepss_consulted: false, and the risk rationale says the source was not consulted instead of claiming that no exploitable CVE exists. - Every KEV-listed CVE is recorded in
kev_cve_ids(andkev_ransomware_cve_ids), independently of the EPSS-rankedtop_risk_cves, and carried forward when--kev-feedis not given.vexreads them, so a KEV CVE that has no EPSS score, or drops out of the top list on an EPSS-only refresh, is still emitted asaffected. - Under
--profile cra-2026,global_exploitation_signalisunavailablewhenever KEV or EPSS was not consulted and neither gives a positive signal. enrichwith neither--epss-feednor--kev-feedconsults no source, so it leaves the bundle unchanged (copying it to--outputwhen given), prints a warning, and keeps the prior intelligence and verdict. It never turns "no feed" into a clean assessment.- For a bundle built with
--profile cra-2026,enrichalso recomputes each record'smetadata.cra.global_exploitation_signal, whichruncould only set tounavailable. enrichexits0whatever the verdict. To gate a pipeline on the risk-weighted verdict, readsummary.release_statusfrom the enriched bundle, or pass its evidence ({"evidence": [...]}) tosdlc-evidence evaluate --risk-mode epss-weighted, which turns the verdict into an exit code likerundoes.- The KEV rules apply to every KEV-listed CVE on the evidence, including
one with no EPSS record or one ranked below
--top-risk-limit: the per-evidencecves_in_kev_count/cves_known_ransomware_countact as a floor under whattop_risk_cvesshows. High-EPSS CVEs ranked below the limit are not counted one by one, sohigh_epss_cve_countis a lower bound; the verdict is unaffected because one is enough. - The mode can only make the verdict worse (
ready→conditional→not_ready). It will never promote anot_readybase verdict toreadyjust because the present CVEs happen not to be exploitable. Missing required evidence is its own gap and must be addressed at the evidence layer, not waved away. - A CVE on evidence marked
reachability.status == "not_reachable"is removed from the exploitable count. The collector trusts the upstream reachability tool; it does not second-guess the verdict.
15 · Reachability is not re-derived by the collector¶
- The
Reachabilityfield is populated by external tools (CodeQL reachability, Endor Labs, Semgrep Pro, manual review). - The collector records
status(reachable/not_reachable/unknown),source, andmethod. It does NOT compute reachability and will NOT contradict an upstream verdict, even when the data looks wrong. unknownis treated as "could be exploitable" in risk weighting so a missing reachability tool cannot silently suppress a real signal.
16 · Multi-VEX consumer trusts the upstream verdict¶
sdlc-evidence vex --consume <file>merges external VEX (OpenVEX, CycloneDX VEX, CSAF) into the bundle-derived statements.- The merger does not validate that the consumed VEX file was
signed or that the source is authentic. Pipelines that need that
guarantee must verify signatures before piping the file into
--consume. - A consumed statement applies only when it names a product of this
release: the bundle's own
pkg:generic/<repository>@<release>id or an identifier passed with--product(a purl, CPE, CycloneDX ref or CSAF product id; CSAF ids are also resolved to the purl or CPE in the product tree, including relationship products). A versionless purl covers every version of the package with the same qualifiers and subpath; a statement for another version, or for the same package from another repository (?repository_url=), does not apply. Other identifiers match only exactly. A CycloneDXaffectsentry with aversionsarray names only its explicit versions whose own status agrees with the analysis (unaffectedfornot_affectedor a fix,affected, the default, for an exploitable finding); a versionrangeis not evaluated, and neither isversionson a plain bom-ref, so such an entry names no product; a versioned purl ref applies only whenversionslists that version. Purls are compared with their qualifiers sorted and their versions percent-decoded. With more than one--consumefile, CSAF product ids and CycloneDX bom-refs are not matched (they are unique only inside their own document); name the release by purl, CPE, URN (such as a CycloneDX BOM-Link) or absolute IRI instead. CycloneDX bom-refs are resolved to the purl or CPE of the component they point at, with the component'sversionadded to a versionless purl. A CSAF vulnerability yields one statement per status, naming the products of every bucket that maps to it. Statements that name no release product, including those that name no product at all, are skipped and listed in a warning. Matching on the CVE id alone let a VEX for an unrelated package silence a CVE the release carries. - CycloneDX justifications are translated into the five OpenVEX
justifications (the original is kept in
status_notes); an unknown justification falls back tovulnerable_code_not_in_execute_path. - Conflict policy (
first-wins,last-wins,fail) decides what happens when sources disagree.failis the right choice when an unexpected disagreement is itself a finding. Underfaila conflict exits3and writes no document, the same code and event (vex_failed) as an unreadable bundle. Tell them apart by the event: a conflict carries apolicykey and a reason starting withVEX merge conflict:(see the JSON logs event reference). - SPDX VEX is deferred (low industry adoption) and not scheduled.
- Exceptions waive controls, not CVEs. The bundle-derived document marks a
CVE
not_affectedonly when a waiver actually applies to it: the exception is in force for the bundle's application, release and clock; the bundle records it inexception_refson awaivedevaluation of the control the exception names; and the CVE is reported by evidence whose type is among that control'smissing_required_evidence_types, the evidence the waiver stands in for. Every other exception leaves the CVE as it would be with no waivers (under_investigation, oraffectedwhen CISA KEV lists it). Examples: a waiver ofORG-REL-ROLLBACKnever touches a CVE; a waiver listed on ametcontrol waived nothing; a control waived for a missing SBOM does not cover CVEs from a passing SCA scan. An applied waiver keeps its precedence over KEV and over CycloneDX inline analysis. There is no per-CVE waiver field: waiving one CVE means waiving the control its evidence feeds, for the whole release. - The output is reproducible. The clock is the bundle's
generated_at, used for bothtimestampand waiver validity, so a waiver that expired after the bundle was generated still counts, matching the verdict the bundle recorded.@idis a UUIDv5 over the application, repository, release, commit and a SHA-256 of the statements, so two runs on one bundle are byte-identical and different statements (including after--consumemerges) never share an id;versionstays1.
17 · Watch daemon deferred, not scheduled¶
- The roadmap pairs the GUAC adapter with a
sdlc-evidence watchdaemon (webhook receiver, durable cursor, delta bundles for continuous ATO). That subcommand is not scheduled, because it requires an optional[watch]extra (FastAPI + uvicorn + watchdog) and durable cursor persistence the file-first collector deliberately avoids. - GUAC and regulatory profiles provide projections of supplied evidence; they do not establish authorization or reporting compliance. Watch remains deferred and is not part of the current delivery boundary.
18 · The optional API has no authentication¶
pip install "secure-sdlc-evidence-collector[api]" adds a FastAPI app,
evidence_collector.api.app:app, with five GET routes: /healthz,
/version, /schema, /catalog and /plugins. It has no authentication and
no authorization. Nothing it serves is secret, but the catalog and the plugin
list tell a visitor which controls gate your releases and what is installed.
The extra installs uvicorn, which starts it:
- Keep it on
127.0.0.1, which is uvicorn's default, or put it behind a proxy that authenticates callers. Do not bind it to0.0.0.0on a host with a public address. /docsand/openapi.jsonare served only whenSDLC_EVIDENCE_API_DOCS=1is set or the app is built withexpose_docs=True.- The collector does not refuse a public bind. That choice stays with whoever runs the server.
19 · Output locks are per file and advisory¶
Every write takes an exclusive .<name>.lock beside the file it replaces, and
fails with exit 3 if that lock already exists. Writers of different files in
one directory do not block each other. The lock is advisory, local to the
filesystem and unverified on network shares.
A process killed mid-write (kill -9, the OOM killer, a CI timeout) leaves its
lock behind, and every later write of that file exits 3 until it is removed.
Confirm that no sdlc-evidence process is still running (the lock records pid,
host and started), then delete only the lock file named in the error.
Never delete the output files: if one is missing, the .<name>~o?????? file
beside it holds the previous output and is restored by renaming it back. See
migration and limits.
20 · report.md escapes text the tool wrote as well¶
report.md passes free-text values through the same Markdown escaping
whether they came from an input file or from the collector itself. Control
names, rationales, gap descriptions, evidence references and the missing
critical evidence list are escaped like package names and waiver
justifications, so the raw file shows backslashes before *, _, `,
~, [, ], | and \, and </> for angle brackets. A rationale
reads missing required evidence types model\_card in the file, and a
Markdown renderer displays model_card. Scripts that grep or diff the raw
report.md must expect the escaped form; read bundle.json for the
unescaped values. Values inside code spans (control IDs, paths, digests) are
not backslash-escaped; only backticks and pipes are altered there.
21 · lm-eval results satisfy AI-SAFETY-EVAL on presence alone¶
- An lm-evaluation-harness report becomes an
ai_safety_evalrecord with statusgenerated, andgeneratedsatisfies a control. The parser keeps the raw per-task metrics inevidence.metadata.tasksbut never judges them. - Control catalogs select evidence types only.
ControlDefinitionhas no threshold field (and rejects unknown keys), so no catalog,catalog-ai.yamlincluded, can say "toxigen accuracy must be at least X". - Result: any parseable lm-eval output meets
AI-SAFETY-EVAL, even one whose safety and bias scores are near zero. The control proves an evaluation was run and shipped with the release, not that the model passed it. A reviewer has to read the metrics and decide, or a pipeline step has to enforce its own thresholds on the raw report before the collector runs. - Inspect logs differ only in that an errored, cancelled or unfinished
run is recorded as
invalid; a successful run is likewise accepted whatever its scores.
22 · OSCAL assessment results embed a minimal plan and no SSP¶
OSCAL links an Assessment Results document to an Assessment Plan
(import-ap), and the plan to a System Security Plan (import-ssp). The
collector produces neither of those as separate documents. oscal --kind
assessment-results embeds, base64-encoded in its back-matter, a minimal
OSCAL 1.1.2 assessment plan generated from the same bundle: the controls
evaluated and the catalog digest they were evaluated against. import-ap
resolves to that resource.
The collector has no system security plan and does not invent one. The
embedded plan's import-ssp points to a back-matter resource that says no
SSP is published and names the application and repository assessed; it is
not an SSP. Tools that resolve the full OSCAL chain (AR to AP to SSP to
profile and catalog) will stop there. If you need that resolution, supply
your own SSP and assessment plan and point import-ap at your plan.
23 · OSCAL control ids come from each control id alone¶
OSCAL control ids (the catalog's controls[].id, a finding's
target-id, and control-id under reviewed-controls in the
assessment results and in the embedded plan) must be NCName tokens and
unique within a document. The oscal command derives each token from
its own control id and nothing else:
- The id lower-cased with
.replaced by-, when that is a valid NCName. Every id in the bundled catalogs takes this form, so their tokens are the ones earlier releases produced:SSDF-PS.3becomesssdf-ps-3,ORG-CODE-REVIEWbecomesorg-code-review. - Otherwise (
1,ORG:BUILD,custom control) each character that is not a letter, digit,-or_becomes-,control-is prepended when the result does not start with a letter or_, and the first 8 hex digits of the SHA-256 of the original id are appended:ORG:BUILDbecomesorg-build-92a2db4b,1becomescontrol-1-6b86b273.
A token therefore stays the same across catalogs, bundles and exports,
and an OSCAL profile that selects org-build keeps matching it.
Two different ids that differ only by letter case or by . versus -
(ORG.BUILD, ORG-BUILD, org.build) produce the same token. The
export then fails with exit code 3 and an oscal_failed error naming
both ids and the token, for example Control ids 'ORG.BUILD' and
'ORG-BUILD' both map to the OSCAL control id 'org-build', and writes
no document. Rename one of the controls in the catalog.
Behaviour change for custom catalogs. Releases before 4.1.0
exported both under the same id, which OSCAL does not allow. 4.1.0
exported each with a hash suffix instead (org-build-9b7a8e07,
org-build-33d2563c). That made a token depend on the other ids in
the catalog: a catalog holding only ORG.BUILD exported org-build,
and adding ORG-BUILD silently renamed it, breaking every profile
that referenced org-build. A custom catalog with ids that differ
only by case or ./- now fails the oscal export until one of them
is renamed. The bundled catalogs contain no such pair, and their
tokens are unchanged.
In the assessment results, an evidence resource links to the artifact
(rlinks) only when its artifact_uri is an absolute URI as defined by
RFC 3986 (scheme, then authority and path, query and fragment, each
with its allowed characters and %XX escapes; a port above 65535 is
refused too) whose scheme is not javascript, vbscript or data, or when
its artifact_path is absolute. A locator such
as https://example.test/a#one#two, one with a space, a raw non-ASCII
character or [ outside an IPv6 literal, is not linked: the resource
embeds the normalized evidence record as base64 and keeps the locator
as an artifact-path prop.
24 · A passing record beside a failing one still meets the control¶
Each required evidence type needs one record whose status satisfies it.
When the same type also has a failed or invalid record, for example
a safety suite that failed in one job and passed in another, the control
is still met (or partial), and the failing record is left out of
evidence_refs.
The failing record is not dropped in silence: the rationale names it,
as in Evidence promptfoo-fail (failed) of type ai_safety_eval did not
count.
The rule is deliberate. A re-run that passes after a flaky failure is the common case, and a rule where any failure wins would block those releases. Changing it would change the verdict of bundles that already exist, so it stays for the 4.x line.
To make a failure block the release, give the control one record per
input: collect only the run that gates the release, or fail the
producing job in CI before collection. Collecting only the failed run
leaves the control without satisfying evidence, and how far that
reaches depends on its criticality: a critical control makes the
release not_ready, but a high one, such as AI-SAFETY-EVAL, only
makes it conditional, which the default --fail-on not_ready lets
through with exit 0. For a high control, gate with
--fail-on conditional.
25 · OSV CVSS v2 vectors are not scored¶
The OSV parser scores CVSS 3.0, 3.1 and 4.0 vectors. A CVSS v2 vector
(AV:N/AC:L/Au:N/..., with no CVSS: prefix) is not scored: the finding
takes the advisory's own qualitative rating (database_specific.severity)
when it carries one, and medium otherwise. A purely v2-rated advisory can
therefore land in a different severity bucket than its v2 base score would
suggest. When an advisory also carries a v3 or v4 vector, the highest
scored vector wins and the v2 entry is ignored.
26 · Evidence from another commit lowers the verdict, it does not block it¶
evaluate --evidence accepts records collected for another release or
commit. Each mismatch is recorded in collection_errors (as
evidence[<release>@<commit>]) and a ready verdict becomes
conditional; a conditional or not_ready verdict is left as it is. With
the default --fail-on not_ready the run exits 0. Carrying part of an
evidence set forward can be deliberate, so the tool reports it instead of
refusing it; pass --fail-on conditional when evidence must come from the
commit being released.