Kingfisher
$ kingfisher 官方出品 低风险Kingfisher 是 MongoDB 开源的 Apache-2.0 Rust 密钥扫描器,将正则/熵值检测与实时供应商校验、权限爆炸半径分析(--blast-radius)、--redact 脱敏及原生 --format json / --format sarif 输出结合在一起。
brew install kingfisher kingfisher 基于 Rust 在本地高速扫描大型仓库并输出脱敏 JSON/SARIF,无需将原始代码树经由 MCP 服务器传输。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
专为 CI/Agent 流水线设计的无头 CLI,支持 --format json|sarif、--confidence、--exclude 与 --redact。
- Supports
--format json,--format sarif,--redact, and--only-valid
--redact 可在报告中脱敏密钥原文且不会自动发现配置文件(必须通过 -c 指定);注意启用在线校验会向外部供应商接口发送候选令牌。
- Built-in
--redactand explicit-cconfig loading
可通过 brew install kingfisher 与 GitHub Releases 在 macOS、Linux、Windows 安装。
- Official Homebrew formula and Rust release binaries
高吞吐量 Rust 引擎,内置 --only-valid 与 --blast-radius 优先级研判能力。
- Live validation plus blast-radius enrichment
由 MongoDB 官方积极维护的开源安全项目。
- Maintained under github.com/mongodb/kingfisher
仓库 README 详细记录了 CLI 参数、--format、--redact 与 kingfisher config init。
- Detailed docs at github.com/mongodb/kingfisher
安全边界、鉴权与放权指南
无需账号;仅在通过 -c/--config 显式指定时才加载 YAML 配置文件。
100% 免费开源(Apache-2.0)。
# Kingfisher Agent Rules - Always pass `--redact` when outputting findings into agent logs or JSON reports. - Use `--confidence high` and `--exclude` to reduce noise; disable validation if strict offline scanning is required.
Agent 高频安全命令配方
只读查询(安全推荐)
kingfisher scan . --redact --format json
扫描 . 并以结构化 JSON 输出发现结果,同时通过 --redact 屏蔽敏感密钥原文。
kingfisher scan . --only-valid --blast-radius --redact --format sarif -o kingfisher.sarif
向供应商验证发现的凭据有效性、计算权限爆炸半径并保存脱敏后的 SARIF 报告。
核心优势
- +
--redact可防止 Agent 输出中回显原始密钥,同时保留位置与规则元数据。 - +
--only-valid与--blast-radius显著降低大型仓库的告警研判噪音。
注意事项与踩坑点
- ! 除非关闭校验,否则在线校验会携带候选令牌探测外部供应商接口。
- ! 未配置
--exclude或--confidence high时,大规则集可能误报测试夹具。