arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.04495cs.SE
收藏

检测并表征NPM生态系统中低功能与无功能的软件包

Detecting and Characterizing Low and No Functionality Packages in the NPM Ecosystem

Napasorn Tevarut, Brittany Reid, Yutaro Kashiwa, Pattara Leelaprute, Arnon Rungsawang, Bundit Manaskasemsak, Hajimu Iida

AI总结:

本研究针对npm生态系统中低功能/无功能包的安全风险问题,完善相关定义并提出纯数据包概念,开发基于规则的静态分析检测工具,在2025年npm生态中验证其94%的准确率,为降低依赖管理中的技术债务与安全风险提供支持。

摘要:

普通功能包(trivial packages)是指功能极少的小型模块,在npm生态系统中十分常见,尽管结构简单,却可能带来安全风险。本文完善了现有定义,并提出了不含可执行逻辑的纯数据包(data-only packages)概念。研究开发了一种基于规则的静态分析方法,用于检测普通功能包与纯数据包,并评估它们在2025年npm生态系统中的流行程度及相关风险。分析显示,17.92%的软件包属于普通功能包,其漏洞水平与非普通功能包相当;纯数据包虽然少见,也存在安全风险。所提出的检测工具准确率达94%(宏F1值为0.87),可支持有效的大规模分析以降低安全暴露风险。研究结果表明,在依赖管理中需更加关注普通功能包与纯数据包,以减少潜在的技术债务与安全暴露。

英文摘要:

Trivial packages, small modules with low functionality, are common in the npm ecosystem and can pose security risks despite their simplicity. This paper refines existing definitions and introduce data-only packages that contain no executable logic. A rule-based static analysis method is developed to detect trivial and data-only packages and evaluate their prevalence and associated risks in the 2025 npm ecosystem. The analysis shows that 17.92% of packages are trivial, with vulnerability levels comparable to non-trivial ones, and data-only packages, though rare, also contain risks. The proposed detection tool achieves 94% accuracy (macro-F1 0.87), enabling effective large-scale analysis to reduce security exposure. This findings suggest that trivial and data-only packages warrant greater attention in dependency management to reduce potential technical debt and security exposure.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑