What this change means
How responses are judged changed, Verification error handling changed. Changes how the detector verifies or what it treats as the credential.
Scanner deep dive
Square is a financial services and mobile payment company. Square API keys can be used to access and manage payments, transactions, and other financial data.
ProviderNo provider details added yet.
Runs on any connection. Triggered by keywords in the content, after decoding.How TruffleHog works
TruffleHog looks for 60-character strings of letters, digits and “-” “_” “+” “=” after a prefix such as “EAAA” near “square”. A match is a possible Square credential.
Regexsquare.go:33 (opens TruffleHog source on GitHub)
(EAAA[a-zA-Z0-9\-_+=]{60})Matches 60-character strings of letters, digits and “-” “_” “+” “=” after a prefix such as “EAAA”.
Must appear near: “square”
What this detector does at each step of the TruffleHog pipeline.
Any one of these in the decoded text wakes the detector.
Verification. When a scan allows it, TruffleHog tests a match by calling the provider. A scan can turn this off for every detector or for this one. Atlas only describes this; it never tests credentials. How the verify decision works
Analyzer.Square Analyzer
Wakes on “EAAA” and tests matches with the provider. A default scan runs it.
The verification code lists connect.squareupsandbox.com as a destination. The detector decides whether a match passes using its own rules.
The detection and verification evidence on this page comes from the Open Source implementation. Check the Enterprise coverage guide for product availability.
Not expected to: it’s a GET request, which reads without changing anything, and the source declares no changes.
https://connect.squareupsandbox.com/v2/merchants| Status | Outcome | Source |
|---|---|---|
| Verified | square.go:101 (opens TruffleHog source on GitHub) | |
| 401 | Not verified | square.go:104 (opens TruffleHog source on GitHub) |
| square.go:106 (opens TruffleHog source on GitHub) | ||
| Other | square.go:114 (opens TruffleHog source on GitHub) |
If a result looks wrong, work through these steps. They’re built from the request and status rules above. The Atlas doesn’t send anything.
curl -i -H "Authorization: Bearer $API_KEY" "https://connect.squareupsandbox.com/v2/merchants"$API_KEY: the key you're checkingOnly test keys you own or are allowed to check. Each command is one read-only GET request, the same one TruffleHog makes. Compare the status you get with “How responses are judged” above.
No provider doc recorded for this check yet. Look up the API docs for connect.squareupsandbox.com and compare what they say each status means.
Include the status code and response you got. Never include the key.
The CLI prints verified findings to stdout. Use --json for structured output.
Example scan output · credential redacted
✅ Found verified result 🐷🔑
Detector Type: Square
Decoder Type: PLAIN
Raw result: [redacted]Terminal printer sourceWith --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 verified Square result 🐷🔑GitHub Actions printer sourceLegacy compatibility. --json-legacy writes pre-v3 JSON for Git, GitLab, and GitHub sources only.
When Enterprise verifies that a secret is live, a configured notifier can alert your team. The finding is also available through the Enterprise API.
A notifier that displays rotation guides can include this link with the alert.
Open rotation guideOptional analysis
In Open Source, run trufflehog analyze separately from the scan. Enterprise runs enabled self-discovery analyzers on first discovery of a supported live secret.
Reads scopes from POST /oauth2/token/status.
43 permission names in source
Alert delivery has no documented ordering relative to analysis. How Analyze runs.
Use the rotation guide to replace this credential.
TruffleHog’s source looks for 1 token type, by prefix. It doesn’t name them.
| Prefix |
|---|
| EAAA |
Written in the detector’s source by its authors. Shown as written: this doesn’t say what each page covers.
4 scanners have a confirmed match.
square_access_tokenPush protection yes · Validity check yes1 recorded change since Sep 18, 2026; 1 still needs review.
How responses are judged changed, Verification error handling changed. Changes how the detector verifies or what it treats as the credential.
Facts on this page were read from trufflesecurity/trufflehog at commit 2325546.