# 使用 Homebrew, Nix 安装 badkeys

查看 badkeys 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:badkeys
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install badkeys
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#badkeys
```

  证据: nixpkgs package indexes: pkgs/by-name/ba/badkeys/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:badkeys
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/badkeys>
- **版本:** 0.0.19
- **来源摘要:** Tool to find common vulnerabilities in cryptographic public keys
- **主页:** <https://badkeys.info>
- **仓库:** <https://github.com/badkeys/badkeys>
- **上游文档:** <https://badkeys.info/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/bd/a7/b222a5f0db2bc9e765252a109da1ab1baeed0da6e0b050e2baa3208650c4/badkeys-0.0.19.tar.gz>
- **最后更新:** 2026-06-17T09:59:35Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- badkeys (cli)
- badkeys (别名)

## 依赖

- cryptography
- gmp
- libmpc
- mpfr
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.0.19
- 管理器更新时间: 2026-06-17
- 本地数据: OK
- 上游仓库: https://badkeys.info
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

badkeys is a Python tool and library for checking cryptographic public keys against known vulnerability patterns and blocklist data. It sits in the practical security-tooling niche between certificate/key parsers and vulnerability scanners.

### 项目历史

The badkeys GitHub repository was created in January 2022. Its README says the tool checks public keys in multiple formats for known vulnerabilities, with a public web version at badkeys.info.

The README credits Hanno Boeck as author, says the work was initially funded in 2022 through the CIDI project and CISAT at the IT University of Copenhagen, and notes later 2025/2026 support from NLnet's NGI0 Core Fund.

### 采用历史

The project is distributed through PyPI and appears in Homebrew and Nix in the batch package metadata. The README also points users to Repology for distribution packages, suggesting upstream expected operating-system packaging beyond Python-only installation.

Release names show the project expanding its checks over time, including DKIM support in 2024, parser robustness and return-code improvements in 2026, and a 'Post-Quantum Edition' release in June 2026.

### 使用方式

badkeys users first download blocklist data with badkeys --update-bl, then scan key, certificate, CSR, SSH public key, TLS host, or SSH host material. The README documents return codes that distinguish application errors, parser problems, and vulnerable keys.

Its command-line use is intentionally automation-friendly: quiet output when no vulnerable keys are found, an all-keys output flag for audits, and bitmask return codes for CI or batch scans.

### 为什么软件包爱好者会关心

badkeys is package-nerd relevant because it turns a pile of cryptographic failure cases into a reusable CLI and library with data updates. Packaging it gives security teams a repeatable way to scan public keys without copying ad hoc scripts around.

It also illustrates a modern security package pattern: a small Python CLI, external vulnerability/blocklist data, optional network scanning modes, and package-manager availability for workstation and CI installation.

### 时间线

- 2022: Public GitHub repository created and initial CIDI/CISAT funding period described by upstream.
- 2024: v0.0.7 and v0.0.9 releases published; v0.0.9 added DKIM support.
- 2025: Upstream README notes NLnet NGI0 Core Fund support across 2025/2026.
- 2026: v0.0.19 'Post-Quantum Edition' released.

### Related projects

- badkeys is adjacent to OpenSSL, SSH host-key audit tooling, TLS scanners, DKIM key checking, and certificate linting tools.
- The README notes Paramiko as an optional dependency for SSH scanning.

### 来源

- <https://badkeys.info/>
- <https://github.com/badkeys/badkeys>
- <https://github.com/badkeys/badkeys/releases>
- <https://pypi.org/project/badkeys/>
- source_facts.package-manager


## 安全说明

没有找到 badkeys 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** badkeys
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - badkeys: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/badkeys/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [argon2](https://www.automicvault.com/zh-hans/pkg/brew/argon2/) - Shares av.db curated category or tags: cli, cryptography, security.
- [bcrypt](https://www.automicvault.com/zh-hans/pkg/brew/bcrypt/) - Shares av.db curated category or tags: cli, cryptography, security.
- [botan](https://www.automicvault.com/zh-hans/pkg/brew/botan/) - Shares av.db curated category or tags: cli, cryptography, security.
- [ccrypt](https://www.automicvault.com/zh-hans/pkg/brew/ccrypt/) - Shares av.db curated category or tags: cli, cryptography, security.
- [cfssl](https://www.automicvault.com/zh-hans/pkg/brew/cfssl/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gmssl](https://www.automicvault.com/zh-hans/pkg/brew/gmssl/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gnupg-pkcs11-scd](https://www.automicvault.com/zh-hans/pkg/brew/gnupg-pkcs11-scd/) - Shares av.db curated category or tags: cli, cryptography, security.
- [gnutls](https://www.automicvault.com/zh-hans/pkg/brew/gnutls/) - Shares av.db curated category or tags: cli, cryptography, security.
- [safety](https://www.automicvault.com/zh-hans/pkg/brew/safety/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cryptography, python, python-3-14, security.
- [snyk-agent-scan](https://www.automicvault.com/zh-hans/pkg/brew/snyk-agent-scan/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cryptography, python, python-3-14, security.

## Combined YAML source

View the package source record on GitHub. [combined/badkeys.yml](https://github.com/automic-vault/db/blob/main/combined/badkeys.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
