go/security

Free catalog · v0.0.23

Reviews Go trust boundaries, authentication, cryptography, transport security, and secret handling.

Checks

RuleSeverityScans for
go-security.archive.zip-slipHighZip/tar entry names joined and written without confinement
go-security.attestation.null-subject-skipMediumA signed-attestation or statement verifier encounters a nil subject element and uses continue instead of rejecting the malformed statement
go-security.cmd.shellCriticalShell invoked as sh/bash with -c
go-security.cookie.auth-httponlyHighAn authentication cookie is readable by browser scripts
go-security.credential-file-modeHighCredential-related writes with group/world-readable modes
go-security.crypto.constant-timeMediumWebhook credential uses a variable-time comparison
go-security.crypto.hardcoded-keyCriticalHardcoded key material at cipher construction
go-security.crypto.math-randHighmath/rand used where security-sensitive tokens/keys/nonces/sessions are nearby
go-security.crypto.static-nonceHighStatic or zeroed nonce/IV near AEAD/stream use
go-security.jwt-validationHighJWT parse without an explicit accepted-algorithm constraint
go-security.path.symlink-escapeHighos.Lstat plus a ModeSymlink check is the only symlink gate before a mount or open
go-security.path.traversalHighfilepath.Join / path.Join of dynamic segments opened without root confinement
go-security.pkg.signature-bypassHighA global package-manager flag disables signature verification
go-security.pprof.exposedHighnet/http/pprof imported / registered with public listen patterns
go-security.secret-command-outputHighPrinting raw output from secret-bearing CLI tools
go-security.secret-loggingHighLogs include token / password / authorization / secret-like fields
go-security.secret-on-argvHighSecret-like flags/values on subprocess argv
go-security.sql.string-concatCriticalSQL built with fmt.Sprintf or string concatenation into Query/Exec APIs
go-security.tls-verificationCriticalTLS config sets InsecureSkipVerify: true
go-security.tls.insecure-skip-verifyCriticalTLS InsecureSkipVerify enabled
go-security.token-in-urlHighCredentials embedded in a URL authority/path, or a secret-bearing HTTP query exposed through request errors/logging

More from the registry