# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 amass

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

## 安装

```sh
sudo av install brew:amass
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install amass
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install amass
```

  证据: MacPorts ports tree: security/amass/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#amass
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/amass
```

  证据: Scoop official bucket manifest trees: bucket/amass.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id OWASP.Amass -e
```

  证据: Windows Package Manager source index: OWASP.Amass from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:amass
- **软件包管理器:** Homebrew
- **版本:** 5.1.1
- **来源摘要:** In-depth attack surface mapping and asset discovery
- **主页:** <https://owasp.org/www-project-amass/>
- **仓库:** <https://github.com/owasp-amass/amass>
- **最后更新:** 2026-07-25T14:18:26-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- amass (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.1.1
## 项目历史与用法

OWASP Amass is an attack-surface mapping and external asset discovery tool for security teams, red teams, bug bounty hunters, and OSINT-heavy workflows. Its core appeal is that it aggregates many open-source intelligence, DNS, certificate, routing, scraping, archive, WHOIS, and API-backed data sources into one repeatable CLI workflow.

### 项目历史

The GitHub repository was created in July 2018 and the README identifies the project as an OWASP project maintained around network mapping of attack surfaces and external asset discovery. The program copyright in the README attributes OWASP Amass and contributions to Jeff Foley for 2017-2023, reflecting pre-OWASP or pre-current-repository origins before the current repository history.

Amass evolved from a subdomain-enumeration tool into a broader graph-oriented external attack-surface mapper. Its official documentation now describes YAML configuration for scan scope, data sources, transformations, engine APIs, graph databases, and programmatic use as a Go library.

### 采用历史

Amass became a standard package in security distributions and package managers because it automated a tedious recon workflow: combine passive sources, DNS techniques, certificate transparency, web archives, routing data, and optional active probing under one command. The official README lists Homebrew, prebuilt release packages, Docker images, and source installation paths.

The project's own README and REFERENCES file document adoption in talks, trainings, and practitioner workflows, including DEF CON and Red Team Village references, OWASP chapter material, bug bounty tutorials, and testimonials from Accenture and Visma red-team users.

### 使用方式

Typical use is the amass CLI, especially enumeration against a domain, optionally with configured API keys for premium or authenticated data sources. Configuration is YAML-based: config.yaml controls scope and options, while datasources.yaml stores data-source credentials such as API keys, usernames, passwords, and secrets.

The README also documents Docker usage with a mounted /.config/amass directory so the graph database and output can persist across runs. That detail is important for package users because Amass is not merely a stateless scanner: its value grows when outputs, graph data, and source credentials are managed carefully.

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

Amass is a good example of a security CLI whose packaging is not just about the binary. Useful installs need correct config paths, data-source credential handling, shell ergonomics, and sometimes a database or persistent output directory.

It also shows how modern security tooling lands in general-purpose package managers: it is a Go binary, but it has an unusually large operational surface because its value depends on many external OSINT providers and frequently changing integrations.

### 时间线

- 2017: README copyright range begins for Jeff Foley and OWASP Amass contributions.
- 2018-07-10: Current owasp-amass/amass GitHub repository is created.
- 2023-09-10: Amass v4.2.0 release is published.
- 2025-08-03: Amass v5.0.0 release is published.
- 2026-04-07: Amass v5.1.1 release is published.

### Related projects

- OWASP is the umbrella project home and provides the public project page.
- Shodan, Censys, SecurityTrails, VirusTotal, DNSDB, Wayback, Common Crawl, GitHub, GitLab, and many other data sources are integrations or data inputs rather than sibling code projects.
- The Amass Go module and scripting/documentation surface support more advanced integrations beyond simple CLI use.

### 来源

- <https://api.github.com/repos/owasp-amass/amass>
- <https://api.github.com/repos/owasp-amass/amass/releases?per_page=5>
- <https://owasp-amass.github.io/docs/configuration/>
- <https://owasp-amass.github.io/docs/configuration/data_sources/>
- <https://owasp.org/www-project-amass/>
- <https://raw.githubusercontent.com/owasp-amass/amass/master/README.md>
- <https://raw.githubusercontent.com/owasp-amass/amass/master/REFERENCES.md>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/amass/config.yaml, /etc/amass/config.yaml

## Credential files

- Unix: ~/.config/amass/datasources.yaml, /etc/amass/datasources.yaml
## 其他软件包管理器记录

- Nix - amass: normalized package name match | nixpkgs package indexes: pkgs/by-name/am/amass/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - amass: normalized package name match | MacPorts ports tree: security/amass/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/amass: normalized package name match | Scoop official bucket manifest trees: bucket/amass.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - OWASP.Amass: normalized package name match | Windows Package Manager source index: OWASP.Amass from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
