# Go security audit

> Go security audit is an open-source agent skill for security. Audits Go code for injection, auth, secrets, crypto and TLS flaws, reporting findings. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(safety)/go-security-audit
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-security-audit
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through a read-only security review of a Go codebase. It covers input validation, SQL and command injection, SSRF, path traversal, authentication and authorization, secret handling, cryptography, TLS, headers, cookies and CSRF, and it orders findings by severity with file and line references and a suggested fix. It offers three modes: a targeted check of one concern, a review of changed lines, and a full sweep that can split the work into independent passes.

The workflow starts by running govulncheck, gosec and go vet when they are installed, then combines their output with manual review of the logic that the scanners miss. Each suspicious sink is traced back to an entry point, and findings are rated as blockers, warnings or suggestions depending on whether the input is attacker-controlled. Detailed reference notes on injection, auth and transport, threat modelling and crypto are loaded only when needed.

The skill expects a Go project with the Go toolchain available. The scanners govulncheck, gosec and gitleaks are optional. Dependency CVE checks and concurrency review are handled by separate skills.

## When your agent uses it

> Security review for Go applications: input validation, SQL and command injection, SSRF, path traversal, auth, secrets, cryptography, TLS, CSRF and cookies, OWASP Top 10. Use when performing security reviews, checking for vulnerabilities, hardening Go services, or reviewing auth implementations. Trigger examples: "security review", "check vulnerabilities", "OWASP", "SQL injection", "input validation", "secrets management", "auth review". Not for: dependency CVEs (go-dependency-audit), concurrency safety (go-concurrency-review).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(safety)/go-security-audit)
- [Asks for: Read, Glob, Grep, Bash(go:*), Bash(gofmt:*), Bash(govulncheck:*), Bash(gosec:*), Bash(gitleaks:*)](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(safety)/go-security-audit/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(safety)/go-security-audit)

## Features

- **Injection review:** Checks SQL, command, SSRF, path traversal, archive and template injection paths from entry point to sink.
- **Auth and session checks:** Reviews password hashing, JWT validation, authorization middleware and per-user ownership checks.
- **Secrets handling:** Looks for hardcoded credentials, committed keys and secrets written to logs.
- **Cryptography audit:** Flags weak randomness, non-constant-time comparisons, unsafe ciphers and outdated hashes.
- **TLS and headers:** Reviews TLS settings, security headers, cookie flags, CSRF protection and CORS policy.
- **Severity-ranked report:** Produces findings with file and line, the exploit path and a fix, sorted by severity.

## Good for

- Review a Go HTTP service for SQL injection before a release
- Check an authentication middleware for JWT and authorization flaws
- Scan a Go repository for hardcoded secrets and leaked keys
- Audit a Go API for SSRF and path traversal risks
- Run a full OWASP-style security review of a Go backend

## Install

### Any agent

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

## FAQ

### Does Go security audit change my code?

No. It is read-only and reports findings without editing code.

### Which tools does Go security audit need?

The Go toolchain is required. govulncheck, gosec and gitleaks are optional, and the skill notes any that are missing and continues.

### When does Go security audit trigger?

It triggers on requests such as security review, OWASP, SQL injection, input validation, secrets management or auth review. Dependency CVE checks and concurrency safety are left to other skills.

### What does Go security audit check for auth?

It covers password hashing with bcrypt or argon2id, constant-time comparisons, JWT signature, expiry, issuer and audience checks, and per-request authorization including ownership.

### Does Go security audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Go security audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Go security audit?

The closest alternatives to Go security audit are Security review, Go dependency audit, Security review, Source code scanning and Security review edho ferdian.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Go dependency audit](https://ai-powered.com/skills/go-dependency-audit): Go dependency audit is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Security review edho ferdian](https://ai-powered.com/skills/security-review-edho-ferdian): Security review edho ferdian is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/go-security-audit
