Skip to content

feat(enrichment): detect Knock service and Sourcegraph access tokens#3333

Closed
bohdansolovie wants to merge 2 commits into
JSONbored:mainfrom
bohdansolovie:feat/secret-scan-knock-sourcegraph
Closed

feat(enrichment): detect Knock service and Sourcegraph access tokens#3333
bohdansolovie wants to merge 2 commits into
JSONbored:mainfrom
bohdansolovie:feat/secret-scan-knock-sourcegraph

Conversation

@bohdansolovie

Copy link
Copy Markdown
Contributor

Summary

  • Add knock_service_token rule for Knock knock_st_ management API service tokens
  • Add sourcegraph_access_token rule for Sourcegraph sgp_ + 16 hex + _ + 40 hex access tokens
  • Include positive, truncation, and identifier-continuation negative tests (-suffix, _suffix, alpha)

Test plan

  • cd review-enrichment && npm run build && node --test test/secret-scan.test.ts (94 passing)

Made with Cursor

Add high-confidence secret-scan rules for Knock knock_st_ management API
service tokens and Sourcegraph sgp_ access tokens, with truncation and
identifier-continuation negative tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bohdansolovie bohdansolovie requested a review from JSONbored as a code owner July 5, 2026 03:35
@superagent-security superagent-security Bot added the contributor:flagged Contributor flagged for review by trust analysis. label Jul 5, 2026
@superagent-security

Copy link
Copy Markdown

🚨 Contributor flagged. Click here for more info: Superagent Dashboard

@superagent-security

Copy link
Copy Markdown

Superagent didn't find any vulnerabilities or security issues in this PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bohdansolovie

Copy link
Copy Markdown
Contributor Author

Closing to focus review capacity on #3337; Knock/Sourcegraph rules will be resubmitted after merge.

@gittensory-orb gittensory-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.5x multiplier. label Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:flagged Contributor flagged for review by trust analysis. gittensor:bug Gittensor-scored bug fix — scores a 0.5x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant