# 使用 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
- **版本:** 5.2.4
- **来源摘要:** Detect secrets in files and communication platforms
- **主页:** <https://github.com/Checkmarx/2ms>
- **仓库:** <https://github.com/Checkmarx/2ms>
- **最后更新:** 2026-07-26T03:12:24+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 2ms (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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


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