Metraipolis › archive › dc_2d3374974f17
DistillGuard: Malicious NPM Package Detection and API Attack Chain Analysis via Static Graph and LLM Distillation — arXiv:2609.28996
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.28996
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T04:53:19.421Z
- SHA-256 of the archived text
2c58885331a43858285594532baa19cd0829d95a52fb1a0e9d5a0defb86b70a3- Stable URL of this page
https://metraipolis.com/documento/dc_2d3374974f17
How to cite
DistillGuard: Malicious NPM Package Detection and API Attack Chain Analysis via Static Graph and LLM Distillation — arXiv:2609.28996 — arXiv (en), https://arxiv.org/abs/2609.28996 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2d3374974f17 (Metraipolis archive dc_2d3374974f17, sha256 2c58885331a43858285594532baa19cd0829d95a52fb1a0e9d5a0defb86b70a3)
BibTeX
@misc{dc2d3374974f17,
title = {DistillGuard: Malicious NPM Package Detection and API Attack Chain Analysis via Static Graph and LLM Distillation — arXiv:2609.28996},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.28996},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2d3374974f17; sha256 2c58885331a43858285594532baa19cd0829d95a52fb1a0e9d5a0defb86b70a3},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.28996. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
The this http URL ecosystem heavily relies on NPM packages, and software supply chain attacks targeting malicious NPM packages are rampant. Malicious code primarily triggers during package installation, import, and runtime. Traditional static analysis fails to understand code semantics; machine learning-based methods rely on feature extraction, which suffers from concept drift; existing LLM solutions suffer from high invocation costs, high data security risks, and poor performance. To overcome these limitations, we propose DistillGuard, a lightweight malicious NPM package detection framework that combines static graph semantic analysis and LLM knowledge distillation. DistillGuard first acquires multi-granular features through three static analysis modules. Then, it leverages online LLM to distill high-quality security knowledge and structured labels. Finally, it uses LoRa to efficiently fine-tune the open-source Qwen3-8B model to support offline deployment. Experiments show that DistillGuard achieves an accuracy of 95.3\%, a precision of 99.4\%, and an F1 score of 93.8\%, outperforming state-of-the-art tools, improving the F1-score by 11.1 to 30.0 percentage points over the baselines. Our empirical research further reveals the stages of malicious attacks and the distribution of malicious behaviors. We also summarized eight typical API attack chains for malicious activities, providing practical insights for NPM supply chain security defense. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-25 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2609.28996 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T04:30:43.808Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).