SwaggerSpy icon indicating copy to clipboard operation
SwaggerSpy copied to clipboard

New Regex

Open mattulm opened this issue 3 months ago • 0 comments

Hi, I am very new to development, and no clue how I should probably really do this, but here are some regex that I added to this. Hope this helps!!!

'slack_webhook' : r'https://hooks\.slack\.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}',
'mysql_uri'     : r'mysql:\/\/[a-zA-Z0-9]+:[\w\.\-]+@[\w\.\-]+:\d+\/[a-zA-Z0-9]+',
'github_pat'    : r'ghp_[a-zA-Z0-9]{36}',
'MySQL URI'     : r'mysql:\/\/[a-zA-Z0-9]+:[\w\.\-]+@[\w\.\-]+:\d+\/[a-zA-Z0-9]+',
'Generic Secret Key (Base64)'    : r'`(?i)secret[_-]?(key',
'API Key Generic'  : r'`(?i)(api',
'MD5 Hash (Potential Key)'   : r'[a-f0-9]{32}',
'NPM Access Token'  : r'npm_[a-zA-Z0-9]{36}',
'GitHub Personal Access Token (PAT)'  : r'ghp_[a-zA-Z0-9]{36}',
'Git Credential'  : r'https?:\/\/[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+@github\.com',
'JIRA Personal Access Token (PAT) Regex'  : r'ATATTAC[a-zA-Z0-9]{24,48}'

mattulm avatar Oct 28 '25 15:10 mattulm