How to Generate SBOM for C# DotNetProjects

Can Özkan
2 min readMar 16, 2024

--

In the dynamic realm of DotNet development, where libraries and dependencies are rather complex, the need for transparency and security has never been more critical. Enter the Software Bill of Materials (SBOM), a powerful tool that unveils the composition of dotnet projects, laying bare the elements that contribute to their functionality. I’ll discuss generating SBOM files for DotNet projects in this blog post.

We need to install the CycloneDx-dotnet tool. You can install the tool as a NuGet package.

Link1: https://www.nuget.org/packages/CycloneDX/

Link2: https://github.com/CycloneDX/cyclonedx-dotnet

Navigate to the project folder and run the command in the figure below to generate an SBOM for your project.

You have successfully generated your SBOM.

It can be used as part of vulnerability management and license management.

This work has been supported in part by the Energy Transition Fund of the FPS Economy of Belgium through the CYPRESS project, and in part by the VLAIO COOCK program through the IIoT-SBOM project.

Thanks for reading.

Can Özkan

--

--

Can Özkan

Security Researcher, Penetration Tester, and Reverse Engineer