arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.13288cs.CRcs.SE
收藏

Python恶意软件检测方法的基准比较

A Benchmark Comparison of Python Malware Detection Approaches

Duc-Ly Vu, Zachary Newman, John Speed Meyers

AI总结:

本研究通过案例研究与基准数据集评估了PyPI等开源存储库的Python恶意软件检测工具,发现现有工具误报率过高无法满足管理员严格要求,进而提出结合外部安全研究员的社会技术系统以改进检测与合作。

摘要:

虽然攻击者经常通过开源的、社区驱动的软件包存储库向受害者分发恶意软件,但这些存储库目前并未运行自动化的恶意软件检测系统。在本研究中,我们通过对Python生态系统和PyPI存储库的案例研究,探讨了存储库管理员的安全目标以及部署此类恶意软件扫描器的要求,其中包括对管理员和维护者的访谈。此外,我们通过创建一个基准数据集并比较几种现有工具,评估了在此环境中部署的现有恶意软件检测技术,包括在PyPI中实现的恶意软件检查、Bandit4Mal以及OSSGadget的OSS Detect Backdoor。我们发现,存储库管理员对此类恶意软件检测工具有着严格的技术要求。具体而言,考虑到可能触发误报的大量软件包发布,他们认为即使0.01%的误报率也是不可接受的高。被测工具的误报率在15%到97%之间;提高检测规则的阈值以降低误报率会使真正率变得毫无用处。在某些情况下,这些检查对良性软件包发出警报的频率甚至高于恶意软件包。然而,我们也发现了一个成功的社会技术恶意软件检测系统:外部安全研究人员也执行存储库恶意软件扫描并将结果报告给存储库管理员。这些方面临着不同的激励措施以及对其时间和工具的限制。我们最后提出了改进检测能力和加强安全研究人员与软件存储库管理员之间合作的建议。

英文摘要:

While attackers often distribute malware to victims via open-source, community-driven package repositories, these repositories do not currently run automated malware detection systems. In this work, we explore the security goals of the repository administrators and the requirements for deployments of such malware scanners via a case study of the Python ecosystem and PyPI repository, which includes interviews with administrators and maintainers. Further, we evaluate existing malware detection techniques for deployment in this setting by creating a benchmark dataset and comparing several existing tools, including the malware checks implemented in PyPI, Bandit4Mal, and OSSGadget's OSS Detect Backdoor. We find that repository administrators have exacting technical demands for such malware detection tools. Specifically, they consider a false positive rate of even 0.01% to be unacceptably high, given the large number of package releases that might trigger false alerts. Measured tools have false positive rates between 15% and 97%; increasing thresholds for detection rules to reduce this rate renders the true positive rate useless. In some cases, these checks emitted alerts more often for benign packages than malicious ones. However, we also find a successful socio-technical malware detection system: external security researchers also perform repository malware scans and report the results to repository administrators. These parties face different incentives and constraints on their time and tooling. We conclude with recommendations for improving detection capabilities and strengthening the collaboration between security researchers and software repository administrators.

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

↑