What this change means
How responses are judged changed. Changes how the detector verifies or what it treats as the credential.
Scanner deep dive
HubSpot is a CRM platform that provides tools for marketing, sales, and customer service. HubSpot API keys can be used to access and modify data within the HubSpot platform.
ProviderNo provider details added yet.
Runs on any connection. Triggered by keywords in the content, after decoding.How TruffleHog works
The v1 detector checks decoded text containing “hubapi”, “hapikey”, “hapi_key” or “hubspot” for a possible credential.
v1 regexapikey.go:32 (opens TruffleHog source on GitHub)
\b([a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})\bMust appear near: “hubapi”, “hapi_?key” or “hubspot”
| v1v1/apikey.go | v2v2/apikey.go | |
|---|---|---|
| Keywords |
|
|
| Regexes |
|
|
v1 regexapikey.go:32 (opens TruffleHog source on GitHub)
\b([a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12})\bMust appear near: “hubapi”, “hapi_?key” or “hubspot”
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.None in the open-source code.
The source checks both the HTTP status and the response body.
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.
| v1v1/apikey.go | v2v2/apikey.go | |
|---|---|---|
| Checked rule | v1 · Legacy API keyGET /contacts/v1/lists with the key in the hapikey query parameter. Verified when HTTP 200 with a valid JSON body. HTTP 401 rejects the key. Invalid JSON or any other status, including 403, produces a verification error. View source for v1 · Legacy API key | v2 · Private app tokenGET /account-info/v3/api-usage/daily/private-apps with a bearer token. Verified when HTTP 200 with a valid JSON body, or HTTP 403 with a JSON response whose category is MISSING_SCOPES. HTTP 401 rejects the token. An unexpected response body or any other status produces a verification error. View source for v2 · Private app token |
GET /contacts/v1/lists with the key in the hapikey query parameter.
Verified when HTTP 200 with a valid JSON body.
HTTP 401 rejects the key. Invalid JSON or any other status, including 403, produces a verification error.
View source for v1 · Legacy API keyThe CLI prints verified findings to stdout. Use --json for structured output.
Example scan output · credential redacted
✅ Found verified result 🐷🔑
Detector Type: HubSpotApiKey
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 HubSpotApiKey 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.
No analyzer is recorded for this detector, so Atlas shows no access assessment.
Use the provider’s instructions for this credential.
Rotation and revocation instructions
HubSpot documents rotation for the access token of a legacy private app. This procedure applies to the private-app token variant, and the console offers immediate expiry of the old token when appropriate.
Provider documentation checked by Atlas on .
TruffleHog’s source looks for 2 token types, by prefix. It doesn’t name them.
| Prefix | Variant |
|---|---|
| pat-eu1- | v2 |
| pat-na1- | v2 |
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.
hubspot_api_keyPush protection yes · Validity check nohubspot_private_apps_user_tokenPush protection yes · Validity check no1 recorded change since Sep 18, 2026; 1 still needs review.
How responses are judged 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.