仓库: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 Dev | dev@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 |
git log 追溯,需使用 git filter-branch 或 git-filter-repo 彻底清除。
以下文件曾在仓库中存在但已被删除。删除操作仍可在 git 历史中追溯:
| 提交短 SHA | 提交标题 | 变更类型 | 文件路径 |
|---|---|---|---|
| e3015c4 | Remove leaked credentials from repo | delete mode 100644 | .env |
.env 文件通常包含数据库密码、API key 等敏感配置。虽然该文件已被删除,但其内容仍可通过 git show e3015c4:.env 恢复。建议立即轮换所有曾写入该文件的凭据。