[INS-341] Added Shippo detector#4820
Open
MuneebUllahKhan222 wants to merge 5 commits intotrufflesecurity:mainfrom
Open
[INS-341] Added Shippo detector#4820MuneebUllahKhan222 wants to merge 5 commits intotrufflesecurity:mainfrom
MuneebUllahKhan222 wants to merge 5 commits intotrufflesecurity:mainfrom
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description:
This PR adds the Shippo API Token Detector for TruffleHog. It scans for both live and test API tokens used by the Shippo shipping platform and supports live verification against the Shippo API.
API Token Regex:
\b(shippo_(live|test)_[a-f0-9]{40})\bVerification:
Verification is performed by sending a GET request to the
/v1/shippo-accountsendpoint. The detected token is passed in the Authorization header using theShippoTokenscheme.Corpora Test:
The detector does not appear in the list.

Checklist:
make test-community)?make lintthis requires golangci-lint)?Note
Medium Risk
Adds a new detector and verification HTTP call to an external Shippo endpoint and extends the shared
DetectorTypeprotobuf enum, which can affect compatibility and runtime behavior if the API surface or enum mapping changes.Overview
Adds a new
shipposecret detector that findsshippo_(live|test)_...API tokens, redacts them in results, and can optionally verify validity via an authenticated GET to Shippo’s API.Registers the detector in the default detector set and extends the
DetectorTypeprotobuf enum withShippo, plus adds unit, integration, and benchmark coverage for matching and verification error handling.Written by Cursor Bugbot for commit c93bfcd. This will update automatically on new commits. Configure here.