Syft names a DLL without a .deps.json by its version resource: product
name and file version. As a purl that is no NuGet package, so OSV
matched nothing: pkg:nuget/DotNetZip%20Library@1.9.1.5 has no advisory,
pkg:nuget/DotNetZip@1.9.1.5 has GHSA-7378-6268-4278.
Syft's dotnet-portable-executable-entry components are now mapped, in
this order:
- a DLL inside packages/<Id>.<Version>/ is that package
- a curated alias table, by assembly name (file name) and then product
name (DotNetZip Library -> DotNetZip, Json.NET -> Newtonsoft.Json,
Apache log4net -> log4net, Xceed Toolkit for WPF ->
Extended.Wpf.Toolkit, empira MigraDoc -> PDFsharp-MigraDoc), with how
the package's file versions relate to its versions (Newtonsoft.Json:
first three parts; EntityFramework: unrelated, so the DLL only
confirms a manifest entry)
- the assembly name, when it is a valid NuGet id and not one of the
tree's own projects (project name or <AssemblyName>), whose names are
not sent to OSV or nuget.org
- otherwise no purl, and the scan records the assembly as not matched
against OSV
Alias before file name: DotNetZip ships Ionic.Zip.dll, and Ionic.Zip is
a different package. Versions go through nuget_license's
normalise_version (4.1.0.0 -> 4.1.0, +build dropped); a non-zero fourth
part stays (1.9.1.5 is a real NuGet version).
One package found in several DLLs, or in a DLL and a manifest, is one
entry: SbomEntry gains `evidence` (the manifests and DLLs it was read
from), and merge_nuget compares normalised versions and merges the
evidence instead of dropping it. Native pe-binary components are left
as they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB