gitleaks.toml 91 KB

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