Skip to content
Detectors

Scanner deep dive

Overview

A service for cross browser testing, API keys can create and access tests from potentially sensitive internal websites
TruffleHog’s own description of this detector
Provider and detector details

Summary

ProviderNo provider details added yet.

Runs on any connection. Triggered by keywords in the content, after decoding.How TruffleHog works

How detection works

The Sauce Labs detector looks for pieces of a credential that belong together. The code names fields such as “username” and “key”.

Runs by default

Matching rules and source
Keywords
  • saucelabs

Regexes

  • Regex 1saucelabs.go:30 (opens TruffleHog source on GitHub)

    \b([a-zA-Z0-9_\.-]{2,70})

    Matches 2–70-character strings of letters, digits and “_” “.” “-”.

    Show as a diagram

    Must appear near: “saucelabs” or “username”

  • Regex 2saucelabs.go:31 (opens TruffleHog source on GitHub)

    \b([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12})\b
    Show as a diagram

    Must appear near: “saucelabs”

  • Regex 3saucelabs.go:32 (opens TruffleHog source on GitHub)

    \b(api\.(?:us|eu)-(?:west|east|central)-[0-9]\.saucelabs\.com)\b
    Show as a diagram

How it works

  1. Skips any text that doesn’t contain “saucelabs”. This keeps scanning fast.
  2. Looks for 2–70-character strings of letters, digits and “_” “.” “-” within 40 characters after one of the words “saucelabs” or “username”. 2 more patterns in the technical detail.
  3. Finds each part (username and key) and pairs them.
  4. Reports each remaining match as a possible Sauce Labs credential. It isn’t known to work until it’s verified.
Regular expression near a keyword
Several partsusername and key
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.

Keywords

Any one of these in the decoded text wakes the detector.

  • saucelabs

saucelabs.go line 51 (opens TruffleHog source on GitHub)

Behavior

Multi-part
Yes, pairs two parts such as an ID and a secret
saucelabs.go line 19 (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. 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.

In short

Wakes on “saucelabs”, reads 1024 bytes around each hit to pair two parts and tests matches with the provider. A default scan runs it.

How verification works

What it means

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.

Does checking a key change anything at the provider?

Not expected to: it’s a GET request, which reads without changing anything, and the source declares no changes.

Evidence from source

Sauce Labs identity check

GET /auth/v1/identity with the username and access key using HTTP Basic authentication.

Verified when HTTP 200 with a decodable identity whose account ID (sub) is nonempty.

HTTP 401 rejects the credential. An invalid identity response or any other status produces a verification error.

View source for Sauce Labs identity check
Errors, timeouts and rate limits
Not found in source
Not found in source
If the provider can’t be reached
The result is an error, not a rejection, and the key can be checked again.

All URLs found in source

  • https://%s/auth/v1/identity

Verified findings

Open Source · Standard output (stdout)

The CLI prints verified findings to stdout. Use --json for structured output.

Example scan output · credential redacted

✅ Found verified result 🐷🔑
Detector Type: SauceLabs
Decoder Type: PLAIN
Raw result: [redacted]
Terminal printer source
CI 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 verified SauceLabs result 🐷🔑
GitHub Actions printer source

Legacy compatibility. --json-legacy writes pre-v3 JSON for Git, GitLab, and GitHub sources only.

Enterprise alerts

When Enterprise verifies that a secret is live, a configured notifier can alert your team. The finding is also available through the Enterprise API.

Optional analysis

No analyzer is recorded for this detector, so Atlas shows no access assessment.

Rotation resources

Atlas has no rotation guide for this detector.

Token types

TruffleHog’s source looks for 6 token types, by prefix. It doesn’t name them.

Token types: from TruffleHog’s source, and what the vendor says
Prefix
api.us-west-
api.us-east-
api.us-central-
api.eu-west-
api.eu-east-
api.eu-central-

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

1 recorded change since Sep 18, 2026; 1 still needs review.

Source

Facts on this page were read from trufflesecurity/trufflehog at commit 2325546.

2325546
2921dcc