# 使用 Homebrew, Nix 安装 echidna

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

## 安装

```sh
sudo av install brew:echidna
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install echidna
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#echidna
```

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

## 软件包事实

- **软件包键:** brew:echidna
- **软件包管理器:** Homebrew
- **版本:** 2.3.3
- **来源摘要:** Ethereum smart contract fuzzer
- **主页:** <https://secure-contracts.com/program-analysis/echidna/index.html>
- **仓库:** <https://github.com/crytic/echidna>
- **最后更新:** 2026-07-27T16:14:58Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- echidna (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Echidna is Crytic's Ethereum smart-contract fuzzer, written in Haskell and aimed at property-based and invariant testing. It became package-manager significant because smart-contract security teams need a reproducible CLI fuzzer that works with Solidity projects, build systems, CI, and containerized audit workflows.

### 项目历史

The public GitHub repository was created in August 2017. The README describes Echidna as a Haskell program for fuzzing and property-based testing of Ethereum smart contracts, using grammar-based campaigns based on a contract ABI to falsify user-defined predicates or Solidity assertions.

Early public GitHub release artifacts date to 2018, with 1.0.0.0 published in June 2019. By 2026 the project had reached the 2.3.x release line and remained active, with thousands of GitHub stars and ongoing pushes.

The project grew from simple echidna_ boolean properties into a broader testing tool. The README documents property, assertion, Foundry, overflow, optimization, and exploration modes, corpus collection, coverage output, JSON output, shrinking/minimization, and line-level coverage reporting.

Echidna is part of the Crytic security tooling ecosystem. The README notes Slither integration for extracting useful information before fuzzing and crytic-compile support for Foundry, Hardhat, and Truffle projects.

### 采用历史

Echidna's adoption followed smart-contract security practice: auditors and protocol developers needed fuzzing that understood Ethereum ABIs, Solidity assertions, build systems, and reproducible counterexamples. Its official docs live under the Building Secure Contracts material, placing it inside Trail of Bits/Crytic security education rather than only as a standalone CLI.

Distribution broadened beyond source builds. The README documents precompiled Linux and macOS binaries, Homebrew installation, Docker images hosted under the Crytic GitHub packages, and a GitHub Actions workflow through crytic/echidna-action. Homebrew installs Echidna with dependencies such as Slither and crytic-compile.

### 使用方式

Typical usage is to run echidna against a Solidity contract or project, define properties as echidna_-prefixed boolean functions, and let the fuzzer search for call sequences that falsify them. For modern projects, echidna . can use the current build framework through crytic-compile.

Configuration is commonly supplied through a YAML file passed with --config config.yaml. Users tune EVM and test-generation parameters, select test modes, collect corpora, and integrate results into text, JSON, or CI workflows.

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

Echidna is a good example of a specialized security CLI that packaging makes practical: the value is not a library import, but a reproducible executable with native dependencies, Solidity tooling, Slither, crytic-compile, solc management, and CI/container options all lined up.

It also shows the package-manager pressure created by blockchain tooling. Auditors want pinned versions for repeatable findings, while protocol teams want easy local installs and GitHub Actions coverage in fast-moving Solidity/Foundry/Hardhat projects.

### 时间线

- 2017: Public Echidna repository created.
- 2018: Early GitHub release artifacts published.
- 2019: Echidna 1.0.0.0 released.
- 2020: Echidna 1.3.0.0 release line visible on GitHub.
- 2026: Echidna 2.3.2 released, with active repository maintenance.

### Related projects

- Slither and crytic-compile are direct companion tools in the Crytic ecosystem.
- Foundry, Hardhat, and Truffle are supported build-system inputs.
- crytic/echidna-action and the official Docker images support CI and containerized adoption.

### 来源

- <https://github.com/crytic/echidna>
- <https://raw.githubusercontent.com/crytic/echidna/master/README.md>
- <https://secure-contracts.com/program-analysis/echidna/index.html>
- <https://secure-contracts.com/program-analysis/echidna/configuration.html>
- <https://github.com/crytic/echidna/releases>
- <https://api.github.com/repos/crytic/echidna>
- <https://github.com/crytic/echidna-action>


## 安全说明

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.yaml
## 其他软件包管理器记录

- Nix - echidna: normalized package name match | nixpkgs package indexes: pkgs/by-name/ec/echidna/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/echidna.yml](https://github.com/mxcl/pkgdb/blob/main/combined/echidna.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
