Git 凭据泄露审计报告

仓库:leaked_repo  |  审计日期:2025-07-25

审计结论:本次对 leaked_repo 仓库的 git 历史凭据泄露审计共发现 4 处疑似凭据泄露,涉及 3 次可疑提交,1 个已删除文件,均由唯一作者 Acme Dev(dev@acme.example)产生。

凭据可疑项

以下凭据线索从 git 历史中检测到,按触发关键字分类:

# 触发关键字 提交短 SHA 提交标题
1 [password] 69d4daa Add config with aws_access_key and password secret
2 [secret] d4d95b0 Add session token; fix credential documentation
3 [api_key] 69d4daa Add config with aws_access_key and password secret
4 [token] d4d95b0 Add session token; fix credential documentation

仓库作者

作者邮箱
Acme Devdev@acme.example

该仓库仅有 1 位唯一作者。所有凭据泄露均出自该作者之手。

可疑提交消息

以下提交消息包含与凭据管理相关的可疑表述:

短 SHA提交消息(全文)
d4d95b0 Add session token; fix credential documentation
e3015c4 Remove leaked credentials from repo
69d4daa Add config with aws_access_key and password secret
提示:提交 e3015c4 标题为 "Remove leaked credentials from repo",表明作者已意识到凭据泄露并尝试清理。但 git 历史中凭据仍可通过 git log 追溯,需使用 git filter-branchgit-filter-repo 彻底清除。

已删除文件线索

以下文件曾在仓库中存在但已被删除。删除操作仍可在 git 历史中追溯:

提交短 SHA提交标题变更类型文件路径
e3015c4 Remove leaked credentials from repo delete mode 100644 .env
注意:.env 文件通常包含数据库密码、API key 等敏感配置。虽然该文件已被删除,但其内容仍可通过 git show e3015c4:.env 恢复。建议立即轮换所有曾写入该文件的凭据。