arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.16655cs.CRcs.AIcs.CYcs.LGcs.SE
收藏

预测可能易受攻击的代码变更:面向Android开源项目的基于机器学习的漏洞防护

Predicting Likely-Vulnerable Code Changes: Machine Learning-based Vulnerability Protections for Android Open Source Project

Google(谷歌)

Keun Soo Yim

AI总结:

本文提出一个基于机器学习的漏洞预防框架,在代码提交前自动触发安全审查,通过分类器识别高风险变更,在AOSP数据集上实现约80%召回率、98%精确率和1.7%误报率。

摘要:

本文提出了一个框架,用于选择性地对传入的源代码变更触发安全审查。该框架在代码审查服务中充当审查机器人,可以在代码变更提交到源代码仓库之前的预提交阶段自动请求额外的安全审查。由于执行此类安全代码审查会增加成本,该框架采用了一个经过训练的分类器,用于识别具有高漏洞可能性的代码变更。在线分类器利用多种类型的输入特征来分析审查模式、跟踪软件工程过程,并在给定的代码变更中挖掘特定的文本模式。该分类器及其特征是通过Android开源项目(AOSP)中提交的代码变更和报告的漏洞数据进行精心选择和优化的。评估结果表明,我们的漏洞预防(VP)框架能够识别数据集中约80%的漏洞诱发代码变更,精确率约为98%,误报率约为1.7%。我们讨论了在多项目环境中部署VP框架的影响以及Android安全研究的未来方向。本文探索并验证了我们在代码变更粒度上的漏洞预测方法,通过在提交前预先检测易受攻击的代码变更,为软件安全提供了一种预防性技术。

英文摘要:

This paper presents a framework that selectively triggers security reviews for incoming source code changes. Functioning as a review bot within a code review service, the framework can automatically request additional security reviews at pre-submit time before the code changes are submitted to a source code repository. Because performing such secure code reviews add cost, the framework employs a classifier trained to identify code changes with a high likelihood of vulnerabilities. The online classifier leverages various types of input features to analyze the review patterns, track the software engineering process, and mine specific text patterns within given code changes. The classifier and its features are meticulously chosen and optimized using data from the submitted code changes and reported vulnerabilities in Android Open Source Project (AOSP). The evaluation results demonstrate that our Vulnerability Prevention (VP) framework identifies approximately 80% of the vulnerability-inducing code changes in the dataset with a precision ratio of around 98% and a false positive rate of around 1.7%. We discuss the implications of deploying the VP framework in multi-project settings and future directions for Android security research. This paper explores and validates our approach to code change-granularity vulnerability prediction, offering a preventive technique for software security by preemptively detecting vulnerable code changes before submission.

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

↑