paperbot · PL 论文追踪

全部论文 待读 收藏

P2 How Effective Are NPM Malicious Package Detectors? A Large-Scale Empirical Study

NPM 恶意包检测器效果如何?一项大规模实证研究
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026匹配度 3/10 · 该论文主题为 NPM 恶意包检测的大规模实证评测,属于软件供应链安全方向,其统一 benchmark 构建、源码级成败根因分析与用户偏好的'问题驱动+benchmark 缺口'有一定气质相符,但核心内容既非将静态分析应用于 ML/Agentic 程序,也非用 LLM 改进静态分析/形式化验证,更不涉及浮点或贝叶斯程序分析,与用户三个主要研究方向均无直接交叉。引用 2 inbox
Wenbo Guo, Zhongwen Chen, Zhengzi Xu, Chengwei Liu, Ming Kang, Shiwen Song, Chengyue Liu, Yijia Xu, Weisong Sun, Yang Liu
crossref: 2026-10-09

AI 速览

一句话:首个 NPM 恶意包检测大规模实证研究:统一基准评测 11 个工具 16 个变体,并阅读源码剖析成败根因。

NPM 的开放发布模式带来日益严重的恶意包威胁,但现有检测工具各自在不同数据集与设置下评估,横向比较不可靠。本文首次对 NPM 恶意包检测开展大规模实证研究:在含 6,420 个恶意包与 7,288 个良性包的统一基准上评测 11 个工具及其 16 个变体,并阅读源码解释成败原因。主要发现:工具的精度与召回由它消解「代码能力与恶意意图」歧义的方式结构性决定,IntelGuard 取得最佳 F1 95.98%;行为共现会放大检测信号;ML 退化源于概念收敛而非概念漂移;工具组合效果等于互补性减去误报引入,最优组合达 97.21% 准确率与 97.02% F1。

问题
NPM 恶意包检测工具众多,但各自在不同数据集与实验设置下评测,导致跨工具比较不可靠,实践者缺乏清晰的选型与实际效果认知。
方法
构建统一基准(6,420 个恶意包、7,288 个良性包,标注 11 类行为与 8 种规避技术),评测 11 个工具及其 16 个变体;不同于以往工作,作者逐一审查工具源码以解释成败机制,并分析行为耦合、规避使用、ML 退化与工具组合。
评估
在统一基准上对各工具做 precision/recall/F1 的定量对比并做源码级归因分析;最优单工具 IntelGuard F1 达 95.98%,策略化组合最高达 97.21% 准确率与 97.02% F1,并公开基准与评测框架。
原文摘要(Abstract)

The NPM ecosystem faces escalating threats from malicious packages that exploit its open publication model. While numerous detection tools have been proposed, they are evaluated on disparate datasets with inconsistent settings, making cross-tool comparison unreliable and leaving practitioners without clear guidance. We present the first large-scale empirical study of NPM malicious package detection, evaluating 11 tools with 16 variants on a unified benchmark of 6,420 malicious and 7,288 benign packages annotated with 11 behavior categories and 8 evasion techniques. Unlike prior work, we inspect each tool’s source code to explain why tools succeed or fail, not merely how often. Our key findings: (1) the precision and recall a tool achieves are structurally determined by how it resolves the ambiguity between code capability and malicious intent, with IntelGuard reaching the best F1 at 95.98% by grounding its judgment in retrieved evidence and GuardDog the best among conventional tools at 93.32%; (2) behavioral coupling amplifies detection signals when behaviors co-occur, raising SAP_DT from 3.2% to 79.3% for the collect-and-exfiltrate chain; (3) 80.3% of malware uses no evasion because the ecosystem lacks mandatory pre-publication scanning; (4) ML degradation is driven by concept convergence rather than concept drift, since malware became simpler and every decision boundary fitted to a corpus ages with it; (5) combination effectiveness equals complementarity minus false-positive introduction, not paradigm diversity. Strategic combinations reach up to 97.21% accuracy and 97.02% F1. We release our benchmark and evaluation framework.

链接与引用

DOI 原文 · arXiv ·

BibTeX
@inproceedings{paperbot12489,
  title = {How Effective Are NPM Malicious Package Detectors? A Large-Scale Empirical Study},
  author = {Wenbo Guo and Zhongwen Chen and Zhengzi Xu and Chengwei Liu and Ming Kang and Shiwen Song and Chengyue Liu and Yijia Xu and Weisong Sun and Yang Liu},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3837427}
}