超越表面:调查 GitHub 上的恶意 CVE 概念验证漏洞利用
Beyond the Surface: Investigating Malicious CVE Proof of Concept Exploits on GitHub
AI总结:
针对 GitHub 上 2017—2021 年 CVE PoC 的可信性问题,本文基于恶意 IP 调用、编码恶意代码和木马化二进制等特征进行检测,发现 47,285 个仓库中有 899 个(1.9%)存在恶意意图。
摘要:
针对已知漏洞的漏洞利用概念验证(PoC)在安全社区中被广泛分享。它们帮助安全分析师相互学习,并促进安全评估和红队任务。近年来,PoC 已通过专门网站和平台以及 GitHub 等公共代码仓库被广泛分发。然而,无法保证公共代码仓库中的 PoC 来自可信来源,甚至无法保证它们会执行其应有的功能。在本工作中,我们调查了 GitHub 上托管的针对 2017—2021 年间发现的已知漏洞的 PoC。我们发现并非所有 PoC 都可信。一些概念验证是恶意的,例如,它们试图从运行所在系统窃取数据,或试图在该系统上安装恶意软件,并且在某些情况下,它们具有硬编码的反向 shell 监听器。为衡量该威胁的普遍程度,我们提出了一种检测恶意 PoC 的方法。我们的方法依赖于在 PoC 数据集中观察到的恶意特征:对恶意 IP 地址的调用、经过编码的恶意代码,以及包含的被木马化的二进制文件。通过该方法,我们在已下载并检查的 47,285 个仓库中发现了 899 个恶意仓库(即所研究仓库中有 1.9% 存在恶意意图指标)。这一数字表明,在 GitHub 上分发的漏洞利用代码中,危险的恶意 PoC 普遍存在,令人担忧。
英文摘要:
Exploit proof-of-concepts (PoCs) for known vulnerabilities are widely shared in the security community. They help security analysts to learn from each other and they facilitate security assessments and red teaming tasks. In the recent years, PoCs have been widely distributed, e.g., via dedicated websites and platforms, and public code repositories such as GitHub. However, there is no guarantee that PoCs in public code repositories come from trustworthy sources or even that they do what they are supposed to do. In this work we investigate GitHub-hosted PoCs for known vulnerabilities discovered in 2017--2021. We discovered that not all PoCs are trustworthy. Some proof-of-concepts are malicious, e.g., they attempt to exfiltrate data from the system they are being run on, or they try to install malware on this system, and in some cases they have hard-coded reverse shell listener. To measure the prevalence of this threat, we propose an approach to detecting malicious PoCs. Our approach relies on the maliciousness symptoms we have observed in our PoC dataset: calls to malicious IP addresses, encoded malicious code, and included Trojanized binaries. With this approach, we have discovered 899 malicious repositories out of 47,285 repositories that have been downloaded and checked (i.e., 1.9% of the studied repositories have indicators of malicious intent). This figure shows a worrying prevalence of dangerous malicious PoCs among the exploit code distributed on GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。