Open-source alternative to Black Duck license compliance

Dependency-Track and Trivy can replace Black Duck's declared-license identification and policy enforcement on your own servers. Undeclared licenses and snippet matches still need a legal review process that no open-source scanner replaces.

On this page

Is an open-source alternative to Black Duck license compliance workable?

Yes, for declared license identification and policy enforcement, but not for the whole of what Black Duck license compliance covers. If your team faces a Black Duck renewal, a licensing change or a data residency requirement, the open-source pair of Dependency-Track and Trivy can cover the part of the job that is mechanical: reading the license each component declares, mapping it to an SPDX license ID, and failing a build or flagging a project when a license breaks your policy. Dependency-Track tracks license use by component using SPDX license IDs and applies per-project and global license policies. Trivy detects software licenses in container images, filesystems and existing SBOMs. Neither tool performs snippet matching or binary matching, so code copied into a project without a declared license, or a file vendored from another source, will not appear in their results.

This page covers declared license identification and policy. It does not cover the discovery of code that was never labeled. Before you cancel a subscription, run a short comparison on two or three representative projects: generate a CycloneDX SBOM with Trivy, load it into Dependency-Track, and compare the license findings with the last Black Duck report for the same versions. Note every component where the license differs or is missing, and ask your engineering leads whether any code was copied from outside the dependency graph. Confirm with your own environment which SBOM generation paths your build systems support, since that determines how much of the portfolio is covered.

The remaining gap is a legal review function, not a tool. Someone accountable must decide how obligations such as attribution, source disclosure and network-use terms apply to each license, and must review any finding that Dependency-Track or Trivy marks as undeclared or conflicting. Plan for that review as a recurring role with a named owner, a documented exception process and a record of decisions. Ask counsel to confirm which license categories your policy must block outright, and treat the open-source tools as the evidence source for that review rather than as the final judgment.

Which Black Duck license capabilities map to open source, and which do not

This table maps each license capability in Black Duck SCA to Dependency-Track, Trivy or a gap that needs legal review or a different tool. Read the Dependency-Track and Trivy columns as what the researched product documentation describes, and confirm Black Duck's snippet and binary coverage in your own environment before you decide.

CapabilityDependency-TrackTrivy and what remains open
License identification by componentTracks license use by component using SPDX license IDs, so each component in a project's SBOM carries a license value.Scans software licenses in container images, filesystems and Git repositories, and can scan an existing SBOM instead of the target.
SPDX normalizationUses SPDX license IDs as the common vocabulary, so license values from different SBOMs can be compared in one policy.Output format depends on the scan target and SBOM input. Confirm that license strings from your inputs normalize to SPDX IDs before you write policy.
License policy per projectApplies global and per-project policies for license compliance, so a project can allow or fail specific license IDs.Trivy reports license findings per scan but does not hold a policy store. Policy decisions sit in your CI gate or in Dependency-Track.
Approval workflow for exceptionsConfirm whether the approval and exception workflow you need is covered by its policy model or requires a custom step in your process.No approval workflow in scope for Trivy. Record exceptions and approvers in your own ticketing or change system.
License obligation reportingConfirm whether obligation text, attribution notices and copyleft conditions are reported, since the documented facts cover license risk and SPDX tracking.Lists detected licenses per target. Obligation interpretation, notices and distribution duties need legal review.
Notifications on license violationsSends configurable notifications to Slack, Microsoft Teams, Mattermost, webhooks, email and Jira.Not a notification system. Route Trivy output into CI results or your existing alerting.
Undeclared licenses and missing license dataDepends on the SBOM supplied. Components without a declared license need manual review or a second source.Can detect licenses from files in scanned targets, but license files that are absent or unclear still need legal review.
Snippet and binary license matchingNot covered by the researched facts. Confirm with the vendor and your own tests before assuming a match.Not covered by the researched facts. Confirm in your environment, since snippet matching is a separate capability from package-level license scans.

Dependency-Track, Trivy and the roles each plays in license compliance

Dependency-Track and Trivy cover different parts of license compliance, and most teams use both. Trivy reads license data at build time from a filesystem, image or SBOM, while Dependency-Track holds the component inventory, applies license policy across every project and routes violations to the people who act on them.

Dependency-Track as the license system of record

Dependency-Track ingests CycloneDX SBOMs, tracks license use by component using SPDX license IDs, and applies global and per-project policies for license compliance. It is the place where a license decision for a component applies to every project that uses it. Check that your SBOMs carry license fields in a form Dependency-Track can map to SPDX IDs, because components with missing or free-text license values will need manual review.

Dependency-Track docs

Trivy for license scanning at build time

Trivy's scanners identify software licenses in filesystems, container images and repositories, and it can also scan an existing SBOM. Running it in CI gives developers a license result on the same pull request as the code change, before an artifact is published. Its license detection works from package metadata and license files, so it will miss licenses that are not declared in a form the scanner reads.

Trivy README

Dependency-Track for cross-project policy and alerts

Dependency-Track applies license policies to every project it holds and sends configurable notifications to Slack, Microsoft Teams, Mattermost, webhooks, email and Jira. A policy violation can open a ticket for the team that owns the component, which is useful when legal review and engineering are in different tools. Confirm which notification triggers cover license violations in your Dependency-Track version before relying on them for approvals.

Trivy for SBOM generation and export

Trivy produces SBOMs for container images, filesystems and other targets, and its report formats include JSON, SARIF, template and SBOM output. Generating the SBOM in the build pipeline gives Dependency-Track an input for every release, including components that were never registered in a project. The trade-off is that the SBOM is only as complete as the scan target, so check that the build captures all dependencies, including vendored code.

Dependency-Track as the inventory across portfolios

Dependency-Track keeps component inventories by project, so a license change or a new license finding can be checked against every product that ships a given component. This matters when legal teams ask which products include a copyleft library. Confirm that project naming and SBOM upload are automated, since inventory that depends on manual uploads drifts quickly.

Pipeline and server operations

Dependency-Track runs as Docker, Kubernetes or an executable WAR, and Trivy runs as a binary in CI or a container. Each needs its own hosting, upgrades and database maintenance, and Trivy needs a mirror of its vulnerability and license data for air-gapped use. Ask who owns the mirror updates and the Dependency-Track upgrade schedule before you decide the roles.

How SBOMs, license data and legal review move through the pipeline

The flow starts in source repositories and build jobs, where Trivy produces a CycloneDX SBOM that carries license data for each component. That SBOM is uploaded to Dependency-Track, which tracks licenses by SPDX ID and evaluates them against the project's license policy, then sends notifications to Jira or a chat channel. Components with no declared license, an unknown license, or a suspected snippet are routed to a human legal review queue instead of being auto-approved. Check that every review outcome is written back to Dependency-Track as a policy decision or finding, so the record stays in one place.

Licensed components flow from build jobs to policy checks, with unclear cases sent to legal review.

What license scanning catches and what still needs legal review

License scanning catches licenses that are declared. Dependency-Track tracks license use by component using SPDX license IDs, and Trivy scans software licenses in container images, filesystems and existing SBOMs. In practice, this means a license named in a package manifest, a metadata field or an SBOM entry can be identified, normalized to an SPDX ID and checked against a policy. Global and per-project policies can then flag disallowed licenses, and can flag components where no license is recorded at all, so the legal team sees a queue rather than a surprise at release time. Before you rely on this, confirm in a test project which license fields your ecosystems populate, because the result is only as complete as the metadata behind it.

The gaps are where the declared data stops. A scanner cannot report a license that no file states. Typical gaps include packages whose metadata omits or misstates the license, code copied into a repository without a manifest entry, vendored directories where the original package and its license notice were removed, and modified components whose upstream license terms changed in a fork. Each of these needs a named owner, usually someone in legal or open-source review, who decides whether the component is acceptable. Snippets copied from other projects are the hardest case: a license scanner that reads manifests will not see them, so a separate snippet-matching tool or a documented manual review is needed for code that matters to your risk profile. Ask your legal team which of these cases they expect to see in your portfolio before you set policy.

Choosing a license compliance path by portfolio situation

Applications built on npm, Maven, pip, Go modules or similar managers usually give a scanner the clearest license signal. Dependency-Track tracks license use by component using SPDX license IDs, and Trivy can scan filesystems and produce an SBOM from the manifest and lock files. The usual setup is a CI job that generates a CycloneDX SBOM on each build and uploads it to a Dependency-Track project, with a license policy applied at the project level.

  • Declared versus resolved licenses: Confirm whether the SBOM carries licenses from the lock file or only from the package metadata, since these can differ.
  • Policy rules: Rebuild the Black Duck license policy as explicit Dependency-Track license rules by SPDX ID, and record which rules were carried over and which were changed.
  • Black Duck export: Keep the last component inventory with license names, versions and any approval or obligation notes, so reviewers can compare results.
  • Dual-run period: Run both tools on the same release for a fixed number of builds and compare component and license lists.
  • Unknown or custom licenses: Check how each tool labels packages with no SPDX ID, because these need manual review.

Before moving these projects first, confirm that every build tool in use produces a lock file or SBOM the pipeline can read, and that the license decisions in the old policy are written down.

Moving license policy and inventory from Black Duck to open source

This sequence moves component inventories and license decisions out of Black Duck and into Dependency-Track and Trivy, while keeping the legal record that justifies each decision. The output is a tested license policy, current SBOMs in CI, and an archived set of approvals that stands on its own after the subscription ends.

  1. Export project inventories and license data

    Export the component inventory for each in-scope project from Black Duck, including component names, versions, license identifiers and the project and version each record belongs to. Ask your Black Duck administrator which export formats your edition supports, since SPDX and CycloneDX SBOM exports are documented separately and license obligation fields may not appear in every format. Done when every in-scope project has a saved export and a row count you can compare later against the new inventory.

  2. Convert SPDX exports to CycloneDX

    Dependency-Track consumes and produces CycloneDX, so convert any SPDX exports before import. Use a conversion tool your team can verify, run it on a copy, and check that component identifiers, versions, purls and SPDX license IDs survive the conversion. Keep the original SPDX file unchanged. Done when a sample of components in the converted file matches the Black Duck export field by field and the file loads into a test project in Dependency-Track.

  3. Generate fresh SBOMs with Trivy in CI

    Add Trivy to the build pipeline for each in-scope repository or container image so that SBOMs are produced from the code and artifacts that ship, not from an old scan. Trivy can produce an SBOM for a target and can also scan an existing SBOM, and it reports license findings alongside dependencies. Store each SBOM as a build artifact and upload it to Dependency-Track. Done when a pipeline run for each project produces an SBOM that Dependency-Track accepts and that lists the components you expect.

  4. Map Black Duck license categories to Dependency-Track policies

    Write down how each license category your legal team uses in Black Duck maps to a Dependency-Track license policy, using SPDX license IDs as the key. Define global policies for licenses that are always allowed or always prohibited, and per-project policies where a product line has different obligations. Have a legal or compliance reviewer confirm the mapping, including how unknown or missing license IDs are handled. Done when the reviewer has signed off a written policy table and each policy has been tested against a known component.

  5. Run both tools in parallel

    For a defined set of projects, keep Black Duck running while Dependency-Track and Trivy process the same builds. Compare component counts, license identifiers and policy violations between the two outputs, and log every difference with a reason, such as a component the open-source tools do not see or a license resolved differently. Expect snippet and binary matches and undeclared licenses to appear only in Black Duck results. Done when each difference is classified and the differences that need legal review are assigned to a named owner.

  6. Archive obligations and approvals from Black Duck

    Before the subscription ends, export and store the license obligation text, reviewer comments, approval decisions and any remediation records that Black Duck holds for each project. Confirm with the vendor and your own export which of these fields appear in standard exports and which must be copied from the interface or a report. Store them in your records system with the project, version, date and approver for each item. Done when every approval you rely on can be found outside Black Duck.

  7. Record legal sign-off before retiring the subscription

    Gather the parallel-run comparison, the signed policy table, the list of undeclared licenses and snippet-level questions with their review outcomes, and the archived approvals into one sign-off package. Legal or compliance leadership reviews the package and records a decision for each in-scope project, including any project that still needs a separate snippet or binary review before the Black Duck subscription can end. Done when the sign-off is recorded in writing and each open item has an owner.

Running Dependency-Track beside Black Duck during the transition

Most teams keep Black Duck running for a period while Dependency-Track takes over declared license tracking. The cards below cover the decisions that have to be settled in parallel, from which projects stay on Black Duck to who approves changes to license policy. Each one has a trade-off and a question for legal to answer before the old subscription is reduced.

Split snippet-heavy projects by scope

Dependency-Track tracks licenses by SPDX license ID for components it receives in an SBOM, so it does not detect code copied into a project without a declared package. Projects where engineers copy source from forums, vendored archives or older internal code are the ones most likely to need Black Duck snippet matching for longer. Decide project by project which codebases stay on Black Duck, and record the reason so the list is reviewed later. Confirm with legal which of those projects carry copyleft exposure that would justify the extra spend.

Dependency-Track docs

Route findings into DefectDojo

While two tools report on the same codebases, engineers face two queues and two sets of owners. DefectDojo accepts Dependency-Track findings through its native integration, so license and vulnerability items can sit in one tracker with deduplication and ownership. The trade-off is that DefectDojo is built around security findings, so license-only items need a clear status and severity convention agreed by the security and legal teams. Confirm which fields the legal reviewer needs before anything is closed in the tracker.

Send license exceptions to Jira

Dependency-Track sends configurable notifications to Jira, which makes it practical to open a ticket when a component violates a license policy. A license exception usually needs a written decision, a named approver and an expiry date, and a ticket gives that record a home outside chat. Set the notification to fire only on license policy violations, not on every new version, to avoid flooding the approval queue. Confirm with legal that tickets are an acceptable record of approval under the company's own records rules.

Keep one SBOM format for both tools

Dependency-Track consumes and produces CycloneDX, so using CycloneDX as the single format for both tools avoids converting exports during the transition. Black Duck SPDX exports still need conversion before Dependency-Track can read them, and each conversion step can drop or rename license fields. Pick one format and one generation point, such as a Trivy step in CI, and check that license identifiers survive the pipeline. Confirm with legal that SPDX license expressions in the old reports are preserved wherever they are the evidence of record.

Trivy README

Assign owners for policy changes

Dependency-Track applies global and per-project policies, so a single edit to a global license rule changes results across every project at once. During the transition, two policy sets can drift apart, which makes it unclear which result a legal reviewer should trust. Name one owner for global license policy, with legal approving changes and platform engineering applying them, and record each change with its reason. Confirm with legal whether any policy change needs its own sign-off before it takes effect.

How the cost of open-source license compliance is divided

The cost of open-source license compliance splits into recurring infrastructure and people time, plus a one-time build. Dependency-Track and Trivy are free to license, so the bill is what you pay to host them, to build SBOM generation into CI, to design license policy with legal, and to keep the Trivy databases current. Hosting Dependency-Track and its database is a recurring cost that scales with the number of projects and the size of the component inventory. The Trivy pipeline runs on your CI capacity, so its recurring cost depends on how often builds produce SBOMs. Ask any provider to itemize hosting, backup and upgrade effort separately so you can see which parts recur.

Most of the engineering effort is one-time. Wiring Trivy into each pipeline to emit CycloneDX output, setting up the --db-repository and --java-db-repository mirrors, and writing license policy in Dependency-Track against SPDX IDs all take concentrated work before the platform is useful. The mirror work does not stop there: the Trivy self-hosting documentation warns that mirrors must be kept updated, so the refresh schedule for trivy-db, trivy-java-db and trivy-checks is a recurring duty with a named owner. Air-gapped sites add a manual transfer step to that schedule. Ask the quote to show the build and the ongoing upkeep as separate lines.

The legal review line is the one most often underestimated. Black Duck's snippet and binary matching covered part of the question of whether copied code carried a license, and Dependency-Track and Trivy do not perform snippet analysis. Legal and engineering review time therefore rises for undeclared licenses, copied code and components with missing or incorrect license metadata, and it falls as declared SBOM data improves. Ask the provider to state which review tasks they assume will be done by your legal team, how many policy exceptions they expect in the first cycle, and who signs off on policy changes. Those assumptions drive the total more than the software does.

What do teams ask before replacing Black Duck license identification?

What does replacing Black Duck license identification cost in effort, and who is needed?

The work is mostly internal labor, plus any outside help you buy. Cost is driven by how many repositories and products carry license obligations, how many SBOMs you already produce, and how much legal review your team will still do by hand. The main roles are a platform or build engineer to add Trivy license scans to CI and load CycloneDX SBOMs into Dependency-Track, a security or DevOps owner to maintain the license policy in Dependency-Track, and a legal or open-source compliance reviewer to rule on flagged and undeclared licenses. Cost recurs in hosting, CI minutes, and ongoing review time. Ask any quote to split one-time setup from recurring operations and to name the reviewer role separately.

How long does a license policy migration take for a large portfolio?

Duration depends on portfolio size, repository count, and how cleanly existing license data exports. Teams with many repositories usually move in waves: pilot a few projects, confirm that Dependency-Track's SPDX license IDs map to the policy categories your legal team uses, then extend to the rest. Each wave adds SBOM generation in CI, a project in Dependency-Track, and a policy review. Black Duck exports may need conversion from SPDX to CycloneDX because Dependency-Track consumes CycloneDX. No duration is fixed here, so ask any provider to base the timeline on a written inventory of projects and the export formats you can actually produce.

Can our own engineers run this migration without outside help?

Often yes, if you have engineers comfortable with CI pipelines, container images, and REST APIs, and a legal reviewer who can work from SPDX identifiers. Trivy can generate SBOMs and license findings from a target, and Dependency-Track is API-first with OpenAPI documentation, so automation is well within reach of a platform team. Outside help is most useful for designing the policy model, standing up Dependency-Track on Docker, Kubernetes or a WAR deployment, and documenting evidence for an assessor. Confirm internally whether you have the time and skills before deciding, and treat any outside scope as a fixed-scope written agreement.

What can Dependency-Track and Trivy not detect that Black Duck can?

Black Duck's snippet and binary analysis works on source fragments and compiled artifacts without a declared manifest, and Dependency-Track and Trivy do not cover that. Both work from package metadata, lock files, and SBOMs, so a license that is copied into a file without a package declaration will usually be missed. Undeclared licenses, vendored code, and license texts embedded in unusual places also need a human review. Before you decide, confirm with your legal team which of your codebases depend on snippet or binary matching, and whether a manual review process covers them.

Is there an open-source substitute for snippet matching?

Not one that this page can confirm as a direct equivalent. Dependency-Track and Trivy identify components through declared dependencies and SBOMs, which covers most license identification in package-managed software. Snippet matching, which finds copied source fragments with no declaration, is a different technique, and you should test any open-source candidate against a sample of your own code before relying on it. Until that test is done, plan for a documented manual review of vendored, copied, or generated code, and record which code paths received that review.

What evidence must we keep for an audit of license compliance?

Keep the artifacts that show what was scanned, what policy applied, and who decided on exceptions. In practice that means the SBOMs generated for each release in CycloneDX form, Trivy and Dependency-Track reports in the format your auditor can read, the license policy version and its change history, and records of legal review for flagged or undeclared licenses. Retention periods and required formats come from your own policies and your assessor, so confirm them in writing. DeployOpen prepares systems, controls and evidence for compliance assessments, but auditors and certification bodies issue any report or attestation.

How DeployOpen works on this

DeployOpen plans, implements and hands over self-hosted open-source license tracking inside your own infrastructure, so the move from Black Duck license identification to Dependency-Track and Trivy is documented and reviewable. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Inventory the Black Duck projects, applications and license policies in scope, and record which ones rely on snippet or binary matching
  • Define in writing which SPDX license IDs, policy rules and notification channels the new setup must reproduce
  • Agree which undeclared licenses and copied code findings go to your legal team, and who owns that review

How we build

  • Deploy Dependency-Track in your cloud account, data center or air-gapped network with access control and audit logging
  • Add Trivy license scanning and CycloneDX SBOM generation to your CI pipelines, with a mirrored vulnerability database where required
  • Test the license policies against sample projects and compare results with the existing Black Duck reports before cutover

How we hand over

  • Deliver runbooks covering SBOM ingestion, policy changes, database mirror updates and backup procedures
  • Document the controls and evidence your compliance and security teams need to review the new license tracking
  • Provide a written record of what the open-source setup does not detect, such as snippets and binaries, for your legal review

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover is accepted
  • Keep policies and Trivy database mirrors current so license results stay consistent over time
  • Ask for a quote that lists scope, deliverables and retainer terms, so cost drivers are visible before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.