feat(enrichment): detect Discord bot tokens and Twilio SIDs in secret-scan - #3262
feat(enrichment): detect Discord bot tokens and Twilio SIDs in secret-scan#3262bohdansolovie wants to merge 1 commit into
Conversation
…-scan Add high-confidence patterns for Discord bot tokens and Twilio Account/API Key SIDs with fragment-based fixtures, truncation negatives, and webhook parity. 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. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-04 23:39:22 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 2 non-blocking
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:181 accepts `AC` + 32 hex characters even when immediately followed by another non-hex identifier character such as `z`, so a string like `ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz` is incorrectly reported as a `twilio_account_sid`; change the tail guard to reject any identifier continuation, e.g. `re: /\bAC[0-9a-fA-F]{32}(?![A-Za-z0-9_])/`, and apply the same boundary to the `SK` rule.). 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. |
Use identifier-continuation lookahead so AC/SK + 32 hex is not matched when immediately followed by a non-hex identifier char (Orb JSONbored#3262). Co-authored-by: Cursor <cursoragent@cursor.com>
…-scan (#3263) * feat(enrichment): detect Discord bot tokens and Twilio SIDs in secret-scan Add high-confidence patterns for Discord bot tokens and Twilio Account/API Key SIDs with fragment-based fixtures, truncation negatives, and webhook parity. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(enrichment): tighten Twilio SID tail boundary in secret-scan Use identifier-continuation lookahead so AC/SK + 32 hex is not matched when immediately followed by a non-hex identifier char (Orb #3262). Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
[MNO]….….…) and Twilio Account/API Key SIDs (AC…/SK…+ 32 hex).Motivation
Discord bot tokens and Twilio SIDs are commonly leaked in config files and env snippets. The secret-scan analyzer already covers many SaaS tokens but missed these high-impact formats.
Test plan
secret-scan.test.tssuite passesnpm run buildinreview-enrichment/Made with Cursor