# gosec

> Go security checker

Source: https://talira.ai/catalog/gosec-gjvttnaj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [security / static analysis](https://talira.ai/categories/security/static-analysis), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [Secure Go](https://talira.ai/orgs/securego.md)

gosec is a static analysis security checker for [Go](https://talira.ai/catalog/go-ed2kmsvk.md) code: it inspects the Go AST and SSA representation for security problems. Pattern-based rules catch common issues, SSA analyzers check type conversions, slice bounds and cryptography, and taint analysis tracks data from user input to dangerous functions to find SQL and command injection, path traversal, SSRF, XSS, log and SMTP injection, template injection, unsafe deserialization and open redirects. You can select rules, and it reports as text, JSON, YAML, CSV, JUnit XML, HTML, SonarQube, golint or SARIF, which uploads to GitHub code scanning from its GitHub Action.

## Links

- Website: https://securego.io/
- GitHub: https://github.com/securego/gosec

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/gosec>[^1]

## Problems it solves

- scan my Go code for security vulnerabilities
- find SQL injection and command injection in a Go codebase
- add a Go security check to CI with SARIF results in GitHub
- static analysis security testing for Go

## Features

- AST and SSA analysis
- taint analysis for injection flaws
- rule selection
- SARIF, JSON, JUnit and more outputs
- GitHub Action

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Secure Go

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Semgrep](https://talira.ai/catalog/semgrep-v0kqhvdn.md): Code security: SAST, supply chain and secrets scanning with rules that look like code
- [Brakeman](https://talira.ai/catalog/brakeman-9trdwbpm.md): A static analysis security vulnerability scanner for Ruby on Rails applications
- [CodeQL](https://talira.ai/catalog/codeql-8rqre4qe.md): GitHub's semantic code analysis engine for finding vulnerabilities
- [Checkov](https://talira.ai/catalog/checkov-x7fvaqw4.md): Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages
- [Snyk](https://talira.ai/catalog/snyk-sw1313nn.md): Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
- [SonarQube](https://talira.ai/catalog/sonarqube-hv6cp5td.md): Code confidence for the agentic software factory

## Sources

[^1]: https://formulae.brew.sh/formula/gosec (checked 24 Nov 2026)
[^2]: https://github.com/securego/gosec/blob/master/LICENSE.txt (checked 24 Nov 2026)
