Update templates/result.html
Browse files- templates/result.html +20 -21
templates/result.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
@@ -732,27 +732,27 @@
|
|
| 732 |
<!-- Header -->
|
| 733 |
<div class="header">
|
| 734 |
<div class="header-left">
|
| 735 |
-
<a href="https://
|
| 736 |
-
|
| 737 |
</a>
|
| 738 |
<div class="header-content">
|
| 739 |
-
<h1>
|
| 740 |
</div>
|
| 741 |
</div>
|
| 742 |
<div class="header-right">
|
| 743 |
-
<!-- <a href="https://
|
| 744 |
-
<a href="/" class="generate-another-btn">π Generate Another
|
| 745 |
</div>
|
| 746 |
</div>
|
| 747 |
|
| 748 |
<!-- Success Message
|
| 749 |
<div class="success-message">
|
| 750 |
-
<h2>β
|
| 751 |
</div> -->
|
| 752 |
|
| 753 |
<!-- Key Information -->
|
| 754 |
<div class="key-info">
|
| 755 |
-
<h3>π
|
| 756 |
<div class="aibom-property">
|
| 757 |
<span class="property-name">Model:</span>
|
| 758 |
<span class="property-value">{{ model_id }}</span>
|
|
@@ -773,7 +773,7 @@
|
|
| 773 |
|
| 774 |
<!-- Download Section -->
|
| 775 |
<div class="download-section">
|
| 776 |
-
<p><strong>Download your
|
| 777 |
<button onclick="downloadJSON()">π₯ Download JSON</button>
|
| 778 |
</div>
|
| 779 |
|
|
@@ -920,7 +920,7 @@
|
|
| 920 |
</div>
|
| 921 |
</div>
|
| 922 |
|
| 923 |
-
<p>This breakdown outlines field categories and statuses in the
|
| 924 |
|
| 925 |
{% if completeness_score.field_checklist %}
|
| 926 |
<!-- Required Fields Category -->
|
|
@@ -1225,7 +1225,7 @@
|
|
| 1225 |
|
| 1226 |
<!-- Specific Breakdown for This SBOM -->
|
| 1227 |
<div class="note-box">
|
| 1228 |
-
<h4>Your
|
| 1229 |
<p><strong>Model:</strong> {{ model_id }}</p>
|
| 1230 |
|
| 1231 |
<table class="score-table">
|
|
@@ -1315,7 +1315,7 @@
|
|
| 1315 |
<!-- Recommendations -->
|
| 1316 |
{% if completeness_score.recommendations %}
|
| 1317 |
<div class="recommendations">
|
| 1318 |
-
<h4>General Recommendations to Improve
|
| 1319 |
<ul>
|
| 1320 |
<li><strong>Required Fields:</strong> Ensure the model is published with a clear name, version, and hosting platform information to allow proper SBOM structuring.</li>
|
| 1321 |
<li><strong>Metadata:</strong> Include author or organization name, purpose of the model, and relevant timestamps in the model repository or card.</li>
|
|
@@ -1327,8 +1327,8 @@
|
|
| 1327 |
|
| 1328 |
<!-- Generic Scoring Explanation -->
|
| 1329 |
<div class="scoring-rubric">
|
| 1330 |
-
<h4>How
|
| 1331 |
-
<p>The completeness score evaluates how well your
|
| 1332 |
<ul>
|
| 1333 |
<li><strong>Required Fields (20 points):</strong> Basic SBOM structure mandated by CycloneDX</li>
|
| 1334 |
<li><strong>Metadata (20 points):</strong> Information about the SBOM generation and model purpose</li>
|
|
@@ -1366,7 +1366,7 @@
|
|
| 1366 |
<div id="json-view" class="tab-content">
|
| 1367 |
<div class="content-section">
|
| 1368 |
<h3>π Raw JSON View</h3>
|
| 1369 |
-
<p>This is the complete
|
| 1370 |
<div class="json-view">
|
| 1371 |
<pre>{{ aibom|tojson(indent=2) }}</pre>
|
| 1372 |
</div>
|
|
@@ -1386,25 +1386,25 @@
|
|
| 1386 |
<!-- Help us spread the word section -->
|
| 1387 |
<div class="content-section" style="text-align: center;">
|
| 1388 |
<h3>π£οΈ Help Us Spread the Word</h3>
|
| 1389 |
-
<p>If you find this tool useful, share it with your network! <a href="https://
|
| 1390 |
-
<a href="https://www.linkedin.com/sharing/share-offsite/?url=https
|
| 1391 |
<button style="background-color: #0077b5;">π Share on LinkedIn</button>
|
| 1392 |
</a>
|
| 1393 |
<p style="margin-top: 10px; font-size: 14px;">
|
| 1394 |
Follow us for updates:
|
| 1395 |
-
<a href="https://www.linkedin.com/company/
|
| 1396 |
</p>
|
| 1397 |
</div>
|
| 1398 |
|
| 1399 |
<!-- Info Section -->
|
| 1400 |
<div class="content-section" style="text-align: center;">
|
| 1401 |
<!-- Display the SBOM count -->
|
| 1402 |
-
<div class="sbom-count">π Generated
|
| 1403 |
</div>
|
| 1404 |
|
| 1405 |
<!-- Footer -->
|
| 1406 |
<div class="footer">
|
| 1407 |
-
<p>Β© 2025
|
| 1408 |
</div>
|
| 1409 |
</div>
|
| 1410 |
|
|
@@ -1460,4 +1460,3 @@
|
|
| 1460 |
</script>
|
| 1461 |
</body>
|
| 1462 |
</html>
|
| 1463 |
-
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AIBOM Generated</title>
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
|
|
| 732 |
<!-- Header -->
|
| 733 |
<div class="header">
|
| 734 |
<div class="header-left">
|
| 735 |
+
<a href="https://genai.owasp.org/" target="_blank">
|
| 736 |
+
<img src="https://huggingface.co/spaces/GenAISecurityProject/OWASP-AIBOM-Generator/resolve/main/templates/images/OWASP_GenAI_Security_Project-logo.png" alt="OWASP GenAI Security Project logo">
|
| 737 |
</a>
|
| 738 |
<div class="header-content">
|
| 739 |
+
<h1>OWASP AIBOM Generator</h1>
|
| 740 |
</div>
|
| 741 |
</div>
|
| 742 |
<div class="header-right">
|
| 743 |
+
<!-- <a href="https://owasp-aibom-generator.genaisecruityproject.hf.space/" class="generate-another-btn">π Generate Another AIBOM</a> -->
|
| 744 |
+
<a href="/" class="generate-another-btn">π Generate Another AIBOM</a>
|
| 745 |
</div>
|
| 746 |
</div>
|
| 747 |
|
| 748 |
<!-- Success Message
|
| 749 |
<div class="success-message">
|
| 750 |
+
<h2>β
AIBOM is Generated Successfully for <span class="model-name">{{ model_id }}</span></h2>
|
| 751 |
</div> -->
|
| 752 |
|
| 753 |
<!-- Key Information -->
|
| 754 |
<div class="key-info">
|
| 755 |
+
<h3>π AIBOM Summary for model <span class="model-name">{{ model_id }}</span></h3>
|
| 756 |
<div class="aibom-property">
|
| 757 |
<span class="property-name">Model:</span>
|
| 758 |
<span class="property-value">{{ model_id }}</span>
|
|
|
|
| 773 |
|
| 774 |
<!-- Download Section -->
|
| 775 |
<div class="download-section">
|
| 776 |
+
<p><strong>Download your AIBOM:</strong></p>
|
| 777 |
<button onclick="downloadJSON()">π₯ Download JSON</button>
|
| 778 |
</div>
|
| 779 |
|
|
|
|
| 920 |
</div>
|
| 921 |
</div>
|
| 922 |
|
| 923 |
+
<p>This breakdown outlines field categories and statuses in the AIBOM generated for model <strong>{{ model_id }}</strong>, showing how each field impacts the completeness score.</p>
|
| 924 |
|
| 925 |
{% if completeness_score.field_checklist %}
|
| 926 |
<!-- Required Fields Category -->
|
|
|
|
| 1225 |
|
| 1226 |
<!-- Specific Breakdown for This SBOM -->
|
| 1227 |
<div class="note-box">
|
| 1228 |
+
<h4>Your AIBOM Breakdown</h4>
|
| 1229 |
<p><strong>Model:</strong> {{ model_id }}</p>
|
| 1230 |
|
| 1231 |
<table class="score-table">
|
|
|
|
| 1315 |
<!-- Recommendations -->
|
| 1316 |
{% if completeness_score.recommendations %}
|
| 1317 |
<div class="recommendations">
|
| 1318 |
+
<h4>General Recommendations to Improve AIBOM Completeness</h4>
|
| 1319 |
<ul>
|
| 1320 |
<li><strong>Required Fields:</strong> Ensure the model is published with a clear name, version, and hosting platform information to allow proper SBOM structuring.</li>
|
| 1321 |
<li><strong>Metadata:</strong> Include author or organization name, purpose of the model, and relevant timestamps in the model repository or card.</li>
|
|
|
|
| 1327 |
|
| 1328 |
<!-- Generic Scoring Explanation -->
|
| 1329 |
<div class="scoring-rubric">
|
| 1330 |
+
<h4>How AIBOM Completeness is Scored</h4>
|
| 1331 |
+
<p>The completeness score evaluates how well your AIBOM documents the model across five key categories:</p>
|
| 1332 |
<ul>
|
| 1333 |
<li><strong>Required Fields (20 points):</strong> Basic SBOM structure mandated by CycloneDX</li>
|
| 1334 |
<li><strong>Metadata (20 points):</strong> Information about the SBOM generation and model purpose</li>
|
|
|
|
| 1366 |
<div id="json-view" class="tab-content">
|
| 1367 |
<div class="content-section">
|
| 1368 |
<h3>π Raw JSON View</h3>
|
| 1369 |
+
<p>This is the complete AIBOM in CycloneDX JSON format:</p>
|
| 1370 |
<div class="json-view">
|
| 1371 |
<pre>{{ aibom|tojson(indent=2) }}</pre>
|
| 1372 |
</div>
|
|
|
|
| 1386 |
<!-- Help us spread the word section -->
|
| 1387 |
<div class="content-section" style="text-align: center;">
|
| 1388 |
<h3>π£οΈ Help Us Spread the Word</h3>
|
| 1389 |
+
<p>If you find this tool useful, share it with your network! <a href="https://genai.owasp.org" target="_blank" rel="noopener noreferrer">https://genai.owasp.org</a></p>
|
| 1390 |
+
<a href="https://www.linkedin.com/sharing/share-offsite/?url=https://huggingface.co/spaces/GenAISecurityProject/OWASP-AIBOM-Generator" target="_blank" rel="noopener noreferrer" style="text-decoration: none;">
|
| 1391 |
<button style="background-color: #0077b5;">π Share on LinkedIn</button>
|
| 1392 |
</a>
|
| 1393 |
<p style="margin-top: 10px; font-size: 14px;">
|
| 1394 |
Follow us for updates:
|
| 1395 |
+
<a href="https://www.linkedin.com/company/owasp-top-10-for-large-language-model-applications/" target="_blank" rel="noopener noreferrer">@OWASP GenAI Security Project</a>
|
| 1396 |
</p>
|
| 1397 |
</div>
|
| 1398 |
|
| 1399 |
<!-- Info Section -->
|
| 1400 |
<div class="content-section" style="text-align: center;">
|
| 1401 |
<!-- Display the SBOM count -->
|
| 1402 |
+
<div class="sbom-count">π Generated AIBOMs using this tool: <strong>{{ sbom_count if sbom_count else 'N/A' }}</strong></div>
|
| 1403 |
</div>
|
| 1404 |
|
| 1405 |
<!-- Footer -->
|
| 1406 |
<div class="footer">
|
| 1407 |
+
<p>Β© 2025 OWASP GenAI Security Project | OWASP AIBOM Generator</p>
|
| 1408 |
</div>
|
| 1409 |
</div>
|
| 1410 |
|
|
|
|
| 1460 |
</script>
|
| 1461 |
</body>
|
| 1462 |
</html>
|
|
|