macOS
brew install goseclocal Homebrew formula metadata
sudo port install gosecMacPorts ports tree · security/gosec/Portfile · ソース: api.github.com
brew
gosec のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install goseclocal Homebrew formula metadata
sudo port install gosecMacPorts ports tree · security/gosec/Portfile · ソース: api.github.com
sudo apk add gosecAlpine Linux edge package indexes · gosec · ソース: dl-cdn.alpinelinux.org
sudo dnf install gosecFedora Rawhide package metadata · gosec · ソース: dl.fedoraproject.org
nix profile install nixpkgs#gosecnixpkgs package indexes · pkgs/by-name/go/gosec/package.nix · ソース: api.github.com
sudo zypper install gosecopenSUSE Tumbleweed package metadata · gosec · ソース: download.opensuse.org
scoop install main/gosecScoop official bucket manifest trees · bucket/gosec.json · ソース: api.github.com
概要
Golang security checker
履歴
gosec is the SecureGo project's static security scanner for Go source code, using AST, SSA, and taint-analysis rules to find common vulnerability patterns before code ships.
The GitHub repository was created on July 18, 2016. Its README describes gosec as a Go security checker that inspects source code by scanning Go AST and SSA representations, while SecureGo's tools page frames the project as a way to programmatically enforce Secure Go guidelines.
Over time the project expanded from pattern-style checks into a broader rule catalog. Official rule documentation groups findings by general secure coding, injection, filesystem permissions, crypto and protocol security, import blocklists, language/runtime safety, and taint analysis. The README also documents CWE mapping, SARIF output, GitHub Action usage, Go analysis integration, and configurable global and per-rule settings.
gosec became a standard Go security linter because it fits normal Go and CI workflows: go install for local use, a GitHub Action for repository scanning, SARIF output for GitHub code scanning, and package-manager distribution through apk, Homebrew, dnf, MacPorts, Nix, Scoop, and zypper according to the input package facts.
The project sits in the same practical lane as go vet and staticcheck but focuses on security-sensitive APIs and data flows. Its CII Best Practices badge, GitHub Action, Go analysis package, and package-manager coverage made it accessible both to individual Go developers and to teams wiring security checks into CI.
The basic local workflow is gosec ./..., with options for JSON or SARIF reports, selected rule inclusion or exclusion, and a config.json file passed through -conf. CI workflows often run securego/gosec as an action and upload SARIF to GitHub code scanning.
gosec rules include hardcoded credentials, unchecked errors, unsafe usage, SQL and command injection patterns, archive/path traversal risks, TLS and crypto weaknesses, blocklisted imports, integer/slice issues, and taint-analysis checks for SQL injection, command injection, SSRF, XSS, log injection, SMTP injection, server-side template injection, unsafe deserialization, and open redirects.
For package maintainers, gosec is important because it is easy to add as a single CLI check across Go packages without adopting a SaaS scanner. It gives distro and CI users a reproducible local executable, machine-readable output, CWE mappings, and a documented config file.
Its package-manager footprint also matters: a security scanner being available from Homebrew, Linux distro channels, Nix, Scoop, and container/GitHub Action paths means the same scanner can be used by laptop developers, CI jobs, and release pipelines.
セキュリティ状態
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.
config.json実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
gosec | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/securego/gosec
インストールメタデータ
| パッケージキー | brew:gosec |
|---|---|
| バージョン | 2.28.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gosec |
| ホームページ | https://securego.io/ |
| リポジトリ | https://github.com/securego/gosec |
| 上流ドキュメント | https://github.com/securego/gosec#readme |
| ライセンス | Apache-2.0 |
| ソースアーカイブ | https://github.com/securego/gosec/archive/refs/tags/v2.28.0.tar.gz |
| 最終更新 | 2026-07-14T12:15:33Z |
| Pulse | updated |
| 依存関係 | go |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gosec |
| 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 パッケージリンクとは分けて表示されます。
gosec
nix profile install nixpkgs#gosecgosec 2.23.0-r3
Go source code static analyzer, focusing on security
https://github.com/securego/gosec
sudo apk add gosecgosec 2.27.1-1.fc45
Go security checker
https://github.com/securego/gosec
sudo dnf install gosecgosec 2.27.1-1.1
CLI tool to scan the Go AST and SSA code representations for security problems
https://github.com/securego/gosec
sudo zypper install gosecgosec
sudo port install gosecmain/gosec
scoop install main/gosecソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.