<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>OWASP | Haksung</title><link>https://haksungjang.github.io/en/tags/owasp/</link><description>Haksung Jang — Open Source Program Manager at SK telecom</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 09 Aug 2026 17:03:59 +0900</lastBuildDate><atom:link href="https://haksungjang.github.io/en/tags/owasp/index.xml" rel="self" type="application/rss+xml"/><item><title>OWASP AIBOM Generator</title><link>https://haksungjang.github.io/en/docs/ai-sbom_guide/5-tools/1-aibom-generator/</link><pubDate>Sun, 09 Aug 2026 17:03:59 +0900</pubDate><guid>https://haksungjang.github.io/en/docs/ai-sbom_guide/5-tools/1-aibom-generator/</guid><description>Explains how to use the OWASP tool that generates a CycloneDX-format AI SBOM from a Hugging Face model and scores its completeness, together with actual execution screens.</description><content:encoded>&lt;![CDATA[<h2 id="overview">Overview</h2><p>OWASP AIBOM Generator is an open source tool that takes a Hugging Face model ID as input, fetches
model card metadata, and generates an AI SBOM in CycloneDX format. It is maintained by the OWASP
Gen AI Security Project, and its distinguishing feature is scoring how complete the generated BOM is.</p><p>Where cdxgen identifies dependencies quickly but leaves the license fields empty, this tool fills in
the license, author, and external references recorded in the model card. It works well as a
starting point for the license review required by<a href="/en/docs/ai-sbom_guide/2-ai-extension/1-license-obligations/">3.5 License Obligations</a>.</p><h2 id="key-features">Key Features</h2><ul><li>Fetches metadata from Hugging Face models and generates an AIBOM in both CycloneDX 1.6 and 1.7
format.</li><li>Evaluates the completeness of the generated BOM with a score (0–100) and a profile, broken down
section by section.</li><li>Displays model information, the model card, license, and external references in a human-readable
view.</li><li>Available both as a web UI and a command-line interface (CLI).</li></ul><h2 id="usage-a--web-ui">Usage A — Web UI</h2><p>The simplest approach: just enter a model ID in the browser. Use the Hugging Face Space provided by
the OWASP Gen AI Security Project, or clone the repository and run it locally.</p><p>First, enter a Hugging Face model ID (e.g.,<code>facebook/bart-large-cnn</code>) on the input screen and click
generate.</p><p><img src="/docs/ai-sbom_guide/5-tools/1-aibom-generator/images/input-form.png" alt="OWASP AIBOM Generator input screen"/><p><strong>Figure 1.</strong> OWASP AIBOM Generator input screen<em>(GenAI Security Project, captured 2026-06-13)</em></p><p>Once generation finishes, the result screen shows an AIBOM summary, the completeness assessment,
download buttons (CycloneDX 1.6 and 1.7), AI model information, and the model card. The completeness
assessment at the top of the screen shows at a glance whether the BOM has the minimum fields needed
for identification.</p><p><img src="/docs/ai-sbom_guide/5-tools/1-aibom-generator/images/result-view.png" alt="OWASP AIBOM Generator result screen"/><p><strong>Figure 2.</strong> Generation result screen — model information, license (MIT), completeness assessment
(Basic)<em>(captured 2026-06-13)</em></p><p>The result screen offers a Human-Friendly View along with a field checklist, a score report, and a
JSON view tab. Check the items needed for license obligation review and AI SBOM retention directly
on screen, and download the CycloneDX file.</p><h2 id="usage-b--command-line-cli">Usage B — Command Line (CLI)</h2><p>The CLI is convenient for embedding in CI/CD or batch-processing multiple models. After
installation, pass the model ID as an argument.</p><div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Install (a Python virtual environment is recommended)</span></span></span><span style="display:flex;"><span>pip install<span style="color:#4e9a06">"git+https://github.com/GenAI-Security-Project/aibom-generator"</span></span></span><span style="display:flex;"><span/></span><span style="display:flex;"><span><span style="color:#8f5902;font-style:italic"># Generate an AIBOM from a model ID</span></span></span><span style="display:flex;"><span>aibom facebook/bart-large-cnn -o aibom.json</span></span></code></pre></div><p>Below is the actual execution result. It generates CycloneDX 1.6 and 1.7, passes schema
validation, and shows the completeness score broken down by section.</p><div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>$ aibom facebook/bart-large-cnn -o aibom.json</span></span><span style="display:flex;"><span/></span><span style="display:flex;"><span>✅ Successfully generated CycloneDX 1.6 SBOM — Schema Validation (1.6): Valid</span></span><span style="display:flex;"><span>✅ Successfully generated CycloneDX 1.7 SBOM — Schema Validation (1.7): Valid</span></span><span style="display:flex;"><span/></span><span style="display:flex;"><span>📊 Completeness Score: 58.7/100 Profile: Basic</span></span><span style="display:flex;"><span> - Required Fields: 20/20</span></span><span style="display:flex;"><span> - Metadata: 8/20</span></span><span style="display:flex;"><span> - Component Basic: 17.1/20</span></span><span style="display:flex;"><span> - Component Model Card: 6.7/30</span></span><span style="display:flex;"><span> - External References: 10/10</span></span></code></pre></div><p><strong>Figure 3.</strong> CLI execution output<em>(aibom CLI, model facebook/bart-large-cnn, run 2026-06-13)</em></p><p>The model component in the generated BOM has its license and model card filled in. Unlike cdxgen&rsquo;s
output, the<code>licenses</code> field is not empty.</p><div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-json" data-lang="json"><span style="display:flex;"><span><span style="color:#000;font-weight:bold">{</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"type"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#4e9a06">"machine-learning-model"</span><span style="color:#000;font-weight:bold">,</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"name"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#4e9a06">"bart-large-cnn"</span><span style="color:#000;font-weight:bold">,</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"purl"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#4e9a06">"pkg:huggingface/facebook/bart-large-cnn"</span><span style="color:#000;font-weight:bold">,</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"licenses"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">[{</span><span style="color:#204a87;font-weight:bold">"license"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">{</span><span style="color:#204a87;font-weight:bold">"id"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#4e9a06">"MIT"</span><span style="color:#000;font-weight:bold">}</span><span style="color:#000;font-weight:bold">}],</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"authors"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">[{</span><span style="color:#204a87;font-weight:bold">"name"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#4e9a06">"facebook"</span><span style="color:#000;font-weight:bold">}],</span></span></span><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">"modelCard"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">{</span><span style="color:#204a87;font-weight:bold">"modelParameters"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">{</span><span style="color:#000;font-weight:bold">},</span><span style="color:#204a87;font-weight:bold">"considerations"</span><span style="color:#000;font-weight:bold">:</span><span style="color:#000;font-weight:bold">{</span><span style="color:#000;font-weight:bold">}</span><span style="color:#000;font-weight:bold">}</span></span></span><span style="display:flex;"><span><span style="color:#000;font-weight:bold">}</span></span></span></code></pre></div><h2 id="what-the-execution-result-shows">What the Execution Result Shows</h2><div class="alert alert-info" role="alert"><div class="h4 alert-heading" role="heading">The completeness score depends on the quality of the input metadata</div><p>In the actual run, the completeness score was 58.7/100 (Basic). Required Fields and External
References scored full marks, but the model card score was low at 6.7/30. This is not a limitation
of the tool but a result of the model provider not filling in enough information in the Hugging
Face model card. The tool faithfully fetches whatever metadata exists, but it cannot invent
information that isn&rsquo;t there. When the model card is sparse, a human must verify the source and
supplement it.</p></div><h2 id="see-also">See Also</h2><ul><li>AI SBOM generation and management procedure:<a href="/en/docs/ai-sbom_guide/2-ai-extension/3-ai-sbom/">3.9 AI SBOM</a></li><li>License obligation review:<a href="/en/docs/ai-sbom_guide/2-ai-extension/1-license-obligations/">3.5 License Obligations</a></li><li>Another generation tool:<a href="/en/docs/ai-sbom_guide/5-tools/2-cdxgen/">cdxgen</a></li><li>Official:<a href="https://genai.owasp.org/resource/owasp-aibom-generator/">OWASP AIBOM Generator</a></li></ul>
]]></content:encoded></item></channel></rss>