Josue Arango
All projects

2026 · Application Security & DevSecOps

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

Java 17MavenSemgrepOWASP Dependency-CheckTrivyCycloneDXSPDXGitHub ActionsSARIFSigstore CosignRekorSLSA

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

Build, SAST, SCA and SBOM, each with its own failure condition, and a severity policy that decides whether the artifact ships
Build, SAST, SCA and SBOM, each with its own failure condition, and a severity policy that decides whether the artifact ships
Same pipeline, two runs: 86 dependency CVEs and exit 1, then 0 CVEs and exit 0
Same pipeline, two runs: 86 dependency CVEs and exit 1, then 0 CVEs and exit 0
Dependency-Check report: CVE-2021-44228 (Log4Shell), CVSS 10.0 and on CISA's Known Exploited Vulnerabilities list
Dependency-Check report: CVE-2021-44228 (Log4Shell), CVSS 10.0 and on CISA's Known Exploited Vulnerabilities list
Semgrep flags the code (7 ERROR) and Dependency-Check the libraries (86 CVEs): both gates fail
Semgrep flags the code (7 ERROR) and Dependency-Check the libraries (86 CVEs): both gates fail