What problem does it solve?
It helps you avoid common and high-impact security flaws when writing, reviewing, or auditing Go code by enforcing safe patterns for injection, cryptography, filesystem access, network/web handling, cookies, secrets, memory safety, and secure logging.
Core Features & Use Cases
- Security review guidance for Go: threat-boundary thinking, STRIDE + DREAD prioritization, and a review-first workflow to trace findings through call paths.
- Injection & web vulnerability prevention: parameterized queries, safe command execution, XSS-safe HTML templating, SSRF defenses, and safe error handling.
- Cryptography, cookies, and secrets hardening: vetted primitives (e.g., AES-GCM, Argon2id), TLS guidance, secure cookie attributes, and rules to keep credentials out of source control and logs.
- Filesystem and network guardrails: path traversal protections (os.Root / safe fallbacks), ZipSlip checks, decompression-bomb mitigation, HTTP timeouts, and non-exposure of pprof.
- Use case: when building authentication and storage gateway endpoints, apply the skill’s checks so user-controlled inputs cannot turn into SQL injection, command injection, SSRF, path traversal, or credential leaks.
Quick Start
Use the golang-security skill to audit a Go service you’re implementing by requesting a sequential security review of the changed handlers and their data flows for injection, auth, secrets, crypto, filesystem, and logging risks.