gitleaks.toml 92 KB

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