AI Slop Code Risk Monitor

trufflesecurity/trufflehog

SlopCodeMonitor badge for trufflesecurity/trufflehog Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Find, verify, and analyze leaked credentials

0.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for trufflesecurity/trufflehog, a Go project with 28,792 GitHub stars. SynthScan examined 529,152 lines of code across 3547 source files, recording 405 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 0.8 (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.

0.8
Adjusted Signal
0.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
28.8K
Stars
Go
Language
529.2K
Lines of Code
3.5K
Files
405
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 2.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 247 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.5/100 · LOW

Are imports declared and package/API names verified? 156 finding(s).

Agent Over-Engineering Ratio 0.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 3 finding(s).

PR Review Velocity Impact 4.1/100 · LOW

Which changes need focused human review? 405 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 4MEDIUM 11LOW 390

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 405 distinct pattern matches across 11 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.

Fake / Example Data152 hits · 134 pts
SeverityFileLineSnippetContext
LOW⚡examples/generic_config_secrets.yml36 - "placeholder"CODE
LOWpkg/sources/json_enumerator/json_enumerator_test.go173 "AndroidManifest.xml": "placeholder",CODE
LOWpkg/sources/json_enumerator/json_enumerator_test.go174 "classes.dex": "placeholder",CODE
LOWpkg/sources/gitlab/gitlab.go445 user = "placeholder"CODE
LOWpkg/sources/gitlab/gitlab.go994 // Not setting "placeholder" as s.user on purpose in case any downstream services rely on a "" value for s.user.COMMENT
LOWpkg/sources/gitlab/gitlab.go997 user = "placeholder"CODE
LOWpkg/sources/gitlab/gitlab.go1140 // Not setting "placeholder" as s.user on purpose in case any downstream services rely on a "" value for s.user.COMMENT
LOWpkg/sources/gitlab/gitlab.go1143 user = "placeholder"CODE
LOWpkg/detectors/salescookie/salescookie.go49 payload := strings.NewReader(`{"date":"2021-07-04T02:47:42.1442597Z","uniqueId":"id-123","revenue":1.3,"profit":-2.5,CODE
LOWpkg/detectors/salescookie/salescookie.go49 payload := strings.NewReader(`{"date":"2021-07-04T02:47:42.1442597Z","uniqueId":"id-123","revenue":1.3,"profit":-2.5,CODE
LOWpkg/detectors/jiratoken/v1/jiratoken_test.go281 verified, err := VerifyJiraToken(context.Background(), client, "user@example.com", "example.atlassian.net", validTokeCODE
LOWpkg/detectors/composio/composio_test.go58 {name: "placeholder", input: "COMPOSIO_API_KEY=ak_test", want: []string{}},CODE
LOWpkg/engine/postman_test.go23 Token: "dummy_key",CODE
LOWpkg/engine/ahocorasick/ahocorasickcore_test.go239 Lorem ipsum dolor sit met, consectetur dipiscing elit. Sed uctor,CODE
LOWpkg/engine/ahocorasick/ahocorasickcore_test.go283 Lorem ipsum dolor sit met, consectetur dipiscing elit. Sed uctor,CODE
LOWpkg/handlers/apk_content_detection_test.go35 _, err = w.Write([]byte("placeholder"))CODE
LOW⚡pkg/handlers/testdata/nonarchive.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt4Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt4Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt6Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt6Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt7Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt7Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt8Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt8Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt9Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt9Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt10Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt10Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt11Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt11Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt12Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt12Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt13Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt13Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt14Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt14Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt15Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt15Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt16Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt16Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt17Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt17Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt18Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt18Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt19Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt19Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt20Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt20Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt21Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt21Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt22Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
LOW⚡pkg/handlers/testdata/nonarchive.txt22Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, aCODE
92 more matches not shown…
Structural Annotation Overuse133 hits · 134 pts
SeverityFileLineSnippetContext
LOWpkg/sources/sources.go556// NOTE: This method should be used over SetProgressComplete when the source doesCOMMENT
LOWpkg/detectors/exchangerateapi/exchangerateapi_test.go30 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/elasticemail/elasticemail_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/databrickstoken/databrickstoken_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/campayn/campayn_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/envoyapikey/envoyapikey_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/cashboard/cashboard_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/capsulecrm/capsulecrm_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/conversiontools/conversiontools_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/dwolla/dwolla_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/duply/duply_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/closecrm/close_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/calendlyapikey/calendlyapikey_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/confluent/confluent_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/discordbottoken/discordbottoken_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/cexio/cexio_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/courier/courier_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOW…/detectors/digitaloceantoken/digitaloceantoken_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOW…ctors/cloudflareapitoken/v1/cloudflareapitoken_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/diggernaut/diggernaut_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/docusign/docusign_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/deepai/deepai_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/calorieninja/calorieninja_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/ethplorer/ethplorer_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/currencylayer/currencylayer_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/cannyio/cannyio_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/coinlib/coinlib_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/enigma/enigma_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/clickhelp/clickhelp_test.go30 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/docparser/docparser_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/coinapi/coinapi_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/droneci/droneci_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/chatbot/chatbot_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/exchangeratesapi/exchangeratesapi_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/currentsapi/currentsapi_test.go30 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/codeclimate/codeclimate_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/debounce/debounce_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/clockworksms/clockworksms_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/cloudflarecakey/cloudflarecakey_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/dnscheck/dnscheck_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/circleci/v1/circleci_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/circleci/v2/circleci_test.go30 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/commodities/commodities_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/censys/censys_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/copper/copper_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/convertkit/convertkit_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/dronahq/dronahq_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/detectify/detectify_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/datagov/datagov_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/deepgram/deepgram_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/diffbot/diffbot_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/discordwebhook/discordwebhook_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/discordwebhook/discordwebhook_test.go41 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/documo/documo_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/doppler/doppler_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/column/column_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/edamam/edamam_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/clearbit/clearbit_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/demio/demio_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
LOWpkg/detectors/checkout/checkout_test.go20 password: $DB_PASS # IMPORTANT: Do not share this password publiclyCODE
73 more matches not shown…
Over-Commented Block100 hits · 100 pts
SeverityFileLineSnippetContext
LOWhack/checksecretparts/main.go1// checksecretparts is a static analysis tool that finds detector packagesCOMMENT
LOWhack/snifftest/snifftest.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/test/detect_changed_detectors.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/test/detect_changed_detectors.sh21# between the two refs. A detector imported at HEAD but not at BASE is new.COMMENT
LOW.github/workflows/release.yml41 - name: Cosign installCOMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWpkg/ssrf/ssrf.go1// Package ssrf guards outbound connections whose destinations are taken fromCOMMENT
LOWpkg/ssrf/ssrf.go121 // To4() normalization in IsNonPublicIP, not by a CIDR here, because aCOMMENT
LOWpkg/pb/source_metadatapb/source_metadata.pb.go3661 // *MetaData_EcrCOMMENT
LOWpkg/pb/source_metadatapb/source_metadata.pb.go3681 // *MetaData_GoogleDriveCOMMENT
LOWpkg/verificationcache/metrics_reporter.go21COMMENT
LOWpkg/verificationcache/metrics_reporter.go41// FromData(verify=true) pass, including its regex pass: detectors that do not implement detectors.ResultVerifier,COMMENT
LOWpkg/verificationcache/verification_cache.go61// FromData is a cache-aware facade in front of the provided detector's FromData method.COMMENT
LOWpkg/custom_detectors/custom_detectors.go21 "github.com/trufflesecurity/trufflehog/v3/pkg/pb/custom_detectorspb"COMMENT
LOWpkg/custom_detectors/custom_detectors.go161 // Find all submatches for each regex.COMMENT
LOWpkg/custom_detectors/custom_detectors.go301 result.SecretParts[key] = secretCOMMENT
LOWpkg/gitparse/gitparse.go41 // The hashes are fed in on stdin rather than as arguments, so a group is notCOMMENT
LOWpkg/gitparse/gitparse.go261 global []stringCOMMENT
LOWpkg/gitparse/gitparse.go381// nothing else. It returns them in groups, so patch generation can start before theCOMMENT
LOWpkg/gitparse/gitparse.go501 "--notes",COMMENT
LOWpkg/iobuf/bufferedreaderseeker.go21COMMENT
LOWpkg/output/sarif.go21 sarifSchemaURI = "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json"COMMENT
LOW…annelmetrics/metrics_collector/prometheus/collector.go21var (COMMENT
LOWpkg/decoders/escaped_unicode.go21 //https://unicode.org/standard/principles.htmlCOMMENT
LOWpkg/decoders/escaped_unicode.go81COMMENT
LOWpkg/decoders/escaped_unicode.go301// result := inputCOMMENT
LOWpkg/decoders/escaped_unicode.go321// breakCOMMENT
LOWpkg/decoders/html.go21COMMENT
LOWpkg/decoders/utf8.go81// This includes letters, digits, punctuation, and symbols, but excludes control characters.COMMENT
LOWpkg/decoders/html_test.go21//COMMENT
LOWpkg/decoders/escaped_unicode_test.go121 want: &sources.Chunk{COMMENT
LOWpkg/sources/job_progress.go21 EndEnumerating(JobProgressRef, time.Time)COMMENT
LOWpkg/sources/sources.go61COMMENT
LOWpkg/sources/sources.go301 Endpoint stringCOMMENT
LOWpkg/sources/sources.go581// This level of synchronization is only necessary when multiple concurrentCOMMENT
LOWpkg/sources/sources.go641// -/sub-unit-resumption-----------------------------------------------------------COMMENT
LOWpkg/sources/s3/checkpointer.go21// The checkpointer maintains state for the current page of objects (up to 1000) using a boolean arrayCOMMENT
LOWpkg/sources/s3/checkpointer.go41//COMMENT
LOWpkg/sources/s3/checkpointer.go141// and maintains fine-grained resumption checkpoints. It uses a conservative trackingCOMMENT
LOWpkg/sources/s3/s3.go341 startAfter string // The last processed object key within the bucketCOMMENT
LOWpkg/sources/github_experimental/object_discovery.go21COMMENT
LOWpkg/sources/filesystem/filesystem.go281 // check if the full path is not matching any pattern in includeCOMMENT
LOWpkg/sources/filesystem/filesystem_resume_test.go21//COMMENT
LOWpkg/sources/filesystem/filesystem_test.go681 assert.False(t, scannedFiles["file2.txt"], "file2.txt should have been skipped (the resume point itself)")COMMENT
LOWpkg/sources/github/permission_error.go41type credentialKind intCOMMENT
LOWpkg/sources/github/installation_grants.go1package githubCOMMENT
LOWpkg/sources/github/installation_grants.go21// issues and leaves out the pull requests.COMMENT
LOWpkg/sources/github/pagination_test.go21COMMENT
LOWpkg/sources/github/connector_app.go81 return connector, nilCOMMENT
LOWpkg/sources/github/connector.go41// api.github.com, NOT the GHES /api/v3/ layout.COMMENT
LOWpkg/sources/github/github.go801 ctx.Logger().V(1).Info("Scanning repos", "org_members", len(s.memberCache))COMMENT
LOWpkg/sources/github/github.go2101 return nilCOMMENT
LOWpkg/sources/github/github.go2121// already prefixed with what's missing, and is reported after the run.COMMENT
LOWpkg/sources/github/pagination.go21// GitHub list endpoints don't all paginate the same way, and the differencesCOMMENT
LOWpkg/sources/github/pagination.go81// walkPages fetches the first page with first (a typed go-github call thatCOMMENT
LOWpkg/sources/github/pagination.go181// walkUpdatedSince walks an endpoint in update-time order, and gets pastCOMMENT
LOWpkg/sources/github/pagination.go261// of retries before the walk reports it as an error.COMMENT
LOWpkg/sources/github/pagination.go281// retry a failed round trip a few times with short backoff, so this is aCOMMENT
LOWpkg/sources/jenkins/jenkins.go161 if s.user != "" && s.token != "" {COMMENT
LOWpkg/sources/jenkins/jenkins.go181// "name": "hon-test",COMMENT
40 more matches not shown…
Magic Placeholder Names4 hits · 28 pts
SeverityFileLineSnippetContext
HIGH⚡examples/generic_config_secrets.yml39 - "your_api_key"CODE
HIGH⚡examples/generic_config_secrets.yml40 - "your-api-key"CODE
HIGH⚡examples/generic_config_secrets.yml41 - "yourapikey"CODE
HIGHpkg/decoders/html_test.go547 {"template placeholder entity-encoded", `<YOUR_API_KEY>`, false},CODE
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMpkg/writers/buffered_file_writer/bufferedfilewriter.go220// By implementing this method, BufferedFileWriter can leverage optimized data transfer mechanisms providedCOMMENT
MEDIUMpkg/iobuf/bufferedreaderseeker.go36// transparently, providing a seamless reading and seeking experience regardlessCOMMENT
MEDIUMpkg/iobuf/bufferedreaderseeker.go266 // to utilize the temporary file exclusively, simplifyingCOMMENT
MEDIUMpkg/sources/git/git.go1767 // TODO: Develop a more robust mechanism to ensure consistent timeout behavior between the command executionCOMMENT
MEDIUMpkg/detectors/hasura/hasura_test.go116 // For a more robust comparison, load the results into maps to ignore order.COMMENT
MEDIUM…/salesforceoauth2/salesforceoauth2_integration_test.go150 // Since the order of results can vary with maps, we use a more robust comparison.COMMENT
MEDIUM…efreshtoken/salesforcerefreshtoken_integration_test.go159 // Since the order of results can vary with maps, we use a more robust comparison.COMMENT
MEDIUMpkg/engine/engine.go396// they're set to reasonable default values. It makes the engine robust toCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMhack/bench/versions.sh15# Create a temporary folder to clone the repositoryCOMMENT
MEDIUMhack/bench/versions.sh53 # Initialize the variable to store the sum of user timesCOMMENT
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpkg/custom_detectors/CUSTOM_DETECTORS.md194 except Exception:CODE
MEDIUMpkg/custom_detectors/CUSTOM_DETECTORS.md177def do_POST(self):CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWaction.yml51 # Check if jq is installed, if not, install itCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpkg/output/plain.go121 // To have the "UNKNOWN_POSTMAN = 0" value be assigned correctly to the field, we need to check if the Postman workspacCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpkg/sources/gitlab/gitlab.go1102 // TODO: Handle error returned from UnitErr.COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpkg/detectors/lob/lob_test.go54 input: "def test_calculate_total_price_with_tax_rate():",CODE