Skip to content

[INS-341] Added Shippo detector#4820

Open
MuneebUllahKhan222 wants to merge 5 commits intotrufflesecurity:mainfrom
MuneebUllahKhan222:shippo-detector
Open

[INS-341] Added Shippo detector#4820
MuneebUllahKhan222 wants to merge 5 commits intotrufflesecurity:mainfrom
MuneebUllahKhan222:shippo-detector

Conversation

@MuneebUllahKhan222
Copy link
Contributor

@MuneebUllahKhan222 MuneebUllahKhan222 commented Mar 17, 2026

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})\b

Verification:

Verification is performed by sending a GET request to the /v1/shippo-accounts endpoint. The detected token is passed in the Authorization header using the ShippoToken scheme.

Corpora Test:

The detector does not appear in the list.
image

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

Note

Medium Risk
Adds a new detector and verification HTTP call to an external Shippo endpoint and extends the shared DetectorType protobuf enum, which can affect compatibility and runtime behavior if the API surface or enum mapping changes.

Overview
Adds a new shippo secret detector that finds shippo_(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 DetectorType protobuf enum with Shippo, 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.

@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team March 17, 2026 10:59
@MuneebUllahKhan222 MuneebUllahKhan222 requested review from a team as code owners March 17, 2026 10:59
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant