arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.03846cs.SE
收藏

Anomalicious:自动检测GitHub上的异常和潜在恶意提交

Anomalicious: Automated Detection of Anomalous and Potentially Malicious Commits on GitHub

Danielle Gonzalez, Thomas Zimmermann, Patrice Godefroid, Max Schaefer

摘要:

安全性对于采用开源软件(OSS)至关重要,但目前很少有自动化解决方案可以帮助检测和防止恶意贡献感染开源存储库。在GitHub上,OSS的主要主机,存储库不仅包含代码,还包含大量与提交相关的上下文元数据-如果这些元数据可以用于自动识别恶意OSS贡献呢?在这项工作中,我们将展示如何仅使用提交日志和存储库元数据来自动检测异常和潜在的恶意提交。我们识别并评估了几个相关因素,这些因素可以从这些数据中自动计算出来,例如敏感文件的修改,异常值更改属性,或对提交作者缺乏信任。我们的工具Anomalicious自动计算这些因素,并使用基于规则的决策模型全面考虑它们。在对15个受恶意软件感染的存储库的数据集进行评估时,Anomalicious显示出令人鼓舞的结果,并识别出53.33%的恶意提交,而大多数存储库的提交标记率不到1%。此外,该工具在分析没有已知恶意提交的存储库时发现了其他与恶意提交无关的有趣异常。

英文摘要:

Security is critical to the adoption of open source software (OSS), yet few automated solutions currently exist to help detect and prevent malicious contributions from infecting open source repositories. On GitHub, a primary host of OSS, repositories contain not only code but also a wealth of commit-related and contextual metadata - what if this metadata could be used to automatically identify malicious OSS contributions? In this work, we show how to use only commit logs and repository metadata to automatically detect anomalous and potentially malicious commits. We identify and evaluate several relevant factors which can be automatically computed from this data, such as the modification of sensitive files, outlier change properties, or a lack of trust in the commit's author. Our tool, Anomalicious, automatically computes these factors and considers them holistically using a rule-based decision model. In an evaluation on a data set of 15 malware-infected repositories, Anomalicious showed promising results and identified 53.33% of malicious commits, while flagging less than 1% of commits for most repositories. Additionally, the tool found other interesting anomalies that are not related to malicious commits in an analysis of repositories with no known malicious commits.

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

↑