Skip to content
Detectors

Scanner deep dive

Overview

Netsuite is a cloud business management suite. These credentials can be used to access and modify data within Netsuite.
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

The Netsuite detector looks for pieces of a credential that belong together. The code names fields such as “consumer key” and “consumer secret”.

Runs by default

Matching rules and source
Keywords
  • netsuite

Regexes

  • Regex 1consumerKeyPatnetsuite.go:41 (opens TruffleHog source on GitHub)Only code file

    \b([a-zA-Z0-9]{64})\b

    Matches 64-character strings of letters and digits.

    Show as a diagram

    Must appear near: “netsuite”, “consumer” or “key”

  • Regex 2consumerSecretPatnetsuite.go:41 (opens TruffleHog source on GitHub)Only code file

    \b([a-zA-Z0-9]{64})\b

    Matches 64-character strings of letters and digits.

    Show as a diagram

    Must appear near: “netsuite”, “consumer” or “secret”

  • Regex 3tokenKeyPatnetsuite.go:41 (opens TruffleHog source on GitHub)Only code file

    \b([a-zA-Z0-9]{64})\b

    Matches 64-character strings of letters and digits.

    Show as a diagram

    Must appear near: “netsuite”, “token” or “key”

  • Regex 4tokenSecretPatnetsuite.go:41 (opens TruffleHog source on GitHub)Only code file

    \b([a-zA-Z0-9]{64})\b

    Matches 64-character strings of letters and digits.

    Show as a diagram

    Must appear near: “netsuite”, “token” or “secret”

  • Regex 5accountIDPatnetsuite.go:47 (opens TruffleHog source on GitHub)Only code file

    \b([a-zA-Z0-9-_]{6,15})\b

    Matches 6–15-character strings of letters, digits and “-” “_”.

    Show as a diagram

    Must appear near: “netsuite”, “account” or “id”

How it works

  1. Skips any text that doesn’t contain “netsuite”. This keeps scanning fast.
  2. Looks for 64-character strings of letters and digits within 40 characters after one of the words “netsuite”, “consumer” or “key”. Also looks for 64-character strings of letters and digits within 40 characters after one of the words “netsuite”, “consumer” or “secret”, or 64-character strings of letters and digits within 40 characters after one of the words “netsuite”, “token” or “key”. 2 more patterns in the technical detail.
  3. Finds each part (consumer key and consumer secret) and pairs them.
  4. Values are trimmed before use.
  5. Identical key and secret values are skipped.
  6. Reports each remaining match as a possible Netsuite credential. It isn’t known to work until it’s verified.
Prefix regex
Several partsconsumer_key and consumer_secret
Guards against false matches
Not found in source
Not found in source
Pairing and normalization
  • consumer_key, consumer_secret are combined from match sets
  • Identical key and secret values are skipped.
  • values are trimmed before use

How it behaves

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

pkg/detectors/netsuite · Scanner

Keywords

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

  • netsuite

netsuite.go line 64 (opens TruffleHog source on GitHub)

Behavior

Multi-part
Yes, pairs two parts such as an ID and a secret
netsuite.go line 29 (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 “netsuite”, 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).

The detection and verification evidence on this page comes from the Open Source implementation. Check the Enterprise coverage guide for product availability.

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 https://%s.suitetalk.api.netsuite.com.
  2. Puts the found credential in the request: credential is sent in the Authorization header; scheme is not Bearer/token in source.
  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

https://%s.suitetalk.api.netsuite.com

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

netsuite.go:205 (opens TruffleHog source on GitHub)

Key is sent as

Authorization header

netsuite.go:213 (opens TruffleHog source on GitHub)

How responses are judged

How each response status is judged
StatusOutcomeSource
Verifiednetsuite.go:230 (opens TruffleHog source on GitHub)
401Not verifiednetsuite.go:232 (opens TruffleHog source on GitHub)
OtherdefaultParser mapped default to not verified; source sends it to SetVerificationError.netsuite.go:235 (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 -H "Authorization: $AUTHORIZATION_VALUE" "https://{YOUR_SUBDOMAIN}.suitetalk.api.netsuite.com"
  • {YOUR_SUBDOMAIN}: your account's subdomain
  • $AUTHORIZATION_VALUE: the full Authorization header value (its format depends on the provider)

Rule: header. Key placement as recorded: Authorization header.

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://%s.suitetalk.api.netsuite.com

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

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

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

  1. What this change means

    Deduplication changed. Changes keywords, regex patterns or pairing.

    pkg/detectors/netsuite/netsuite.go+59−3View file
    @@ -7,7 +7,10 @@ import (
    77 "crypto/sha256"
    88 "encoding/base64"
    99 "encoding/binary"
    10added: "errors"
    1011 "fmt"
    12added: "io"
    13added: "net"
    1114 "net/http"
    1215 "net/url"
    1316 "strconv"
    @@ -16,6 +19,7 @@ import (
    1619
    1720 regexp "github.com/wasilibs/go-re2"
    1821
    22added: "github.com/trufflesecurity/trufflehog/v3/pkg/cache/simple"
    1923 "github.com/trufflesecurity/trufflehog/v3/pkg/common"
    2024 "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
    2125 "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detector_typepb"
    @@ -41,6 +45,9 @@ var (
    4145 tokenSecretPat = regexp.MustCompile(detectors.PrefixRegex([]string{"netsuite", "token", "secret"}) + `\b([a-zA-Z0-9]{64})\b`)
    4246
    4347 accountIDPat = regexp.MustCompile(detectors.PrefixRegex([]string{"netsuite", "account", "id"}) + `\b([a-zA-Z0-9-_]{6,15})\b`)
    48added:
    49added: // invalidHosts holds account hosts that do not resolve, so later combinations skip the lookup.
    50added: invalidHosts = simple.NewCache[struct{}]()
    4451)
    4552
    4653type credentialSet struct {
    @@ -68,8 +75,23 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
    6875 tokenSecretMatches := trimUniqueMatches(tokenSecretPat.FindAllStringSubmatch(dataStr, -1))
    6976 accountIDMatches := trimUniqueMatches(accountIDPat.FindAllStringSubmatch(dataStr, -1))
    7077
    78added: // Every combination needs a token key, token secret and account ID.
    79added: if len(tokenKeyMatches) == 0 || len(tokenSecretMatches) == 0 || len(accountIDMatches) == 0 {
    80added: return nil, nil
    81added: }
    82added:
    83added: // Raw and RawV2 hold only the consumer key and secret, so every combination for a pair is a duplicate of the same
    84added: // finding. Report one result per pair rather than one per combination of all five parts. The token key, token
    85added: // secret and account ID decide whether the pair is reported and whether it verifies.
    7186 for consumerKey := range consumerKeyMatches {
    7287 for consumerSecret := range consumerSecretMatches {
    88added: // No combination can use the same value as both consumer key and secret.
    89added: if consumerKey == consumerSecret {
    90added: continue
    91added: }
    92added:
    93added: var pairResult *detectors.Result
    94added: combinations:
    7395 for tokenKey := range tokenKeyMatches {
    7496 for tokenSecret := range tokenSecretMatches {
    7597 for accountID := range accountIDMatches {
    @@ -107,10 +129,28 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
    107129 s1.Verified = isVerified
    108130 s1.SetVerificationError(err, consumerKey)
    109131 }
    110removed: results = append(results, s1)
    132added:
    133added: // Keep the verified result, else the first indeterminate one, else the first one.
    134added: if pairResult == nil || s1.Verified || (s1.VerificationError() != nil && pairResult.VerificationError() == nil) {
    135added: pairResult = &s1
    136added: }
    137added: if !verify || s1.Verified {
    138added: break combinations
    139added: }
    140added: if err := ctx.Err(); err != nil {
    141added: // Combinations left untried might have verified.
    142added: if pairResult.VerificationError() == nil {
    143added: pairResult.SetVerificationError(err, consumerKey)
    144added: }
    145added: break combinations
    146added: }
    111147 }
    112148 }
    113149 }
    150added:
    151added: if pairResult != nil {
    152added: results = append(results, *pairResult)
    153added: }
    114154 }
    115155 }
    @@ -126,9 +166,20 @@ func (s Scanner) Description() string {
    126166}
    127167
    128168func verifyCredentials(ctx context.Context, client *http.Client, cs credentialSet) (bool, error) {
    169added: // The engine waits for FromData to return even after its deadline, so send no request once the context is done.
    170added: if err := ctx.Err(); err != nil {
    171added: return false, err
    172added: }
    173added:
    129174 // for url, filter or replace underscore in accountID if needed and lower case the accountID
    130175 urlAccountId := strings.ToLower(strings.ReplaceAll(cs.accountID, "_", "-"))
    131176
    177added: // An earlier combination already found that this account's host does not resolve, so skip the lookup and
    178added: // return what the lookup would.
    179added: if invalidHosts.Exists(urlAccountId) {
    180added: return false, nil
    181added: }
    182added:
    132183 baseUrl := "https://" + urlAccountId + ".suitetalk.api.netsuite.com"
    133184
    134185 const path = "/services/rest/record/v1/metadata-catalog/check"
    @@ -164,12 +215,17 @@ func verifyCredentials(ctx context.Context, client *http.Client, cs credentialSe
    164215 // Make the request
    165216 res, err := client.Do(req)
    166217 if err != nil {
    167removed: if strings.Contains(err.Error(), "no such host") {
    218added: var dnsErr *net.DNSError
    219added: if errors.As(err, &dnsErr) && dnsErr.IsNotFound {
    220added: invalidHosts.Set(urlAccountId, struct{}{})
    168221 return false, nil
    169222 }
    170223 return false, err
    171224 }
    172removed: defer func() { _ = res.Body.Close() }()
    225added: defer func() {
    226added: _, _ = io.Copy(io.Discard, res.Body)
    227added: _ = res.Body.Close()
    228added: }()
    173229 switch res.StatusCode {
    174230 case http.StatusOK:
    175231 return true, nil

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

5 of 23 evidence rows need attention

Evidence rows that need attention
FieldStatusValueSource
lastSeenAt2026-11-25T16:33:44.855ZNo citation
rotationGuideNone extractedFile
timeoutNone extractedFile
rateLimitNone extractedFile
verify.urlshttps://%s.suitetalk.api.netsuite.comParser confidence: lowFile
All 23 evidence rows
All evidence rows
FieldStatusValueSource
descriptionNetsuite is a cloud business management suite. These credentials can be used to access and modify data within Netsuite.File
keywordsnetsuiteFile
detectorTypesNetsuiteFile
filesnetsuite.goFile
patterns\b([a-zA-Z0-9]{64})\b, \b([a-zA-Z0-9]{64})\b, \b([a-zA-Z0-9]{64})\b, \b([a-zA-Z0-9]{64})\b, \b([a-zA-Z0-9-_]{6,15})\bFile
patternTypeprefix_regexFile
statusactiveFile
lastSeenAt2026-11-25T16:33:44.855ZNo citation
rotationGuideNone extractedFile
verify.hasVerifyYesFile
verify.httpMethodsGETFile
verify.statusCodesOK, UnauthorizedFile
timeoutNone extractedFile
rateLimitNone extractedFile
errorHandlingSetVerificationError; unexpected HTTP response status %dFile
verify.urlshttps://%s.suitetalk.api.netsuite.comParser confidence: lowFile
detection.keywordsnetsuiteLines 63–63
verification.endpointhttps://%s.suitetalk.api.netsuite.comLines 205–205
verification.httpMethodGETLines 205–205
verification.authenticationMethodAuthorization headerLines 213–213
verification.expectedStatuses.verified{"statuses":[200],"names":["StatusOK"],"outcome":"verified"}Lines 230–230
verification.expectedStatuses.not_verified{"statuses":[401],"names":["StatusUnauthorized"],"outcome":"not_verified"}Lines 232–232
verification.expectedStatuses.error_or_unknown{"statuses":[],"names":["default"],"outcome":"error_or_unknown"}Lines 235–235
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)
  • netsuite.go