CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/gosec-go

Configures and runs gosec - Go-only SAST covering 40+ rule IDs (G101 hardcoded creds, G104 unhandled errors, G304 path traversal, G401 weak crypto, G601 memory aliasing) via Go AST + SSA taint tracking; `gosec ./...` scan, `#nosec G404 -- justification` suppression, `--fmt sarif|json|junit-xml|html`, golangci-lint integration. Use for a focused Go SAST wired into golangci-lint / CI. Go-only: for Python use bandit-python, for cross-language pattern SAST use semgrep-rules; to merge gosec findings with other scanners into one gate use multi-tool-finding-triage - not this for non-Go code.

75

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

rule-catalog.mdreferences/

gosec rule ID catalog

Per github.com/securego/gosec the common rule IDs. This is a lookup table for interpreting a finding's rule ID; the authoritative current list is emitted at runtime by gosec -list-rules.

RuleDescription
G101Hardcoded credentials
G102Bind to all interfaces (0.0.0.0)
G103Audit unsafe block (use of unsafe package)
G104Unhandled errors
G106SSH InsecureIgnoreHostKey
G107URL with potential SSRF
G201SQL query construction by string concat
G202SQL query construction by string format
G204Subprocess launched with variable
G301Poor file permissions on directory
G302Poor file permissions on file
G303Predictable temp-file name
G304File path traversal vulnerabilities
G305File traversal in tar archive
G401Weak cryptographic algorithms
G402TLS InsecureSkipVerify
G403RSA key length too short
G404Insecure random number generation
G501-G505Insecure crypto primitives (DES, MD5, RC4, SHA1)
G601Implicit memory aliasing in for-range
G602Slice bounds out of range

Prefix families at a glance: G1xx credential / injection / unsafe surface, G2xx SQL and subprocess construction, G3xx file and path handling, G4xx crypto and TLS misuse, G5xx insecure crypto primitives, G6xx Go memory and slice hazards.

Full list: gosec subcommand gosec -list-rules.

references

SKILL.md

tile.json