# 使用 Homebrew, Nix 安装 terrapin-scanner

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

## 安装

```sh
sudo av install brew:terrapin-scanner
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install terrapin-scanner
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terrapin-scanner
```

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

## 软件包事实

- **软件包键:** brew:terrapin-scanner
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/terrapin-scanner>
- **版本:** 1.1.3
- **来源摘要:** Vulnerability scanner for the Terrapin attack
- **主页:** <https://terrapin-attack.com/>
- **仓库:** <https://github.com/RUB-NDS/Terrapin-Scanner>
- **上游文档:** <https://terrapin-attack.com/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/RUB-NDS/Terrapin-Scanner/archive/refs/tags/v1.1.3.tar.gz>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- Terrapin-Scanner (cli)
- Terrapin-Scanner (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.3
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/RUB-NDS/Terrapin-Scanner
- 检测到的最新版本: v1.1.3 (当前)
## 项目历史与用法

Terrapin Vulnerability Scanner is the companion command-line scanner for the Terrapin SSH prefix-truncation attack. The official attack site and repository describe it as a small Go console application that tests whether an SSH server or client offers vulnerable encryption modes and whether strict key exchange countermeasures are present.

### 项目历史

The scanner was published by the Ruhr University Bochum Network and Data Security group alongside the Terrapin research disclosure. Its narrow purpose is deliberate: it gathers SSH algorithm support in a single connection, avoids full authentication, and does not perform the attack.

### 采用历史

Adoption followed the disclosure pattern of a vulnerability-specific operations tool. The project provides release binaries for major desktop platforms, a container image, and Go installation instructions, making it easy for administrators and package maintainers to run quick checks during SSH patch rollouts.

### 使用方式

The CLI is used either in connect mode against an SSH server or in listen mode for testing an SSH client. It can emit JSON, which makes it useful for scripted fleet checks and package-manager users who want a reproducible local scanner rather than a web-based test.

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

For package nerds, terrapin-scanner is a compact example of a research artifact becoming a packaged remediation aid. Its Homebrew and Nix packaging matters less as a general-purpose utility and more as a convenient way to reproduce an official scanner during the short operational window after a protocol vulnerability disclosure.

### 时间线

- 2024: Terrapin paper scheduled for Real World Crypto, Black Hat USA, and USENIX Security presentations.
- 2024: Official scanner released with prebuilt binaries, Docker image, and Go install path.
- 2024: v1.1.3 listed as latest GitHub release on January 18, 2024.

### Related projects

- The scanner is tied to the Terrapin attack research and to SSH implementations that adopted the strict key exchange countermeasure.

### 来源

- <https://github.com/RUB-NDS/Terrapin-Scanner official README, usage, build, release, and JSON-output notes.>
- <https://terrapin-attack.com/ official attack site and scanner description.>
- source_facts.package-manager lists brew and nix packaging.


## 安全说明

escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- escape, surveillance, or offensive capability signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terrapin-scanner
- **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 - terrapin-scanner: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terrapin-scanner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [grype](https://pkg.so/zh-hans/brew/grype/) - Shares pkgdb curated category or tags: cli, security, vulnerability-scanner.
- [osv-scanner](https://pkg.so/zh-hans/brew/osv-scanner/) - Shares pkgdb curated category or tags: cli, security, vulnerability-scanner.
- [nuclei](https://pkg.so/zh-hans/brew/nuclei/) - Shares pkgdb curated category or tags: cli, security, vulnerability-scanner.
- [skm](https://pkg.so/zh-hans/brew/skm/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [duo_unix](https://pkg.so/zh-hans/brew/duo-unix/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [vuls](https://pkg.so/zh-hans/brew/vuls/) - Shares pkgdb curated category or tags: cli, security, vulnerability-scanner.
- [sshguard](https://pkg.so/zh-hans/brew/sshguard/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [tkey-ssh-agent](https://pkg.so/zh-hans/brew/tkey-ssh-agent/) - Shares pkgdb curated category or tags: cli, security, ssh.
- [bomber](https://pkg.so/zh-hans/brew/bomber/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, scanner, security, vulnerability, vulnerability-scanner.

## Combined YAML source

View the package source record on GitHub. [combined/terrapin-scanner.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terrapin-scanner.yml)


## 来源

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