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":"(?i)^\\+\\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}['\"]"}
    ],
    "fileextensions":[
        ".ps1",
        ".psm1",
        ".psd1",
        ".md",
        ".txt",
        ".xml",
        ".csv",
        ".bicep",
        ".json",
        ""
    ]
  }