SourceRank is a scoring system made of 18 metrics that assess the popularity and quality of open-source packages. Despite being used in several recent studies, none has thoroughly analyzed its reliability against evasion attacks aimed at inflating the score of malicious packages, thereby masquerading them as trustworthy. To fill this gap, we first propose a threat model that identifies potential evasion approaches for each metric, including the URL confusion technique, which can affect 5 out of the 18 metrics by leveraging a URL pointing to a legitimate repository potentially unrelated to the malicious package. Furthermore, we study the reliability of SourceRank in the PyPI ecosystem by analyzing the SourceRank distributions of benign and malicious packages in the state-of-the-art MalwareBench dataset, as well as in a real-world dataset of 122,398 packages. Our analysis reveals that, while historical data suggests a clear distinction between benign and malicious packages, the real-world distributions overlap significantly, mainly due to SourceRank's failure to timely reflect package removals. As a result, SourceRank cannot be reliably used to discriminate between benign and malicious packages in real-world scenarios, nor to select benign packages among those available on PyPI. Finally, our analysis reveals that URL confusion represents an emerging attack vector, with its prevalence increasing from 4.2% in MalwareBench to 7.0% in our real-world dataset. Moreover, this technique is often used alongside other evasion techniques and can significantly inflate the SourceRank metrics of malicious packages.


翻译:SourceRank是一个由18项指标构成的评分系统,用于评估开源软件包的流行度与质量。尽管该系统已被多项近期研究采用,但尚未有工作深入分析其在面对旨在提升恶意软件包评分以伪装其可信度的规避攻击时的可靠性。为填补这一空白,我们首先提出一个威胁模型,该模型识别了针对每项指标的潜在规避方法,其中包括URL混淆技术——该技术通过利用指向可能与恶意软件包无关的合法代码仓库的URL,可影响18项指标中的5项。此外,我们通过分析最先进的MalwareBench数据集中良性及恶意软件包的SourceRank分布,并结合对122,398个软件包的真实世界数据集的分析,研究了SourceRank在PyPI生态系统中的可靠性。我们的分析表明,尽管历史数据显示良性包与恶意包之间存在明显区分,但真实世界中的分布存在显著重叠,这主要源于SourceRank未能及时反映软件包的下架情况。因此,在实际场景中,SourceRank无法可靠地区分良性包与恶意包,亦不能用于在PyPI上可用的软件包中筛选良性包。最后,我们的分析揭示URL混淆正成为一种新兴的攻击向量,其流行度从MalwareBench中的4.2%上升至我们真实世界数据集中的7.0%。此外,该技术常与其他规避技术结合使用,并能够显著提升恶意软件包的SourceRank指标得分。

0
下载
关闭预览

相关内容

软件(中国大陆及香港用语,台湾作软体,英文:Software)是一系列按照特定顺序组织的计算机数据和指令的集合。一般来讲软件被划分为编程语言、系统软件、应用软件和介于这两者之间的中间件。软件就是程序加文档的集合体。
【CVPR2023】DynamicDet:目标检测的统一动态架构
专知会员服务
26+阅读 · 2023年4月15日
MonoGRNet:单目3D目标检测的通用框架(TPAMI2021)
专知会员服务
18+阅读 · 2021年5月3日
AAAI 2022 | ProtGNN:自解释图神经网络
专知
10+阅读 · 2022年2月28日
【CVPR 2020 Oral】小样本类增量学习
专知
20+阅读 · 2020年6月26日
误差反向传播——CNN
统计学习与视觉计算组
30+阅读 · 2018年7月12日
国家自然科学基金
13+阅读 · 2017年12月31日
国家自然科学基金
46+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 2025年12月30日
VIP会员
相关资讯
AAAI 2022 | ProtGNN:自解释图神经网络
专知
10+阅读 · 2022年2月28日
【CVPR 2020 Oral】小样本类增量学习
专知
20+阅读 · 2020年6月26日
误差反向传播——CNN
统计学习与视觉计算组
30+阅读 · 2018年7月12日
相关基金
国家自然科学基金
13+阅读 · 2017年12月31日
国家自然科学基金
46+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员