Skip to content
Detectors

Scanner deep dive

Overview

Fireworks AI is an inference platform for generative AI models. Fireworks API keys grant access to hosted model inference and management APIs.
From the detector’s Description() in source
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

TruffleHog looks for 20–40-character strings of letters and digits after a prefix such as “fw_”. A match is a possible Fireworks credential.

Runs by default

Matching rules and source
Keywords
  • fw_

Regex

  • RegexkeyPatfireworks.go:25 (opens TruffleHog source on GitHub)Only code file

    \b(fw_[a-zA-Z0-9]{20,40})\b

    Matches 20–40-character strings of letters and digits after a prefix such as “fw_”.

    Show as a diagram

How it works

  1. Skips any text that doesn’t contain “fw_”. This keeps scanning fast.
  2. Looks for 20–40-character strings of letters and digits after a prefix such as “fw_”.
  3. Reports each remaining match as a possible Fireworks credential. It isn’t known to work until it’s verified.
MustCompile
One value
Guards against false matches
Not found in source
Not found in source
  • rotation_guide

How it behaves

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

pkg/detectors/fireworks · Scanner

Keywords

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

  • fw_

fireworks.go line 29 (opens TruffleHog source on GitHub)

Behavior

Multi-part
No
Match window
512 bytes on each side of a keyword
ahocorasickcore.go line 159 (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 “fw_” and tests matches with the provider. A default scan runs it.

How verification works

What it means

Sends GET to api.fireworks.ai; 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.

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 api.fireworks.ai.
  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://api.fireworks.ai/inference/v1/models

fireworks.go:73 (opens TruffleHog source on GitHub)

Key is sent as

Authorization header

fireworks.go:77 (opens TruffleHog source on GitHub)

How responses are judged

How each response status is judged
StatusOutcomeSource
Verifiedfireworks.go:89 (opens TruffleHog source on GitHub)
401Not verifiedfireworks.go:91 (opens TruffleHog source on GitHub)
OtherdefaultParser mapped default to not verified; source sends it to SetVerificationError.fireworks.go:93 (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://api.fireworks.ai/inference/v1/models"
  • $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 scanner couldn't reach the provider. The scanner needs outbound HTTPS access to api.fireworks.ai. 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

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://docs.fireworks.ai/api-reference/introduction
  • https://api.fireworks.ai/inference/v1/models
Provider response documentation

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: Fireworks
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 Fireworks 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

Use the provider’s instructions for this credential.

Revocation instructions

Fireworks documents deleting a user or service-account API key. Creating a replacement is a separate operation.

Provider documentation checked by Atlas on .

Original detector link: https://docs.fireworks.ai/api-reference/introduction

See it in the rotation directory

Token types

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

Token types: from TruffleHog’s source, and what the vendor says
Prefix
fw_
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

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

    Atlas added fireworks to its detector catalog in this update.

    pkg/detectors/fireworks/fireworks.go+104−0View file
    @@ -0,0 +1,104 @@
    1added: package fireworks
    2added:
    3added: import (
    4added: "context"
    5added: "fmt"
    6added: "io"
    7added: "net/http"
    8added:
    9added: regexp "github.com/wasilibs/go-re2"
    10added:
    11added: "github.com/trufflesecurity/trufflehog/v3/pkg/common"
    12added: "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
    13added: "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detector_typepb"
    14added: )
    15added:
    16added: type Scanner struct {
    17added: client *http.Client
    18added: }
    19added:
    20added: // Ensure the Scanner satisfies the interface at compile time.
    21added: var _ detectors.Detector = (*Scanner)(nil)
    22added:
    23added: var (
    24added: defaultClient = common.SaneHttpClient()
    25added: keyPat = regexp.MustCompile(`\b(fw_[a-zA-Z0-9]{20,40})\b`)
    26added: )
    27added:
    28added: func (s Scanner) Keywords() []string {
    29added: return []string{"fw_"}
    30added: }
    31added:
    32added: // FromData will find and optionally verify Fireworks AI secrets in a given set of bytes.
    33added: func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {
    34added: dataStr := string(data)
    35added:
    36added: uniqueMatches := make(map[string]struct{})
    37added: for _, match := range keyPat.FindAllStringSubmatch(dataStr, -1) {
    38added: uniqueMatches[match[1]] = struct{}{}
    39added: }
    40added:
    41added: for match := range uniqueMatches {
    42added: s1 := detectors.Result{
    43added: DetectorType: detector_typepb.DetectorType_Fireworks,
    44added: Raw: []byte(match),
    45added: ExtraData: map[string]string{
    46added: "rotation_guide": "https://docs.fireworks.ai/api-reference/introduction",
    47added: },
    48added: SecretParts: map[string]string{"key": match},
    49added: }
    50added:
    51added: if verify {
    52added: client := s.client
    53added: if client == nil {
    54added: client = defaultClient
    55added: }
    56added:
    57added: isVerified, extraData, verificationErr := verifyMatch(ctx, client, match)
    58added: s1.Verified = isVerified
    59added: for k, v := range extraData {
    60added: s1.ExtraData[k] = v
    61added: }
    62added: s1.SetVerificationError(verificationErr, match)
    63added: }
    64added:
    65added: results = append(results, s1)
    66added: }
    67added:
    68added: return
    69added: }
    70added:
    71added: func verifyMatch(ctx context.Context, client *http.Client, token string) (bool, map[string]string, error) {
    72added: // Fireworks AI models list endpoint returns 200 OK on valid keys and 401 Unauthorized on invalid keys.
    73added: req, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://api.fireworks.ai/inference/v1/models", nil)
    74added: if err != nil {
    75added: return false, nil, err
    76added: }
    77added: req.Header.Add("Authorization", "Bearer "+token)
    78added:
    79added: res, err := client.Do(req)
    80added: if err != nil {
    81added: return false, nil, err
    82added: }
    83added: defer func() {
    84added: _, _ = io.Copy(io.Discard, res.Body)
    85added: _ = res.Body.Close()
    86added: }()
    87added:
    88added: switch res.StatusCode {
    89added: case http.StatusOK:
    90added: return true, nil, nil
    91added: case http.StatusUnauthorized:
    92added: return false, nil, nil
    93added: default:
    94added: return false, nil, fmt.Errorf("unexpected HTTP response status %d", res.StatusCode)
    95added: }
    96added: }
    97added:
    98added: func (s Scanner) Type() detector_typepb.DetectorType {
    99added: return detector_typepb.DetectorType_Fireworks
    100added: }
    101added:
    102added: func (s Scanner) Description() string {
    103added: return "Fireworks AI is an inference platform for generative AI models. Fireworks API keys grant access to hosted model inference and management APIs."
    104added: }

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

3 of 23 evidence rows need attention

Evidence rows that need attention
FieldStatusValueSource
lastSeenAt2026-11-25T16:33:44.855ZNo citation
timeoutNone extractedFile
rateLimitNone extractedFile
All 23 evidence rows
All evidence rows
FieldStatusValueSource
descriptionFireworks AI is an inference platform for generative AI models. Fireworks API keys grant access to hosted model inference and management APIs.File
keywordsfw_File
detectorTypesFireworksFile
filesfireworks.goFile
patterns\b(fw_[a-zA-Z0-9]{20,40})\bFile
patternTypemust_compileFile
statusactiveFile
lastSeenAt2026-11-25T16:33:44.855ZNo citation
rotationGuidehttps://docs.fireworks.ai/api-reference/introductionFile
verify.hasVerifyYesFile
verify.httpMethodsGETFile
verify.statusCodesOK, UnauthorizedFile
timeoutNone extractedFile
rateLimitNone extractedFile
errorHandlingSetVerificationError; unexpected HTTP response status %dFile
verify.urlshttps://docs.fireworks.ai/api-reference/introduction, https://api.fireworks.ai/inference/v1/modelsFile
detection.keywordsfw_Lines 28–28
verification.endpointhttps://api.fireworks.ai/inference/v1/modelsLines 73–73
verification.httpMethodGETLines 73–73
verification.authenticationMethodAuthorization headerLines 77–77
verification.expectedStatuses.verified{"statuses":[200],"names":["StatusOK"],"outcome":"verified"}Lines 89–89
verification.expectedStatuses.not_verified{"statuses":[401],"names":["StatusUnauthorized"],"outcome":"not_verified"}Lines 91–91
verification.expectedStatuses.error_or_unknown{"statuses":[],"names":["default"],"outcome":"error_or_unknown"}Lines 93–93
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)
  • fireworks.go