跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2612.00737 · v2

A Closer Look at the Quality of NPM Dataset for Malicious Code Detection

首次提交 2026-12-01 10:15
版本更新 2026-12-02 14:20
雷达观测 2026-12-03 11:48
arXiv ↗PDF ↗

摘要

The rapid growth of the NPM ecosystem has raised concerns over malicious packages and supply chain attacks. Numerous approaches for detecting malicious code have been proposed and evaluated on public datasets, often reporting near-perfect performance. However, continuing attack incidents motivate a closer examination of the datasets used for evaluation. In this paper, we conduct the first comprehensive empirical study on the quality of datasets for NPM malicious code detection, focusing on sample duplication, attack-type coverage, and detection complexity. We find that existing datasets exhibit severe semantic duplication, with on average 65.5% of samples being lightweight variants of the same attack behaviors; severe attack-type skew; and limited complexity, where most attacks are explicitly and immediately triggered. To study how these properties affect reported performance, we construct a curated dataset by removing duplicates and annotating malicious-types across five public datasets. We reproduce four state-of-the-art detection approaches on the curated dataset and evaluate their performance under different settings. Our results show that semantic duplication, attack-type imbalance, and low-complexity samples substantially affect reported performance, reducing recall by up to 20%. We discuss the implications and provide actionable recommendations for constructing and evaluating future datasets for software supply chain security.

作者备注:23 pages, 5 figures

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

仅对比实际观测的元数据,不代表 PDF 正文或实验变化。版本可能不连续;带删除线为移除,下划线为新增。

这两个版本的已观测标题、作者、分类、摘要和备注没有变化。正文是否变化请核对原文。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-12-02 14:20 · 最新观测版本

A Closer Look at the Quality of NPM Dataset for Malicious Code Detection

The rapid growth of the NPM ecosystem has raised concerns over malicious packages and supply chain attacks. Numerous approaches for detecting malicious code have been proposed and evaluated on public datasets, often reporting near-perfect performance. However, continuing attack incidents motivate a closer examination of the datasets used for evaluation. In this paper, we conduct the first comprehensive empirical study on the quality of datasets for NPM malicious code detection, focusing on sample duplication, attack-type coverage, and detection complexity. We find that existing datasets exhibit severe semantic duplication, with on average 65.5% of samples being lightweight variants of the same attack behaviors; severe attack-type skew; and limited complexity, where most attacks are explicitly and immediately triggered. To study how these properties affect reported performance, we construct a curated dataset by removing duplicates and annotating malicious-types across five public datasets. We reproduce four state-of-the-art detection approaches on the curated dataset and evaluate their performance under different settings. Our results show that semantic duplication, attack-type imbalance, and low-complexity samples substantially affect reported performance, reducing recall by up to 20%. We discuss the implications and provide actionable recommendations for constructing and evaluating future datasets for software supply chain security.

查看此版本解读 →查看此版本原文 ↗
v1 · 2026-12-01 10:15

A Closer Look at the Quality of NPM Dataset for Malicious Code Detection

The rapid growth of the NPM ecosystem has raised concerns over malicious packages and supply chain attacks. Numerous approaches for detecting malicious code have been proposed and evaluated on public datasets, often reporting near-perfect performance. However, continuing attack incidents motivate a closer examination of the datasets used for evaluation. In this paper, we conduct the first comprehensive empirical study on the quality of datasets for NPM malicious code detection, focusing on sample duplication, attack-type coverage, and detection complexity. We find that existing datasets exhibit severe semantic duplication, with on average 65.5% of samples being lightweight variants of the same attack behaviors; severe attack-type skew; and limited complexity, where most attacks are explicitly and immediately triggered. To study how these properties affect reported performance, we construct a curated dataset by removing duplicates and annotating malicious-types across five public datasets. We reproduce four state-of-the-art detection approaches on the curated dataset and evaluate their performance under different settings. Our results show that semantic duplication, attack-type imbalance, and low-complexity samples substantially affect reported performance, reducing recall by up to 20%. We discuss the implications and provide actionable recommendations for constructing and evaluating future datasets for software supply chain security.

查看此版本解读 →查看此版本原文 ↗