gosec
Golang security checker that inspects source code by scanning the Go Abstract Syntax Tree (AST).
Why consider gosec?
gosec is an open-source static application security testing (SAST) tool written in Go by the SecureGo team. gosec inspects Go source code AST nodes against predefined security rules, identifying hardcoded credentials, SQL injections, insecure cryptographic algorithms, and unhandled errors.
Learn gosec by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of gosec
gosec scans Go codebases for security vulnerabilities during continuous integration runs.
Quickstart
go install github.com/securego/gosec/v2/cmd/gosec@latestgosec ./...gosec is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.