# 使用 Homebrew 安装 two-ms

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

## 安装

```sh
sudo av install brew:two-ms
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install two-ms
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:two-ms
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/two-ms>
- **版本:** 5.2.4
- **来源摘要:** Detect secrets in files and communication platforms
- **主页:** <https://github.com/Checkmarx/2ms>
- **仓库:** <https://github.com/Checkmarx/2ms>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Checkmarx/2ms/archive/refs/tags/v5.2.4.tar.gz>
- **最后更新:** 2026-07-26T03:12:24+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- 2ms (cli)
- 2ms (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.2.4
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/Checkmarx/2ms
- 检测到的最新版本: v5.2.4 (当前)
## 项目历史与用法

2ms, short for Too Many Secrets, is a Checkmarx open-source CLI for finding exposed credentials in code, files, Git history, and collaboration platforms.

### 项目历史

The README describes 2ms as a modern secrets-discovery CLI from Checkmarx that builds on the gitleaks detection engine with Checkmarx rules, CVSS-based scoring, reporting, and optional live validation. Its public release history visible through GitHub starts in the 2023 series and continues through frequent 2026 releases.

### 采用历史

The tool is packaged for Homebrew and also distributed through GitHub releases, source builds, and Docker. Its adoption story is therefore CI and AppSec oriented: developers install it locally with Homebrew, run it in containers, or wire SARIF/JSON output into pipelines.

### 使用方式

2ms is used to scan local filesystems, Git repositories, Confluence Cloud, Slack, Discord, and Paligo. The README examples emphasize `2ms filesystem --path .` for workspace scans and `2ms git . --depth 50` for recent Git history.

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

For package-manager users, 2ms is interesting because it compresses several security-scanning surfaces into one small Go CLI. It is the sort of tool installed ad hoc before publishing code, added to CI as a gate, or used during incident response to search histories and chat exports for credentials.

### 时间线

- 2023: GitHub release metadata shows early public 2.x releases.
- 2026: GitHub release metadata shows active 5.x releases and prereleases.

### Related projects

- gitleaks: the detection engine named by the 2ms README.
- Checkmarx: maintainer and vendor of the 2ms project.

### 来源

- <https://api.github.com/repos/Checkmarx/2ms/releases?per_page=100>
- <https://checkmarx.com/product/2ms/>
- <https://github.com/Checkmarx/2ms#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** two-ms
- **Aliases:** 2ms
- **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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [trufflehog](https://pkg.so/zh-hans/brew/trufflehog/) - Shares pkgdb curated category or tags: cli, git, secrets-scanning, security.
- [gitleaks](https://pkg.so/zh-hans/brew/gitleaks/) - Shares pkgdb curated category or tags: cli, git, security.
- [git-crypt](https://pkg.so/zh-hans/brew/git-crypt/) - Shares pkgdb curated category or tags: cli, git, security.
- [cycode](https://pkg.so/zh-hans/brew/cycode/) - Shares pkgdb curated category or tags: cli, secrets-scanning, security.
- [ggshield](https://pkg.so/zh-hans/brew/ggshield/) - Shares pkgdb curated category or tags: cli, secrets-scanning, security.
- [git-secrets](https://pkg.so/zh-hans/brew/git-secrets/) - Shares pkgdb curated category or tags: cli, git, security.
- [git-secret](https://pkg.so/zh-hans/brew/git-secret/) - Shares pkgdb curated category or tags: cli, git, security.
- [gopass](https://pkg.so/zh-hans/brew/gopass/) - Shares pkgdb curated category or tags: cli, git, security.
- [noseyparker](https://pkg.so/zh-hans/brew/noseyparker/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, git, scanning, secrets, secrets-scanning.

## Combined YAML source

View the package source record on GitHub. [combined/two-ms.yml](https://github.com/mxcl/pkgdb/blob/main/combined/two-ms.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
- cross-ecosystem install command graph
