# 使用 Homebrew 安装 threatcl

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

## 安装

```sh
sudo av install brew:threatcl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install threatcl
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:threatcl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/threatcl>
- **版本:** 0.6.5
- **来源摘要:** Documenting your Threat Models with HCL
- **主页:** <https://github.com/threatcl/threatcl>
- **仓库:** <https://github.com/threatcl/threatcl>
- **许可证:** MIT
- **源码归档:** <https://github.com/threatcl/threatcl/archive/refs/tags/v0.6.5.tar.gz>
- **最后更新:** 2026-08-01T13:15:26Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- threatcl (cli)
- threatcl (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.6.5
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://github.com/threatcl/threatcl
- 检测到的最新版本: v0.6.5 (当前)
## 项目历史与用法

threatcl is a command-line tool and HCL-based specification for documenting threat models in text files. The official README says the project was formerly named hcltm and was renamed to threatcl.

### 项目历史

The project frames threat modeling as a DevOps and version-control workflow: its README argues for a simple text-file format, a CLI-driven user experience, and integration with VCS. It builds on HashiCorp Configuration Language and the README explicitly connects that choice to Terraform familiarity and machine-readable structure.

### 采用历史

The official documentation positions threatcl for several installation and automation paths: Homebrew, Go install, Docker, and GitHub Actions. The README also documents release provenance through SLSA and GitHub attestations, which fits the security-tooling audience that may want to verify downloaded binaries and container images.

### 使用方式

Users write threat models in HCL, then use the CLI to validate, list, view, export, query, generate dashboards, render data-flow diagrams, parse Terraform output, or run a server. The optional `config.hcl` file can override default classifications, impact types, STRIDE elements, and dependency classifications.

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

For package nerds, threatcl is notable because it turns a security documentation practice into a normal source-controlled artifact with a CLI, Homebrew install, container image, GitHub Action, release attestations, and HCL syntax familiar to infrastructure engineers.

### 时间线

- Project README: hcltm is renamed to threatcl.
- Current README: documents Homebrew, Docker, GitHub Actions, SLSA attestations, HCL threat models, GraphQL queries, Terraform parsing, and optional config.hcl.
- Current docs site: documents Homebrew, Go, Docker, and GitHub Actions getting-started flows.

### Related projects

- Related projects and specifications include Terraform and HCL2, OWASP threat-modeling material, OpenThreatModel, go-dfd, GitHub Actions automation, and security-as-code workflows.

### 来源

- <https://github.com/threatcl/threatcl#readme - official README for rename from hcltm, goals, HCL basis, CLI commands, Homebrew install, release provenance, and config.hcl.>
- <https://threatcl.dev/ - official documentation site for getting started, Homebrew/Go/Docker/GitHub Actions installs, and example threat model.>


## 安全说明

没有找到 threatcl 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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.hcl
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** threatcl
- **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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, security.
- [libcap](https://pkg.so/zh-hans/brew/libcap/) - Shares pkgdb curated category or tags: cli, security.
- [nss](https://pkg.so/zh-hans/brew/nss/) - Shares pkgdb curated category or tags: cli, security.
- [pinentry](https://pkg.so/zh-hans/brew/pinentry/) - Shares pkgdb curated category or tags: cli, security.
- [libassuan](https://pkg.so/zh-hans/brew/libassuan/) - Shares pkgdb curated category or tags: cli, security.
- [cyrus-sasl](https://pkg.so/zh-hans/brew/cyrus-sasl/) - Shares pkgdb curated category or tags: cli, security.
- [cargo-deny](https://pkg.so/zh-hans/brew/cargo-deny/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, your.
- [feluda](https://pkg.so/zh-hans/brew/feluda/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, your.
- [gau](https://pkg.so/zh-hans/brew/gau/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, threat.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
