Skip to content
Detectors

Scanner deep dive

Overview

Composio is an integration platform for AI agents. Composio API
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

The Composio detector looks for a single value in text that resembles a credential. It uses the word “ak_” to narrow its search.

Runs by default

Matching rules and source
Keywords
  • ak_

Regexes

How it works

  1. Skips any text that doesn’t contain “ak_”. This keeps scanning fast.
  2. Looks for text matching any of its 3 patterns.
  3. Reports each remaining match as a possible Composio 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
  • key_type
  • rotation_guide
  • endpoint
  • restriction

How it behaves

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

pkg/detectors/composio · Scanner

Keywords

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

  • ak_

composio.go line 100 (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
Yes, can verify against your own server
composio.go line 21 (opens TruffleHog source on GitHub)
Cloud endpoint
https://backend.composio.dev
composio.go line 29 (opens TruffleHog source on GitHub)
Randomness check
None in this detector's own code
False-positive check
The shared word lists
Enabled by default
Yes in the open-source CLI, which turns on its feature flag
defaults.go line 1114 (opens TruffleHog source on GitHub)

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 “ak_” and tests matches with the provider. The open-source CLI runs it by turning on its feature flag.

How verification works

What it means

Sends GET to docs.composio.dev; 200, 401, 403 means 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.

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 docs.composio.dev.
  2. If the answer is 200 or 401 or 403, TruffleHog reports the match as verified under this detector’s rules.
  3. TruffleHog reports Verified for 200 and 403. A 403 means Stripe refused to list charges.
  4. Any other answer sets a verification error: reported as unverified with an error, not as rejected.
  5. If the request can’t reach the provider, the result is an error, not a rejection.

Evidence from source

Endpoint

https://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocation

composio.go:202 (opens TruffleHog source on GitHub)

Key is sent as

Not found in source

How responses are judged

How each response status is judged
StatusOutcomeSource
Verifiedcomposio.go:219 (opens TruffleHog source on GitHub)
401/401, 403Verifiedcomposio.go:222 (opens TruffleHog source on GitHub)
OtherdefaultParser mapped default to not verified; source sends it to SetVerificationError.composio.go:230 (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

No command for this check. How the key is sent isn't recorded, so no command is shown.

Rule: missing-auth. Key placement as recorded: none.

2. Likely causes

  • The scanner couldn't reach the provider. The scanner needs outbound HTTPS access to docs.composio.dev. A firewall, proxy or DNS problem is reported as an error, not a rejection, and the key can be checked again.
  • 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

HTTP 200 or 403 is verified. Forbidden means the key authenticated but this endpoint refused the action.

other statuses: verification error or unknown

transport errors return a verification error

All URLs found in source

  • https://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocation
  • https://backend.composio.dev
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: Composio
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 Composio 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

Composio documents how to revoke a leaked project, user, or organization API key. The page covers revocation only.

Provider documentation checked by Atlas on .

See it in the rotation directory

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

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 composio to its detector catalog in this update.

    pkg/detectors/composio/composio.go+269−0View file
    @@ -0,0 +1,269 @@
    1added: package composio
    2added:
    3added: import (
    4added: "cmp"
    5added: "context"
    6added: "encoding/json"
    7added: "fmt"
    8added: "io"
    9added: "net/http"
    10added: "strings"
    11added:
    12added: regexp "github.com/wasilibs/go-re2"
    13added:
    14added: "github.com/trufflesecurity/trufflehog/v3/pkg/common"
    15added: "github.com/trufflesecurity/trufflehog/v3/pkg/detectors"
    16added: "github.com/trufflesecurity/trufflehog/v3/pkg/pb/detector_typepb"
    17added: )
    18added:
    19added: type Scanner struct {
    20added: client *http.Client
    21added: detectors.EndpointSetter
    22added: }
    23added:
    24added: // Ensure the Scanner satisfies the interfaces at compile time.
    25added: var _ detectors.Detector = (*Scanner)(nil)
    26added: var _ detectors.EndpointCustomizer = (*Scanner)(nil)
    27added: var _ detectors.CloudProvider = (*Scanner)(nil)
    28added:
    29added: func (Scanner) CloudEndpoint() string { return "https://backend.composio.dev" }
    30added:
    31added: var defaultClient = common.SaneHttpClient()
    32added:
    33added: // getClient returns the client verification requests go through. The
    34added: // VerificationClient wrap is what attaches the operator's access token when
    35added: // --verifier points at an auth-protected endpoint; without it those requests
    36added: // go out unauthenticated and every key comes back looking dead.
    37added: func (s Scanner) getClient() *http.Client {
    38added: return s.VerificationClient(cmp.Or(s.client, defaultClient))
    39added: }
    40added:
    41added: const rotationGuide = "https://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocation"
    42added:
    43added: // maxErrorBodyBytes bounds how much of an error response is read. Composio's
    44added: // error envelope is a few hundred bytes; anything larger is not one.
    45added: const maxErrorBodyBytes = 64 * 1024
    46added:
    47added: // Composio issues three key types, all a fixed prefix followed by URL-safe
    48added: // nanoid characters. oak_ and uak_ contain "ak_", so every pattern requires a
    49added: // non-alphabet character (or start of input) before the prefix. The trailing
    50added: // boundary is checked in code rather than in the pattern: a consuming trailing
    51added: // group would swallow the single delimiter between two adjacent keys and drop
    52added: // the second one.
    53added: //
    54added: // Each key type authenticates through its own header and its own routes. A key
    55added: // sent under another type's header is answered with the same 401 as no header
    56added: // at all, so verification cannot share one endpoint across types: every type
    57added: // carries the cheapest read-only route it can authenticate.
    58added: type keyPattern struct {
    59added: keyType string
    60added: re *regexp.Regexp
    61added: verifyPath string
    62added: header string
    63added: }
    64added:
    65added: var keyPatterns = []keyPattern{
    66added: {
    67added: keyType: "project",
    68added: re: regexp.MustCompile(`(?:^|[^A-Za-z0-9_-])(ak_[A-Za-z0-9_-]{20})`),
    69added: verifyPath: "/api/v3/toolkits/categories",
    70added: header: "x-api-key",
    71added: },
    72added: {
    73added: keyType: "org",
    74added: re: regexp.MustCompile(`(?:^|[^A-Za-z0-9_-])(oak_[A-Za-z0-9_-]{20})`),
    75added: verifyPath: "/api/v3/org/owner/project/list",
    76added: header: "x-org-api-key",
    77added: },
    78added: {
    79added: keyType: "user",
    80added: re: regexp.MustCompile(`(?:^|[^A-Za-z0-9_-])(uak_[A-Za-z0-9_-]{43})`),
    81added: verifyPath: "/api/v3/org/list?limit=1",
    82added: header: "x-user-api-key",
    83added: },
    84added: }
    85added:
    86added: // isKeyAlphabet reports whether b can appear inside a Composio key.
    87added: func isKeyAlphabet(b byte) bool {
    88added: return (b >= 'A' && b <= 'Z') || (b >= 'a' && b <= 'z') || (b >= '0' && b <= '9') || b == '_' || b == '-'
    89added: }
    90added:
    91added: // endsAtBoundary reports whether the key ending at end is followed by end of
    92added: // input or a character that cannot be part of a key.
    93added: func endsAtBoundary(data string, end int) bool {
    94added: return end >= len(data) || !isKeyAlphabet(data[end])
    95added: }
    96added:
    97added: // Keywords are used for efficiently pre-filtering chunks. "ak_" is a substring
    98added: // of all three prefixes.
    99added: func (s Scanner) Keywords() []string {
    100added: return []string{"ak_"}
    101added: }
    102added:
    103added: // FromData finds Composio API keys in a given set of bytes and, when asked,
    104added: // verifies each one against the Composio API.
    105added: func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (results []detectors.Result, err error) {
    106added: dataStr := string(data)
    107added:
    108added: seen := make(map[string]struct{})
    109added: for _, pattern := range keyPatterns {
    110added: for _, loc := range pattern.re.FindAllStringSubmatchIndex(dataStr, -1) {
    111added: start, end := loc[2], loc[3]
    112added: if !endsAtBoundary(dataStr, end) {
    113added: continue
    114added: }
    115added: token := dataStr[start:end]
    116added: if _, dup := seen[token]; dup {
    117added: continue
    118added: }
    119added: seen[token] = struct{}{}
    120added:
    121added: r := detectors.Result{
    122added: DetectorType: detector_typepb.DetectorType_Composio,
    123added: Raw: []byte(token),
    124added: SecretParts: map[string]string{"key": token},
    125added: ExtraData: map[string]string{
    126added: "key_type": pattern.keyType,
    127added: "rotation_guide": rotationGuide,
    128added: },
    129added: }
    130added:
    131added: if verify {
    132added: client := s.getClient()
    133added:
    134added: // Only the cloud endpoint and operator-configured endpoints are
    135added: // used; URLs found in scanned data are never called. Only
    136added: // non-nil errors overwrite lastErr so a clean 401 from one
    137added: // endpoint does not erase a transient failure from another.
    138added: var lastErr error
    139added: for _, baseURL := range s.Endpoints() {
    140added: verified, extra, vErr := verifyMatch(ctx, client, baseURL, pattern, token)
    141added: r.Verified = verified
    142added: if vErr != nil {
    143added: lastErr = vErr
    144added: }
    145added: if verified {
    146added: lastErr = nil
    147added: r.ExtraData["endpoint"] = baseURL
    148added: for k, v := range extra {
    149added: r.ExtraData[k] = v
    150added: }
    151added: break
    152added: }
    153added: }
    154added: r.SetVerificationError(lastErr, token)
    155added: }
    156added:
    157added: results = append(results, r)
    158added: }
    159added: }
    160added:
    161added: return results, nil
    162added: }
    163added:
    164added: // apiError is the envelope every Composio API error carries. The slug is
    165added: // stable across releases; the message is human copy.
    166added: type apiError struct {
    167added: Error struct {
    168added: Message string `json:"message"`
    169added: Slug string `json:"slug"`
    170added: Code int `json:"code"`
    171added: } `json:"error"`
    172added: }
    173added:
    174added: // verifyMatch sends the key on the route its type can authenticate and maps
    175added: // the answer to verified, dead, or undecided. Composio deliberately answers
    176added: // several unrelated conditions with 401, so the verdict comes from the error
    177added: // slug in the body, never from the status code alone:
    178added: //
    179added: // - 200: live.
    180added: // - 401 APIKey_InvalidAPIKey, APIKey_APIKeyExpired, UserApiKey_Unauthorized,
    181added: // and HTTP_Unauthorized "Invalid x-org-api-key": the hash matched no live
    182added: // row. Dead, no error.
    183added: // - 401 Auth_Unauthorized naming the key's IP allowlist: the key exists and
    184added: // works from allowlisted addresses. Live, reported with the restriction.
    185added: // - 403 carrying the envelope: Composio only refuses with 403 after the
    186added: // credential resolved (a scoped key without the route's permission, an
    187added: // org-level restriction). Live, reported with the restriction.
    188added: // - Anything else (a banned scanner address answers "Access denied", a
    189added: // stripped header answers Auth_NoAuthProvided, a WAF page has no
    190added: // envelope, 429, 5xx): undecided, surfaced as a verification error.
    191added: //
    192added: // The org key's dead slug HTTP_Unauthorized is shared with the banned-address
    193added: // answer, so that one branch also reads the message; a copy change there
    194added: // degrades to an undecided error, never to a wrong verdict.
    195added: func verifyMatch(
    196added: ctx context.Context,
    197added: client *http.Client,
    198added: baseURL string,
    199added: pattern keyPattern,
    200added: token string,
    201added: ) (bool, map[string]string, error) {
    202added: req, err := http.NewRequestWithContext(ctx, http.MethodGet, strings.TrimRight(baseURL, "/")+pattern.verifyPath, nil)
    203added: if err != nil {
    204added: return false, nil, err
    205added: }
    206added: req.Header.Set(pattern.header, token)
    207added: req.Header.Set("Accept", "application/json")
    208added:
    209added: res, err := client.Do(req)
    210added: if err != nil {
    211added: return false, nil, err
    212added: }
    213added: defer func() {
    214added: _, _ = io.Copy(io.Discard, res.Body)
    215added: _ = res.Body.Close()
    216added: }()
    217added:
    218added: switch res.StatusCode {
    219added: case http.StatusOK:
    220added: return true, nil, nil
    221added:
    222added: case http.StatusUnauthorized, http.StatusForbidden:
    223added: var body apiError
    224added: dec := json.NewDecoder(io.LimitReader(res.Body, maxErrorBodyBytes))
    225added: if err := dec.Decode(&body); err != nil || body.Error.Slug == "" {
    226added: return false, nil, fmt.Errorf("HTTP %d without a Composio error envelope", res.StatusCode)
    227added: }
    228added: return classifyRejection(res.StatusCode, body)
    229added:
    230added: default:
    231added: return false, nil, fmt.Errorf("unexpected HTTP response status %d", res.StatusCode)
    232added: }
    233added: }
    234added:
    235added: func classifyRejection(status int, body apiError) (bool, map[string]string, error) {
    236added: slug, message := body.Error.Slug, body.Error.Message
    237added:
    238added: switch {
    239added: case status == http.StatusUnauthorized && (slug == "APIKey_InvalidAPIKey" ||
    240added: slug == "APIKey_APIKeyExpired" || slug == "UserApiKey_Unauthorized"):
    241added: return false, nil, nil
    242added:
    243added: case status == http.StatusUnauthorized && slug == "HTTP_Unauthorized" &&
    244added: strings.HasPrefix(message, "Invalid x-org-api-key"):
    245added: return false, nil, nil
    246added:
    247added: case status == http.StatusUnauthorized && slug == "Auth_Unauthorized" && strings.Contains(message, "IP allowlist"):
    248added: return true, map[string]string{"restriction": "ip_allowlist"}, nil
    249added:
    250added: case status == http.StatusForbidden && slug == "APIKey_InsufficientPermissions":
    251added: return true, map[string]string{"restriction": "insufficient_permissions"}, nil
    252added:
    253added: case status == http.StatusForbidden:
    254added: return true, map[string]string{"restriction": slug}, nil
    255added:
    256added: default:
    257added: return false, nil, fmt.Errorf("HTTP %d %s did not judge the key: %s", status, slug, message)
    258added: }
    259added: }
    260added:
    261added: func (s Scanner) Type() detector_typepb.DetectorType {
    262added: return detector_typepb.DetectorType_Composio
    263added: }
    264added:
    265added: func (s Scanner) Description() string {
    266added: return "Composio is an integration platform for AI agents. Composio API " +
    267added: "keys authenticate calls that execute tools, read connected accounts " +
    268added: "and manage triggers for a project, an organization or a user."
    269added: }

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 22 evidence rows need attention

Evidence rows that need attention
FieldStatusValueSource
lastSeenAt2026-11-25T16:33:44.855ZNo citation
timeoutNone extractedFile
rateLimitNone extractedFile
All 22 evidence rows
All evidence rows
FieldStatusValueSource
descriptionComposio is an integration platform for AI agents. Composio API File
keywordsak_File
detectorTypesComposioFile
filescomposio.goFile
patterns(?:^|[^A-Za-z0-9_-])(ak_[A-Za-z0-9_-]{20}), (?:^|[^A-Za-z0-9_-])(oak_[A-Za-z0-9_-]{20}), (?:^|[^A-Za-z0-9_-])(uak_[A-Za-z0-9_-]{43})File
patternTypemust_compileFile
statusactiveFile
lastSeenAt2026-11-25T16:33:44.855ZNo citation
rotationGuidehttps://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocationFile
verify.hasVerifyYesFile
verify.httpMethodsGETFile
verify.statusCodesOK, Unauthorized, ForbiddenFile
timeoutNone extractedFile
rateLimitNone extractedFile
errorHandlingSetVerificationError; unexpected HTTP response status %dFile
verify.urlshttps://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocation, https://backend.composio.devFile
detection.keywordsak_Lines 99–99
verification.endpointhttps://docs.composio.dev/reference/api-reference/api-keys/postApiKeyRevocationLines 202–202
verification.httpMethodGETLines 202–202
verification.expectedStatuses.verified{"statuses":[200],"names":["StatusOK"],"outcome":"verified"}Lines 219–219
verification.expectedStatuses.verified{"statuses":[401,403],"names":["StatusUnauthorized","StatusForbidden"],"outcome":"verified"}Lines 222–222
verification.expectedStatuses.error_or_unknown{"statuses":[],"names":["default"],"outcome":"error_or_unknown"}Lines 230–230
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)
  • composio.go