Module 6 · Dependency Security and SBOM Management

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
May 14, 2026
3 min read
Read as
100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. Modern applications are 80-90% third-party code by line count. Dependency security — knowing what you depend on, monitoring for vulnerabilities, controlling supply chain risk — is the practitioner programme that catches Log4j, XZ, and the next supply chain attack. This module covers SBOM, SCA tooling, and operational patterns.

Why this module exists. Your application’s CVE exposure is mostly in its dependencies, not its own code. Managing that exposure requires inventory, monitoring, and a remediation cadence.

SBOM — the Software Bill of Materials

An SBOM is the declared list of components in a software artefact. Two standard formats:

  • CycloneDX: OWASP-led. JSON/XML. Strong tooling support.
  • SPDX: Linux Foundation. Tag/Value or JSON. Strong tooling support.

Both formats record: components, versions, licenses, suppliers, hashes, relationships.

Generating SBOMs

# Syft — popular, multi-language
syft packages dir:./myapp -o cyclonedx-json > sbom.json

# CycloneDX-specific generators per ecosystem
cdxgen -o sbom.json ./myapp        # multi-language
npm sbom --sbom-format=cyclonedx     # Node.js
mvn cyclonedx:makeAggregateBom       # Maven / Java

# Container images
syft packages myimage:latest -o cyclonedx-json > image-sbom.json
docker sbom myimage:latest           # built into Docker Desktop

Generate SBOMs at build time and store as build artefacts alongside the binary / container image.

SCA — Software Composition Analysis

SCA tools compare SBOM (or directly scan dependencies) against vulnerability databases:

Tool Strength
Grype Open-source, fast, container-focused
Trivy Open-source, broad scope (containers + IaC + code)
Dependabot / Renovate GitHub-integrated; opens PRs for vulnerable deps
Snyk Commercial; strong remediation guidance
Mend (formerly WhiteSource) Commercial; enterprise scale

Reachability analysis — the noise reduction

A CVE in a transitive dependency does not always affect you. Modern SCA tools include reachability analysis: is the vulnerable function actually called from your code? Reachability cuts the alert volume by 60-80%.

Tools: Endor Labs, Veracode Static, Semgrep with reachability rules. Not all SCA tools have it yet; budget the investment.

The remediation SLA matrix

Signal SLA
In KEV + reachable in your code 3 days
Critical CVSS + reachable 7 days
High CVSS + reachable 30 days
Critical CVSS + not reachable 90 days
Other Quarterly batch

Supply chain attacks — the modern threat

  • Typosquatting: malicious package with similar name to popular one (e.g. requets vs requests).
  • Dependency confusion: attacker publishes public package with same name as your internal package; build pulls the public one.
  • Compromised maintainer: legitimate package’s maintainer account compromised; malicious update published.
  • Build-system compromise: attacker compromises the CI/CD that publishes the package.

Defences:

  • Pin dependency versions; use lockfiles.
  • Configure package manager to use private registry as primary; only fall to public for explicitly approved packages.
  • Use signed packages where ecosystem supports it (Sigstore for OCI, npm-2FA, RubyGems signing).
  • Verify newly-added packages for legitimacy (maintainer reputation, age, download volume, source-code review).

Container-image dependency security

  • Use minimal base images (distroless, Alpine, scratch). Less code = fewer CVEs.
  • Scan at every image build; block on critical CVEs in known reachable paths.
  • Sign images with cosign; admission control to require signature.
  • Image lifecycle: deprecate unsupported versions; force rebuilds.

The license question

SCA tools also flag license risks — GPL in commercial proprietary code, license-incompatible combinations. License compliance is its own programme; SCA tools are the inventory point.

Key takeaways

  • SBOMs (CycloneDX, SPDX) generated at build time; stored alongside artefact.
  • SCA tools (Grype, Trivy, Snyk, Mend) compare against vuln DBs.
  • Reachability analysis cuts alert volume 60-80%; invest in this capability.
  • Remediation SLA matrix combines KEV, CVSS, and reachability.
  • Supply chain attacks: typosquatting, dep confusion, compromised maintainer; defences include pinning, private registries, signed packages.
  • Container images: minimal base, scan-at-build, signing, admission control.
Need a real pentest?

Get a VAPT scoping call

Senior practitioner-led VAPT — not a checklist run by juniors. CVSS-scored findings, free retest, attestation letter. India's SMBs and SaaS teams.

Book VAPT scoping call Replies in 4 working hrs · India-only · Senior consultants