# 使用 Homebrew 安装 caracal

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

## 安装

```sh
sudo av install brew:caracal
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install caracal
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:caracal
- **软件包管理器:** Homebrew
- **版本:** 0.2.3
- **来源摘要:** Static analyzer for Starknet smart contracts
- **主页:** <https://github.com/crytic/caracal>
- **仓库:** <https://github.com/crytic/caracal>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- caracal (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Caracal is a Rust command-line static analyzer for Starknet smart contracts, working over Cairo's SIERRA representation to run vulnerability detectors, printers, taint analysis, and data-flow analysis.

### 项目历史

Caracal was created in the Crytic GitHub organization in January 2023. The Crytic organization describes itself as blockchain security by Trail of Bits, placing Caracal in the same family of security analysis tooling as other Crytic projects.

The README describes Caracal as a static analyzer over SIERRA for Starknet smart contracts. It supports standalone Cairo files, Cairo projects, and Scarb projects, with precompiled binaries published on GitHub releases.

### 采用历史

Caracal's public adoption is narrower than general-purpose static analyzers because it targets the Starknet/Cairo ecosystem. Its first GitHub release, v0.1.0, appeared in July 2023, followed by 0.2.x releases for Cairo compiler 2.x support.

The Homebrew formula packages the caracal CLI, making it convenient for auditors and developers on macOS to run the same detector list documented in the upstream README.

### 使用方式

Users run caracal detectors to list available detectors, caracal printers to list printers, caracal detect to analyze standalone files or projects, and caracal print to export information such as CFGs and call graphs.

For Scarb projects, the README instructs users to enable SIERRA output in Scarb.toml before running Caracal. For standalone analysis with a bundled compiler, users may need to provide Cairo corelib with --corelib or CORELIB_PATH.

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

Caracal is package-nerd interesting as a young blockchain-security analyzer where the package boundary includes a Rust CLI, Cairo compiler dependencies, SIERRA compatibility, and smart-contract audit workflows.

It also shows how quickly niche language ecosystems produce packageable analyzers once the compiler exposes a stable intermediate representation.

### 时间线

- 2023-01: crytic/caracal repository is created on GitHub.
- 2023-07: Caracal v0.1.0 is published.
- 2023-08: v0.2.0 is published for the Cairo compiler 2.x line.
- 2024-01: v0.2.3 is published, matching the version in Cargo.toml.
- 2026: Homebrew formula metadata still identifies Caracal as a Starknet smart-contract static analyzer.

### Related projects

- Cairo and the cairo-lang compiler crates are direct dependencies named in Caracal's Cargo.toml.
- Starknet is the smart-contract platform Caracal targets.
- Scarb is the Cairo package/build tool flow documented by Caracal.
- Crytic and Trail of Bits provide the security-tooling context for the project.

### 来源

- <https://api.github.com/orgs/crytic>
- <https://api.github.com/repos/crytic/caracal>
- <https://api.github.com/repos/crytic/caracal/releases>
- <https://github.com/crytic/caracal>
- <https://github.com/crytic/caracal/blob/master/Cargo.toml>
- <https://github.com/crytic/caracal/blob/master/README.md>


## 安全说明

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/caracal.yml](https://github.com/mxcl/pkgdb/blob/main/combined/caracal.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
