Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, scoop 安装 tfsec

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tfsec

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install tfsec

MacPorts ports tree · security/tfsec/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#tfsec

nixpkgs package indexes · pkgs/by-name/tf/tfsec/package.nix · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install tfsec

Chocolatey community package catalog · tfsec · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/tfsec

Scoop official bucket manifest trees · bucket/tfsec.json · 来源: api.github.com

概览

软件包摘要

Static analysis security scanner for your terraform code

命令和别名

  • tfsec

历史

项目历史与用法

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.

时间线

  • 2023-02-18: Aqua announced that tfsec was joining the Trivy family and encouraged the community to transition to Trivy.
  • 2024-2025: The GitHub releases page shows continuing tfsec maintenance releases in the v1.28 series, including v1.28.14 on 2025-05-02.
  • 2026: The input metadata still records tfsec in multiple package managers, including Homebrew, Chocolatey, MacPorts, Nix, and Scoop.

Related projects

  • Trivy is the successor path recommended by Aqua for Terraform and broader misconfiguration scanning.
  • The README links related tfsec integrations including tfsec-pr-commenter-action, tfsec-sarif-action, the official Azure DevOps task, and editor plugins for JetBrains, VS Code, and Vim.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
.tfsec/config.json.tfsec/config.yml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tfseccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.28.14
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v1.28.14

https://github.com/aquasecurity/tfsec

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nametfsec
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

tfsec

nix profile install nixpkgs#tfsec
  • normalized package name match
  • 匹配方式:Tfsec
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tf/tfsec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

tfsec

sudo port install tfsec
  • normalized package name match
  • 匹配方式:Tfsec
MacPorts ports tree · api.github.com · MacPorts ports tree: security/tfsec/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

tfsec

choco install tfsec
  • normalized package name match
  • 匹配方式:Tfsec
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: tfsec from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','telegram.install'
Scoop95%

main/tfsec

scoop install main/tfsec
  • normalized package name match
  • 匹配方式:Tfsec
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/tfsec.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment