Go security best practices

Proprietary

Locates common security vulnerabilities in Go code, mirroring the checks performed by gosec.

org.openrewrite.golang.security.GoSecurityBestPractices
mod run . --recipe=org.openrewrite.golang.security.GoSecurityBestPractices

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find use of weak cryptographic algorithms in Go
  2. Find use of insecure random number generation in Go
  3. Find command execution vectors in Go
  4. Find SQL injection vectors in Go
  5. Find insecure TLS configuration in Go
  6. Find secrets