evolver icon indicating copy to clipboard operation
evolver copied to clipboard

待确认安全问题:Gitleaks 静态扫描发现疑似凭据泄露候选

Open bjw9808 opened this issue 5 months ago • 1 comments

状态:待确认安全问题,来源是本地静态安全扫描工具 Gitleaks 8.30.1。 说明:这不是已确认漏洞结论,需要仓库 owner 结合运行路径、测试夹具、文档样例和部署方式人工确认。 扫描时间:2026-06-21。 扫描范围:tracked-only 快照,只扫描 Git 跟踪文件;未扫描未跟踪文件、.env、缓存、node_modules、agent 临时文件。 仓库:EvoMap/evolver 本地路径:/Users/jianwei.bao/Desktop/workinginEvoMap/evolver

摘要

  • 疑似凭据候选数量:9
  • 处理要求:请只验证是否为真实凭据或可用 token;不要在 issue 中粘贴 secret 原文。

按规则统计

项目 数量
generic-api-key 8
private-key 1

脱敏明细

规则 文件 行
generic-api-key test/lifecycleStaleNodeSecret.test.js 95
generic-api-key test/lifecycleStaleNodeSecret.test.js 196
generic-api-key test/lifecycleStaleNodeSecret.test.js 293
generic-api-key test/sanitize.test.js 11
generic-api-key test/sanitize.test.js 12
generic-api-key test/sanitize.test.js 13
private-key test/sanitize.test.js 45
generic-api-key test/sanitize.test.js 75
generic-api-key test/webuiObserver.test.js 215

建议确认

  1. 优先确认 private key、云厂商 access token、GitHub/GitLab/Grafana token 等规则。
  2. 如果是真凭据:立即吊销/轮换,并检查历史提交和访问日志。
  3. 如果是测试夹具或文档示例:改成明确 fake 值,或加最小范围 allowlist。

bjw9808 avatar Jun 21 '26 13:06 bjw9808

Triaged — no real credential, nothing to rotate. All 9 hits (8 generic-api-key, 1 private-key) are deliberately fake, secret-shaped strings in our redaction tests:

  • test/sanitize.test.js, test/webuiObserver.test.js — inputs like Bearer abc123…, sk-abcdef0123…, MY_SECRET=hunter2, and a dummy -----BEGIN RSA PRIVATE KEY-----\nabc… — fed to redactString() / sanitize() to assert they come back [REDACTED].
  • test/lifecycleStaleNodeSecret.test.js — the named VALID_HEX64_* test constants.

The next release adds a .gitleaks.toml (extend default) allowlisting exactly those three fixture files so re-scans stay clean; any new match outside them still flags.

autogame-17 avatar Jun 22 '26 18:06 autogame-17