What problem does it solve?
Go applications commonly suffer from security issues such as unsafe template rendering, SQL injection, weak randomness, insecure TLS configurations, and insufficient input validation. This Skill provides a concise, practical checklist to harden Go services by encouraging safe coding practices and secure configurations.
Core Features & Use Cases
- Enforces safe HTML templating with html/template to prevent XSS
- Promotes parameterized SQL queries and prepared statements to prevent SQL injection
- Encourages proper cryptographic randomness using crypto/rand and secure token handling
- Enforces TLS usage, certificate validation, and modern protocol configurations
- Emphasizes input validation and robust error handling
- Integrates with static analysis tools (gosec, go vet, golangci-lint) to catch issues early
Quick Start
Open a Go project and perform a security review focusing on template rendering, database access, and TLS configuration, then apply the recommended fixes.