Skip to content

Add linear-time secret detectors for Cloudflare API tokens, Vercel tokens, and Supabase service_role keys #73

Open

Description

@divyanshujethi

Add ReDoS-safe (linear-time) regex detectors to src/patterns.ts and src/core-redactor.ts for:

  • Cloudflare API tokens
  • Vercel personal/team access tokens
  • Supabase sbp_ / sb_secret_ keys

Acceptance Criteria

  • Zero nested quantifiers (DFA-safe)
  • Unit tests using runtime-assembled synthetic tokens (no static high-entropy literals so agentshield ci passes cleanly)
  • False-positive test ensuring standard UUIDs and git SHAs are ignored

Activity

  1. github-actions commented on Nov 18, 2026

    @github-actions

    👋 Thanks for reporting this issue, @divyanshujethi!

    We appreciate your vigilance in keeping AI agents secure with AgentShield. 🛡️

    Our security team will review and triage this report shortly. If this is a suspected vulnerability or security finding, remember you can also disclose responsibly via our Security Policy.

    🤝 Want to contribute a fix or pattern? Let us know and we'd be happy to guide you through opening a PR!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions