gitleaks.toml 93 KB

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