gitleaks.toml 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138
  1. # This file has been auto-generated. Do not edit manually.
  2. # If you would like to contribute new rules, please use
  3. # cmd/generate/config/main.go and follow the contributing guidelines
  4. # at https://github.com/gitleaks/gitleaks/blob/master/CONTRIBUTING.md
  5. #
  6. # How the hell does secret scanning work? Read this:
  7. # https://lookingatcomputer.substack.com/p/regex-is-almost-all-you-need
  8. #
  9. # This is the default gitleaks configuration file.
  10. # Rules and allowlists are defined within this file.
  11. # Rules instruct gitleaks on what should be considered a secret.
  12. # Allowlists instruct gitleaks on what is allowed, i.e. not a secret.
  13. title = "gitleaks config"
  14. [allowlist]
  15. description = "global allow lists"
  16. regexes = [
  17. '''(?i)^true|false|null$''',
  18. '''^(?i:a+|b+|c+|d+|e+|f+|g+|h+|i+|j+|k+|l+|m+|n+|o+|p+|q+|r+|s+|t+|u+|v+|w+|x+|y+|z+|\*+|\.+)$''',
  19. '''^\$(?:\d+|{\d+})$''',
  20. '''^\$(?:[A-Z_]+|[a-z_]+)$''',
  21. '''^\${(?:[A-Z_]+|[a-z_]+)}$''',
  22. '''^\{\{[ \t]*[\w ().|]+[ \t]*}}$''',
  23. '''^\$\{\{[ \t]*(?:(?:env|github|secrets|vars)(?:\.[A-Za-z]\w+)+[\w "'&./=|]*)[ \t]*}}$''',
  24. '''^%(?:[A-Z_]+|[a-z_]+)%$''',
  25. '''^%[+\-# 0]?[bcdeEfFgGoOpqstTUvxX]$''',
  26. '''^\{\d{0,2}}$''',
  27. '''^@(?:[A-Z_]+|[a-z_]+)@$''',
  28. '''^/Users/(?i)[a-z0-9]+/[\w .-/]+$''',
  29. '''^/(?:bin|etc|home|opt|tmp|usr|var)/[\w ./-]+$''',
  30. ]
  31. paths = [
  32. '''gitleaks\.toml''',
  33. '''(?i)\.(?:bmp|gif|jpe?g|png|svg|tiff?)$''',
  34. '''(?i)\.(?:eot|[ot]tf|woff2?)$''',
  35. '''(?i)\.(?:docx?|xlsx?|pdf|bin|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe|gltf|zip)$''',
  36. '''go\.(?:mod|sum|work(?:\.sum)?)$''',
  37. '''(?:^|/)vendor/modules\.txt$''',
  38. '''(?:^|/)vendor/(?:github\.com|golang\.org/x|google\.golang\.org|gopkg\.in|istio\.io|k8s\.io|sigs\.k8s\.io)(?:/.*)?$''',
  39. '''(?:^|/)gradlew(?:\.bat)?$''',
  40. '''(?:^|/)gradle\.lockfile$''',
  41. '''(?:^|/)mvnw(?:\.cmd)?$''',
  42. '''(?:^|/)\.mvn/wrapper/MavenWrapperDownloader\.java$''',
  43. '''(?:^|/)node_modules(?:/.*)?$''',
  44. '''(?:^|/)(?:deno\.lock|npm-shrinkwrap\.json|package-lock\.json|pnpm-lock\.yaml|yarn\.lock)$''',
  45. '''(?:^|/)bower_components(?:/.*)?$''',
  46. '''(?:^|/)(?:angular|bootstrap|jquery(?:-?ui)?|plotly|swagger-?ui)[a-zA-Z0-9.-]*(?:\.min)?\.js(?:\.map)?$''',
  47. '''(?:^|/)javascript\.json$''',
  48. '''(?:^|/)(?:Pipfile|poetry)\.lock$''',
  49. '''(?i)(?:^|/)(?:v?env|virtualenv)/lib(?:64)?(?:/.*)?$''',
  50. '''(?i)(?:^|/)(?:lib(?:64)?/python[23](?:\.\d{1,2})+|python/[23](?:\.\d{1,2})+/lib(?:64)?)(?:/.*)?$''',
  51. '''(?i)(?:^|/)[a-z0-9_.]+-[0-9.]+\.dist-info(?:/.+)?$''',
  52. '''(?:^|/)vendor/(?:bundle|ruby)(?:/.*?)?$''',
  53. '''\.gem$''',
  54. '''verification-metadata\.xml''',
  55. '''Database.refactorlog''',
  56. ]
  57. stopwords = [
  58. "abcdefghijklmnopqrstuvwxyz",
  59. "014df517-39d1-4453-b7b3-9930c563627c",
  60. ]
  61. [[rules]]
  62. id = "1password-service-account-token"
  63. description = "Uncovered a possible 1Password service account token, potentially compromising access to secrets in vaults."
  64. regex = '''ops_eyJ[a-zA-Z0-9+/]{250,}={0,3}'''
  65. entropy = 4
  66. keywords = ["ops_"]
  67. [[rules]]
  68. id = "adafruit-api-key"
  69. description = "Identified a potential Adafruit API Key, which could lead to unauthorized access to Adafruit services and sensitive data exposure."
  70. regex = '''(?i)[\w.-]{0,50}?(?:adafruit)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9_-]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  71. keywords = ["adafruit"]
  72. [[rules]]
  73. id = "adobe-client-id"
  74. description = "Detected a pattern that resembles an Adobe OAuth Web Client ID, posing a risk of compromised Adobe integrations and data breaches."
  75. regex = '''(?i)[\w.-]{0,50}?(?:adobe)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  76. entropy = 2
  77. keywords = ["adobe"]
  78. [[rules]]
  79. id = "adobe-client-secret"
  80. description = "Discovered a potential Adobe Client Secret, which, if exposed, could allow unauthorized Adobe service access and data manipulation."
  81. regex = '''\b(p8e-(?i)[a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  82. entropy = 2
  83. keywords = ["p8e-"]
  84. [[rules]]
  85. id = "age-secret-key"
  86. description = "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information."
  87. regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
  88. keywords = ["age-secret-key-1"]
  89. [[rules]]
  90. id = "airtable-api-key"
  91. description = "Uncovered a possible Airtable API Key, potentially compromising database access and leading to data leakage or alteration."
  92. regex = '''(?i)[\w.-]{0,50}?(?:airtable)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{17})(?:[\x60'"\s;]|\\[nr]|$)'''
  93. keywords = ["airtable"]
  94. [[rules]]
  95. id = "algolia-api-key"
  96. description = "Identified an Algolia API Key, which could result in unauthorized search operations and data exposure on Algolia-managed platforms."
  97. regex = '''(?i)[\w.-]{0,50}?(?:algolia)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  98. keywords = ["algolia"]
  99. [[rules]]
  100. id = "alibaba-access-key-id"
  101. description = "Detected an Alibaba Cloud AccessKey ID, posing a risk of unauthorized cloud resource access and potential data compromise."
  102. regex = '''\b(LTAI(?i)[a-z0-9]{20})(?:[\x60'"\s;]|\\[nr]|$)'''
  103. entropy = 2
  104. keywords = ["ltai"]
  105. [[rules]]
  106. id = "alibaba-secret-key"
  107. description = "Discovered a potential Alibaba Cloud Secret Key, potentially allowing unauthorized operations and data access within Alibaba Cloud."
  108. regex = '''(?i)[\w.-]{0,50}?(?:alibaba)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{30})(?:[\x60'"\s;]|\\[nr]|$)'''
  109. entropy = 2
  110. keywords = ["alibaba"]
  111. [[rules]]
  112. id = "asana-client-id"
  113. description = "Discovered a potential Asana Client ID, risking unauthorized access to Asana projects and sensitive task information."
  114. regex = '''(?i)[\w.-]{0,50}?(?:asana)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  115. keywords = ["asana"]
  116. [[rules]]
  117. id = "asana-client-secret"
  118. description = "Identified an Asana Client Secret, which could lead to compromised project management integrity and unauthorized access."
  119. regex = '''(?i)[\w.-]{0,50}?(?:asana)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  120. keywords = ["asana"]
  121. [[rules]]
  122. id = "atlassian-api-token"
  123. description = "Detected an Atlassian API token, posing a threat to project management and collaboration tool security and data confidentiality."
  124. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:atlassian|confluence|jira)(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-zA-Z0-9]{24})(?:[\x60'"\s;]|\\[nr]|$)|\b(ATATT3[A-Za-z0-9_\-=]{186})(?:[\x60'"\s;]|\\[nr]|$)'''
  125. entropy = 3.5
  126. keywords = [
  127. "atlassian",
  128. "confluence",
  129. "jira",
  130. "atatt3",
  131. ]
  132. [[rules]]
  133. id = "authress-service-client-access-key"
  134. description = "Uncovered a possible Authress Service Client Access Key, which may compromise access control services and sensitive data."
  135. regex = '''\b((?:sc|ext|scauth|authress)_(?i)[a-z0-9]{5,30}\.[a-z0-9]{4,6}\.(?-i:acc)[_-][a-z0-9-]{10,32}\.[a-z0-9+/_=-]{30,120})(?:[\x60'"\s;]|\\[nr]|$)'''
  136. entropy = 2
  137. keywords = [
  138. "sc_",
  139. "ext_",
  140. "scauth_",
  141. "authress_",
  142. ]
  143. [[rules]]
  144. id = "aws-access-token"
  145. description = "Identified a pattern that may indicate AWS credentials, risking unauthorized cloud resource access and data breaches on AWS platforms."
  146. regex = '''\b((?:A3T[A-Z0-9]|AKIA|ASIA|ABIA|ACCA)[A-Z0-9]{16})\b'''
  147. entropy = 3
  148. keywords = [
  149. "a3t",
  150. "akia",
  151. "asia",
  152. "abia",
  153. "acca",
  154. ]
  155. [[rules.allowlists]]
  156. regexes = [
  157. '''.+EXAMPLE$''',
  158. ]
  159. [[rules]]
  160. id = "azure-ad-client-secret"
  161. description = "Azure AD Client Secret"
  162. regex = '''(?:^|[\\'"\x60\s>=:(,)])([a-zA-Z0-9_~.]{3}\dQ~[a-zA-Z0-9_~.-]{31,34})(?:$|[\\'"\x60\s<),])'''
  163. entropy = 3
  164. keywords = ["q~"]
  165. [[rules]]
  166. id = "beamer-api-token"
  167. description = "Detected a Beamer API token, potentially compromising content management and exposing sensitive notifications and updates."
  168. regex = '''(?i)[\w.-]{0,50}?(?:beamer)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(b_[a-z0-9=_\-]{44})(?:[\x60'"\s;]|\\[nr]|$)'''
  169. keywords = ["beamer"]
  170. [[rules]]
  171. id = "bitbucket-client-id"
  172. description = "Discovered a potential Bitbucket Client ID, risking unauthorized repository access and potential codebase exposure."
  173. regex = '''(?i)[\w.-]{0,50}?(?:bitbucket)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  174. keywords = ["bitbucket"]
  175. [[rules]]
  176. id = "bitbucket-client-secret"
  177. description = "Discovered a potential Bitbucket Client Secret, posing a risk of compromised code repositories and unauthorized access."
  178. regex = '''(?i)[\w.-]{0,50}?(?:bitbucket)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  179. keywords = ["bitbucket"]
  180. [[rules]]
  181. id = "bittrex-access-key"
  182. description = "Identified a Bittrex Access Key, which could lead to unauthorized access to cryptocurrency trading accounts and financial loss."
  183. regex = '''(?i)[\w.-]{0,50}?(?:bittrex)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  184. keywords = ["bittrex"]
  185. [[rules]]
  186. id = "bittrex-secret-key"
  187. description = "Detected a Bittrex Secret Key, potentially compromising cryptocurrency transactions and financial security."
  188. regex = '''(?i)[\w.-]{0,50}?(?:bittrex)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  189. keywords = ["bittrex"]
  190. [[rules]]
  191. id = "cisco-meraki-api-key"
  192. description = "Cisco Meraki is a cloud-managed IT solution that provides networking, security, and device management through an easy-to-use interface."
  193. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:(?-i:[Mm]eraki|MERAKI))(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  194. entropy = 3
  195. keywords = ["meraki"]
  196. [[rules]]
  197. id = "clojars-api-token"
  198. description = "Uncovered a possible Clojars API token, risking unauthorized access to Clojure libraries and potential code manipulation."
  199. regex = '''(?i)CLOJARS_[a-z0-9]{60}'''
  200. entropy = 2
  201. keywords = ["clojars_"]
  202. [[rules]]
  203. id = "cloudflare-api-key"
  204. description = "Detected a Cloudflare API Key, potentially compromising cloud application deployments and operational security."
  205. regex = '''(?i)[\w.-]{0,50}?(?:cloudflare)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9_-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  206. entropy = 2
  207. keywords = ["cloudflare"]
  208. [[rules]]
  209. id = "cloudflare-global-api-key"
  210. description = "Detected a Cloudflare Global API Key, potentially compromising cloud application deployments and operational security."
  211. regex = '''(?i)[\w.-]{0,50}?(?:cloudflare)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{37})(?:[\x60'"\s;]|\\[nr]|$)'''
  212. entropy = 2
  213. keywords = ["cloudflare"]
  214. [[rules]]
  215. id = "cloudflare-origin-ca-key"
  216. description = "Detected a Cloudflare Origin CA Key, potentially compromising cloud application deployments and operational security."
  217. regex = '''\b(v1\.0-[a-f0-9]{24}-[a-f0-9]{146})(?:[\x60'"\s;]|\\[nr]|$)'''
  218. entropy = 2
  219. keywords = [
  220. "cloudflare",
  221. "v1.0-",
  222. ]
  223. [[rules]]
  224. id = "codecov-access-token"
  225. description = "Found a pattern resembling a Codecov Access Token, posing a risk of unauthorized access to code coverage reports and sensitive data."
  226. regex = '''(?i)[\w.-]{0,50}?(?:codecov)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  227. keywords = ["codecov"]
  228. [[rules]]
  229. id = "cohere-api-token"
  230. description = "Identified a Cohere Token, posing a risk of unauthorized access to AI services and data manipulation."
  231. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:cohere|CO_API_KEY)(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-zA-Z0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  232. entropy = 4
  233. keywords = [
  234. "cohere",
  235. "co_api_key",
  236. ]
  237. [[rules]]
  238. id = "coinbase-access-token"
  239. description = "Detected a Coinbase Access Token, posing a risk of unauthorized access to cryptocurrency accounts and financial transactions."
  240. regex = '''(?i)[\w.-]{0,50}?(?:coinbase)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9_-]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  241. keywords = ["coinbase"]
  242. [[rules]]
  243. id = "confluent-access-token"
  244. description = "Identified a Confluent Access Token, which could compromise access to streaming data platforms and sensitive data flow."
  245. regex = '''(?i)[\w.-]{0,50}?(?:confluent)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  246. keywords = ["confluent"]
  247. [[rules]]
  248. id = "confluent-secret-key"
  249. description = "Found a Confluent Secret Key, potentially risking unauthorized operations and data access within Confluent services."
  250. regex = '''(?i)[\w.-]{0,50}?(?:confluent)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  251. keywords = ["confluent"]
  252. [[rules]]
  253. id = "contentful-delivery-api-token"
  254. description = "Discovered a Contentful delivery API token, posing a risk to content management systems and data integrity."
  255. regex = '''(?i)[\w.-]{0,50}?(?:contentful)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{43})(?:[\x60'"\s;]|\\[nr]|$)'''
  256. keywords = ["contentful"]
  257. [[rules]]
  258. id = "curl-auth-header"
  259. description = "Discovered a potential authorization token provided in a curl command header, which could compromise the curl accessed resource."
  260. regex = '''\bcurl\b(?:.*?|.*?(?:[\r\n]{1,2}.*?){1,5})[ \t\n\r](?:-H|--header)(?:=|[ \t]{0,5})(?:"(?i)(?:Authorization:[ \t]{0,5}(?:Basic[ \t]([a-z0-9+/]{8,}={0,3})|(?:Bearer|(?:Api-)?Token)[ \t]([\w=~@.+/-]{8,})|([\w=~@.+/-]{8,}))|(?:(?:X-(?:[a-z]+-)?)?(?:Api-?)?(?:Key|Token)):[ \t]{0,5}([\w=~@.+/-]{8,}))"|'(?i)(?:Authorization:[ \t]{0,5}(?:Basic[ \t]([a-z0-9+/]{8,}={0,3})|(?:Bearer|(?:Api-)?Token)[ \t]([\w=~@.+/-]{8,})|([\w=~@.+/-]{8,}))|(?:(?:X-(?:[a-z]+-)?)?(?:Api-?)?(?:Key|Token)):[ \t]{0,5}([\w=~@.+/-]{8,}))')(?:\B|\s|\z)'''
  261. entropy = 2.75
  262. keywords = ["curl"]
  263. [[rules]]
  264. id = "curl-auth-user"
  265. description = "Discovered a potential basic authorization token provided in a curl command, which could compromise the curl accessed resource."
  266. regex = '''\bcurl\b(?:.*|.*(?:[\r\n]{1,2}.*){1,5})[ \t\n\r](?:-u|--user)(?:=|[ \t]{0,5})("(:[^"]{3,}|[^:"]{3,}:|[^:"]{3,}:[^"]{3,})"|'([^:']{3,}:[^']{3,})'|((?:"[^"]{3,}"|'[^']{3,}'|[\w$@.-]+):(?:"[^"]{3,}"|'[^']{3,}'|[\w${}@.-]+)))(?:\s|\z)'''
  267. entropy = 2
  268. keywords = ["curl"]
  269. [[rules.allowlists]]
  270. regexes = [
  271. '''[^:]+:(?:change(?:it|me)|pass(?:word)?|pwd|test|token|\*+|x+)''',
  272. '''['"]?<[^>]+>['"]?:['"]?<[^>]+>|<[^:]+:[^>]+>['"]?''',
  273. '''[^:]+:\[[^]]+]''',
  274. '''['"]?[^:]+['"]?:['"]?\$(?:\d|\w+|\{(?:\d|\w+)})['"]?''',
  275. '''\$\([^)]+\):\$\([^)]+\)''',
  276. '''['"]?\$?{{[^}]+}}['"]?:['"]?\$?{{[^}]+}}['"]?''',
  277. ]
  278. [[rules]]
  279. id = "databricks-api-token"
  280. description = "Uncovered a Databricks API token, which may compromise big data analytics platforms and sensitive data processing."
  281. regex = '''\b(dapi[a-f0-9]{32}(?:-\d)?)(?:[\x60'"\s;]|\\[nr]|$)'''
  282. entropy = 3
  283. keywords = ["dapi"]
  284. [[rules]]
  285. id = "datadog-access-token"
  286. description = "Detected a Datadog Access Token, potentially risking monitoring and analytics data exposure and manipulation."
  287. regex = '''(?i)[\w.-]{0,50}?(?:datadog)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  288. keywords = ["datadog"]
  289. [[rules]]
  290. id = "defined-networking-api-token"
  291. description = "Identified a Defined Networking API token, which could lead to unauthorized network operations and data breaches."
  292. regex = '''(?i)[\w.-]{0,50}?(?:dnkey)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(dnkey-[a-z0-9=_\-]{26}-[a-z0-9=_\-]{52})(?:[\x60'"\s;]|\\[nr]|$)'''
  293. keywords = ["dnkey"]
  294. [[rules]]
  295. id = "digitalocean-access-token"
  296. description = "Found a DigitalOcean OAuth Access Token, risking unauthorized cloud resource access and data compromise."
  297. regex = '''\b(doo_v1_[a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  298. entropy = 3
  299. keywords = ["doo_v1_"]
  300. [[rules]]
  301. id = "digitalocean-pat"
  302. description = "Discovered a DigitalOcean Personal Access Token, posing a threat to cloud infrastructure security and data privacy."
  303. regex = '''\b(dop_v1_[a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  304. entropy = 3
  305. keywords = ["dop_v1_"]
  306. [[rules]]
  307. id = "digitalocean-refresh-token"
  308. description = "Uncovered a DigitalOcean OAuth Refresh Token, which could allow prolonged unauthorized access and resource manipulation."
  309. regex = '''(?i)\b(dor_v1_[a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  310. keywords = ["dor_v1_"]
  311. [[rules]]
  312. id = "discord-api-token"
  313. description = "Detected a Discord API key, potentially compromising communication channels and user data privacy on Discord."
  314. regex = '''(?i)[\w.-]{0,50}?(?:discord)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  315. keywords = ["discord"]
  316. [[rules]]
  317. id = "discord-client-id"
  318. description = "Identified a Discord client ID, which may lead to unauthorized integrations and data exposure in Discord applications."
  319. regex = '''(?i)[\w.-]{0,50}?(?:discord)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9]{18})(?:[\x60'"\s;]|\\[nr]|$)'''
  320. entropy = 2
  321. keywords = ["discord"]
  322. [[rules]]
  323. id = "discord-client-secret"
  324. description = "Discovered a potential Discord client secret, risking compromised Discord bot integrations and data leaks."
  325. regex = '''(?i)[\w.-]{0,50}?(?:discord)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  326. entropy = 2
  327. keywords = ["discord"]
  328. [[rules]]
  329. id = "doppler-api-token"
  330. description = "Discovered a Doppler API token, posing a risk to environment and secrets management security."
  331. regex = '''dp\.pt\.(?i)[a-z0-9]{43}'''
  332. entropy = 2
  333. keywords = ["dp.pt."]
  334. [[rules]]
  335. id = "droneci-access-token"
  336. description = "Detected a Droneci Access Token, potentially compromising continuous integration and deployment workflows."
  337. regex = '''(?i)[\w.-]{0,50}?(?:droneci)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  338. keywords = ["droneci"]
  339. [[rules]]
  340. id = "dropbox-api-token"
  341. description = "Identified a Dropbox API secret, which could lead to unauthorized file access and data breaches in Dropbox storage."
  342. regex = '''(?i)[\w.-]{0,50}?(?:dropbox)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{15})(?:[\x60'"\s;]|\\[nr]|$)'''
  343. keywords = ["dropbox"]
  344. [[rules]]
  345. id = "dropbox-long-lived-api-token"
  346. description = "Found a Dropbox long-lived API token, risking prolonged unauthorized access to cloud storage and sensitive data."
  347. regex = '''(?i)[\w.-]{0,50}?(?:dropbox)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{11}(AAAAAAAAAA)[a-z0-9\-_=]{43})(?:[\x60'"\s;]|\\[nr]|$)'''
  348. keywords = ["dropbox"]
  349. [[rules]]
  350. id = "dropbox-short-lived-api-token"
  351. description = "Discovered a Dropbox short-lived API token, posing a risk of temporary but potentially harmful data access and manipulation."
  352. regex = '''(?i)[\w.-]{0,50}?(?:dropbox)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(sl\.[a-z0-9\-=_]{135})(?:[\x60'"\s;]|\\[nr]|$)'''
  353. keywords = ["dropbox"]
  354. [[rules]]
  355. id = "duffel-api-token"
  356. description = "Uncovered a Duffel API token, which may compromise travel platform integrations and sensitive customer data."
  357. regex = '''duffel_(?:test|live)_(?i)[a-z0-9_\-=]{43}'''
  358. entropy = 2
  359. keywords = ["duffel_"]
  360. [[rules]]
  361. id = "dynatrace-api-token"
  362. description = "Detected a Dynatrace API token, potentially risking application performance monitoring and data exposure."
  363. regex = '''dt0c01\.(?i)[a-z0-9]{24}\.[a-z0-9]{64}'''
  364. entropy = 4
  365. keywords = ["dt0c01."]
  366. [[rules]]
  367. id = "easypost-api-token"
  368. description = "Identified an EasyPost API token, which could lead to unauthorized postal and shipment service access and data exposure."
  369. regex = '''\bEZAK(?i)[a-z0-9]{54}\b'''
  370. entropy = 2
  371. keywords = ["ezak"]
  372. [[rules]]
  373. id = "easypost-test-api-token"
  374. description = "Detected an EasyPost test API token, risking exposure of test environments and potentially sensitive shipment data."
  375. regex = '''\bEZTK(?i)[a-z0-9]{54}\b'''
  376. entropy = 2
  377. keywords = ["eztk"]
  378. [[rules]]
  379. id = "etsy-access-token"
  380. description = "Found an Etsy Access Token, potentially compromising Etsy shop management and customer data."
  381. regex = '''(?i)[\w.-]{0,50}?(?:(?-i:ETSY|[Ee]tsy))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{24})(?:[\x60'"\s;]|\\[nr]|$)'''
  382. entropy = 3
  383. keywords = ["etsy"]
  384. [[rules]]
  385. id = "facebook-access-token"
  386. description = "Discovered a Facebook Access Token, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
  387. regex = '''(?i)\b(\d{15,16}(\||%)[0-9a-z\-_]{27,40})(?:[\x60'"\s;]|\\[nr]|$)'''
  388. entropy = 3
  389. keywords = ["facebook"]
  390. [[rules]]
  391. id = "facebook-page-access-token"
  392. description = "Discovered a Facebook Page Access Token, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
  393. regex = '''\b(EAA[MC](?i)[a-z0-9]{100,})(?:[\x60'"\s;]|\\[nr]|$)'''
  394. entropy = 4
  395. keywords = [
  396. "eaam",
  397. "eaac",
  398. ]
  399. [[rules]]
  400. id = "facebook-secret"
  401. description = "Discovered a Facebook Application secret, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
  402. regex = '''(?i)[\w.-]{0,50}?(?:facebook)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  403. entropy = 3
  404. keywords = ["facebook"]
  405. [[rules]]
  406. id = "fastly-api-token"
  407. description = "Uncovered a Fastly API key, which may compromise CDN and edge cloud services, leading to content delivery and security issues."
  408. regex = '''(?i)[\w.-]{0,50}?(?:fastly)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  409. keywords = ["fastly"]
  410. [[rules]]
  411. id = "finicity-api-token"
  412. description = "Detected a Finicity API token, potentially risking financial data access and unauthorized financial operations."
  413. regex = '''(?i)[\w.-]{0,50}?(?:finicity)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  414. keywords = ["finicity"]
  415. [[rules]]
  416. id = "finicity-client-secret"
  417. description = "Identified a Finicity Client Secret, which could lead to compromised financial service integrations and data breaches."
  418. regex = '''(?i)[\w.-]{0,50}?(?:finicity)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{20})(?:[\x60'"\s;]|\\[nr]|$)'''
  419. keywords = ["finicity"]
  420. [[rules]]
  421. id = "finnhub-access-token"
  422. description = "Found a Finnhub Access Token, risking unauthorized access to financial market data and analytics."
  423. regex = '''(?i)[\w.-]{0,50}?(?:finnhub)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{20})(?:[\x60'"\s;]|\\[nr]|$)'''
  424. keywords = ["finnhub"]
  425. [[rules]]
  426. id = "flickr-access-token"
  427. description = "Discovered a Flickr Access Token, posing a risk of unauthorized photo management and potential data leakage."
  428. regex = '''(?i)[\w.-]{0,50}?(?:flickr)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  429. keywords = ["flickr"]
  430. [[rules]]
  431. id = "flutterwave-encryption-key"
  432. description = "Uncovered a Flutterwave Encryption Key, which may compromise payment processing and sensitive financial information."
  433. regex = '''FLWSECK_TEST-(?i)[a-h0-9]{12}'''
  434. entropy = 2
  435. keywords = ["flwseck_test"]
  436. [[rules]]
  437. id = "flutterwave-public-key"
  438. description = "Detected a Finicity Public Key, potentially exposing public cryptographic operations and integrations."
  439. regex = '''FLWPUBK_TEST-(?i)[a-h0-9]{32}-X'''
  440. entropy = 2
  441. keywords = ["flwpubk_test"]
  442. [[rules]]
  443. id = "flutterwave-secret-key"
  444. description = "Identified a Flutterwave Secret Key, risking unauthorized financial transactions and data breaches."
  445. regex = '''FLWSECK_TEST-(?i)[a-h0-9]{32}-X'''
  446. entropy = 2
  447. keywords = ["flwseck_test"]
  448. [[rules]]
  449. id = "flyio-access-token"
  450. description = "Uncovered a Fly.io API key"
  451. regex = '''\b((?:fo1_[\w-]{43}|fm1[ar]_[a-zA-Z0-9+\/]{100,}={0,3}|fm2_[a-zA-Z0-9+\/]{100,}={0,3}))(?:[\x60'"\s;]|\\[nr]|$)'''
  452. entropy = 4
  453. keywords = [
  454. "fo1_",
  455. "fm1",
  456. "fm2_",
  457. ]
  458. [[rules]]
  459. id = "frameio-api-token"
  460. description = "Found a Frame.io API token, potentially compromising video collaboration and project management."
  461. regex = '''fio-u-(?i)[a-z0-9\-_=]{64}'''
  462. keywords = ["fio-u-"]
  463. [[rules]]
  464. id = "freemius-secret-key"
  465. description = "Detected a Freemius secret key, potentially exposing sensitive information."
  466. regex = '''(?i)["']secret_key["']\s*=>\s*["'](sk_[\S]{29})["']'''
  467. path = '''(?i)\.php$'''
  468. keywords = ["secret_key"]
  469. [[rules]]
  470. id = "freshbooks-access-token"
  471. description = "Discovered a Freshbooks Access Token, posing a risk to accounting software access and sensitive financial data exposure."
  472. regex = '''(?i)[\w.-]{0,50}?(?:freshbooks)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  473. keywords = ["freshbooks"]
  474. [[rules]]
  475. id = "gcp-api-key"
  476. description = "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches."
  477. regex = '''\b(AIza[\w-]{35})(?:[\x60'"\s;]|\\[nr]|$)'''
  478. entropy = 3
  479. keywords = ["aiza"]
  480. [[rules.allowlists]]
  481. regexes = [
  482. '''AIzaSyabcdefghijklmnopqrstuvwxyz1234567''',
  483. '''AIzaSyAnLA7NfeLquW1tJFpx_eQCxoX-oo6YyIs''',
  484. '''AIzaSyCkEhVjf3pduRDt6d1yKOMitrUEke8agEM''',
  485. '''AIzaSyDMAScliyLx7F0NPDEJi1QmyCgHIAODrlU''',
  486. '''AIzaSyD3asb-2pEZVqMkmL6M9N6nHZRR_znhrh0''',
  487. '''AIzayDNSXIbFmlXbIE6mCzDLQAqITYefhixbX4A''',
  488. '''AIzaSyAdOS2zB6NCsk1pCdZ4-P6GBdi_UUPwX7c''',
  489. '''AIzaSyASWm6HmTMdYWpgMnjRBjxcQ9CKctWmLd4''',
  490. '''AIzaSyANUvH9H9BsUccjsu2pCmEkOPjjaXeDQgY''',
  491. '''AIzaSyA5_iVawFQ8ABuTZNUdcwERLJv_a_p4wtM''',
  492. '''AIzaSyA4UrcGxgwQFTfaI3no3t7Lt1sjmdnP5sQ''',
  493. '''AIzaSyDSb51JiIcB6OJpwwMicseKRhhrOq1cS7g''',
  494. '''AIzaSyBF2RrAIm4a0mO64EShQfqfd2AFnzAvvuU''',
  495. '''AIzaSyBcE-OOIbhjyR83gm4r2MFCu4MJmprNXsw''',
  496. '''AIzaSyB8qGxt4ec15vitgn44duC5ucxaOi4FmqE''',
  497. '''AIzaSyA8vmApnrHNFE0bApF4hoZ11srVL_n0nvY''',
  498. ]
  499. [[rules]]
  500. id = "generic-api-key"
  501. description = "Detected a Generic API Key, potentially exposing access to various services and sensitive operations."
  502. regex = '''(?i)[\w.-]{0,50}?(?:access|auth|(?-i:[Aa]pi|API)|credential|creds|key|passw(?:or)?d|secret|token)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([\w.=-]{10,150}|[a-z0-9][a-z0-9+/]{11,}={0,3})(?:[\x60'"\s;]|\\[nr]|$)'''
  503. entropy = 3.5
  504. keywords = [
  505. "access",
  506. "api",
  507. "auth",
  508. "key",
  509. "credential",
  510. "creds",
  511. "passwd",
  512. "password",
  513. "secret",
  514. "token",
  515. ]
  516. [[rules.allowlists]]
  517. regexes = [
  518. '''^[a-zA-Z_.-]+$''',
  519. ]
  520. [[rules.allowlists]]
  521. regexTarget = "match"
  522. regexes = [
  523. '''(?i)(?:access(?:ibility|or)|access[_.-]?id|random[_.-]?access|api[_.-]?(?:id|name|version)|rapid|capital|[a-z0-9-]*?api[a-z0-9-]*?:jar:|author|X-MS-Exchange-Organization-Auth|Authentication-Results|(?:credentials?[_.-]?id|withCredentials)|(?:bucket|foreign|hot|idx|natural|primary|pub(?:lic)?|schema|sequence)[_.-]?key|(?:turkey)|key[_.-]?(?:alias|board|code|frame|id|length|mesh|name|pair|press(?:ed)?|ring|selector|signature|size|stone|storetype|word|up|down|left|right)|key[_.-]?vault[_.-]?(?:id|name)|keyVaultToStoreSecrets|key(?:store|tab)[_.-]?(?:file|path)|issuerkeyhash|(?-i:[DdMm]onkey|[DM]ONKEY)|keying|(?:secret)[_.-]?(?:length|name|size)|UserSecretsId|(?:csrf)[_.-]?token|(?:io\.jsonwebtoken[ \t]?:[ \t]?[\w-]+)|(?:api|credentials|token)[_.-]?(?:endpoint|ur[il])|public[_.-]?token|(?:key|token)[_.-]?file|(?-i:(?:[A-Z_]+=\n[A-Z_]+=|[a-z_]+=\n[a-z_]+=)(?:\n|\z))|(?-i:(?:[A-Z.]+=\n[A-Z.]+=|[a-z.]+=\n[a-z.]+=)(?:\n|\z)))''',
  524. ]
  525. stopwords = [
  526. "000000",
  527. "aaaaaa",
  528. "about",
  529. "abstract",
  530. "academy",
  531. "acces",
  532. "account",
  533. "act-",
  534. "act.",
  535. "act_",
  536. "action",
  537. "active",
  538. "actively",
  539. "activity",
  540. "adapter",
  541. "add-",
  542. "add.",
  543. "add_",
  544. "add-on",
  545. "addon",
  546. "addres",
  547. "admin",
  548. "adobe",
  549. "advanced",
  550. "adventure",
  551. "agent",
  552. "agile",
  553. "air-",
  554. "air.",
  555. "air_",
  556. "ajax",
  557. "akka",
  558. "alert",
  559. "alfred",
  560. "algorithm",
  561. "all-",
  562. "all.",
  563. "all_",
  564. "alloy",
  565. "alpha",
  566. "amazon",
  567. "amqp",
  568. "analysi",
  569. "analytic",
  570. "analyzer",
  571. "android",
  572. "angular",
  573. "angularj",
  574. "animate",
  575. "animation",
  576. "another",
  577. "ansible",
  578. "answer",
  579. "ant-",
  580. "ant.",
  581. "ant_",
  582. "any-",
  583. "any.",
  584. "any_",
  585. "apache",
  586. "app-",
  587. "app-",
  588. "app.",
  589. "app.",
  590. "app_",
  591. "app_",
  592. "apple",
  593. "arch",
  594. "archive",
  595. "archived",
  596. "arduino",
  597. "array",
  598. "art-",
  599. "art.",
  600. "art_",
  601. "article",
  602. "asp-",
  603. "asp.",
  604. "asp_",
  605. "asset",
  606. "async",
  607. "atom",
  608. "attention",
  609. "audio",
  610. "audit",
  611. "aura",
  612. "auth",
  613. "author",
  614. "author",
  615. "authorize",
  616. "auto",
  617. "automated",
  618. "automatic",
  619. "awesome",
  620. "aws_",
  621. "azure",
  622. "back",
  623. "backbone",
  624. "backend",
  625. "backup",
  626. "bar-",
  627. "bar.",
  628. "bar_",
  629. "base",
  630. "based",
  631. "bash",
  632. "basic",
  633. "batch",
  634. "been",
  635. "beer",
  636. "behavior",
  637. "being",
  638. "benchmark",
  639. "best",
  640. "beta",
  641. "better",
  642. "big-",
  643. "big.",
  644. "big_",
  645. "binary",
  646. "binding",
  647. "bit-",
  648. "bit.",
  649. "bit_",
  650. "bitcoin",
  651. "block",
  652. "blog",
  653. "board",
  654. "book",
  655. "bookmark",
  656. "boost",
  657. "boot",
  658. "bootstrap",
  659. "bosh",
  660. "bot-",
  661. "bot.",
  662. "bot_",
  663. "bower",
  664. "box-",
  665. "box.",
  666. "box_",
  667. "boxen",
  668. "bracket",
  669. "branch",
  670. "bridge",
  671. "browser",
  672. "brunch",
  673. "buffer",
  674. "bug-",
  675. "bug.",
  676. "bug_",
  677. "build",
  678. "builder",
  679. "building",
  680. "buildout",
  681. "buildpack",
  682. "built",
  683. "bundle",
  684. "busines",
  685. "but-",
  686. "but.",
  687. "but_",
  688. "button",
  689. "cache",
  690. "caching",
  691. "cakephp",
  692. "calendar",
  693. "call",
  694. "camera",
  695. "campfire",
  696. "can-",
  697. "can.",
  698. "can_",
  699. "canva",
  700. "captcha",
  701. "capture",
  702. "card",
  703. "carousel",
  704. "case",
  705. "cassandra",
  706. "cat-",
  707. "cat.",
  708. "cat_",
  709. "category",
  710. "center",
  711. "cento",
  712. "challenge",
  713. "change",
  714. "changelog",
  715. "channel",
  716. "chart",
  717. "chat",
  718. "cheat",
  719. "check",
  720. "checker",
  721. "chef",
  722. "ches",
  723. "chinese",
  724. "chosen",
  725. "chrome",
  726. "ckeditor",
  727. "clas",
  728. "classe",
  729. "classic",
  730. "clean",
  731. "cli-",
  732. "cli.",
  733. "cli_",
  734. "client",
  735. "client",
  736. "clojure",
  737. "clone",
  738. "closure",
  739. "cloud",
  740. "club",
  741. "cluster",
  742. "cms-",
  743. "cms_",
  744. "coco",
  745. "code",
  746. "coding",
  747. "coffee",
  748. "color",
  749. "combination",
  750. "combo",
  751. "command",
  752. "commander",
  753. "comment",
  754. "commit",
  755. "common",
  756. "community",
  757. "compas",
  758. "compiler",
  759. "complete",
  760. "component",
  761. "composer",
  762. "computer",
  763. "computing",
  764. "con-",
  765. "con.",
  766. "con_",
  767. "concept",
  768. "conf",
  769. "config",
  770. "config",
  771. "connect",
  772. "connector",
  773. "console",
  774. "contact",
  775. "container",
  776. "contao",
  777. "content",
  778. "contest",
  779. "context",
  780. "control",
  781. "convert",
  782. "converter",
  783. "conway'",
  784. "cookbook",
  785. "cookie",
  786. "cool",
  787. "copy",
  788. "cordova",
  789. "core",
  790. "couchbase",
  791. "couchdb",
  792. "countdown",
  793. "counter",
  794. "course",
  795. "craft",
  796. "crawler",
  797. "create",
  798. "creating",
  799. "creator",
  800. "credential",
  801. "crm-",
  802. "crm.",
  803. "crm_",
  804. "cros",
  805. "crud",
  806. "csv-",
  807. "csv.",
  808. "csv_",
  809. "cube",
  810. "cucumber",
  811. "cuda",
  812. "current",
  813. "currently",
  814. "custom",
  815. "daemon",
  816. "dark",
  817. "dart",
  818. "dash",
  819. "dashboard",
  820. "data",
  821. "database",
  822. "date",
  823. "day-",
  824. "day.",
  825. "day_",
  826. "dead",
  827. "debian",
  828. "debug",
  829. "debug",
  830. "debugger",
  831. "deck",
  832. "define",
  833. "del-",
  834. "del.",
  835. "del_",
  836. "delete",
  837. "demo",
  838. "deploy",
  839. "design",
  840. "designer",
  841. "desktop",
  842. "detection",
  843. "detector",
  844. "dev-",
  845. "dev.",
  846. "dev_",
  847. "develop",
  848. "developer",
  849. "device",
  850. "devise",
  851. "diff",
  852. "digital",
  853. "directive",
  854. "directory",
  855. "discovery",
  856. "display",
  857. "django",
  858. "dns-",
  859. "dns_",
  860. "doc-",
  861. "doc-",
  862. "doc.",
  863. "doc.",
  864. "doc_",
  865. "doc_",
  866. "docker",
  867. "docpad",
  868. "doctrine",
  869. "document",
  870. "doe-",
  871. "doe.",
  872. "doe_",
  873. "dojo",
  874. "dom-",
  875. "dom.",
  876. "dom_",
  877. "domain",
  878. "done",
  879. "don't",
  880. "dot-",
  881. "dot.",
  882. "dot_",
  883. "dotfile",
  884. "download",
  885. "draft",
  886. "drag",
  887. "drill",
  888. "drive",
  889. "driven",
  890. "driver",
  891. "drop",
  892. "dropbox",
  893. "drupal",
  894. "dsl-",
  895. "dsl.",
  896. "dsl_",
  897. "dynamic",
  898. "easy",
  899. "_ec2_",
  900. "ecdsa",
  901. "eclipse",
  902. "edit",
  903. "editing",
  904. "edition",
  905. "editor",
  906. "element",
  907. "emac",
  908. "email",
  909. "embed",
  910. "embedded",
  911. "ember",
  912. "emitter",
  913. "emulator",
  914. "encoding",
  915. "endpoint",
  916. "engine",
  917. "english",
  918. "enhanced",
  919. "entity",
  920. "entry",
  921. "env_",
  922. "episode",
  923. "erlang",
  924. "error",
  925. "espresso",
  926. "event",
  927. "evented",
  928. "example",
  929. "example",
  930. "exchange",
  931. "exercise",
  932. "experiment",
  933. "expire",
  934. "exploit",
  935. "explorer",
  936. "export",
  937. "exporter",
  938. "expres",
  939. "ext-",
  940. "ext.",
  941. "ext_",
  942. "extended",
  943. "extension",
  944. "external",
  945. "extra",
  946. "extractor",
  947. "fabric",
  948. "facebook",
  949. "factory",
  950. "fake",
  951. "fast",
  952. "feature",
  953. "feed",
  954. "fewfwef",
  955. "ffmpeg",
  956. "field",
  957. "file",
  958. "filter",
  959. "find",
  960. "finder",
  961. "firefox",
  962. "firmware",
  963. "first",
  964. "fish",
  965. "fix-",
  966. "fix_",
  967. "flash",
  968. "flask",
  969. "flat",
  970. "flex",
  971. "flexible",
  972. "flickr",
  973. "flow",
  974. "fluent",
  975. "fluentd",
  976. "fluid",
  977. "folder",
  978. "font",
  979. "force",
  980. "foreman",
  981. "fork",
  982. "form",
  983. "format",
  984. "formatter",
  985. "forum",
  986. "foundry",
  987. "framework",
  988. "free",
  989. "friend",
  990. "friendly",
  991. "front-end",
  992. "frontend",
  993. "ftp-",
  994. "ftp.",
  995. "ftp_",
  996. "fuel",
  997. "full",
  998. "fun-",
  999. "fun.",
  1000. "fun_",
  1001. "func",
  1002. "future",
  1003. "gaia",
  1004. "gallery",
  1005. "game",
  1006. "gateway",
  1007. "gem-",
  1008. "gem.",
  1009. "gem_",
  1010. "gen-",
  1011. "gen.",
  1012. "gen_",
  1013. "general",
  1014. "generator",
  1015. "generic",
  1016. "genetic",
  1017. "get-",
  1018. "get.",
  1019. "get_",
  1020. "getenv",
  1021. "getting",
  1022. "ghost",
  1023. "gist",
  1024. "git-",
  1025. "git.",
  1026. "git_",
  1027. "github",
  1028. "gitignore",
  1029. "gitlab",
  1030. "glas",
  1031. "gmail",
  1032. "gnome",
  1033. "gnu-",
  1034. "gnu.",
  1035. "gnu_",
  1036. "goal",
  1037. "golang",
  1038. "gollum",
  1039. "good",
  1040. "google",
  1041. "gpu-",
  1042. "gpu.",
  1043. "gpu_",
  1044. "gradle",
  1045. "grail",
  1046. "graph",
  1047. "graphic",
  1048. "great",
  1049. "grid",
  1050. "groovy",
  1051. "group",
  1052. "grunt",
  1053. "guard",
  1054. "gui-",
  1055. "gui.",
  1056. "gui_",
  1057. "guide",
  1058. "guideline",
  1059. "gulp",
  1060. "gwt-",
  1061. "gwt.",
  1062. "gwt_",
  1063. "hack",
  1064. "hackathon",
  1065. "hacker",
  1066. "hacking",
  1067. "hadoop",
  1068. "haml",
  1069. "handler",
  1070. "hardware",
  1071. "has-",
  1072. "has_",
  1073. "hash",
  1074. "haskell",
  1075. "have",
  1076. "haxe",
  1077. "hello",
  1078. "help",
  1079. "helper",
  1080. "here",
  1081. "hero",
  1082. "heroku",
  1083. "high",
  1084. "hipchat",
  1085. "history",
  1086. "home",
  1087. "homebrew",
  1088. "homepage",
  1089. "hook",
  1090. "host",
  1091. "hosting",
  1092. "hot-",
  1093. "hot.",
  1094. "hot_",
  1095. "house",
  1096. "how-",
  1097. "how.",
  1098. "how_",
  1099. "html",
  1100. "http",
  1101. "hub-",
  1102. "hub.",
  1103. "hub_",
  1104. "hubot",
  1105. "human",
  1106. "icon",
  1107. "ide-",
  1108. "ide.",
  1109. "ide_",
  1110. "idea",
  1111. "identity",
  1112. "idiomatic",
  1113. "image",
  1114. "impact",
  1115. "import",
  1116. "important",
  1117. "importer",
  1118. "impres",
  1119. "index",
  1120. "infinite",
  1121. "info",
  1122. "injection",
  1123. "inline",
  1124. "input",
  1125. "inside",
  1126. "inspector",
  1127. "instagram",
  1128. "install",
  1129. "installer",
  1130. "instant",
  1131. "intellij",
  1132. "interface",
  1133. "internet",
  1134. "interview",
  1135. "into",
  1136. "intro",
  1137. "ionic",
  1138. "iphone",
  1139. "ipython",
  1140. "irc-",
  1141. "irc_",
  1142. "iso-",
  1143. "iso.",
  1144. "iso_",
  1145. "issue",
  1146. "jade",
  1147. "jasmine",
  1148. "java",
  1149. "jbos",
  1150. "jekyll",
  1151. "jenkin",
  1152. "jetbrains",
  1153. "job-",
  1154. "job.",
  1155. "job_",
  1156. "joomla",
  1157. "jpa-",
  1158. "jpa.",
  1159. "jpa_",
  1160. "jquery",
  1161. "json",
  1162. "just",
  1163. "kafka",
  1164. "karma",
  1165. "kata",
  1166. "kernel",
  1167. "keyboard",
  1168. "kindle",
  1169. "kit-",
  1170. "kit.",
  1171. "kit_",
  1172. "kitchen",
  1173. "knife",
  1174. "koan",
  1175. "kohana",
  1176. "lab-",
  1177. "lab-",
  1178. "lab.",
  1179. "lab.",
  1180. "lab_",
  1181. "lab_",
  1182. "lambda",
  1183. "lamp",
  1184. "language",
  1185. "laravel",
  1186. "last",
  1187. "latest",
  1188. "latex",
  1189. "launcher",
  1190. "layer",
  1191. "layout",
  1192. "lazy",
  1193. "ldap",
  1194. "leaflet",
  1195. "league",
  1196. "learn",
  1197. "learning",
  1198. "led-",
  1199. "led.",
  1200. "led_",
  1201. "leetcode",
  1202. "les-",
  1203. "les.",
  1204. "les_",
  1205. "level",
  1206. "leveldb",
  1207. "lib-",
  1208. "lib.",
  1209. "lib_",
  1210. "librarie",
  1211. "library",
  1212. "license",
  1213. "life",
  1214. "liferay",
  1215. "light",
  1216. "lightbox",
  1217. "like",
  1218. "line",
  1219. "link",
  1220. "linked",
  1221. "linkedin",
  1222. "linux",
  1223. "lisp",
  1224. "list",
  1225. "lite",
  1226. "little",
  1227. "load",
  1228. "loader",
  1229. "local",
  1230. "location",
  1231. "lock",
  1232. "log-",
  1233. "log.",
  1234. "log_",
  1235. "logger",
  1236. "logging",
  1237. "logic",
  1238. "login",
  1239. "logstash",
  1240. "longer",
  1241. "look",
  1242. "love",
  1243. "lua-",
  1244. "lua.",
  1245. "lua_",
  1246. "mac-",
  1247. "mac.",
  1248. "mac_",
  1249. "machine",
  1250. "made",
  1251. "magento",
  1252. "magic",
  1253. "mail",
  1254. "make",
  1255. "maker",
  1256. "making",
  1257. "man-",
  1258. "man.",
  1259. "man_",
  1260. "manage",
  1261. "manager",
  1262. "manifest",
  1263. "manual",
  1264. "map-",
  1265. "map-",
  1266. "map.",
  1267. "map.",
  1268. "map_",
  1269. "map_",
  1270. "mapper",
  1271. "mapping",
  1272. "markdown",
  1273. "markup",
  1274. "master",
  1275. "math",
  1276. "matrix",
  1277. "maven",
  1278. "md5",
  1279. "mean",
  1280. "media",
  1281. "mediawiki",
  1282. "meetup",
  1283. "memcached",
  1284. "memory",
  1285. "menu",
  1286. "merchant",
  1287. "message",
  1288. "messaging",
  1289. "meta",
  1290. "metadata",
  1291. "meteor",
  1292. "method",
  1293. "metric",
  1294. "micro",
  1295. "middleman",
  1296. "migration",
  1297. "minecraft",
  1298. "miner",
  1299. "mini",
  1300. "minimal",
  1301. "mirror",
  1302. "mit-",
  1303. "mit.",
  1304. "mit_",
  1305. "mobile",
  1306. "mocha",
  1307. "mock",
  1308. "mod-",
  1309. "mod.",
  1310. "mod_",
  1311. "mode",
  1312. "model",
  1313. "modern",
  1314. "modular",
  1315. "module",
  1316. "modx",
  1317. "money",
  1318. "mongo",
  1319. "mongodb",
  1320. "mongoid",
  1321. "mongoose",
  1322. "monitor",
  1323. "monkey",
  1324. "more",
  1325. "motion",
  1326. "moved",
  1327. "movie",
  1328. "mozilla",
  1329. "mqtt",
  1330. "mule",
  1331. "multi",
  1332. "multiple",
  1333. "music",
  1334. "mustache",
  1335. "mvc-",
  1336. "mvc.",
  1337. "mvc_",
  1338. "mysql",
  1339. "nagio",
  1340. "name",
  1341. "native",
  1342. "need",
  1343. "neo-",
  1344. "neo.",
  1345. "neo_",
  1346. "nest",
  1347. "nested",
  1348. "net-",
  1349. "net.",
  1350. "net_",
  1351. "nette",
  1352. "network",
  1353. "new-",
  1354. "new-",
  1355. "new.",
  1356. "new.",
  1357. "new_",
  1358. "new_",
  1359. "next",
  1360. "nginx",
  1361. "ninja",
  1362. "nlp-",
  1363. "nlp.",
  1364. "nlp_",
  1365. "node",
  1366. "nodej",
  1367. "nosql",
  1368. "not-",
  1369. "not.",
  1370. "not_",
  1371. "note",
  1372. "notebook",
  1373. "notepad",
  1374. "notice",
  1375. "notifier",
  1376. "now-",
  1377. "now.",
  1378. "now_",
  1379. "number",
  1380. "oauth",
  1381. "object",
  1382. "objective",
  1383. "obsolete",
  1384. "ocaml",
  1385. "octopres",
  1386. "official",
  1387. "old-",
  1388. "old.",
  1389. "old_",
  1390. "onboard",
  1391. "online",
  1392. "only",
  1393. "open",
  1394. "opencv",
  1395. "opengl",
  1396. "openshift",
  1397. "openwrt",
  1398. "option",
  1399. "oracle",
  1400. "org-",
  1401. "org.",
  1402. "org_",
  1403. "origin",
  1404. "original",
  1405. "orm-",
  1406. "orm.",
  1407. "orm_",
  1408. "osx-",
  1409. "osx_",
  1410. "our-",
  1411. "our.",
  1412. "our_",
  1413. "out-",
  1414. "out.",
  1415. "out_",
  1416. "output",
  1417. "over",
  1418. "overview",
  1419. "own-",
  1420. "own.",
  1421. "own_",
  1422. "pack",
  1423. "package",
  1424. "packet",
  1425. "page",
  1426. "page",
  1427. "panel",
  1428. "paper",
  1429. "paperclip",
  1430. "para",
  1431. "parallax",
  1432. "parallel",
  1433. "parse",
  1434. "parser",
  1435. "parsing",
  1436. "particle",
  1437. "party",
  1438. "password",
  1439. "patch",
  1440. "path",
  1441. "pattern",
  1442. "payment",
  1443. "paypal",
  1444. "pdf-",
  1445. "pdf.",
  1446. "pdf_",
  1447. "pebble",
  1448. "people",
  1449. "perl",
  1450. "personal",
  1451. "phalcon",
  1452. "phoenix",
  1453. "phone",
  1454. "phonegap",
  1455. "photo",
  1456. "php-",
  1457. "php.",
  1458. "php_",
  1459. "physic",
  1460. "picker",
  1461. "pipeline",
  1462. "platform",
  1463. "play",
  1464. "player",
  1465. "please",
  1466. "plu-",
  1467. "plu.",
  1468. "plu_",
  1469. "plug-in",
  1470. "plugin",
  1471. "plupload",
  1472. "png-",
  1473. "png.",
  1474. "png_",
  1475. "poker",
  1476. "polyfill",
  1477. "polymer",
  1478. "pool",
  1479. "pop-",
  1480. "pop.",
  1481. "pop_",
  1482. "popcorn",
  1483. "popup",
  1484. "port",
  1485. "portable",
  1486. "portal",
  1487. "portfolio",
  1488. "post",
  1489. "power",
  1490. "powered",
  1491. "powerful",
  1492. "prelude",
  1493. "pretty",
  1494. "preview",
  1495. "principle",
  1496. "print",
  1497. "pro-",
  1498. "pro.",
  1499. "pro_",
  1500. "problem",
  1501. "proc",
  1502. "product",
  1503. "profile",
  1504. "profiler",
  1505. "program",
  1506. "progres",
  1507. "project",
  1508. "protocol",
  1509. "prototype",
  1510. "provider",
  1511. "proxy",
  1512. "public",
  1513. "pull",
  1514. "puppet",
  1515. "pure",
  1516. "purpose",
  1517. "push",
  1518. "pusher",
  1519. "pyramid",
  1520. "python",
  1521. "quality",
  1522. "query",
  1523. "queue",
  1524. "quick",
  1525. "rabbitmq",
  1526. "rack",
  1527. "radio",
  1528. "rail",
  1529. "railscast",
  1530. "random",
  1531. "range",
  1532. "raspberry",
  1533. "rdf-",
  1534. "rdf.",
  1535. "rdf_",
  1536. "react",
  1537. "reactive",
  1538. "read",
  1539. "reader",
  1540. "readme",
  1541. "ready",
  1542. "real",
  1543. "reality",
  1544. "real-time",
  1545. "realtime",
  1546. "recipe",
  1547. "recorder",
  1548. "red-",
  1549. "red.",
  1550. "red_",
  1551. "reddit",
  1552. "redi",
  1553. "redmine",
  1554. "reference",
  1555. "refinery",
  1556. "refresh",
  1557. "registry",
  1558. "related",
  1559. "release",
  1560. "remote",
  1561. "rendering",
  1562. "repo",
  1563. "report",
  1564. "request",
  1565. "require",
  1566. "required",
  1567. "requirej",
  1568. "research",
  1569. "resource",
  1570. "response",
  1571. "resque",
  1572. "rest",
  1573. "restful",
  1574. "resume",
  1575. "reveal",
  1576. "reverse",
  1577. "review",
  1578. "riak",
  1579. "rich",
  1580. "right",
  1581. "ring",
  1582. "robot",
  1583. "role",
  1584. "room",
  1585. "router",
  1586. "routing",
  1587. "rpc-",
  1588. "rpc.",
  1589. "rpc_",
  1590. "rpg-",
  1591. "rpg.",
  1592. "rpg_",
  1593. "rspec",
  1594. "ruby-",
  1595. "ruby.",
  1596. "ruby_",
  1597. "rule",
  1598. "run-",
  1599. "run.",
  1600. "run_",
  1601. "runner",
  1602. "running",
  1603. "runtime",
  1604. "rust",
  1605. "rvm-",
  1606. "rvm.",
  1607. "rvm_",
  1608. "salt",
  1609. "sample",
  1610. "sample",
  1611. "sandbox",
  1612. "sas-",
  1613. "sas.",
  1614. "sas_",
  1615. "sbt-",
  1616. "sbt.",
  1617. "sbt_",
  1618. "scala",
  1619. "scalable",
  1620. "scanner",
  1621. "schema",
  1622. "scheme",
  1623. "school",
  1624. "science",
  1625. "scraper",
  1626. "scratch",
  1627. "screen",
  1628. "script",
  1629. "scroll",
  1630. "scs-",
  1631. "scs.",
  1632. "scs_",
  1633. "sdk-",
  1634. "sdk.",
  1635. "sdk_",
  1636. "sdl-",
  1637. "sdl.",
  1638. "sdl_",
  1639. "search",
  1640. "secure",
  1641. "security",
  1642. "see-",
  1643. "see.",
  1644. "see_",
  1645. "seed",
  1646. "select",
  1647. "selector",
  1648. "selenium",
  1649. "semantic",
  1650. "sencha",
  1651. "send",
  1652. "sentiment",
  1653. "serie",
  1654. "server",
  1655. "service",
  1656. "session",
  1657. "set-",
  1658. "set.",
  1659. "set_",
  1660. "setting",
  1661. "setting",
  1662. "setup",
  1663. "sha1",
  1664. "sha2",
  1665. "sha256",
  1666. "share",
  1667. "shared",
  1668. "sharing",
  1669. "sheet",
  1670. "shell",
  1671. "shield",
  1672. "shipping",
  1673. "shop",
  1674. "shopify",
  1675. "shortener",
  1676. "should",
  1677. "show",
  1678. "showcase",
  1679. "side",
  1680. "silex",
  1681. "simple",
  1682. "simulator",
  1683. "single",
  1684. "site",
  1685. "skeleton",
  1686. "sketch",
  1687. "skin",
  1688. "slack",
  1689. "slide",
  1690. "slider",
  1691. "slim",
  1692. "small",
  1693. "smart",
  1694. "smtp",
  1695. "snake",
  1696. "snapshot",
  1697. "snippet",
  1698. "soap",
  1699. "social",
  1700. "socket",
  1701. "software",
  1702. "solarized",
  1703. "solr",
  1704. "solution",
  1705. "solver",
  1706. "some",
  1707. "soon",
  1708. "source",
  1709. "space",
  1710. "spark",
  1711. "spatial",
  1712. "spec",
  1713. "sphinx",
  1714. "spine",
  1715. "spotify",
  1716. "spree",
  1717. "spring",
  1718. "sprite",
  1719. "sql-",
  1720. "sql.",
  1721. "sql_",
  1722. "sqlite",
  1723. "ssh-",
  1724. "ssh.",
  1725. "ssh_",
  1726. "stack",
  1727. "staging",
  1728. "standard",
  1729. "stanford",
  1730. "start",
  1731. "started",
  1732. "starter",
  1733. "startup",
  1734. "stat",
  1735. "statamic",
  1736. "state",
  1737. "static",
  1738. "statistic",
  1739. "statsd",
  1740. "statu",
  1741. "steam",
  1742. "step",
  1743. "still",
  1744. "stm-",
  1745. "stm.",
  1746. "stm_",
  1747. "storage",
  1748. "store",
  1749. "storm",
  1750. "story",
  1751. "strategy",
  1752. "stream",
  1753. "streaming",
  1754. "string",
  1755. "stripe",
  1756. "structure",
  1757. "studio",
  1758. "study",
  1759. "stuff",
  1760. "style",
  1761. "sublime",
  1762. "sugar",
  1763. "suite",
  1764. "summary",
  1765. "super",
  1766. "support",
  1767. "supported",
  1768. "svg-",
  1769. "svg.",
  1770. "svg_",
  1771. "svn-",
  1772. "svn.",
  1773. "svn_",
  1774. "swagger",
  1775. "swift",
  1776. "switch",
  1777. "switcher",
  1778. "symfony",
  1779. "symphony",
  1780. "sync",
  1781. "synopsi",
  1782. "syntax",
  1783. "system",
  1784. "system",
  1785. "tab-",
  1786. "tab-",
  1787. "tab.",
  1788. "tab.",
  1789. "tab_",
  1790. "tab_",
  1791. "table",
  1792. "tag-",
  1793. "tag-",
  1794. "tag.",
  1795. "tag.",
  1796. "tag_",
  1797. "tag_",
  1798. "talk",
  1799. "target",
  1800. "task",
  1801. "tcp-",
  1802. "tcp.",
  1803. "tcp_",
  1804. "tdd-",
  1805. "tdd.",
  1806. "tdd_",
  1807. "team",
  1808. "tech",
  1809. "template",
  1810. "term",
  1811. "terminal",
  1812. "testing",
  1813. "tetri",
  1814. "text",
  1815. "textmate",
  1816. "theme",
  1817. "theory",
  1818. "three",
  1819. "thrift",
  1820. "time",
  1821. "timeline",
  1822. "timer",
  1823. "tiny",
  1824. "tinymce",
  1825. "tip-",
  1826. "tip.",
  1827. "tip_",
  1828. "title",
  1829. "todo",
  1830. "todomvc",
  1831. "token",
  1832. "tool",
  1833. "toolbox",
  1834. "toolkit",
  1835. "top-",
  1836. "top.",
  1837. "top_",
  1838. "tornado",
  1839. "touch",
  1840. "tower",
  1841. "tracker",
  1842. "tracking",
  1843. "traffic",
  1844. "training",
  1845. "transfer",
  1846. "translate",
  1847. "transport",
  1848. "tree",
  1849. "trello",
  1850. "try-",
  1851. "try.",
  1852. "try_",
  1853. "tumblr",
  1854. "tut-",
  1855. "tut.",
  1856. "tut_",
  1857. "tutorial",
  1858. "tweet",
  1859. "twig",
  1860. "twitter",
  1861. "type",
  1862. "typo",
  1863. "ubuntu",
  1864. "uiview",
  1865. "ultimate",
  1866. "under",
  1867. "unit",
  1868. "unity",
  1869. "universal",
  1870. "unix",
  1871. "update",
  1872. "updated",
  1873. "upgrade",
  1874. "upload",
  1875. "uploader",
  1876. "uri-",
  1877. "uri.",
  1878. "uri_",
  1879. "url-",
  1880. "url.",
  1881. "url_",
  1882. "usage",
  1883. "usb-",
  1884. "usb.",
  1885. "usb_",
  1886. "use-",
  1887. "use.",
  1888. "use_",
  1889. "used",
  1890. "useful",
  1891. "user",
  1892. "using",
  1893. "util",
  1894. "utilitie",
  1895. "utility",
  1896. "vagrant",
  1897. "validator",
  1898. "value",
  1899. "variou",
  1900. "varnish",
  1901. "version",
  1902. "via-",
  1903. "via.",
  1904. "via_",
  1905. "video",
  1906. "view",
  1907. "viewer",
  1908. "vim-",
  1909. "vim.",
  1910. "vim_",
  1911. "vimrc",
  1912. "virtual",
  1913. "vision",
  1914. "visual",
  1915. "vpn",
  1916. "want",
  1917. "warning",
  1918. "watch",
  1919. "watcher",
  1920. "wave",
  1921. "way-",
  1922. "way.",
  1923. "way_",
  1924. "weather",
  1925. "web-",
  1926. "web_",
  1927. "webapp",
  1928. "webgl",
  1929. "webhook",
  1930. "webkit",
  1931. "webrtc",
  1932. "website",
  1933. "websocket",
  1934. "welcome",
  1935. "welcome",
  1936. "what",
  1937. "what'",
  1938. "when",
  1939. "where",
  1940. "which",
  1941. "why-",
  1942. "why.",
  1943. "why_",
  1944. "widget",
  1945. "wifi",
  1946. "wiki",
  1947. "win-",
  1948. "win.",
  1949. "win_",
  1950. "window",
  1951. "wip-",
  1952. "wip.",
  1953. "wip_",
  1954. "within",
  1955. "without",
  1956. "wizard",
  1957. "word",
  1958. "wordpres",
  1959. "work",
  1960. "worker",
  1961. "workflow",
  1962. "working",
  1963. "workshop",
  1964. "world",
  1965. "wrapper",
  1966. "write",
  1967. "writer",
  1968. "writing",
  1969. "written",
  1970. "www-",
  1971. "www.",
  1972. "www_",
  1973. "xamarin",
  1974. "xcode",
  1975. "xml-",
  1976. "xml.",
  1977. "xml_",
  1978. "xmpp",
  1979. "xxxxxx",
  1980. "yahoo",
  1981. "yaml",
  1982. "yandex",
  1983. "yeoman",
  1984. "yet-",
  1985. "yet.",
  1986. "yet_",
  1987. "yii-",
  1988. "yii.",
  1989. "yii_",
  1990. "youtube",
  1991. "yui-",
  1992. "yui.",
  1993. "yui_",
  1994. "zend",
  1995. "zero",
  1996. "zip-",
  1997. "zip.",
  1998. "zip_",
  1999. "zsh-",
  2000. "zsh.",
  2001. "zsh_",
  2002. "6fe4476ee5a1832882e326b506d14126",
  2003. ]
  2004. [[rules.allowlists]]
  2005. regexTarget = "line"
  2006. regexes = [
  2007. '''--mount=type=secret,''',
  2008. '''import[ \t]+{[ \t\w,]+}[ \t]+from[ \t]+['"][^'"]+['"]''',
  2009. ]
  2010. [[rules.allowlists]]
  2011. condition = "AND"
  2012. paths = [
  2013. '''\.bb$''','''\.bbappend$''','''\.bbclass$''','''\.inc$''',
  2014. ]
  2015. regexTarget = "line"
  2016. regexes = [
  2017. '''LICENSE[^=]*=\s*"[^"]+''',
  2018. '''LIC_FILES_CHKSUM[^=]*=\s*"[^"]+''',
  2019. '''SRC[^=]*=\s*"[a-zA-Z0-9]+''',
  2020. ]
  2021. [[rules]]
  2022. id = "github-app-token"
  2023. description = "Identified a GitHub App Token, which may compromise GitHub application integrations and source code security."
  2024. regex = '''(?:ghu|ghs)_[0-9a-zA-Z]{36}'''
  2025. entropy = 3
  2026. keywords = [
  2027. "ghu_",
  2028. "ghs_",
  2029. ]
  2030. [[rules.allowlists]]
  2031. paths = [
  2032. '''(?:^|/)@octokit/auth-token/README\.md$''',
  2033. ]
  2034. [[rules]]
  2035. id = "github-fine-grained-pat"
  2036. description = "Found a GitHub Fine-Grained Personal Access Token, risking unauthorized repository access and code manipulation."
  2037. regex = '''github_pat_\w{82}'''
  2038. entropy = 3
  2039. keywords = ["github_pat_"]
  2040. [[rules]]
  2041. id = "github-oauth"
  2042. description = "Discovered a GitHub OAuth Access Token, posing a risk of compromised GitHub account integrations and data leaks."
  2043. regex = '''gho_[0-9a-zA-Z]{36}'''
  2044. entropy = 3
  2045. keywords = ["gho_"]
  2046. [[rules]]
  2047. id = "github-pat"
  2048. description = "Uncovered a GitHub Personal Access Token, potentially leading to unauthorized repository access and sensitive content exposure."
  2049. regex = '''ghp_[0-9a-zA-Z]{36}'''
  2050. entropy = 3
  2051. keywords = ["ghp_"]
  2052. [[rules.allowlists]]
  2053. paths = [
  2054. '''(?:^|/)@octokit/auth-token/README\.md$''',
  2055. ]
  2056. [[rules]]
  2057. id = "github-refresh-token"
  2058. description = "Detected a GitHub Refresh Token, which could allow prolonged unauthorized access to GitHub services."
  2059. regex = '''ghr_[0-9a-zA-Z]{36}'''
  2060. entropy = 3
  2061. keywords = ["ghr_"]
  2062. [[rules]]
  2063. id = "gitlab-cicd-job-token"
  2064. description = "Identified a GitLab CI/CD Job Token, potential access to projects and some APIs on behalf of a user while the CI job is running."
  2065. regex = '''glcbt-[0-9a-zA-Z]{1,5}_[0-9a-zA-Z_-]{20}'''
  2066. entropy = 3
  2067. keywords = ["glcbt-"]
  2068. [[rules]]
  2069. id = "gitlab-deploy-token"
  2070. description = "Identified a GitLab Deploy Token, risking access to repositories, packages and containers with write access."
  2071. regex = '''gldt-[0-9a-zA-Z_\-]{20}'''
  2072. entropy = 3
  2073. keywords = ["gldt-"]
  2074. [[rules]]
  2075. id = "gitlab-feature-flag-client-token"
  2076. description = "Identified a GitLab feature flag client token, risks exposing user lists and features flags used by an application."
  2077. regex = '''glffct-[0-9a-zA-Z_\-]{20}'''
  2078. entropy = 3
  2079. keywords = ["glffct-"]
  2080. [[rules]]
  2081. id = "gitlab-feed-token"
  2082. description = "Identified a GitLab feed token, risking exposure of user data."
  2083. regex = '''glft-[0-9a-zA-Z_\-]{20}'''
  2084. entropy = 3
  2085. keywords = ["glft-"]
  2086. [[rules]]
  2087. id = "gitlab-incoming-mail-token"
  2088. description = "Identified a GitLab incoming mail token, risking manipulation of data sent by mail."
  2089. regex = '''glimt-[0-9a-zA-Z_\-]{25}'''
  2090. entropy = 3
  2091. keywords = ["glimt-"]
  2092. [[rules]]
  2093. id = "gitlab-kubernetes-agent-token"
  2094. description = "Identified a GitLab Kubernetes Agent token, risking access to repos and registry of projects connected via agent."
  2095. regex = '''glagent-[0-9a-zA-Z_\-]{50}'''
  2096. entropy = 3
  2097. keywords = ["glagent-"]
  2098. [[rules]]
  2099. id = "gitlab-oauth-app-secret"
  2100. description = "Identified a GitLab OIDC Application Secret, risking access to apps using GitLab as authentication provider."
  2101. regex = '''gloas-[0-9a-zA-Z_\-]{64}'''
  2102. entropy = 3
  2103. keywords = ["gloas-"]
  2104. [[rules]]
  2105. id = "gitlab-pat"
  2106. description = "Identified a GitLab Personal Access Token, risking unauthorized access to GitLab repositories and codebase exposure."
  2107. regex = '''glpat-[\w-]{20}'''
  2108. entropy = 3
  2109. keywords = ["glpat-"]
  2110. [[rules]]
  2111. id = "gitlab-pat-routable"
  2112. description = "Identified a GitLab Personal Access Token (routable), risking unauthorized access to GitLab repositories and codebase exposure."
  2113. regex = '''\bglpat-[0-9a-zA-Z_-]{27,300}\.[0-9a-z]{2}[0-9a-z]{7}\b'''
  2114. entropy = 4
  2115. keywords = ["glpat-"]
  2116. [[rules]]
  2117. id = "gitlab-ptt"
  2118. description = "Found a GitLab Pipeline Trigger Token, potentially compromising continuous integration workflows and project security."
  2119. regex = '''glptt-[0-9a-f]{40}'''
  2120. entropy = 3
  2121. keywords = ["glptt-"]
  2122. [[rules]]
  2123. id = "gitlab-rrt"
  2124. description = "Discovered a GitLab Runner Registration Token, posing a risk to CI/CD pipeline integrity and unauthorized access."
  2125. regex = '''GR1348941[\w-]{20}'''
  2126. entropy = 3
  2127. keywords = ["gr1348941"]
  2128. [[rules]]
  2129. id = "gitlab-runner-authentication-token"
  2130. description = "Discovered a GitLab Runner Authentication Token, posing a risk to CI/CD pipeline integrity and unauthorized access."
  2131. regex = '''glrt-[0-9a-zA-Z_\-]{20}'''
  2132. entropy = 3
  2133. keywords = ["glrt-"]
  2134. [[rules]]
  2135. id = "gitlab-runner-authentication-token-routable"
  2136. description = "Discovered a GitLab Runner Authentication Token (Routable), posing a risk to CI/CD pipeline integrity and unauthorized access."
  2137. regex = '''\bglrt-t\d_[0-9a-zA-Z_\-]{27,300}\.[0-9a-z]{2}[0-9a-z]{7}\b'''
  2138. entropy = 4
  2139. keywords = ["glrt-"]
  2140. [[rules]]
  2141. id = "gitlab-scim-token"
  2142. description = "Discovered a GitLab SCIM Token, posing a risk to unauthorized access for a organization or instance."
  2143. regex = '''glsoat-[0-9a-zA-Z_\-]{20}'''
  2144. entropy = 3
  2145. keywords = ["glsoat-"]
  2146. [[rules]]
  2147. id = "gitlab-session-cookie"
  2148. description = "Discovered a GitLab Session Cookie, posing a risk to unauthorized access to a user account."
  2149. regex = '''_gitlab_session=[0-9a-z]{32}'''
  2150. entropy = 3
  2151. keywords = ["_gitlab_session="]
  2152. [[rules]]
  2153. id = "gitter-access-token"
  2154. description = "Uncovered a Gitter Access Token, which may lead to unauthorized access to chat and communication services."
  2155. regex = '''(?i)[\w.-]{0,50}?(?:gitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9_-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2156. keywords = ["gitter"]
  2157. [[rules]]
  2158. id = "gocardless-api-token"
  2159. description = "Detected a GoCardless API token, potentially risking unauthorized direct debit payment operations and financial data exposure."
  2160. regex = '''(?i)[\w.-]{0,50}?(?:gocardless)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(live_(?i)[a-z0-9\-_=]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2161. keywords = [
  2162. "live_",
  2163. "gocardless",
  2164. ]
  2165. [[rules]]
  2166. id = "grafana-api-key"
  2167. description = "Identified a Grafana API key, which could compromise monitoring dashboards and sensitive data analytics."
  2168. regex = '''(?i)\b(eyJrIjoi[A-Za-z0-9]{70,400}={0,3})(?:[\x60'"\s;]|\\[nr]|$)'''
  2169. entropy = 3
  2170. keywords = ["eyjrijoi"]
  2171. [[rules]]
  2172. id = "grafana-cloud-api-token"
  2173. description = "Found a Grafana cloud API token, risking unauthorized access to cloud-based monitoring services and data exposure."
  2174. regex = '''(?i)\b(glc_[A-Za-z0-9+/]{32,400}={0,3})(?:[\x60'"\s;]|\\[nr]|$)'''
  2175. entropy = 3
  2176. keywords = ["glc_"]
  2177. [[rules]]
  2178. id = "grafana-service-account-token"
  2179. description = "Discovered a Grafana service account token, posing a risk of compromised monitoring services and data integrity."
  2180. regex = '''(?i)\b(glsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8})(?:[\x60'"\s;]|\\[nr]|$)'''
  2181. entropy = 3
  2182. keywords = ["glsa_"]
  2183. [[rules]]
  2184. id = "harness-api-key"
  2185. description = "Identified a Harness Access Token (PAT or SAT), risking unauthorized access to a Harness account."
  2186. regex = '''(?:pat|sat)\.[a-zA-Z0-9_-]{22}\.[a-zA-Z0-9]{24}\.[a-zA-Z0-9]{20}'''
  2187. keywords = [
  2188. "pat.",
  2189. "sat.",
  2190. ]
  2191. [[rules]]
  2192. id = "hashicorp-tf-api-token"
  2193. description = "Uncovered a HashiCorp Terraform user/org API token, which may lead to unauthorized infrastructure management and security breaches."
  2194. regex = '''(?i)[a-z0-9]{14}\.(?-i:atlasv1)\.[a-z0-9\-_=]{60,70}'''
  2195. entropy = 3.5
  2196. keywords = ["atlasv1"]
  2197. [[rules]]
  2198. id = "hashicorp-tf-password"
  2199. description = "Identified a HashiCorp Terraform password field, risking unauthorized infrastructure configuration and security breaches."
  2200. regex = '''(?i)[\w.-]{0,50}?(?:administrator_login_password|password)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}("[a-z0-9=_\-]{8,20}")(?:[\x60'"\s;]|\\[nr]|$)'''
  2201. path = '''(?i)\.(?:tf|hcl)$'''
  2202. entropy = 2
  2203. keywords = [
  2204. "administrator_login_password",
  2205. "password",
  2206. ]
  2207. [[rules]]
  2208. id = "heroku-api-key"
  2209. description = "Detected a Heroku API Key, potentially compromising cloud application deployments and operational security."
  2210. regex = '''(?i)[\w.-]{0,50}?(?:heroku)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2211. keywords = ["heroku"]
  2212. [[rules]]
  2213. id = "hubspot-api-key"
  2214. description = "Found a HubSpot API Token, posing a risk to CRM data integrity and unauthorized marketing operations."
  2215. regex = '''(?i)[\w.-]{0,50}?(?:hubspot)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2216. keywords = ["hubspot"]
  2217. [[rules]]
  2218. id = "huggingface-access-token"
  2219. description = "Discovered a Hugging Face Access token, which could lead to unauthorized access to AI models and sensitive data."
  2220. regex = '''\b(hf_(?i:[a-z]{34}))(?:[\x60'"\s;]|\\[nr]|$)'''
  2221. entropy = 2
  2222. keywords = ["hf_"]
  2223. [[rules]]
  2224. id = "huggingface-organization-api-token"
  2225. description = "Uncovered a Hugging Face Organization API token, potentially compromising AI organization accounts and associated data."
  2226. regex = '''\b(api_org_(?i:[a-z]{34}))(?:[\x60'"\s;]|\\[nr]|$)'''
  2227. entropy = 2
  2228. keywords = ["api_org_"]
  2229. [[rules]]
  2230. id = "infracost-api-token"
  2231. description = "Detected an Infracost API Token, risking unauthorized access to cloud cost estimation tools and financial data."
  2232. regex = '''\b(ico-[a-zA-Z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2233. entropy = 3
  2234. keywords = ["ico-"]
  2235. [[rules]]
  2236. id = "intercom-api-key"
  2237. description = "Identified an Intercom API Token, which could compromise customer communication channels and data privacy."
  2238. regex = '''(?i)[\w.-]{0,50}?(?:intercom)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{60})(?:[\x60'"\s;]|\\[nr]|$)'''
  2239. keywords = ["intercom"]
  2240. [[rules]]
  2241. id = "intra42-client-secret"
  2242. description = "Found a Intra42 client secret, which could lead to unauthorized access to the 42School API and sensitive data."
  2243. regex = '''\b(s-s4t2(?:ud|af)-(?i)[abcdef0123456789]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2244. entropy = 3
  2245. keywords = [
  2246. "intra",
  2247. "s-s4t2ud-",
  2248. "s-s4t2af-",
  2249. ]
  2250. [[rules]]
  2251. id = "jfrog-api-key"
  2252. description = "Found a JFrog API Key, posing a risk of unauthorized access to software artifact repositories and build pipelines."
  2253. regex = '''(?i)[\w.-]{0,50}?(?:jfrog|artifactory|bintray|xray)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{73})(?:[\x60'"\s;]|\\[nr]|$)'''
  2254. keywords = [
  2255. "jfrog",
  2256. "artifactory",
  2257. "bintray",
  2258. "xray",
  2259. ]
  2260. [[rules]]
  2261. id = "jfrog-identity-token"
  2262. description = "Discovered a JFrog Identity Token, potentially compromising access to JFrog services and sensitive software artifacts."
  2263. regex = '''(?i)[\w.-]{0,50}?(?:jfrog|artifactory|bintray|xray)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2264. keywords = [
  2265. "jfrog",
  2266. "artifactory",
  2267. "bintray",
  2268. "xray",
  2269. ]
  2270. [[rules]]
  2271. id = "jwt"
  2272. description = "Uncovered a JSON Web Token, which may lead to unauthorized access to web applications and sensitive user data."
  2273. regex = '''\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9\/\\_-]{17,}\.(?:[a-zA-Z0-9\/\\_-]{10,}={0,2})?)(?:[\x60'"\s;]|\\[nr]|$)'''
  2274. entropy = 3
  2275. keywords = ["ey"]
  2276. [[rules]]
  2277. id = "jwt-base64"
  2278. description = "Detected a Base64-encoded JSON Web Token, posing a risk of exposing encoded authentication and data exchange information."
  2279. regex = '''\bZXlK(?:(?P<alg>aGJHY2lPaU)|(?P<apu>aGNIVWlPaU)|(?P<apv>aGNIWWlPaU)|(?P<aud>aGRXUWlPaU)|(?P<b64>aU5qUWlP)|(?P<crit>amNtbDBJanBi)|(?P<cty>amRIa2lPaU)|(?P<epk>bGNHc2lPbn)|(?P<enc>bGJtTWlPaU)|(?P<jku>cWEzVWlPaU)|(?P<jwk>cWQyc2lPb)|(?P<iss>cGMzTWlPaU)|(?P<iv>cGRpSTZJ)|(?P<kid>cmFXUWlP)|(?P<key_ops>clpYbGZiM0J6SWpwY)|(?P<kty>cmRIa2lPaUp)|(?P<nonce>dWIyNWpaU0k2)|(?P<p2c>d01tTWlP)|(?P<p2s>d01uTWlPaU)|(?P<ppt>d2NIUWlPaU)|(?P<sub>emRXSWlPaU)|(?P<svt>emRuUWlP)|(?P<tag>MFlXY2lPaU)|(?P<typ>MGVYQWlPaUp)|(?P<url>MWNtd2l)|(?P<use>MWMyVWlPaUp)|(?P<ver>MlpYSWlPaU)|(?P<version>MlpYSnphVzl1SWpv)|(?P<x>NElqb2)|(?P<x5c>NE5XTWlP)|(?P<x5t>NE5YUWlPaU)|(?P<x5ts256>NE5YUWpVekkxTmlJNkl)|(?P<x5u>NE5YVWlPaU)|(?P<zip>NmFYQWlPaU))[a-zA-Z0-9\/\\_+\-\r\n]{40,}={0,2}'''
  2280. entropy = 2
  2281. keywords = ["zxlk"]
  2282. [[rules]]
  2283. id = "kraken-access-token"
  2284. description = "Identified a Kraken Access Token, potentially compromising cryptocurrency trading accounts and financial security."
  2285. regex = '''(?i)[\w.-]{0,50}?(?:kraken)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9\/=_\+\-]{80,90})(?:[\x60'"\s;]|\\[nr]|$)'''
  2286. keywords = ["kraken"]
  2287. [[rules]]
  2288. id = "kubernetes-secret-yaml"
  2289. description = "Possible Kubernetes Secret detected, posing a risk of leaking credentials/tokens from your deployments"
  2290. regex = '''(?i)(?:\bkind:[ \t]*["']?\bsecret\b["']?(?:.|\s){0,200}?\bdata:(?:.|\s){0,100}?\s+([\w.-]+:(?:[ \t]*(?:\||>[-+]?)\s+)?[ \t]*(?:["']?[a-z0-9+/]{10,}={0,3}["']?|\{\{[ \t\w"|$:=,.-]+}}|""|''))|\bdata:(?:.|\s){0,100}?\s+([\w.-]+:(?:[ \t]*(?:\||>[-+]?)\s+)?[ \t]*(?:["']?[a-z0-9+/]{10,}={0,3}["']?|\{\{[ \t\w"|$:=,.-]+}}|""|''))(?:.|\s){0,200}?\bkind:[ \t]*["']?\bsecret\b["']?)'''
  2291. path = '''(?i)\.ya?ml$'''
  2292. keywords = ["secret"]
  2293. [[rules.allowlists]]
  2294. regexes = [
  2295. '''[\w.-]+:(?:[ \t]*(?:\||>[-+]?)\s+)?[ \t]*(?:\{\{[ \t\w"|$:=,.-]+}}|""|'')''',
  2296. ]
  2297. [[rules.allowlists]]
  2298. regexTarget = "match"
  2299. regexes = [
  2300. '''(kind:(?:.|\s)+\n---\n(?:.|\s)+\bdata:|data:(?:.|\s)+\n---\n(?:.|\s)+\bkind:)''',
  2301. ]
  2302. [[rules]]
  2303. id = "kucoin-access-token"
  2304. description = "Found a Kucoin Access Token, risking unauthorized access to cryptocurrency exchange services and transactions."
  2305. regex = '''(?i)[\w.-]{0,50}?(?:kucoin)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{24})(?:[\x60'"\s;]|\\[nr]|$)'''
  2306. keywords = ["kucoin"]
  2307. [[rules]]
  2308. id = "kucoin-secret-key"
  2309. description = "Discovered a Kucoin Secret Key, which could lead to compromised cryptocurrency operations and financial data breaches."
  2310. regex = '''(?i)[\w.-]{0,50}?(?:kucoin)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2311. keywords = ["kucoin"]
  2312. [[rules]]
  2313. id = "launchdarkly-access-token"
  2314. description = "Uncovered a Launchdarkly Access Token, potentially compromising feature flag management and application functionality."
  2315. regex = '''(?i)[\w.-]{0,50}?(?:launchdarkly)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2316. keywords = ["launchdarkly"]
  2317. [[rules]]
  2318. id = "linear-api-key"
  2319. description = "Detected a Linear API Token, posing a risk to project management tools and sensitive task data."
  2320. regex = '''lin_api_(?i)[a-z0-9]{40}'''
  2321. entropy = 2
  2322. keywords = ["lin_api_"]
  2323. [[rules]]
  2324. id = "linear-client-secret"
  2325. description = "Identified a Linear Client Secret, which may compromise secure integrations and sensitive project management data."
  2326. regex = '''(?i)[\w.-]{0,50}?(?:linear)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2327. entropy = 2
  2328. keywords = ["linear"]
  2329. [[rules]]
  2330. id = "linkedin-client-id"
  2331. description = "Found a LinkedIn Client ID, risking unauthorized access to LinkedIn integrations and professional data exposure."
  2332. regex = '''(?i)[\w.-]{0,50}?(?:linked[_-]?in)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{14})(?:[\x60'"\s;]|\\[nr]|$)'''
  2333. entropy = 2
  2334. keywords = [
  2335. "linkedin",
  2336. "linked_in",
  2337. "linked-in",
  2338. ]
  2339. [[rules]]
  2340. id = "linkedin-client-secret"
  2341. description = "Discovered a LinkedIn Client secret, potentially compromising LinkedIn application integrations and user data."
  2342. regex = '''(?i)[\w.-]{0,50}?(?:linked[_-]?in)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  2343. entropy = 2
  2344. keywords = [
  2345. "linkedin",
  2346. "linked_in",
  2347. "linked-in",
  2348. ]
  2349. [[rules]]
  2350. id = "lob-api-key"
  2351. description = "Uncovered a Lob API Key, which could lead to unauthorized access to mailing and address verification services."
  2352. regex = '''(?i)[\w.-]{0,50}?(?:lob)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}((live|test)_[a-f0-9]{35})(?:[\x60'"\s;]|\\[nr]|$)'''
  2353. keywords = [
  2354. "test_",
  2355. "live_",
  2356. ]
  2357. [[rules]]
  2358. id = "lob-pub-api-key"
  2359. description = "Detected a Lob Publishable API Key, posing a risk of exposing mail and print service integrations."
  2360. regex = '''(?i)[\w.-]{0,50}?(?:lob)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}((test|live)_pub_[a-f0-9]{31})(?:[\x60'"\s;]|\\[nr]|$)'''
  2361. keywords = [
  2362. "test_pub",
  2363. "live_pub",
  2364. "_pub",
  2365. ]
  2366. [[rules]]
  2367. id = "mailchimp-api-key"
  2368. description = "Identified a Mailchimp API key, potentially compromising email marketing campaigns and subscriber data."
  2369. regex = '''(?i)[\w.-]{0,50}?(?:MailchimpSDK.initialize|mailchimp)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{32}-us\d\d)(?:[\x60'"\s;]|\\[nr]|$)'''
  2370. keywords = ["mailchimp"]
  2371. [[rules]]
  2372. id = "mailgun-private-api-token"
  2373. description = "Found a Mailgun private API token, risking unauthorized email service operations and data breaches."
  2374. regex = '''(?i)[\w.-]{0,50}?(?:mailgun)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(key-[a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2375. keywords = ["mailgun"]
  2376. [[rules]]
  2377. id = "mailgun-pub-key"
  2378. description = "Discovered a Mailgun public validation key, which could expose email verification processes and associated data."
  2379. regex = '''(?i)[\w.-]{0,50}?(?:mailgun)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(pubkey-[a-f0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2380. keywords = ["mailgun"]
  2381. [[rules]]
  2382. id = "mailgun-signing-key"
  2383. description = "Uncovered a Mailgun webhook signing key, potentially compromising email automation and data integrity."
  2384. regex = '''(?i)[\w.-]{0,50}?(?:mailgun)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-h0-9]{32}-[a-h0-9]{8}-[a-h0-9]{8})(?:[\x60'"\s;]|\\[nr]|$)'''
  2385. keywords = ["mailgun"]
  2386. [[rules]]
  2387. id = "mapbox-api-token"
  2388. description = "Detected a MapBox API token, posing a risk to geospatial services and sensitive location data exposure."
  2389. regex = '''(?i)[\w.-]{0,50}?(?:mapbox)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(pk\.[a-z0-9]{60}\.[a-z0-9]{22})(?:[\x60'"\s;]|\\[nr]|$)'''
  2390. keywords = ["mapbox"]
  2391. [[rules]]
  2392. id = "mattermost-access-token"
  2393. description = "Identified a Mattermost Access Token, which may compromise team communication channels and data privacy."
  2394. regex = '''(?i)[\w.-]{0,50}?(?:mattermost)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{26})(?:[\x60'"\s;]|\\[nr]|$)'''
  2395. keywords = ["mattermost"]
  2396. [[rules]]
  2397. id = "maxmind-license-key"
  2398. description = "Discovered a potential MaxMind license key."
  2399. regex = '''\b([A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk)(?:[\x60'"\s;]|\\[nr]|$)'''
  2400. entropy = 4
  2401. keywords = ["_mmk"]
  2402. [[rules]]
  2403. id = "messagebird-api-token"
  2404. description = "Found a MessageBird API token, risking unauthorized access to communication platforms and message data."
  2405. regex = '''(?i)[\w.-]{0,50}?(?:message[_-]?bird)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{25})(?:[\x60'"\s;]|\\[nr]|$)'''
  2406. keywords = [
  2407. "messagebird",
  2408. "message-bird",
  2409. "message_bird",
  2410. ]
  2411. [[rules]]
  2412. id = "messagebird-client-id"
  2413. description = "Discovered a MessageBird client ID, potentially compromising API integrations and sensitive communication data."
  2414. regex = '''(?i)[\w.-]{0,50}?(?:message[_-]?bird)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2415. keywords = [
  2416. "messagebird",
  2417. "message-bird",
  2418. "message_bird",
  2419. ]
  2420. [[rules]]
  2421. id = "microsoft-teams-webhook"
  2422. description = "Uncovered a Microsoft Teams Webhook, which could lead to unauthorized access to team collaboration tools and data leaks."
  2423. regex = '''https://[a-z0-9]+\.webhook\.office\.com/webhookb2/[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}@[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}/IncomingWebhook/[a-z0-9]{32}/[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}'''
  2424. keywords = [
  2425. "webhook.office.com",
  2426. "webhookb2",
  2427. "incomingwebhook",
  2428. ]
  2429. [[rules]]
  2430. id = "netlify-access-token"
  2431. description = "Detected a Netlify Access Token, potentially compromising web hosting services and site management."
  2432. regex = '''(?i)[\w.-]{0,50}?(?:netlify)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{40,46})(?:[\x60'"\s;]|\\[nr]|$)'''
  2433. keywords = ["netlify"]
  2434. [[rules]]
  2435. id = "new-relic-browser-api-token"
  2436. description = "Identified a New Relic ingest browser API token, risking unauthorized access to application performance data and analytics."
  2437. regex = '''(?i)[\w.-]{0,50}?(?:new-relic|newrelic|new_relic)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(NRJS-[a-f0-9]{19})(?:[\x60'"\s;]|\\[nr]|$)'''
  2438. keywords = ["nrjs-"]
  2439. [[rules]]
  2440. id = "new-relic-insert-key"
  2441. description = "Discovered a New Relic insight insert key, compromising data injection into the platform."
  2442. regex = '''(?i)[\w.-]{0,50}?(?:new-relic|newrelic|new_relic)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(NRII-[a-z0-9-]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2443. keywords = ["nrii-"]
  2444. [[rules]]
  2445. id = "new-relic-user-api-id"
  2446. description = "Found a New Relic user API ID, posing a risk to application monitoring services and data integrity."
  2447. regex = '''(?i)[\w.-]{0,50}?(?:new-relic|newrelic|new_relic)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2448. keywords = [
  2449. "new-relic",
  2450. "newrelic",
  2451. "new_relic",
  2452. ]
  2453. [[rules]]
  2454. id = "new-relic-user-api-key"
  2455. description = "Discovered a New Relic user API Key, which could lead to compromised application insights and performance monitoring."
  2456. regex = '''(?i)[\w.-]{0,50}?(?:new-relic|newrelic|new_relic)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(NRAK-[a-z0-9]{27})(?:[\x60'"\s;]|\\[nr]|$)'''
  2457. keywords = ["nrak"]
  2458. [[rules]]
  2459. id = "npm-access-token"
  2460. description = "Uncovered an npm access token, potentially compromising package management and code repository access."
  2461. regex = '''(?i)\b(npm_[a-z0-9]{36})(?:[\x60'"\s;]|\\[nr]|$)'''
  2462. entropy = 2
  2463. keywords = ["npm_"]
  2464. [[rules]]
  2465. id = "nuget-config-password"
  2466. description = "Identified a password within a Nuget config file, potentially compromising package management access."
  2467. regex = '''(?i)<add key=\"(?:(?:ClearText)?Password)\"\s*value=\"(.{8,})\"\s*/>'''
  2468. path = '''(?i)nuget\.config$'''
  2469. entropy = 1
  2470. keywords = ["<add key="]
  2471. [[rules.allowlists]]
  2472. regexes = [
  2473. '''33f!!lloppa''',
  2474. '''hal\+9ooo_da!sY''',
  2475. '''^\%\S.*\%$''',
  2476. ]
  2477. [[rules]]
  2478. id = "nytimes-access-token"
  2479. description = "Detected a Nytimes Access Token, risking unauthorized access to New York Times APIs and content services."
  2480. regex = '''(?i)[\w.-]{0,50}?(?:nytimes|new-york-times,|newyorktimes)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2481. keywords = [
  2482. "nytimes",
  2483. "new-york-times",
  2484. "newyorktimes",
  2485. ]
  2486. [[rules]]
  2487. id = "octopus-deploy-api-key"
  2488. description = "Discovered a potential Octopus Deploy API key, risking application deployments and operational security."
  2489. regex = '''\b(API-[A-Z0-9]{26})(?:[\x60'"\s;]|\\[nr]|$)'''
  2490. entropy = 3
  2491. keywords = ["api-"]
  2492. [[rules]]
  2493. id = "okta-access-token"
  2494. description = "Identified an Okta Access Token, which may compromise identity management services and user authentication data."
  2495. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:(?-i:[Oo]kta|OKTA))(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(00[\w=\-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2496. entropy = 4
  2497. keywords = ["okta"]
  2498. [[rules]]
  2499. id = "openai-api-key"
  2500. description = "Found an OpenAI API Key, posing a risk of unauthorized access to AI services and data manipulation."
  2501. regex = '''\b(sk-(?:proj|svcacct|admin)-(?:[A-Za-z0-9_-]{74}|[A-Za-z0-9_-]{58})T3BlbkFJ(?:[A-Za-z0-9_-]{74}|[A-Za-z0-9_-]{58})\b|sk-[a-zA-Z0-9]{20}T3BlbkFJ[a-zA-Z0-9]{20})(?:[\x60'"\s;]|\\[nr]|$)'''
  2502. entropy = 3
  2503. keywords = ["t3blbkfj"]
  2504. [[rules]]
  2505. id = "openshift-user-token"
  2506. description = "Found an OpenShift user token, potentially compromising an OpenShift/Kubernetes cluster."
  2507. regex = '''\b(sha256~[\w-]{43})(?:[^\w-]|\z)'''
  2508. entropy = 3.5
  2509. keywords = ["sha256~"]
  2510. [[rules]]
  2511. id = "pkcs12-file"
  2512. description = "Found a PKCS #12 file, which commonly contain bundled private keys."
  2513. path = '''(?i)(?:^|\/)[^\/]+\.p(?:12|fx)$'''
  2514. [[rules]]
  2515. id = "plaid-api-token"
  2516. description = "Discovered a Plaid API Token, potentially compromising financial data aggregation and banking services."
  2517. regex = '''(?i)[\w.-]{0,50}?(?:plaid)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(access-(?:sandbox|development|production)-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2518. keywords = ["plaid"]
  2519. [[rules]]
  2520. id = "plaid-client-id"
  2521. description = "Uncovered a Plaid Client ID, which could lead to unauthorized financial service integrations and data breaches."
  2522. regex = '''(?i)[\w.-]{0,50}?(?:plaid)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{24})(?:[\x60'"\s;]|\\[nr]|$)'''
  2523. entropy = 3.5
  2524. keywords = ["plaid"]
  2525. [[rules]]
  2526. id = "plaid-secret-key"
  2527. description = "Detected a Plaid Secret key, risking unauthorized access to financial accounts and sensitive transaction data."
  2528. regex = '''(?i)[\w.-]{0,50}?(?:plaid)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{30})(?:[\x60'"\s;]|\\[nr]|$)'''
  2529. entropy = 3.5
  2530. keywords = ["plaid"]
  2531. [[rules]]
  2532. id = "planetscale-api-token"
  2533. description = "Identified a PlanetScale API token, potentially compromising database management and operations."
  2534. regex = '''\b(pscale_tkn_(?i)[\w=\.-]{32,64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2535. entropy = 3
  2536. keywords = ["pscale_tkn_"]
  2537. [[rules]]
  2538. id = "planetscale-oauth-token"
  2539. description = "Found a PlanetScale OAuth token, posing a risk to database access control and sensitive data integrity."
  2540. regex = '''\b(pscale_oauth_[\w=\.-]{32,64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2541. entropy = 3
  2542. keywords = ["pscale_oauth_"]
  2543. [[rules]]
  2544. id = "planetscale-password"
  2545. description = "Discovered a PlanetScale password, which could lead to unauthorized database operations and data breaches."
  2546. regex = '''(?i)\b(pscale_pw_(?i)[\w=\.-]{32,64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2547. entropy = 3
  2548. keywords = ["pscale_pw_"]
  2549. [[rules]]
  2550. id = "postman-api-token"
  2551. description = "Uncovered a Postman API token, potentially compromising API testing and development workflows."
  2552. regex = '''\b(PMAK-(?i)[a-f0-9]{24}\-[a-f0-9]{34})(?:[\x60'"\s;]|\\[nr]|$)'''
  2553. entropy = 3
  2554. keywords = ["pmak-"]
  2555. [[rules]]
  2556. id = "prefect-api-token"
  2557. description = "Detected a Prefect API token, risking unauthorized access to workflow management and automation services."
  2558. regex = '''\b(pnu_[a-zA-Z0-9]{36})(?:[\x60'"\s;]|\\[nr]|$)'''
  2559. entropy = 2
  2560. keywords = ["pnu_"]
  2561. [[rules]]
  2562. id = "private-key"
  2563. description = "Identified a Private Key, which may compromise cryptographic security and sensitive data encryption."
  2564. regex = '''(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY(?: BLOCK)?-----[\s\S-]{64,}?KEY(?: BLOCK)?-----'''
  2565. keywords = ["-----begin"]
  2566. [[rules]]
  2567. id = "privateai-api-token"
  2568. description = "Identified a PrivateAI Token, posing a risk of unauthorized access to AI services and data manipulation."
  2569. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:private[_-]?ai)(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{32})(?:[\x60'"\s;]|\\[nr]|$)'''
  2570. entropy = 3
  2571. keywords = [
  2572. "privateai",
  2573. "private_ai",
  2574. "private-ai",
  2575. ]
  2576. [[rules]]
  2577. id = "pulumi-api-token"
  2578. description = "Found a Pulumi API token, posing a risk to infrastructure as code services and cloud resource management."
  2579. regex = '''\b(pul-[a-f0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2580. entropy = 2
  2581. keywords = ["pul-"]
  2582. [[rules]]
  2583. id = "pypi-upload-token"
  2584. description = "Discovered a PyPI upload token, potentially compromising Python package distribution and repository integrity."
  2585. regex = '''pypi-AgEIcHlwaS5vcmc[\w-]{50,1000}'''
  2586. entropy = 3
  2587. keywords = ["pypi-ageichlwas5vcmc"]
  2588. [[rules]]
  2589. id = "rapidapi-access-token"
  2590. description = "Uncovered a RapidAPI Access Token, which could lead to unauthorized access to various APIs and data services."
  2591. regex = '''(?i)[\w.-]{0,50}?(?:rapidapi)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9_-]{50})(?:[\x60'"\s;]|\\[nr]|$)'''
  2592. keywords = ["rapidapi"]
  2593. [[rules]]
  2594. id = "readme-api-token"
  2595. description = "Detected a Readme API token, risking unauthorized documentation management and content exposure."
  2596. regex = '''\b(rdme_[a-z0-9]{70})(?:[\x60'"\s;]|\\[nr]|$)'''
  2597. entropy = 2
  2598. keywords = ["rdme_"]
  2599. [[rules]]
  2600. id = "rubygems-api-token"
  2601. description = "Identified a Rubygem API token, potentially compromising Ruby library distribution and package management."
  2602. regex = '''\b(rubygems_[a-f0-9]{48})(?:[\x60'"\s;]|\\[nr]|$)'''
  2603. entropy = 2
  2604. keywords = ["rubygems_"]
  2605. [[rules]]
  2606. id = "scalingo-api-token"
  2607. description = "Found a Scalingo API token, posing a risk to cloud platform services and application deployment security."
  2608. regex = '''\b(tk-us-[\w-]{48})(?:[\x60'"\s;]|\\[nr]|$)'''
  2609. entropy = 2
  2610. keywords = ["tk-us-"]
  2611. [[rules]]
  2612. id = "sendbird-access-id"
  2613. description = "Discovered a Sendbird Access ID, which could compromise chat and messaging platform integrations."
  2614. regex = '''(?i)[\w.-]{0,50}?(?:sendbird)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2615. keywords = ["sendbird"]
  2616. [[rules]]
  2617. id = "sendbird-access-token"
  2618. description = "Uncovered a Sendbird Access Token, potentially risking unauthorized access to communication services and user data."
  2619. regex = '''(?i)[\w.-]{0,50}?(?:sendbird)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2620. keywords = ["sendbird"]
  2621. [[rules]]
  2622. id = "sendgrid-api-token"
  2623. description = "Detected a SendGrid API token, posing a risk of unauthorized email service operations and data exposure."
  2624. regex = '''\b(SG\.(?i)[a-z0-9=_\-\.]{66})(?:[\x60'"\s;]|\\[nr]|$)'''
  2625. entropy = 2
  2626. keywords = ["sg."]
  2627. [[rules]]
  2628. id = "sendinblue-api-token"
  2629. description = "Identified a Sendinblue API token, which may compromise email marketing services and subscriber data privacy."
  2630. regex = '''\b(xkeysib-[a-f0-9]{64}\-(?i)[a-z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  2631. entropy = 2
  2632. keywords = ["xkeysib-"]
  2633. [[rules]]
  2634. id = "sentry-access-token"
  2635. description = "Found a Sentry.io Access Token (old format), risking unauthorized access to error tracking services and sensitive application data."
  2636. regex = '''(?i)[\w.-]{0,50}?(?:sentry)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2637. entropy = 3
  2638. keywords = ["sentry"]
  2639. [[rules]]
  2640. id = "sentry-org-token"
  2641. description = "Found a Sentry.io Organization Token, risking unauthorized access to error tracking services and sensitive application data."
  2642. regex = '''\bsntrys_eyJpYXQiO[a-zA-Z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[a-zA-Z0-9+/]{10,200}={0,2}_[a-zA-Z0-9+/]{43}(?:[^a-zA-Z0-9+/]|\z)'''
  2643. entropy = 4.5
  2644. keywords = ["sntrys_eyjpyxqio"]
  2645. [[rules]]
  2646. id = "sentry-user-token"
  2647. description = "Found a Sentry.io User Token, risking unauthorized access to error tracking services and sensitive application data."
  2648. regex = '''\b(sntryu_[a-f0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2649. entropy = 3.5
  2650. keywords = ["sntryu_"]
  2651. [[rules]]
  2652. id = "settlemint-application-access-token"
  2653. description = "Found a Settlemint Application Access Token."
  2654. regex = '''\b(sm_aat_[a-zA-Z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  2655. entropy = 3
  2656. keywords = ["sm_aat"]
  2657. [[rules]]
  2658. id = "settlemint-personal-access-token"
  2659. description = "Found a Settlemint Personal Access Token."
  2660. regex = '''\b(sm_pat_[a-zA-Z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  2661. entropy = 3
  2662. keywords = ["sm_pat"]
  2663. [[rules]]
  2664. id = "settlemint-service-access-token"
  2665. description = "Found a Settlemint Service Access Token."
  2666. regex = '''\b(sm_sat_[a-zA-Z0-9]{16})(?:[\x60'"\s;]|\\[nr]|$)'''
  2667. entropy = 3
  2668. keywords = ["sm_sat"]
  2669. [[rules]]
  2670. id = "shippo-api-token"
  2671. description = "Discovered a Shippo API token, potentially compromising shipping services and customer order data."
  2672. regex = '''\b(shippo_(?:live|test)_[a-fA-F0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2673. entropy = 2
  2674. keywords = ["shippo_"]
  2675. [[rules]]
  2676. id = "shopify-access-token"
  2677. description = "Uncovered a Shopify access token, which could lead to unauthorized e-commerce platform access and data breaches."
  2678. regex = '''shpat_[a-fA-F0-9]{32}'''
  2679. entropy = 2
  2680. keywords = ["shpat_"]
  2681. [[rules]]
  2682. id = "shopify-custom-access-token"
  2683. description = "Detected a Shopify custom access token, potentially compromising custom app integrations and e-commerce data security."
  2684. regex = '''shpca_[a-fA-F0-9]{32}'''
  2685. entropy = 2
  2686. keywords = ["shpca_"]
  2687. [[rules]]
  2688. id = "shopify-private-app-access-token"
  2689. description = "Identified a Shopify private app access token, risking unauthorized access to private app data and store operations."
  2690. regex = '''shppa_[a-fA-F0-9]{32}'''
  2691. entropy = 2
  2692. keywords = ["shppa_"]
  2693. [[rules]]
  2694. id = "shopify-shared-secret"
  2695. description = "Found a Shopify shared secret, posing a risk to application authentication and e-commerce platform security."
  2696. regex = '''shpss_[a-fA-F0-9]{32}'''
  2697. entropy = 2
  2698. keywords = ["shpss_"]
  2699. [[rules]]
  2700. id = "sidekiq-secret"
  2701. description = "Discovered a Sidekiq Secret, which could lead to compromised background job processing and application data breaches."
  2702. regex = '''(?i)[\w.-]{0,50}?(?:BUNDLE_ENTERPRISE__CONTRIBSYS__COM|BUNDLE_GEMS__CONTRIBSYS__COM)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-f0-9]{8}:[a-f0-9]{8})(?:[\x60'"\s;]|\\[nr]|$)'''
  2703. keywords = [
  2704. "bundle_enterprise__contribsys__com",
  2705. "bundle_gems__contribsys__com",
  2706. ]
  2707. [[rules]]
  2708. id = "sidekiq-sensitive-url"
  2709. description = "Uncovered a Sidekiq Sensitive URL, potentially exposing internal job queues and sensitive operation details."
  2710. regex = '''(?i)\bhttps?://([a-f0-9]{8}:[a-f0-9]{8})@(?:gems.contribsys.com|enterprise.contribsys.com)(?:[\/|\#|\?|:]|$)'''
  2711. keywords = [
  2712. "gems.contribsys.com",
  2713. "enterprise.contribsys.com",
  2714. ]
  2715. [[rules]]
  2716. id = "slack-app-token"
  2717. description = "Detected a Slack App-level token, risking unauthorized access to Slack applications and workspace data."
  2718. regex = '''(?i)xapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+'''
  2719. entropy = 2
  2720. keywords = ["xapp"]
  2721. [[rules]]
  2722. id = "slack-bot-token"
  2723. description = "Identified a Slack Bot token, which may compromise bot integrations and communication channel security."
  2724. regex = '''xoxb-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*'''
  2725. entropy = 3
  2726. keywords = ["xoxb"]
  2727. [[rules]]
  2728. id = "slack-config-access-token"
  2729. description = "Found a Slack Configuration access token, posing a risk to workspace configuration and sensitive data access."
  2730. regex = '''(?i)xoxe.xox[bp]-\d-[A-Z0-9]{163,166}'''
  2731. entropy = 2
  2732. keywords = [
  2733. "xoxe.xoxb-",
  2734. "xoxe.xoxp-",
  2735. ]
  2736. [[rules]]
  2737. id = "slack-config-refresh-token"
  2738. description = "Discovered a Slack Configuration refresh token, potentially allowing prolonged unauthorized access to configuration settings."
  2739. regex = '''(?i)xoxe-\d-[A-Z0-9]{146}'''
  2740. entropy = 2
  2741. keywords = ["xoxe-"]
  2742. [[rules]]
  2743. id = "slack-legacy-bot-token"
  2744. description = "Uncovered a Slack Legacy bot token, which could lead to compromised legacy bot operations and data exposure."
  2745. regex = '''xoxb-[0-9]{8,14}-[a-zA-Z0-9]{18,26}'''
  2746. entropy = 2
  2747. keywords = ["xoxb"]
  2748. [[rules]]
  2749. id = "slack-legacy-token"
  2750. description = "Detected a Slack Legacy token, risking unauthorized access to older Slack integrations and user data."
  2751. regex = '''xox[os]-\d+-\d+-\d+-[a-fA-F\d]+'''
  2752. entropy = 2
  2753. keywords = [
  2754. "xoxo",
  2755. "xoxs",
  2756. ]
  2757. [[rules]]
  2758. id = "slack-legacy-workspace-token"
  2759. description = "Identified a Slack Legacy Workspace token, potentially compromising access to workspace data and legacy features."
  2760. regex = '''xox[ar]-(?:\d-)?[0-9a-zA-Z]{8,48}'''
  2761. entropy = 2
  2762. keywords = [
  2763. "xoxa",
  2764. "xoxr",
  2765. ]
  2766. [[rules]]
  2767. id = "slack-user-token"
  2768. description = "Found a Slack User token, posing a risk of unauthorized user impersonation and data access within Slack workspaces."
  2769. regex = '''xox[pe](?:-[0-9]{10,13}){3}-[a-zA-Z0-9-]{28,34}'''
  2770. entropy = 2
  2771. keywords = [
  2772. "xoxp-",
  2773. "xoxe-",
  2774. ]
  2775. [[rules]]
  2776. id = "slack-webhook-url"
  2777. description = "Discovered a Slack Webhook, which could lead to unauthorized message posting and data leakage in Slack channels."
  2778. regex = '''(?:https?://)?hooks.slack.com/(?:services|workflows|triggers)/[A-Za-z0-9+/]{43,56}'''
  2779. keywords = ["hooks.slack.com"]
  2780. [[rules]]
  2781. id = "snyk-api-token"
  2782. description = "Uncovered a Snyk API token, potentially compromising software vulnerability scanning and code security."
  2783. regex = '''(?i)[\w.-]{0,50}?(?:snyk[_.-]?(?:(?:api|oauth)[_.-]?)?(?:key|token))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2784. keywords = ["snyk"]
  2785. [[rules]]
  2786. id = "sonar-api-token"
  2787. description = "Uncovered a Sonar API token, potentially compromising software vulnerability scanning and code security."
  2788. regex = '''(?i)[\w.-]{0,50}?(?:sonar[_.-]?(login|token))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2789. keywords = ["sonar"]
  2790. [[rules]]
  2791. id = "sourcegraph-access-token"
  2792. description = "Sourcegraph is a code search and navigation engine."
  2793. regex = '''(?i)\b(\b(sgp_(?:[a-fA-F0-9]{16}|local)_[a-fA-F0-9]{40}|sgp_[a-fA-F0-9]{40}|[a-fA-F0-9]{40})\b)(?:[\x60'"\s;]|\\[nr]|$)'''
  2794. entropy = 3
  2795. keywords = [
  2796. "sgp_",
  2797. "sourcegraph",
  2798. ]
  2799. [[rules]]
  2800. id = "square-access-token"
  2801. description = "Detected a Square Access Token, risking unauthorized payment processing and financial transaction exposure."
  2802. regex = '''\b((?:EAAA|sq0atp-)[\w-]{22,60})(?:[\x60'"\s;]|\\[nr]|$)'''
  2803. entropy = 2
  2804. keywords = [
  2805. "sq0atp-",
  2806. "eaaa",
  2807. ]
  2808. [[rules]]
  2809. id = "squarespace-access-token"
  2810. description = "Identified a Squarespace Access Token, which may compromise website management and content control on Squarespace."
  2811. regex = '''(?i)[\w.-]{0,50}?(?:squarespace)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2812. keywords = ["squarespace"]
  2813. [[rules]]
  2814. id = "stripe-access-token"
  2815. description = "Found a Stripe Access Token, posing a risk to payment processing services and sensitive financial data."
  2816. regex = '''\b((?:sk|rk)_(?:test|live|prod)_[a-zA-Z0-9]{10,99})(?:[\x60'"\s;]|\\[nr]|$)'''
  2817. entropy = 2
  2818. keywords = [
  2819. "sk_test",
  2820. "sk_live",
  2821. "sk_prod",
  2822. "rk_test",
  2823. "rk_live",
  2824. "rk_prod",
  2825. ]
  2826. [[rules]]
  2827. id = "sumologic-access-id"
  2828. description = "Discovered a SumoLogic Access ID, potentially compromising log management services and data analytics integrity."
  2829. regex = '''[\w.-]{0,50}?(?i:[\w.-]{0,50}?(?:(?-i:[Ss]umo|SUMO))(?:[ \t\w.-]{0,20})[\s'"]{0,3})(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(su[a-zA-Z0-9]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
  2830. entropy = 3
  2831. keywords = ["sumo"]
  2832. [[rules]]
  2833. id = "sumologic-access-token"
  2834. description = "Uncovered a SumoLogic Access Token, which could lead to unauthorized access to log data and analytics insights."
  2835. regex = '''(?i)[\w.-]{0,50}?(?:(?-i:[Ss]umo|SUMO))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{64})(?:[\x60'"\s;]|\\[nr]|$)'''
  2836. entropy = 3
  2837. keywords = ["sumo"]
  2838. [[rules]]
  2839. id = "telegram-bot-api-token"
  2840. description = "Detected a Telegram Bot API Token, risking unauthorized bot operations and message interception on Telegram."
  2841. regex = '''(?i)[\w.-]{0,50}?(?:telegr)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9]{5,16}:(?-i:A)[a-z0-9_\-]{34})(?:[\x60'"\s;]|\\[nr]|$)'''
  2842. keywords = ["telegr"]
  2843. [[rules]]
  2844. id = "travisci-access-token"
  2845. description = "Identified a Travis CI Access Token, potentially compromising continuous integration services and codebase security."
  2846. regex = '''(?i)[\w.-]{0,50}?(?:travis)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{22})(?:[\x60'"\s;]|\\[nr]|$)'''
  2847. keywords = ["travis"]
  2848. [[rules]]
  2849. id = "twilio-api-key"
  2850. description = "Found a Twilio API Key, posing a risk to communication services and sensitive customer interaction data."
  2851. regex = '''SK[0-9a-fA-F]{32}'''
  2852. entropy = 3
  2853. keywords = ["sk"]
  2854. [[rules]]
  2855. id = "twitch-api-token"
  2856. description = "Discovered a Twitch API token, which could compromise streaming services and account integrations."
  2857. regex = '''(?i)[\w.-]{0,50}?(?:twitch)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{30})(?:[\x60'"\s;]|\\[nr]|$)'''
  2858. keywords = ["twitch"]
  2859. [[rules]]
  2860. id = "twitter-access-secret"
  2861. description = "Uncovered a Twitter Access Secret, potentially risking unauthorized Twitter integrations and data breaches."
  2862. regex = '''(?i)[\w.-]{0,50}?(?:twitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{45})(?:[\x60'"\s;]|\\[nr]|$)'''
  2863. keywords = ["twitter"]
  2864. [[rules]]
  2865. id = "twitter-access-token"
  2866. description = "Detected a Twitter Access Token, posing a risk of unauthorized account operations and social media data exposure."
  2867. regex = '''(?i)[\w.-]{0,50}?(?:twitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9]{15,25}-[a-zA-Z0-9]{20,40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2868. keywords = ["twitter"]
  2869. [[rules]]
  2870. id = "twitter-api-key"
  2871. description = "Identified a Twitter API Key, which may compromise Twitter application integrations and user data security."
  2872. regex = '''(?i)[\w.-]{0,50}?(?:twitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{25})(?:[\x60'"\s;]|\\[nr]|$)'''
  2873. keywords = ["twitter"]
  2874. [[rules]]
  2875. id = "twitter-api-secret"
  2876. description = "Found a Twitter API Secret, risking the security of Twitter app integrations and sensitive data access."
  2877. regex = '''(?i)[\w.-]{0,50}?(?:twitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{50})(?:[\x60'"\s;]|\\[nr]|$)'''
  2878. keywords = ["twitter"]
  2879. [[rules]]
  2880. id = "twitter-bearer-token"
  2881. description = "Discovered a Twitter Bearer Token, potentially compromising API access and data retrieval from Twitter."
  2882. regex = '''(?i)[\w.-]{0,50}?(?:twitter)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(A{22}[a-zA-Z0-9%]{80,100})(?:[\x60'"\s;]|\\[nr]|$)'''
  2883. keywords = ["twitter"]
  2884. [[rules]]
  2885. id = "typeform-api-token"
  2886. description = "Uncovered a Typeform API token, which could lead to unauthorized survey management and data collection."
  2887. regex = '''(?i)[\w.-]{0,50}?(?:typeform)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(tfp_[a-z0-9\-_\.=]{59})(?:[\x60'"\s;]|\\[nr]|$)'''
  2888. keywords = ["tfp_"]
  2889. [[rules]]
  2890. id = "vault-batch-token"
  2891. description = "Detected a Vault Batch Token, risking unauthorized access to secret management services and sensitive data."
  2892. regex = '''\b(hvb\.[\w-]{138,300})(?:[\x60'"\s;]|\\[nr]|$)'''
  2893. entropy = 4
  2894. keywords = ["hvb."]
  2895. [[rules]]
  2896. id = "vault-service-token"
  2897. description = "Identified a Vault Service Token, potentially compromising infrastructure security and access to sensitive credentials."
  2898. regex = '''\b((?:hvs\.[\w-]{90,120}|s\.(?i:[a-z0-9]{24})))(?:[\x60'"\s;]|\\[nr]|$)'''
  2899. entropy = 3.5
  2900. keywords = [
  2901. "hvs.",
  2902. "s.",
  2903. ]
  2904. [[rules.allowlists]]
  2905. regexes = [
  2906. '''s\.[A-Za-z]{24}''',
  2907. ]
  2908. [[rules]]
  2909. id = "yandex-access-token"
  2910. description = "Found a Yandex Access Token, posing a risk to Yandex service integrations and user data privacy."
  2911. regex = '''(?i)[\w.-]{0,50}?(?:yandex)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(t1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2})(?:[\x60'"\s;]|\\[nr]|$)'''
  2912. keywords = ["yandex"]
  2913. [[rules]]
  2914. id = "yandex-api-key"
  2915. description = "Discovered a Yandex API Key, which could lead to unauthorized access to Yandex services and data manipulation."
  2916. regex = '''(?i)[\w.-]{0,50}?(?:yandex)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(AQVN[A-Za-z0-9_\-]{35,38})(?:[\x60'"\s;]|\\[nr]|$)'''
  2917. keywords = ["yandex"]
  2918. [[rules]]
  2919. id = "yandex-aws-access-token"
  2920. description = "Uncovered a Yandex AWS Access Token, potentially compromising cloud resource access and data security on Yandex Cloud."
  2921. regex = '''(?i)[\w.-]{0,50}?(?:yandex)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}(YC[a-zA-Z0-9_\-]{38})(?:[\x60'"\s;]|\\[nr]|$)'''
  2922. keywords = ["yandex"]
  2923. [[rules]]
  2924. id = "zendesk-secret-key"
  2925. description = "Detected a Zendesk Secret Key, risking unauthorized access to customer support services and sensitive ticketing data."
  2926. regex = '''(?i)[\w.-]{0,50}?(?:zendesk)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
  2927. keywords = ["zendesk"]