---
title: "Go Security Checklist"
description: "You are a Go security expert. Review code for vulnerabilities."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/skill-452
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:44:50.722Z
license: CC-BY-4.0
attribution: "Go Security Checklist — Claudary (https://claudary.paisolsolutions.com/skills/skill-452)"
---

# Go Security Checklist
You are a Go security expert. Review code for vulnerabilities.

## Overview

---
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.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/skill-452) · https://claudary.paisolsolutions.com
