# Install two-ms with Homebrew

Detect secrets in files and communication platforms. Version 5.2.4 via Homebrew; verified 2026-07-26.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:two-ms
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/two-ms>
- **Version:** 5.2.4
- **Source summary:** Detect secrets in files and communication platforms
- **Homepage:** <https://github.com/Checkmarx/2ms>
- **Repository:** <https://github.com/Checkmarx/2ms>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/Checkmarx/2ms/archive/refs/tags/v5.2.4.tar.gz>
- **Last updated:** 2026-07-26T03:12:24+02:00
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- 2ms (cli)
- 2ms (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 5.2.4
- Package-manager updated: 2026-07-26
- Local data: ok
- Upstream repository: https://github.com/Checkmarx/2ms
- Upstream latest detected: v5.2.4 (current)
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/brew/go/) - Build dependency declared by Homebrew.
- [trufflehog](https://pkg.so/brew/trufflehog/) - Shares pkgdb curated category or tags: cli, git, secrets-scanning, security.
- [gitleaks](https://pkg.so/brew/gitleaks/) - Shares pkgdb curated category or tags: cli, git, security.
- [git-crypt](https://pkg.so/brew/git-crypt/) - Shares pkgdb curated category or tags: cli, git, security.
- [cycode](https://pkg.so/brew/cycode/) - Shares pkgdb curated category or tags: cli, secrets-scanning, security.
- [ggshield](https://pkg.so/brew/ggshield/) - Shares pkgdb curated category or tags: cli, secrets-scanning, security.
- [git-secrets](https://pkg.so/brew/git-secrets/) - Shares pkgdb curated category or tags: cli, git, security.
- [git-secret](https://pkg.so/brew/git-secret/) - Shares pkgdb curated category or tags: cli, git, security.
- [gopass](https://pkg.so/brew/gopass/) - Shares pkgdb curated category or tags: cli, git, security.
- [noseyparker](https://pkg.so/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)


## Sources

- 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
