macOS
brew install tfseclocal Homebrew formula metadata
sudo port install tfsecMacPorts ports tree · security/tfsec/Portfile · 来源: api.github.com
安装
brew install tfseclocal Homebrew formula metadata
sudo port install tfsecMacPorts ports tree · security/tfsec/Portfile · 来源: api.github.com
nix profile install nixpkgs#tfsecnixpkgs package indexes · pkgs/by-name/tf/tfsec/package.nix · 来源: api.github.com
choco install tfsecChocolatey community package catalog · tfsec · 来源: community.chocolatey.org
scoop install main/tfsecScoop official bucket manifest trees · bucket/tfsec.json · 来源: api.github.com
概览
Static analysis security scanner for your terraform code
历史
tfsec is an Aqua Security command-line scanner for finding security misconfigurations in Terraform code. Its official README describes it as a static-analysis tool for Terraform and lists broad cloud-provider coverage, hundreds of built-in rules, multiple report formats, CI usage, Docker images, editor integrations, GitHub Actions, and Azure DevOps integration.
In 2023 Aqua announced that tfsec was joining the Trivy family. The project remained available, but Aqua directed users toward Trivy for ongoing engineering attention and a broader scanner ecosystem.
The project grew around Terraform-specific static analysis: scanning local and remote modules, evaluating HCL expressions and Terraform functions, checking relationships between Terraform resources, supporting Terraform CDK, and allowing user-defined Rego policies.
Aqua's tfsec-to-Trivy migration material frames tfsec as one of the foundations of Trivy's infrastructure-as-code and misconfiguration scanning support. The migration guide maps common tfsec commands to Trivy equivalents, such as replacing `tfsec <dir>` with `trivy config <dir>`.
The official README documents package-manager and binary distribution through Homebrew/Linuxbrew, Chocolatey, Scoop, Go install, release binaries, and Docker images. The input metadata also records Homebrew, Chocolatey, MacPorts, Nix, and Scoop packaging.
The README cites Thoughtworks Tech Radar's Adopt rating and describes tfsec as a default static-analysis tool for Terraform in Thoughtworks projects. Aqua's 2023 announcement shows the adoption inflection point: the Terraform scanning engine moved into the wider Trivy product and community path while tfsec stayed available.
The usual package-nerd workflow was `brew install tfsec` followed by `tfsec .` in a Terraform repository. The tool exits non-zero when it finds problems, which made it natural for CI gates.
tfsec supported machine-readable output such as JSON, SARIF, CSV, Checkstyle, and JUnit, plus GitHub Security Alerts via SARIF upload. It also supported inline ignore comments such as `tfsec:ignore:<rule>`, expiry dates for ignores, tfvars input, custom checks under `.tfsec`, and a root `.tfsec/config.json` or `.tfsec/config.yml` config file.
For Homebrew and other package-manager users, tfsec was a compact example of an IaC security tool that could be installed as a single CLI and dropped into editors, hooks, and CI without a service dependency.
Its later migration into Trivy is significant for package catalogs because it marks a common lifecycle for niche security CLIs: first a focused Terraform scanner, then an engine folded into a broader multi-surface scanner while the old binary remains packaged for existing automation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.tfsec/config.json.tfsec/config.yml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tfsec | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/aquasecurity/tfsec
安装元数据
| 软件包键 | brew:tfsec |
|---|---|
| 版本 | 1.28.14 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/tfsec |
| 主页 | https://aquasecurity.github.io/tfsec/latest/ |
| 仓库 | https://github.com/aquasecurity/tfsec |
| 上游文档 | https://aquasecurity.github.io/tfsec/latest |
| 许可证 | MIT |
| 源码归档 | https://github.com/aquasecurity/tfsec/archive/refs/tags/v1.28.14.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tfsec |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
tfsec
nix profile install nixpkgs#tfsectfsec
sudo port install tfsectfsec
choco install tfsecmain/tfsec
scoop install main/tfsec来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.