feat(enrichment): detect Browserbase and Modal tokens in secret-scan - #3284
feat(enrichment): detect Browserbase and Modal tokens in secret-scan#3284bohdansolovie wants to merge 1 commit into
Conversation
Add high-confidence rules for bb_ (Browserbase) and ak-/as- (Modal token ID/secret) with truncation and continuation regression tests. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 00:58:41 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 2 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: review-enrichment/src/analyzers/secret-scan.ts:252: the Browserbase regex uses `(?![A-Za-z0-9_])`, so `bb_aaaaaaaaaaaaaaaaaaaa-suffix` is reported as a complete high-confidence `browserbase_api_key` even though the existing secret rules and this PR's own stated continuation contract require hyphenated continuations to be rejected; change it to `re: /\bbb_[A-Za-z0-9]{20,}(?![A-Za-z0-9_-])/` and add the matching negative test.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
browserbase_api_keyrule for Browserbase keys (bb_prefix).modal_tokenrule for Modal token ID (ak-) and secret (as-).Test plan
npm run build && node --test test/secret-scan.test.tsinreview-enrichment/(74 passing)Made with Cursor