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

RiskHarvester:一种基于风险的工具,用于优先处理软件制品中的机密移除工作

RiskHarvester: A Risk-based Tool to Prioritize Secret Removal Efforts in Software Artifacts

Setu Kumar Basak, Tanmay Pardeshi, Bradley Reaves, Laurie Williams

AI总结:

本文提出RiskHarvester工具,通过评估资产价值和攻击易度计算安全风险评分,帮助开发者优先移除软件制品中的机密,实验证明其高精确率且86%开发者愿按风险评分排序移除。

摘要:

自2020年以来,GitGuardian一直在检测GitHub仓库中签入的硬编码机密。在2020至2023年间,GitGuardian观察到硬编码机密呈逐年上升趋势并增长了4倍,2023年有1280万个机密暴露。然而,由于时间限制和技术挑战,从软件制品中移除所有机密是不可行的。此外,机密的安全风险并不相同,其保护的资产范围从废弃数据库到敏感医疗数据不等。因此,机密移除应根据安全风险降低程度进行优先级排序,而现有的机密检测工具并不支持这一点。本研究的目标是通过我们基于安全风险的工具帮助软件从业者优先安排机密移除工作。我们提出了RiskHarvester,这是一种基于风险的工具,可根据资产价值和数据库的攻击易度来计算安全风险评分。我们通过从源代码中的数据库关键字识别数据库中存在的敏感数据类别来计算资产价值。我们利用数据流分析、SQL和ORM解析来识别数据库关键字。为了计算攻击易度,我们利用被动网络分析来检索数据库主机信息。为了评估RiskHarvester,我们构建了RiskBench,这是一个包含1,791个数据库机密-资产对的基准,其中敏感数据类别和主机信息均从188个GitHub仓库中手动检索。RiskHarvester在检测资产价值的数据库关键字方面表现出95%的精确率和90%的召回率,在检测攻击易度的有效主机方面表现出96%的精确率和94%的召回率。最后,我们进行了一项调查(52名受访者)以了解开发者是否根据安全风险评分优先移除机密。我们发现86%的开发者会按照安全风险评分降序优先移除机密。

英文摘要:

Since 2020, GitGuardian has been detecting checked-in hard-coded secrets in GitHub repositories. During 2020-2023, GitGuardian has observed an upward annual trend and a four-fold increase in hard-coded secrets, with 12.8 million exposed in 2023. However, removing all the secrets from software artifacts is not feasible due to time constraints and technical challenges. Additionally, the security risks of the secrets are not equal, protecting assets ranging from obsolete databases to sensitive medical data. Thus, secret removal should be prioritized by security risk reduction, which existing secret detection tools do not support. The goal of this research is to aid software practitioners in prioritizing secrets removal efforts through our security risk-based tool. We present RiskHarvester, a risk-based tool to compute a security risk score based on the value of the asset and ease of attack on a database. We calculated the value of asset by identifying the sensitive data categories present in a database from the database keywords in the source code. We utilized data flow analysis, SQL, and ORM parsing to identify the database keywords. To calculate the ease of attack, we utilized passive network analysis to retrieve the database host information. To evaluate RiskHarvester, we curated RiskBench, a benchmark of 1,791 database secret-asset pairs with sensitive data categories and host information manually retrieved from 188 GitHub repositories. RiskHarvester demonstrates precision of (95%) and recall (90%) in detecting database keywords for the value of asset and precision of (96%) and recall (94%) in detecting valid hosts for ease of attack. Finally, we conducted a survey (52 respondents) to understand whether developers prioritize secret removal based on security risk score. We found that 86% of the developers prioritized the secrets for removal with descending security risk scores.

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

↑