# 使用 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
- **版本:** 1.1.3
- **来源摘要:** Vulnerability scanner for the Terrapin attack
- **主页:** <https://terrapin-attack.com/>
- **仓库:** <https://github.com/RUB-NDS/Terrapin-Scanner>
- **最后更新:** 2026-07-26T00:50:37+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- Terrapin-Scanner (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
