Skip to content
Detectors

Scanner deep dive

Overview

Sumo Logic is a cloud-based machine data analytics service. Sumo Logic keys can be used to access and manage data within the Sumo Logic platform.
From the detector’s Description() in source

Needs a person to check

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

One matching rule looks for 12-character strings of letters and digits after a prefix such as “su” near “sumo” or “accessId”.

Runs by default

Matching rules and source
Keywords
  • sumo
  • accessId
  • accessKey

Regexes

How it works

  1. Skips any text that doesn’t contain “sumo”, “accessId” or “accessKey”. This keeps scanning fast.
  2. Looks for 12-character strings of letters and digits after a prefix such as “su” within 40 characters after one of the words “sumo” or “accessId”. Also looks for 64-character strings of letters and digits within 40 characters after one of the words “sumo” or “accessKey”. 1 more pattern in the technical detail.
  3. Reports each remaining match as a possible Sumo Logic Key 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
  • rotation_guide
  • access_id
  • endpoint

How it behaves

What this detector does at each step of the TruffleHog pipeline.

pkg/detectors/sumologickey · Scanner

Keywords

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

  • sumo
  • accessId
  • accessKey

sumologickey.go line 46 (opens TruffleHog source on GitHub)

Behavior

Multi-part
Yes, pairs two parts such as an ID and a secret
sumologickey.go line 22 (opens TruffleHog source on GitHub)
Custom endpoints
Yes, can verify against your own server
sumologickey.go line 21 (opens TruffleHog source on GitHub)
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 “sumo”, “accessId” or “accessKey”, 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

Sends GET to a templated URL; 200 means verified, 401 means not verified, any other status is an error (unverified, not rejected).

Open Source + Enterprise support detection and verification for this credential type. Edition source.

Verification host is a template. The endpoint host is filled in at runtime (%s), so the exact host is not known from source.

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.

Source says: GET as declared in source; mutating side effects not declared

Verification walkthrough

How it works

  1. Sends a GET to %s/api/v1/users.
  2. Puts the found credential in the request: id is used as the username and key is used as the password.
  3. If the answer is 200, TruffleHog reports the match as verified under this detector’s rules.
  4. If the answer is 401, it was rejected: reported as not verified.
  5. Any other answer sets a verification error: reported as unverified with an error, not as rejected.
  6. If the request can’t reach the provider, the result is an error, not a rejection.

Evidence from source

Endpoint

%s/api/v1/users

Part of this address is filled in when the check runs, so the exact host isn’t known from source.

sumologickey.go:150 (opens TruffleHog source on GitHub)

Key is sent as

HTTP Basic Authentication

sumologickey.go:155 (opens TruffleHog source on GitHub)

How responses are judged

How each response status is judged
StatusOutcomeSource
Verifiedsumologickey.go:166 (opens TruffleHog source on GitHub)
401Not verifiedsumologickey.go:169 (opens TruffleHog source on GitHub)
OtherdefaultParser mapped default to not verified; source sends it to SetVerificationError.sumologickey.go:172 (opens TruffleHog source on GitHub)
Troubleshoot this check

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.

1. Send the same request yourself

curl -i -u "$USERNAME:$PASSWORD" "{BASE_URL}/api/v1/users"
  • {BASE_URL}: your instance's address, such as https://your-company.example.com
  • $USERNAME: the username or key ID
  • $PASSWORD: the password or secret

Rule: basic. Key placement as recorded: HTTP Basic Authentication.

Only 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.

2. Likely causes

  • The check used the wrong address. Part of this check's address depends on your account or server. If the key belongs to a self-hosted, regional or custom-domain instance, make sure that's the address being called.
  • The scanner couldn't reach the provider. The scanner needs outbound HTTPS access to the provider. A firewall, proxy or DNS problem is reported as an error, not a rejection, and the key can be checked again.
  • The provider rejected the key. TruffleHog counts 401 as not verified: usually a revoked, expired or mistyped key.
  • Rate limit or provider problem. TruffleHog counts any other status as an error, not a rejection. A rate limit (429) or an outage lands here; the key can be checked again later.
  • The provider changed its API. If the provider answers differently from the table above, its API may have changed since this check was written. Compare against the provider's docs.

3. Check the provider’s docs

No provider doc recorded for this check yet.

4. Still stuck

Report it to TruffleHog

Include the status code and response you got. Never include the key.

Errors, timeouts and rate limits
Not found in source
Not found in source
SetVerificationError; unexpected HTTP response status %d

other statuses: verification error or unknown

transport errors return a verification error

All URLs found in source

  • https://help.sumologic.com/docs/api/getting-started/#documentation
  • https://api.sumologic.com
  • https://howtorotate.com/docs/tutorials/sumologic/
  • %s/api/v1/users

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: SumoLogicKey
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 SumoLogicKey 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.

A notifier that displays rotation guides can include this link with the alert.

Open rotation guide

Optional analysis

No analyzer is recorded for this detector.

A missing analyzer is not evidence the credential has no further access.

Rotation resources

Token types

TruffleHog’s source doesn’t name a token type or require a fixed prefix for this detector.

Pages TruffleHog’s source links to (1)

Written in the detector’s source by its authors. Shown as written: this doesn’t say what each page covers.

Coverage in other scanners

3 scanners have a confirmed match.

Changes

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

  1. What this change means

    Verification endpoint changed. Changes how the detector verifies or what it treats as the credential.

    Field changes
    FieldBeforeAfter
    Verification endpointBefore: https://%s/api/v1/usersAfter: %s/api/v1/users
    pkg/detectors/sumologickey/sumologickey.go+69−33View file
    @@ -1,10 +1,12 @@
    11package sumologickey
    22
    33import (
    4added: "cmp"
    45 "context"
    56 "fmt"
    67 "io"
    78 "net/http"
    9added: "net/url"
    810 "strings"
    911
    1012 "github.com/trufflesecurity/trufflehog/v3/pkg/common"
    @@ -44,8 +46,10 @@ func (s Scanner) Keywords() []string {
    4446 return []string{"sumo", "accessId", "accessKey"}
    4547}
    4648
    47removed: // Default US API endpoint.
    48removed: func (Scanner) CloudEndpoint() string { return "api.sumologic.com" }
    49added: // CloudEndpoint is the US API endpoint. Endpoints are full URLs so that
    50added: // configured verifier endpoints, which may carry a path prefix, are used as
    51added: // given.
    52added: func (Scanner) CloudEndpoint() string { return "https://api.sumologic.com" }
    4953
    5054// FromData will find and optionally verify SumoLogicKey secrets in a given set of bytes.
    5155func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {
    @@ -59,50 +63,67 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
    5963 for _, match := range keyPat.FindAllStringSubmatch(dataStr, -1) {
    6064 keyMatches[match[1]] = struct{}{}
    6165 }
    62removed: endpointMatches := make(map[string]struct{})
    66added: hostMatches := make(map[string]struct{})
    6367 for _, match := range urlPat.FindAllStringSubmatch(dataStr, -1) {
    64removed: endpointMatches[match[0]] = struct{}{}
    68added: hostMatches[match[0]] = struct{}{}
    6569 }
    66removed: if len(endpointMatches) == 0 {
    67removed: endpointMatches[s.CloudEndpoint()] = struct{}{}
    70added: foundEndpoints := make([]string, 0, len(hostMatches))
    71added: for host := range hostMatches {
    72added: foundEndpoints = append(foundEndpoints, "https://"+host)
    6873 }
    6974
    75added: // RawV2 identifies the secret, so it is built only from what the data
    76added: // says and never from the verification outcome. Otherwise the same key
    77added: // gets a different identity when it flips between verified and
    78added: // unverified (for example when it is revoked), and consumers that dedupe
    79added: // on RawV2 record it as a new secret. The access ID and regional host are
    80added: // included only when the data names exactly one of each. The host is kept
    81added: // bare (no scheme) because existing identities were recorded that way.
    82added: rawV2Id := soleKey(idMatches)
    83added: rawV2URL := soleKey(hostMatches)
    84added:
    7085 for accessKey := range keyMatches {
    7186 var (
    72removed: r *detectors.Result
    73removed: accessId string
    74removed: apiEndpoint string
    87added: verified bool
    88added: verifiedId string
    89added: verifiedEndpoint string
    90added: lastErr error
    7591 )
    7692
    77removed: for id := range idMatches {
    78removed: accessId = id
    79removed:
    80removed: for e := range endpointMatches {
    81removed: apiEndpoint = e
    82removed:
    83removed: if verify {
    84removed: client := s.client
    85removed: if client == nil {
    86removed: client = defaultClient
    93added: if verify {
    94added: client := s.VerificationClient(cmp.Or(s.client, defaultClient))
    95added:
    96added: // Endpoints applies the engine's endpoint configuration:
    97added: // configured verifier endpoints, the US cloud endpoint, and
    98added: // regional hosts found in the data, each only when enabled.
    99added: //
    100added: // Only non-nil errors overwrite lastErr so that a clean 401 from
    101added: // the wrong region or access ID doesn't erase a failure (500,
    102added: // timeout) from a pair that might be authoritative.
    103added: endpoints := s.Endpoints(foundEndpoints...)
    104added: verification:
    105added: for id := range idMatches {
    106added: for _, baseURL := range endpoints {
    107added: isVerified, vErr := verifyMatch(ctx, client, baseURL, id, accessKey)
    108added: if vErr != nil {
    109added: lastErr = vErr
    87110 }
    88removed:
    89removed: isVerified, verificationErr := verifyMatch(ctx, client, apiEndpoint, accessId, accessKey)
    90111 if isVerified {
    91removed: r = createResult(accessId, accessKey, apiEndpoint, isVerified, verificationErr)
    112added: verified, verifiedId, verifiedEndpoint, lastErr = true, id, baseURL, nil
    113added: break verification
    92114 }
    93115 }
    94116 }
    95117 }
    96118
    97removed: if r == nil {
    98removed: // Only include the accessId if we're confident which one it is.
    99removed: if len(idMatches) != 1 {
    100removed: accessId = ""
    101removed: }
    102removed: if len(endpointMatches) != 1 || apiEndpoint == s.CloudEndpoint() {
    103removed: apiEndpoint = ""
    104removed: }
    105removed: r = createResult(accessId, accessKey, apiEndpoint, false, nil)
    119added: r := createResult(rawV2Id, accessKey, rawV2URL, verified, lastErr)
    120added: // Which access ID and endpoint a key verified with are reported here
    121added: // rather than in RawV2, so they don't affect the secret's identity.
    122added: // RawV2 omits the access ID when the data names several, and keys
    123added: // are managed by access ID, so triage needs it from here.
    124added: if verified {
    125added: r.ExtraData["access_id"] = verifiedId
    126added: r.ExtraData["endpoint"] = verifiedEndpoint
    106127 }
    107128 results = append(results, *r)
    108129 }
    @@ -110,8 +131,23 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
    110131 return results, nil
    111132}
    112133
    113removed: func verifyMatch(ctx context.Context, client *http.Client, endpoint string, id string, key string) (bool, error) {
    114removed: req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("https://%s/api/v1/users", endpoint), nil)
    134added: // soleKey returns the only key in m, or "" when m has zero or several keys.
    135added: func soleKey(m map[string]struct{}) string {
    136added: if len(m) != 1 {
    137added: return ""
    138added: }
    139added: for k := range m {
    140added: return k
    141added: }
    142added: return ""
    143added: }
    144added:
    145added: func verifyMatch(ctx context.Context, client *http.Client, baseURL string, id string, key string) (bool, error) {
    146added: endpoint, err := url.JoinPath(baseURL, "/api/v1/users")
    147added: if err != nil {
    148added: return false, err
    149added: }
    150added: req, err := http.NewRequestWithContext(ctx, http.MethodGet, endpoint, nil)
    115151 if err != nil {
    116152 return false, err
    117153 }

Source

Every fact on this page was parsed from trufflesecurity/trufflehog at 2325546, unless a row below says otherwise.

2325546
2921dcc
Parser
trufflehog-detectors-analyzers-v12
Extraction
intel-detector-v7

4 of 24 evidence rows need attention

Evidence rows that need attention
FieldStatusValueSource
lastSeenAt2026-11-25T16:33:44.855ZNo citation
timeoutNone extractedFile
rateLimitNone extractedFile
verify.urls%s/api/v1/usersParser confidence: lowFile
All 24 evidence rows
All evidence rows
FieldStatusValueSource
descriptionSumo Logic is a cloud-based machine data analytics service. Sumo Logic keys can be used to access and manage data within the Sumo Logic platform.File
keywordssumo, accessId, accessKeyFile
detectorTypesSumoLogicKeyFile
filessumologickey.goFile
patterns\b(su[A-Za-z0-9]{12})\b, \b([A-Za-z0-9]{64})\b, (?i)api\.(?:au|ca|de|eu|fed|jp|kr|in|us2)\.sumologic\.comFile
patternTypeprefix_regexFile
statusactiveFile
lastSeenAt2026-11-25T16:33:44.855ZNo citation
rotationGuidehttps://howtorotate.com/docs/tutorials/sumologic/File
verify.hasVerifyYesFile
verify.httpMethodsGETFile
verify.statusCodesOK, UnauthorizedFile
timeoutNone extractedFile
rateLimitNone extractedFile
errorHandlingSetVerificationError; unexpected HTTP response status %dFile
verify.urlshttps://help.sumologic.com/docs/api/getting-started/#documentation, https://api.sumologic.com, https://howtorotate.com/docs/tutorials/sumologic/File
verify.urls%s/api/v1/usersParser confidence: lowFile
detection.keywordssumo, accessId, accessKeyLines 45–45
verification.endpoint%s/api/v1/usersLines 150–150
verification.httpMethodGETLines 150–150
verification.authenticationMethodHTTP Basic AuthenticationLines 155–155
verification.expectedStatuses.verified{"statuses":[200],"names":["StatusOK"],"outcome":"verified"}Lines 166–166
verification.expectedStatuses.not_verified{"statuses":[401],"names":["StatusUnauthorized"],"outcome":"not_verified"}Lines 169–169
verification.expectedStatuses.error_or_unknown{"statuses":[],"names":["default"],"outcome":"error_or_unknown"}Lines 172–172
Parser completeness
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Unknown
  • Field status: Unknown
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Extracted
  • Field status: Not scanned
Package files (1)
  • sumologickey.go