SEDAC:一种基于CVAE的用于安全缺陷报告识别的数据增强方法
SEDAC: A CVAE-Based Data Augmentation Method for Security Bug Report Identification
AI总结:
本文提出SEDAC方法,利用distilBERT将缺陷报告转为向量,并通过CVAE生成安全缺陷报告向量以平衡数据,从而提升安全缺陷报告识别性能,实验显示g-measure提升14.24%-50.10%。
摘要:
缺陷跟踪系统存储了许多缺陷报告,其中一些与安全相关。识别这些安全缺陷报告(SBRs)可能有助于我们预测某些与安全相关的缺陷并及时解决安全问题,从而使项目能够避免威胁和攻击。然而,在现实世界中,安全缺陷报告的比例极低;因此,直接使用原始数据训练预测模型可能导致结果不准确。面对数据不平衡的巨大挑战,过去许多研究人员尝试使用文本过滤或聚类方法来最小化非安全缺陷报告(NSBRs)的比例,或应用过采样方法来合成SBRs,以使数据集尽可能平衡。然而,这些方法仍然面临两个挑战:1)它们忽略了长距离上下文信息。2)它们未能生成完全平衡的数据集。为了解决这两个挑战,我们提出了SEDAC,一种新的SBR识别方法,它生成相似的缺陷报告向量以解决数据不平衡问题并准确检测安全缺陷报告。与以往研究不同,它首先使用基于word2vec的distilBERT将缺陷报告转换为独立的缺陷报告向量。然后,通过条件变分自编码器(CVAE)训练生成模型,以生成带有安全标签的相似向量,从而使SBRs的数量与NSBRs的数量相等。最后,使用平衡数据训练安全缺陷报告分类器。为了评估我们框架的有效性,我们在来自Chromium和四个Apache项目的45,940个缺陷报告上进行了实验。实验结果表明,SEDAC在g-measure上优于所有基线,提升幅度约为14.24%-50.10%。
英文摘要:
Bug tracking systems store many bug reports, some of which are related to security. Identifying those security bug reports (SBRs) may help us predict some security-related bugs and solve security issues promptly so that the project can avoid threats and attacks. However, in the real world, the ratio of security bug reports is severely low; thus, directly training a prediction model with raw data may result in inaccurate results. Faced with the massive challenge of data imbalance, many researchers in the past have attempted to use text filtering or clustering methods to minimize the proportion of non-security bug reports (NSBRs) or apply oversampling methods to synthesize SBRs to make the dataset as balanced as possible. Nevertheless, there are still two challenges to those methods: 1) They ignore long-distance contextual information. 2) They fail to generate an utterly balanced dataset. To tackle these two challenges, we propose SEDAC, a new SBR identification method that generates similar bug report vectors to solve data imbalance problems and accurately detect security bug reports. Unlike previous studies, it first converts bug reports into individual bug report vectors with distilBERT, which are based on word2vec. Then, it trains a generative model through conditional variational auto-encoder (CVAE) to generate similar vectors with security labels, which makes the number of SBRs equal to NSBRs'. Finally, balanced data are used to train a security bug report classifier. To evaluate the effectiveness of our framework, we conduct it on 45,940 bug reports from Chromium and four Apache projects. The experimental results show that SEDAC outperforms all the baselines in g-measure with improvements of around 14.24%-50.10%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。