gitleaks.toml 90 KB

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