gitleaks.toml 89 KB

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