-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
SBOM for PE dotnet binaries #69
Conversation
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
e465b4e
to
4644d3b
Compare
Signed-off-by: Prabhu Subramanian <[email protected]>
Hi @prabhu - I tested this per your instructions above for Dosai.exe and also another dotnet project. I may be doing something wrong or just not understanding this. For instance, when I test Dosai.exe, I am seeing the following dependencies in the BOM instead of the expected Dosai Dependencies:
And although the bom.json is generated, I do see these errors at the command line as well: |
Signed-off-by: Prabhu Subramanian <[email protected]>
@timmyteo, this was indeed a bug. Have fixed now. Could you kindly retest by updating the branch? |
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Signed-off-by: Prabhu Subramanian <[email protected]>
Thanks @timmyteo. Could you update and try again? |
Nice work @prabhu, it looks to be working now! I tried with Dosai and the expected dependencies are listed in the BOM. Here is what it produced for Dosai: I did also try with a simple HelloWorld program with one dependency, but the dependency didn't show up in the BOM as I expected, so not sure if I am doing something wrong there. |
Signed-off-by: Prabhu Subramanian <[email protected]>
@timmyteo, fixed again. The exe produced on Windows uses |
Tested with https://github.com/owasp-dep-scan/dosai/releases/download/v0.1.1/Dosai.exe
https://github.com/owasp-dep-scan/dosai/releases/download/v0.1.1/Dosai
Overlay attribute seems to be missing for MachO so raised a ticket here
lief-project/LIEF#1028
Testing
Find some PE (Windows) and ELF (Linux) binaries generated by dotnet. Alternatively, build any dotnet application using the
dotnet build
command.Generate SBOM using the sbom command.
The resulting SBOM must include several
nuget
packages in addition to dll files.On Windows, manually inspect the various .csproj files to check if all libraries used are reported.
On Linux, run strings command to check if we have captured all the packages reported.