Go security checker
This report summarizes scanner evidence for securego/gosec, a Go project with 8,994 GitHub stars. SynthScan examined 71,585 lines of code across 297 source files, recording 85 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 77 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 85 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 85 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resolve.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | config.go | 41 | // NoSecRequireJustification global option requires a `-- justification` | COMMENT |
| LOW | analyzer.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | import_tracker.go | 1 | // Licensed under the Apache License, Version 2.0 (the "License"); | COMMENT |
| LOW | analyzer_test.go | 1 | // (c) Copyright 2024 Mercedes-Benz Tech Innovation GmbH | COMMENT |
| LOW | rule.go | 1 | // Licensed under the Apache License, Version 2.0 (the "License"); | COMMENT |
| LOW | helpers.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | call_list.go | 1 | // | COMMENT |
| LOW | cmd/gosecutil/tools.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | cmd/gosec/main.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | analyzers/tls_resumption_verifypeer.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/dependency_checker.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/analyzerslist_test.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/pathtraversal.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/conversion_overflow.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/insecure_cookie.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/redirect_header_propagation.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/cors_bypass_pattern.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/loginjection.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/xss.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/smtpinjection.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/hardcoded_nonce.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/slice_bounds.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/slice_bounds.go | 1081 | if _, ok := c.Type().Underlying().(*types.Slice); !ok { | COMMENT |
| LOW | analyzers/util.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/ssh_callback.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/ssrf.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/unsafe_deserialization.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/unsafe_deserialization.go | 21 | ) | COMMENT |
| LOW | analyzers/analyzers_set.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/range_analyzer.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/commandinjection.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/analyzerslist.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/form_parsing_limits.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/form_parsing_limits.go | 21 | ) | COMMENT |
| LOW | analyzers/ssti.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/ssti.go | 21 | ) | COMMENT |
| LOW | analyzers/openredirect.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/sqlinjection.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/context_propagation.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/context_propagation.go | 741 | // Check if the struct containing this field is returned, | COMMENT |
| LOW | analyzers/request_smuggling.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/walk_symlink_race.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | analyzers/slice_bounds_test.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | taint/taint.go | 21 | "golang.org/x/tools/go/ssa" | COMMENT |
| LOW | taint/taint.go | 81 | // Pointer indicates whether the receiver is a pointer type (true for *Type methods) | COMMENT |
| LOW | taint/taint.go | 901 | COMMENT | |
| LOW | taint/taint.go | 941 | // fn.Params already includes the receiver, so paramIdx is correct | COMMENT |
| LOW | issue/issue.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | goanalysis/analyzer_internal_test.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | goanalysis/analyzer.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | goanalysis/analyzer_test.go | 1 | // (c) Copyright gosec's authors | COMMENT |
| LOW | rules/tempfiles.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/slowloris.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/integer_overflow.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/blocklist.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/decompression_bomb.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/rsa.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/weakcrypto.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| LOW | rules/subproc.go | 1 | // (c) Copyright 2016 Hewlett Packard Enterprise Development LP | COMMENT |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | taint/analyzer_internal_test.go | 205 | // ── lookupNamedType ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | taint/analyzer_internal_test.go | 282 | // ── guardsSatisfied ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | taint/analyzer_internal_test.go | 385 | // ── resolveOriginalType ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | taint/analyzer_internal_test.go | 779 | // ── mayHaveExternalCallers ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | taint/analyzer_internal_test.go | 911 | // ── isParameterTainted entry-point logic ──────────────────────────────────── | COMMENT |
| MEDIUM | testutils/g706_samples.go | 7 | // ── slog regression tests (issue #1622) ────────────────────────────────── | COMMENT |
| MEDIUM | testutils/g706_samples.go | 7 | // ── slog regression tests (issue #1622) ────────────────────────────────── | COMMENT |
| MEDIUM | testutils/g706_samples.go | 234 | // ── original test cases ─────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | DEVELOPMENT.md | 211 | ## AI-generated rule workflow (Copilot) | COMMENT |
| HIGH | DEVELOPMENT.md | 247 | ## AI-generated bug fix workflow (Copilot) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | USERS.md | 13 | 7. [Guardalis](https://www.guardrails.io/) | CODE |
| MEDIUM | DEVELOPMENT.md | 276 | ### Expected implementation guardrails | COMMENT |