feat(gguf_scanning): scan gguf metadata, augmenting AI BOM#26
Open
afogel wants to merge 2 commits intoGenAI-Security-Project:v0.2from
Open
feat(gguf_scanning): scan gguf metadata, augmenting AI BOM#26afogel wants to merge 2 commits intoGenAI-Security-Project:v0.2from
afogel wants to merge 2 commits intoGenAI-Security-Project:v0.2from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive GGUF metadata extraction and chat template consistency reporting to the AIBOM generator. It closes a key execution‑configuration blind spot (tokenizer + chat template) and brings reporting in line with the current registry‑driven scoring model. The result is a more complete, compliance‑oriented AIBOM that captures both model weights and execution‑time configuration integrity. Closes #25
Background / Why
GGUF is now a primary distribution format for quantized LLMs. It bundles execution‑time configuration such as the tokenizer and chat template alongside weights. This execution layer is a real attack surface: a poisoned chat template can influence outputs without altering weights, bypassing traditional scanning. This PR surfaces that data and adds a consistency signal that flags mismatches across quantizations.
What’s Included
Testing Coverage (broad cases)
QA / Validation
Deployed and testable at:
https://huggingface.co/spaces/ariel-pillar/OWASP-AIBOM-Generator
Suggested QA models:
ariel-pillar/phi-4_function_callingunsloth/Nemotron-3-Nano-30B-A3B-GGUFBreaking Changes