Scanner deep dive
Overview
Generic secret key that may provide access to sensitive data or systems.
Provider and detector details
Summary
ProviderNo provider details added yet.
- Keyword + nearby pattern
- Doesn’t verify
- Unchanged since Sep 18, 2026(log start)
- Source at 2325546
- Change review: Nothing queued
- Default scan: Switched off in TruffleHog
- pkg/detectors/generic
- Vendor name inferred from source, not reviewed
Runs on any connection. Triggered by keywords in the content, after decoding.How TruffleHog works
How detection works
The Generic detector looks for a single value in text that resembles a credential. It uses the word “pass” to narrow its search.
Matching rules and source
- Keywords
- pass
- token
- cred
- secret
- key
Regex
RegexkeyPatgeneric.go:56 (opens TruffleHog source on GitHub)Only code file
(\b[\x21-\x7e]{16,64}\b)Show as a diagram
Must appear near: “pass”, “token”, “cred”, “secret” or “key”
How it works
- Skips any text that doesn’t contain “pass”, “token” or “cred” (2 more). This keeps scanning fast.
- Looks for text matching its pattern.
- Reports each remaining match as a possible Generic credential. It isn’t known to work until it’s verified.
- Prefix regex
- One value
Guards against false matches
- Not found in source
- Not found in source
How it behaves
What this detector does at each step of the TruffleHog pipeline.
pkg/detectors/generic · Scanner
Keywords
Any one of these in the decoded text wakes the detector.
- pass
- token
- cred
- secret
- key
Behavior
- Multi-part
- No
- Match window
- 512 bytes on each side of a keyword
- ahocorasickcore.go line 159 (opens TruffleHog source on GitHub)
- Custom endpoints
- No
- Cloud endpoint
- None
- Randomness check
- None in this detector's own code
- False-positive check
- The shared word lists
Verification. This detector reports matches without calling the provider. Atlas only describes this; it never tests credentials. How the verify decision works
Analyzer.None in the open-source code.
In short
Wakes on “pass”, “token”, “cred”, “secret” or “key” and reports matches without testing them. A default scan skips it.
How verification works
No verification is implemented at this revision. The detector returns candidate matches.
The detection and verification evidence on this page comes from the Open Source implementation. Check the Enterprise coverage guide for product availability.
Verification walkthrough
Errors, timeouts and rate limits
- Not found in source
- Not found in source
- Not found in source
Read candidate findings
Open Source · Standard output (stdout)
The CLI prints candidate matches to stdout without a live check. Use --json for structured output.
Example scan output · credential redacted
Found unverified result 🐷🔑❓
Detector Type: Generic
Decoder Type: PLAIN
Raw result: [redacted]Terminal printer sourceCI formats
With --github-actions, GitHub Actions displays this workflow command as a warning on the indicated file and line.
::warning file=config/example.env,line=8,endLine=8::Found unverified Generic result 🐷🔑GitHub Actions printer sourceLegacy compatibility. --json-legacy writes pre-v3 JSON for Git, GitLab, and GitHub sources only.
Optional analysis
No analyzer is recorded for this detector.
A missing analyzer is not evidence the credential has no further access.
Rotation resources
Atlas has no rotation guide for this detector.
Token types
TruffleHog’s source doesn’t name a token type or require a fixed prefix for this detector.
The detector’s source links no vendor pages.
Coverage in other scanners
No confirmed matches in the available catalogs.
- BetterleaksNo confirmed match
- GitHub Secret ProtectionNo confirmed match
- GitleaksNo confirmed match
- KingfisherNo confirmed match
Changes
No changes to Generic since Sep 18, 2026, when Atlas started recording.
When TruffleHog changes this detector, the changed fields, the pull request and the source diff appear here for review.
Source
Every fact on this page was parsed from trufflesecurity/trufflehog at 2325546, unless a row below says otherwise.
- Source file
- pkg/detectors/generic/generic.go
- Parser
- trufflehog-detectors-analyzers-v12
- Extraction
- intel-detector-v7
8 of 16 evidence rows need attention
| Field | Status | Value | Source |
|---|---|---|---|
| lastSeenAt | 2026-11-25T16:33:44.855Z | No citation | |
| rotationGuide | None extracted | File | |
| verify.httpMethods | None extracted | File | |
| verify.statusCodes | None extracted | File | |
| timeout | None extracted | File | |
| rateLimit | None extracted | File | |
| errorHandling | None extracted | File | |
| verify.urls | None extracted | File |
All 16 evidence rows
| Field | Status | Value | Source |
|---|---|---|---|
| description | Generic secret key that may provide access to sensitive data or systems. | File | |
| keywords | pass, token, cred, secret, key | File | |
| detectorTypes | Generic | File | |
| files | generic.go | File | |
| patterns | (\b[\x21-\x7e]{16,64}\b) | File | |
| patternType | prefix_regex | File | |
| status | active | File | |
| lastSeenAt | 2026-11-25T16:33:44.855Z | No citation | |
| rotationGuide | None extracted | File | |
| verify.hasVerify | No | File | |
| verify.httpMethods | None extracted | File | |
| verify.statusCodes | None extracted | File | |
| timeout | None extracted | File | |
| rateLimit | None extracted | File | |
| errorHandling | None extracted | File | |
| verify.urls | None extracted | File |
Parser completeness
- Field status: Extracted
- Field status: Extracted
- Field status: Extracted
- Field status: Extracted
- Field status: Unknown
- Field status: Unknown
- Field status: Unknown
- Field status: Unknown
- Field status: Unknown
- Field status: Unknown
- Field status: Not scanned
Package files (1)
- generic.go