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)是一系列按照特定顺序组织的计算机数据和指令的集合。一般来讲软件被划分为编程语言、系统软件、应用软件和介于这两者之间的中间件。软件就是程序加文档的集合体。
《开源大模型应用指南1.0》正式发布,85页pdf
专知会员服务
78+阅读 · 2024年12月4日
《基于文本的情报源不确定性定量建模》最新112页
专知会员服务
35+阅读 · 2024年8月11日
大模型报告:模型能力决定下限,场景适配度决定上限
专知会员服务
57+阅读 · 2024年6月3日
可解释强化学习,Explainable Reinforcement Learning: A Survey
专知会员服务
132+阅读 · 2020年5月14日
深度学习模型不确定性方法对比
PaperWeekly
20+阅读 · 2020年2月10日
OpenNRE 2.0:可一键运行的开源关系抽取工具包
PaperWeekly
22+阅读 · 2019年10月30日
技术动态 | TechKG:一个面向中文学术领域的大型知识图谱
开放知识图谱
25+阅读 · 2018年12月20日
NetworkMiner - 网络取证分析工具
黑白之道
16+阅读 · 2018年6月29日
资源 | 清华大学开源OpenKE:知识表示学习平台
机器之心
10+阅读 · 2017年11月4日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2013年12月31日
VIP会员
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
10+阅读 · 2013年12月31日
Top
微信扫码咨询专知VIP会员