Software Supply Chain: SAST, SCA, SBOM and Signed Artifacts
Java 17 · Semgrep · OWASP Dependency-Check · CycloneDX · Sigstore Cosign

A build pipeline that refuses to ship a Java service with known-exploited dependencies. The vulnerable version carried Log4Shell (CVE-2021-44228, on CISA's KEV catalogue) among 86 dependency CVEs; the remediated one has none, and the pipeline returns exit 1 or exit 0 accordingly. A second lab signs the release with Sigstore Cosign and verifies keyless signatures and SLSA provenance.
Technologies
My role
Sole author. Wrote the pipeline, the custom Semgrep rules, the severity policy and the GitHub Actions workflow, and ran the signing and verification lab.
Highlights
- Semgrep findings 17 → 2, none at ERROR, with two custom rules for unsafe YAML loading and Java deserialisation that the registry packs missed
- Dependency-Check: 86 CVEs (60 with CVSS ≥ 7, 2 in CISA's KEV) → 0
- CycloneDX 1.6 SBOM generated on every build and re-scanned with Trivy
- GitHub Actions workflow that uploads SARIF results and blocks on the same severity policy
- Cosign signature recorded in the Rekor transparency log; a one-bit change, a foreign key and an attacker re-signing are all rejected
- Keyless verification by identity and issuer, with the Fulcio certificate and SLSA provenance decoded
Screenshots and diagrams



