config.json

{
    "regexes":[
      {"_Private_Key":"[-]{5}BEGIN\\s(?:[DR]SA|OPENSSH|EC|PGP)\\sPRIVATE\\sKEY(?:\\sBLOCK)?[-]{5}"},
      {"_AWS_Key":"[\\s'\"=]A[KS]IA[0-9A-Z]{16}[\\s'\"]"},
      {"_AWS_Key_line_end":"[\\s=]A[KS]IA[0-9A-Z]{16}$"},
      {"_Slack_token":"xox[pboa]-[0-9]{11,12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32}"},
      {"_Basic_Auth":"Authorization:\\sBasic\\s(?:[a-zA-Z0-9\\+/]{4})*(?:[a-zA-Z0-9\\+/]{3}=|[a-zA-Z0-9\\+/]{2}==)?(?:$|[\\s;'\"])"},
      {"_Basic_Auth_Only_Pattern":"Basic\\s(?:[a-zA-Z0-9\\+/]{4})*(?:[a-zA-Z0-9\\+/]{3}=|[a-zA-Z0-9\\+/]{2}==)?(?:$|[\\s;'\"])"},
      {"_.npmrc_auth":"^\\s{0,20}_auth\\s{0,20}="},
      {"_Connection_String":"[0-9a-z-]{3,30}(?<!mailto|sip):[a-z0-9!$)(=<>%#*&_^-]{6,45}@[0-9a-z-.]{1,50}(?:[\\s;'\",:]|$)"},
      {"_JDBC_Connection_Creds":"jdbc:oracle:thin:[0-9a-z-]{3,30}/[a-z0-9!?$)%@#*&_^-]+@"},
      {"_Keys":"(?:(?:a(?:ws|ccess|p(?:i|p(?:lication)?)))|private|se(?:nsitive|cret))[\\s_-]?key\\s{1,20}[=:]{1,2}\\s{0,20}['\"]?(?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,1200}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,1200})(?![$][a-z_-]{1,60}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{8,1200}(?:[\\s;'\",]|$)"},
      {"_Keys_no_space":"(?:(?:a(?:ws|ccess|p(?:i|p(?:lication)?)))|private|se(?:nsitive|cret))[\\s_-]?key[=:]{1,2}\\s{0,20}['\"]?(?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,1200}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,1200})(?![$][a-z_-]{1,60}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{8,1200}(?:[\\s;'\",]|$)"},
      {"_Password_Generic_with_quotes":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)['\"]?\\s{0,20}[=:]{1,3}\\s{0,20}[@]?['\"](?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$][a-z_-]{1,45}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}['\"]"},
      {"_Password_equal_no_quotes":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)\\s{0,20}[=]\\s{0,20}(?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$#]?{[^\\s;'\",]{1,60}})(?![$][a-z_-]{1,45}(?:(?:</)|[\\s;'\",]|$))[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}(?:(?:</)|[\\s;'\",]|$)"},
      {"_Password_value":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret).{0,10}value[=]['\"](?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$][a-z_-]{1,45}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}['\"]"},
      {"_Password_primary":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)\\sprimary[=]['\"](?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$][a-z_-]{1,45}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}['\"]"},
      {"_Password_set":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)[(]['\"](?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$][a-z_-]{1,45}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}['\"][)][;]"},
      {"_Password_admin":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)['\"]?\\s{0,20}[=:]{1,3}\\s{0,20}['\"]?admin[\\s;'\",]"},
      {"_Password_String":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)\\s{0,20}[:]{1,3}\\s{1,20}string\\s{1,20}['\"](?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$][a-z_-]{1,45}[\\s;'\",])(?![#$]?{[^'\"]{1,60}})[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}['\"]"},
      {"_Password_XML":"<(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)>(?![$#]{.{1,100}}</(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)>)(?!%%.{1,100}%%</(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)>).{5,1200}</(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)>"},
      {"_Password_colon_no_quotes":"(?:(?:pass(?:w(?:or)?d)?)|(?:p(?:s)?w(?:r)?d)|secret)\\s{0,20}(?!:=):\\s{0,20}(?=[a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45}[^\\sa-z;'\",\/.)(_-][a-z0-9!?$)=<\/>%@#*&{}_^-]{0,45})(?![$#]?{[^\\s,;]{1,60}})(?![$][a-z_-]{1,45}(?:[\\s,;]|$))[a-z0-9!?$)=<\/>%@#*&{}_^-]{6,45}(?:[\\s,;]|$)"},
      {"_GitHub_Token":"github.{0,20}['\"][a-z0-9]{35,40}['\"]"},
      {"_Facebook_Token":"facebook.{0,30}['\"][0-9a-f]{32,255}['\"]"},
      {"_Twitter_Token":"twitter.{0,30}['\"][a-z0-9]{35,44}['\"]"},
      {"_Heroku_Key":"heroku.{0,30}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"},
      {"_Azure_AccountKey":"AccountKey\\s+=\\s+[a-zA-Z0-9+\/=]{88}"},
      {"_PWSH_Personal_Acces_Token_PAT":"\\$pat\\s*=\\s*['\"][a-z0-9]{52}['\"]"},
      {"_Personal_Acces_Token_PAT":"(\\s|^)[a-z0-9]{52}(\\s|$)"},
      {"_Cloudinary":"cloudinary://.*"},
      {"_Firebase_URL":"firebaseio\\.com"},
      {"_Amazon_MWS_Auth_Token":"amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"},
      {"_Facebook_Access_Token":"EAACEdEose0cBA[0-9A-Za-z]+"},
      {"_Facebook_OAuth":"[f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K].*['|\"][0-9a-f]{32}['|\"]"},
      {"_GitHub":"[g|G][i|I][t|T][h|H][u|U][b|B].*['|\"][0-9a-zA-Z]{35},40}['|\"]"},
      {"_Generic_API_Key":"[a|A][p|P][i|I][_]?[k|K][e|E][y|Y].*['|\"][0-9a-zA-Z]{32},45}['|\"]"},
      {"_Generic_Secret":"[s|S][e|E][c|C][r|R][e|E][t|T].*['|\"][0-9a-zA-Z]{32},45}['|\"]"},
      {"_Google_API_Key":"AIza[0-9A-Za-z\\-_]{35}"},
      {"_Google_Cloud_Platform_OAuth":"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com"},
      {"_Google_GCP_Service_account":"\"type\":\"service_account\""},
      {"_Google_OAuth_Access_Token":"ya29\\.[0-9A-Za-z\\-_]+"},
      {"_Heroku_API_Key":"[h|H][e|E][r|R][o|O][k|K][u|U].*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}"},
      {"_MailChimp_API_Key":"[0-9a-f]{32}-us[0-9]{1},2}"},
      {"_Mailgun_API_Key":"key-[0-9a-zA-Z]{32}"},
      {"_Password_in_URL":"[a-zA-Z]{3},10}://[^/\\s:@]{3},20}:[^/\\s:@]{3},20}@.{1},100}[\"'\\s]"},
      {"_PayPal_Braintree_Access_Token":"access_token\\$production\\$[0-9a-z]{16}\\$[0-9a-f]{32}"},
      {"_Picatic_API_Key":"sk_live_[0-9a-z]{32}"},
      {"_Slack_Webhook":"https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}"},
      {"_Stripe_API_Key":"sk_live_[0-9a-zA-Z]{24}"},
      {"_Stripe_Restricted_API_Key":"rk_live_[0-9a-zA-Z]{24}"},
      {"_Square_Access_Token":"sq0atp-[0-9A-Za-z\\-_]{22}"},
      {"_Square_OAuth_Secret":"sq0csp-[0-9A-Za-z\\-_]{43}"},
      {"_Twilio_API_Key":"SK[0-9a-fA-F]{32}"},
      {"_Twitter_Access_Token":"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*[1-9][0-9]+-[0-9a-zA-Z]{40}"},
      {"_Twitter_OAuth":"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*['|\"][0-9a-zA-Z]{35,44}['|\"]"}
    ],
    "fileextensions":[
        ".ps1",
        ".psm1",
        ".psd1",
        ".md",
        ".txt",
        ".xml",
        ".csv",
        ".bicep",
        ".json",
        ""
    ]
  }