gitleaks.toml 94 KB

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