Add Together AI secret detector#4943
Open
asivaprasad09 wants to merge 2 commits intotrufflesecurity:mainfrom
Open
Add Together AI secret detector#4943asivaprasad09 wants to merge 2 commits intotrufflesecurity:mainfrom
asivaprasad09 wants to merge 2 commits intotrufflesecurity:mainfrom
Conversation
Adds a detector for Together AI API keys (tgp_v1_ format). Verifies keys via GET /v1/models endpoint.
|
Akshara Sivaprasad seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Co-authored-by: asivaprasad09 <asivaprasad@salesforce.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
Reviewed by Cursor Bugbot for commit c3fe507. Configure here.
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.

Summary
tgp_v1_format)GET https://api.together.xyz/v1/modelsdefaults.goand proto asTogetherAI = 1049SecretPartswith"key"per detector conventionsTest plan
go test ./pkg/detectors/togetherai/... -tags=detectorspasses all 4 cases (found+verified, found+unverified, not found, timeout)Note
Low Risk
Low risk: additive new detector plus enum registration; main risk is potential false positives/verification HTTP behavior from the external Together API.
Overview
Adds a new
TogetherAIsecret detector that findstgp_v1_...API keys and can verify them via a read-onlyGET https://api.together.xyz/v1/modelscall.Registers the detector in
defaults.goand extendsdetector_type.proto/generated protobufs withTogetherAI = 1049, with tests/benchmarks covering verified, unverified, not-found, and timeout verification cases.Reviewed by Cursor Bugbot for commit c3fe507. Bugbot is set up for automated code reviews on this repo. Configure here.