-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet-deps-cataloger cannot handler aspnet:6.0 #3176
Comments
Hi @kaiorafael, thanks for the report. I think the reason you are seeing no output is that you are telling Syft to use a cataloger that's not best suited to the image. For example, scanning the image above, a package called Running: syft mcr.microsoft.com/dotnet/aspnet:6.0 -o json | jq '.artifacts[] | select(.name == "Microsoft.AspNetCore")' {
"id": "891bb1b2ee10abf3",
"name": "Microsoft.AspNetCore",
"version": "6.0.3324.37905",
"type": "dotnet",
"foundBy": "dotnet-portable-executable-cataloger",
"locations": [
{
"path": "/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.33/Microsoft.AspNetCore.dll",
"layerID": "sha256:bd5333e4bf0936741b9f114e92eab6cdd48a34f356b2f05e27fb7595b2a4b9bb",
"accessPath": "/usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.33/Microsoft.AspNetCore.dll",
"annotations": {
"evidence": "primary"
}
}
],
"licenses": [],
"language": "dotnet",
"cpes": [
{
"cpe": "cpe:2.3:a:Microsoft.AspNetCore:Microsoft.AspNetCore:6.0.3324.37905:*:*:*:*:*:*:*",
"source": "syft-generated"
}
],
"purl": "pkg:nuget/Microsoft.AspNetCore@6.0.3324.37905",
"metadataType": "dotnet-portable-executable-entry",
"metadata": {
"assemblyVersion": "6.0.0.0",
"legalCopyright": "© Microsoft Corporation. All rights reserved.",
"comments": "Microsoft.AspNetCore",
"internalName": "Microsoft.AspNetCore.dll",
"companyName": "Microsoft Corporation",
"productName": "Microsoft ASP.NET Core",
"productVersion": "6.0.33+f0f9de5692adf1c0576de062f93c6ab7b176433f"
}
} This is found by the |
Thank you for the feedback. I was wondering since the path Also, since I have better control on which cataloger I can enable or not, I am interesting in reading only JSON files. Thanks |
@willmurphyscode - additionally, the portable executable cataloger in the past was nearly useless for vulnerability scanning and really needed the additional information from the deps.json file to be useful. See #2637 for the details on that. Although maybe that has been addressed some since I do see that there is at least a package url being raised up by the |
Eh, nevermind, it still doesn't identify the expected vulns for the false negative reported in grype, so I think it is still the case that the |
This seems to be two issues: the main thing is that we aren't parsing the v6 deps.json files properly, as is reported. And this issue in that sense is ready to be worked on, because we should be able to handle those files and are not based on my testing. Another issue is that we should probably be using any entries we find in a deps.json BEFORE we attempt to parse the same DLLs with the PE parser and get less accurate results. This sounds like adding functionality to the PE parser to ALSO run the deps.json parsing on the file set before scanning any binaries and skipping the ones that we already found versions for. A new issue is opened for this secondary concern: #3570 |
What happened:
Error:
WARN cataloger failed cataloger=dotnet-deps-cataloger
for a generic .Net6 image.What you expected to happen:
I expected a cyclonedx SBOM to be generated.
Steps to reproduce the issue:
Anything else we need to know?:
Similar to
Environment:
syft version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: