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

AssetHarvester:一种用于检测软件制品中秘密-资产对的静态分析工具

AssetHarvester: A Static Analysis Tool for Detecting Secret-Asset Pairs in Software Artifacts

Setu Kumar Basak, K. Virgil English, Ken Ogura, Vitesh Kambara, Bradley Reaves, Laurie Williams

AI总结:

本文提出静态分析工具 AssetHarvester,通过识别秘密-资产共置模式并结合模式匹配、数据流分析与启发式方法检测秘密-资产对,以帮助开发者过滤误报并优先移除高风险秘密。

摘要:

GitGuardian 监测了公共 GitHub 仓库中的秘密泄露情况,并报告称开发者在 2023 年泄露了超过 1200 万个秘密(数据库及其他凭据),较 2021 年激增 113%。尽管已有秘密检测工具可用,但由于误报率高达 25%–99%,开发者往往忽略这些工具报告的警告。然而,每个秘密都保护着不同价值的资产,这些资产可通过资产标识符(DNS 名称以及公共或私有 IP 地址)进行访问。秘密对应的资产信息可以帮助开发者过滤误报,并优先处理源代码中的秘密移除工作。然而,现有的秘密检测工具并不提供资产信息,因此开发者仅凭秘密值难以过滤秘密,也难以针对每个报告的秘密手动查找其资产。本研究的目标是通过我们提出的新型静态分析工具,提供秘密所保护资产的信息,从而帮助软件从业者优先处理秘密移除工作。我们提出了 AssetHarvester,这是一种用于检测仓库中秘密-资产对的静态分析工具。由于资产的位置可能与秘密定义的位置相距较远,我们研究了秘密-资产共置模式,并发现了四种模式。为了识别这四种模式下的秘密-资产对,我们采用了三种方法(模式匹配、数据流分析和快速近似启发式方法)。我们构建了一个包含 1,791 个秘密-资产对的基准数据集,涵盖从 188 个公共 GitHub 仓库中提取的四种数据库类型,用于评估 AssetHarvester 的性能。AssetHarvester 在检测秘密-资产对方面表现出 97% 的精确率、90% 的召回率和 94% 的 F1 分数。我们的研究结果表明,AssetHarvester 中采用的数据流分析能够以 0% 的误报率检测秘密-资产对,并有助于提高秘密检测工具的召回率。

英文摘要:

GitGuardian monitored secrets exposure in public GitHub repositories and reported that developers leaked over 12 million secrets (database and other credentials) in 2023, indicating a 113% surge from 2021. Despite the availability of secret detection tools, developers ignore the tools' reported warnings because of false positives (25%-99%). However, each secret protects assets of different values accessible through asset identifiers (a DNS name and a public or private IP address). The asset information for a secret can aid developers in filtering false positives and prioritizing secret removal from the source code. However, existing secret detection tools do not provide the asset information, thus presenting difficulty to developers in filtering secrets only by looking at the secret value or finding the assets manually for each reported secret. The goal of our study is to aid software practitioners in prioritizing secrets removal by providing the assets information protected by the secrets through our novel static analysis tool. We present AssetHarvester, a static analysis tool to detect secret-asset pairs in a repository. Since the location of the asset can be distant from where the secret is defined, we investigated secret-asset co-location patterns and found four patterns. To identify the secret-asset pairs of the four patterns, we utilized three approaches (pattern matching, data flow analysis, and fast-approximation heuristics). We curated a benchmark of 1,791 secret-asset pairs of four database types extracted from 188 public GitHub repositories to evaluate the performance of AssetHarvester. AssetHarvester demonstrates precision of (97%), recall (90%), and F1-score (94%) in detecting secret-asset pairs. Our findings indicate that data flow analysis employed in AssetHarvester detects secret-asset pairs with 0% false positives and aids in improving recall of secret detection tools.

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

↑