gitleaks.toml 92 KB

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