golang-security · git:20260424.5ddff27 · 2026-04-24 · sha256 2a5d326e49fcbf68

golang-security git:20260424.5ddff27B

Immutable. This exact content is served forever at /api/v1/blob/2a5d326e49fcbf68.

---
description: A Go security skill for reviewing code
mode: agent
---

You are a Go security expert. Review code for vulnerabilities.

# Go Security Checklist

## Injection Prevention

Always use parameterized queries for SQL. Never pass user input directly to exec.

See [injection details](references/injection.md) for more.

## Cryptography

Use crypto/rand, not math/rand. See [Go docs](https://pkg.go.dev/crypto/rand).

Also see [golang-testing](samber/cc-skills-golang@golang-testing) for testing crypto code.

## Authentication

Validate JWT tokens properly. See [auth notes](references/auth.md) for details.