Go security checker for scanning Go AST and SSA code
Top 6.2% on sourcepulse
gosec is a Go security checker that inspects source code for security vulnerabilities by analyzing the Go Abstract Syntax Tree (AST) and Static Single Assignment (SSA) representations. It helps developers identify and mitigate common security risks in their Go applications, supporting integration with CI/CD pipelines and offering various output formats for reporting.
How It Works
gosec scans Go source code by parsing it into an AST and then into an SSA representation. This allows for deeper analysis of code flow and data propagation, enabling the detection of a wide range of security issues, from hardcoded credentials and insecure TLS configurations to potential denial-of-service vulnerabilities and improper file permissions. Its rule-based approach is extensible, with a comprehensive list of checks mapped to CWEs.
Quick Start & Requirements
go install github.com/securego/gosec/v2/cmd/gosec@latest
or using the provided install script.Highlighted Details
Maintenance & Community
CONTRIBUTING.md
.Licensing & Compatibility
Limitations & Caveats
#nosec
comments or configuration.5 days ago
1 day