Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 2 min read

Auditing CycloneDX v1.5 SBOMs for AGPL & SSPL Copyleft Traps in Pure Python & JS

Generating a CycloneDX v1.5 SBOM is only half of supply-chain governance. During enterprise procurement or M&A technical due diligence, the next question is always: "Do any of your transitive npm, PyPI, Go, or Cargo de

Generating a CycloneDX v1.5 SBOM is only half of supply-chain governance. During enterprise procurement or M&A technical due diligence, the next question is always:

"Do any of your transitive npm, PyPI, Go, or Cargo dependencies carry **AGPL-3.0, **SSPL-1.0, or **GPL-2.0-only* copyleft licenses?"*

If you ship proprietary SaaS, a single AGPL-3.0 or SSPL-1.0 package in your dependency tree can trigger network-interaction source disclosure obligations. Here is a zero-dependency pattern to audit CycloneDX v1.5 SBOMs and package-lock.json manifests locallyโ€”both in browser JS and in pure Python stdlib.

1. Classify SPDX Identifiers by Distribution Target

Not every copyleft license is a blocker for every project. An AGPL-3.0 dependency is a BLOCKER for proprietary SaaS or MIT libraries, but COMPATIBLE if your own project is already GPL-3.0.

const OSS_LICENSE_RULES = {
  'AGPL-3.0':   { tier: 'Network Copyleft', prop: 'BLOCKER', perm: 'BLOCKER', gpl3: 'COMPATIBLE' },
  'SSPL-1.0':   { tier: 'Network Copyleft', prop: 'BLOCKER', perm: 'BLOCKER', gpl3: 'BLOCKER' },
  'GPL-3.0':    { tier: 'Strong Copyleft',  prop: 'BLOCKER', perm: 'BLOCKER', gpl3: 'COMPATIBLE' },
  'MPL-2.0':    { tier: 'Weak Copyleft',    prop: 'REVIEW',  perm: 'COMPATIBLE', gpl3: 'COMPATIBLE' },
  'MIT':        { tier: 'Permissive',       prop: 'PASS',    perm: 'PASS',    gpl3: 'PASS' },
  'APACHE-2.0': { tier: 'Permissive',       prop: 'PASS',    perm: 'PASS',    gpl3: 'PASS' }
};

function evaluateSpdx(spdx, targetModel = 'PROPRIETARY') {
  const rule = OSS_LICENSE_RULES[spdx.toUpperCase().replace(/\s+/g, '')];
  if (!rule) return { tier: 'Unknown / Custom', verdict: 'REVIEW' };
  const key = targetModel === 'PROPRIETARY' ? 'prop' : (targetModel === 'PERMISSIVE' ? 'perm' : 'gpl3');
  return { tier: rule.tier, verdict: rule[key] };
}

2. Run It in CI/CD with Pure Python Stdlib (v1.1.0)

We added LicenseAuditor to NexusShield inside it-solutions-suite (100% Python 3.8+ standard library, zero external runtime dependencies):

pip install it-solutions-suite

# 1. Generate a CycloneDX v1.5 SBOM
it-solutions shield sbom . --output sbom.cdx.json

# 2. Audit the SBOM for proprietary SaaS copyleft blockers (exits 1 on BLOCKER)
it-solutions shield licenses sbom.cdx.json --model PROPRIETARY --json

3. Try the Free Browser Tools (Zero Server Uploads)

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.