SBOMGuard: Supply Chain Attack Detection via Software Bill of Materials Analysis, Dependency Graph Embedding, and Commit-Level NLP Anomaly Detection

Software supply chain attacks have emerged as a critical threat vector, with SolarWinds (2020), Log4Shell (2021), and XZ~Utils (2024) collectively demonstrating that adversaries can achieve wide-scale compromise by targeting the build and dependency infrastructure upstream of their ultimate victims. Despite this sustained threat, mature machine-learning approaches for automated supply chain attack detection remain scarce. This paper presents SBOMGuard, a multi-modal detection framework that fuses three complementary signal sources: (1)~structural anomaly detection on Software Bill of Materials (SBOM) dependency graphs using Graph Attention Networks (GAT) trained to identify anomalous topology changes indicative of dependency confusion, typosquatting, and malicious package injection; (2)~commit-level Natural Language Processing (NLP) using a fine-tuned CodeBERT model that flags commit messages and diff metadata deviating from a repository's established semantic patterns; and (3)~temporal anomaly detection on dependency evolution time series to identify sudden version pinning, unusual maintainer transitions, and entropy spikes in changelog content. We construct a labelled evaluation dataset of 1,847 confirmed malicious packages from the PyPI/npm/Maven ecosystems, enriched with synthetic adversarial graph perturbations calibrated to the XZ~Utils and SolarWinds attack patterns. SBOMGuard achieves 0.923~AUROC on held-out malicious packages, 0.891 AUROC on the synthetic adversarial set, and a false positive rate of 1.4% against a 50,000-package benign corpus, outperforming SBOM\-diff\-only baselines by 34 percentage points. Ablation studies confirm that the graph embedding and NLP channels contribute independently, with their combination yielding the highest detection rate for the stealthy insider-style attacks characterising XZ~Utils. Note: This preprint includes a Methodological Disclosure section (inserted after the abstract) identifying which specific quantitative claims in this paper are illustrative/simulated/unverified, not from a real deployment, human-subjects study, partner data, or hardware evaluation. See the PDF for the full disclosure text.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-27
DOI
https://doi.org/10.5281/zenodo.24581105
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

SBOMGuard: Supply Chain Attack Detection via Software Bill of Materials Analysis, Dependency Graph Embedding, and Commit-Level NLP Anomaly Detection

Ezekiel Ologunde
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
preprint

SBOMGuard: Supply Chain Attack Detection via Software Bill of Materials Analysis, Dependency Graph Embedding, and Commit-Level NLP Anomaly Detection

Ezekiel Ologunde
preprint en

Abstract

Software supply chain attacks have emerged as a critical threat vector, with SolarWinds (2020), Log4Shell (2021), and XZ~Utils (2024) collectively demonstrating that adversaries can achieve wide-scale compromise by targeting the build and dependency infrastructure upstream of their ultimate victims. Despite this sustained threat, mature machine-learning approaches for automated supply chain attack detection remain scarce. This paper presents SBOMGuard, a multi-modal detection framework that fuses three complementary signal sources: (1)~structural anomaly detection on Software Bill of Materials (SBOM) dependency graphs using Graph Attention Networks (GAT) trained to identify anomalous topology changes indicative of dependency confusion, typosquatting, and malicious package injection; (2)~commit-level Natural Language Processing (NLP) using a fine-tuned CodeBERT model that flags commit messages and diff metadata deviating from a repository's established semantic patterns; and (3)~temporal anomaly detection on dependency evolution time series to identify sudden version pinning, unusual maintainer transitions, and entropy spikes in changelog content. We construct a labelled evaluation dataset of 1,847 confirmed malicious packages from the PyPI/npm/Maven ecosystems, enriched with synthetic adversarial graph perturbations calibrated to the XZ~Utils and SolarWinds attack patterns. SBOMGuard achieves 0.923~AUROC on held-out malicious packages, 0.891 AUROC on the synthetic adversarial set, and a false positive rate of 1.4% against a 50,000-package benign corpus, outperforming SBOM\-diff\-only baselines by 34 percentage points. Ablation studies confirm that the graph embedding and NLP channels contribute independently, with their combination yielding the highest detection rate for the stealthy insider-style attacks characterising XZ~Utils. Note: This preprint includes a Methodological Disclosure section (inserted after the abstract) identifying which specific quantitative claims in this paper are illustrative/simulated/unverified, not from a real deployment, human-subjects study, partner data, or hardware evaluation. See the PDF for the full disclosure text.

Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
SBOMGuard: Supply Chain Attack Detection via Software Bill of Materials Analysis, Dependency Graph Embedding, and Commit-Level NLP Anomaly Detection — Ezekiel Ologunde · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS