Find secrets with Gitleaks 🔑
This report summarizes scanner evidence for gitleaks/gitleaks, a Go project with 30,538 GitHub stars. SynthScan examined 27,340 lines of code across 297 source files, recording 50 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 2.3 (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? 23 finding(s).
Are imports declared and package/API names verified? 24 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 50 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 50 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 | detect/detect_test.go | 955 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 976 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 997 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1018 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1039 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1060 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1081 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1102 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1123 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1144 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1165 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1186 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1207 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1228 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1249 | Email: "user@example.com", | CODE |
| LOW | detect/detect_test.go | 1270 | Email: "user@example.com", | CODE |
| LOW | testdata/expected/report/json_simple.json | 15 | "Author": "John Doe", | CODE |
| LOW | testdata/expected/report/template_jsonextra.json | 15 | "Author": "John Doe", | CODE |
| LOW | report/template_test.go | 36 | Author: "John Doe", | CODE |
| LOW | report/template_test.go | 61 | Author: "John Doe", | CODE |
| LOW | report/json_test.go | 25 | Author: "John Doe", | CODE |
| LOW | report/junit_test.go | 36 | Author: "John Doe", | CODE |
| LOW | report/csv_test.go | 35 | Author: "John Doe", | CODE |
| LOW | report/sarif_test.go | 40 | Author: "John Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 241 | COMMENT | |
| LOW | README.md | 261 | # appended and can contain duplicates. | COMMENT |
| LOW | detect/detect_test.go | 61 | secret=6465636F6465642D7365637265742D76616C756576484558 | COMMENT |
| LOW | detect/reader.go | 41 | // StreamDetectReader streams the detection results from the provided io.Reader. | COMMENT |
| LOW | detect/reader.go | 61 | // findingsCh, errCh := detector.StreamDetectReader(myReader, 64) // using 64 KB buffer size | COMMENT |
| LOW | cmd/detect.go | 1 | // The `detect` and `protect` command is now deprecated. Here are some equivalent commands | COMMENT |
| LOW | cmd/generate/config/utils/generate.go | 121 | // TODO: "php - null coalesce": `${i}Token ??= "{s}"`, | COMMENT |
| LOW | cmd/generate/config/rules/curl.go | 121 | // Short flag. | COMMENT |
| LOW | cmd/generate/config/rules/1password.go | 41 | return utils.Validate(r, tps, fps) | COMMENT |
| LOW | cmd/generate/config/rules/sentry.go | 21 | }, | COMMENT |
| LOW | cmd/generate/config/base/config.go | 41 | // ----------- Interpolated Variables ----------- | COMMENT |
| LOW | config/gitleaks.toml | 1 | # This file has been auto-generated. Do not edit manually. | COMMENT |
| LOW | config/allowlist.go | 41 | COMMENT | |
| LOW | scripts/profile.sh | 1 | #! /usr/bin/env bash | COMMENT |
| LOW | sources/git_test.go | 1 | package sources | COMMENT |
| LOW | sources/git_test.go | 21 | // source: filepath.Join(repoBasePath, "small"), | COMMENT |
| LOW | sources/git_test.go | 41 | // } | COMMENT |
| LOW | sources/git_test.go | 61 | // t.Error("expected: ", expected, "got: ", diffSb.String()) | COMMENT |
| LOW | sources/git_test.go | 81 | // err := moveDotGit("dotGit", ".git") | COMMENT |
| LOW | sources/git_test.go | 101 | COMMENT | |
| LOW | sources/git_test.go | 121 | COMMENT | |
| LOW | sources/git_test.go | 141 | // os.RemoveAll(fmt.Sprintf("%s/%s/%s", repoBasePath, dir.Name(), ".git")) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | testdata/config/valid/rule_entropy_group.toml | 0 | (?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{64})['\"] | STRING |
| HIGH | testdata/config/invalid/rule_bad_entropy_group.toml | 0 | (?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{64})['\"] | STRING |
| HIGH | testdata/config/invalid/rule_missing_id.toml | 0 | (?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{64})['\"] | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/generate/config/rules/huggingface.go | 105 | `def test_internal_api_org_inclusion_with_href(api_name, href, expected, monkeypatch, called_with): | CODE |