What problem does it solve?
This Skill helps you avoid common security vulnerabilities in Go by guiding secure patterns for input handling, cryptography, filesystem access, networking, cookies, secrets management, memory/concurrency safety, and secure logging.
Core Features & Use Cases
- Injection prevention: Use safe practices for SQL, command execution, templates (XSS), and SSRF so untrusted inputs can’t alter code paths.
- Crypto and secrets hardening: Apply vetted algorithms, secure randomness, safe nonce handling, and correct key/password and session/token practices.
- Filesystem and network safety: Confine file operations to allowed roots, prevent ZipSlip/decompression bombs, and harden HTTP/TLS behavior while keeping debug endpoints private.
- Operational guardrails: Add security headers, enforce request limits/timeouts/rate limiting, and verify dependencies with tools like govulncheck.
Quick Start
Use the golang-security skill while reviewing or writing your Go code to systematically check trust boundaries, validate inputs, and apply defense-in-depth for authentication, authorization, and risky I/O.