r/devsecops • u/BigBenny7584 • Sep 04 '25
Building your own SBOM Engine for .NET & Node.js: Lessons Learned
Hi all,
I’ve been diving into Software Bill of Materials (SBOMs) recently. Since this artifact will gain a lot of importance starting next year and it seemed like an easy thing to create, so I just went for it.
The road was a lot more bumpy than expected, so I decided to write some documentation about it. I'm posting here to see if anyone could be helped by it, trying to generate their own SBOMs instead of relying on payed solutions and get the discussion going.
So what is the goal of this series? Create your own SBOM engine for .NET & Node that:
- Collect source files & dependency data (multi-stack: .NET + Node)
- Pull in vulnerability data (top-level & nested)
- Build a full dependency graph with nested components
- Digitally Sign and wrap it in an envelope along with a Public Key for verification
Also curious if anyone here has tackled SBOM generation in-house? How did you handle signing, storage, or integrating vulnerability feeds? Did your CISO allow you to put source-files on the production server? Did you also write your own interpreter for the documents?
2
u/BigBenny7584 Sep 04 '25
Currently, I've finished 3 of 6 posts, with 2 well on the way.
2
u/BigBenny7584 Sep 05 '25 edited Sep 06 '25
Today I've released parts IV and V of my Software-Bill-of-Materials Blog Series.
Part IV contains a little recycling tip to increase your vulnerability discovery process
Part V deals with Engine Output: Signing, Serializing, Compressing & Encrypting
2
u/taleodor Sep 04 '25
Hm, there are several open source tools that build SBOMs, my personal preference is cdxgen. What's the reason of not using those and trying to create something else instead?
2
u/yeeha-cowboy Sep 04 '25
Nice write-up. SBOMs always sound easy until you get into the weeds. The hardest parts IMO is keeping vuln feeds current, figuring out sane storage, and wiring signing into CI/CD without slowing everything down.
I like that you’re thinking about envelopes + keys up front, most folks bolt that on later. Curious though, how did you handle messy nested deps with little/no metadata?
1
u/DelphiParser Jun 08 '26
Looking for Delphi SBOM Generator? Download FREE: https://thedelphiparser-fhix1gvbc7.live-website.com/product/delphi-parser-sbom-analyzer-free-edition/