gitleaks.toml 90 KB

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