gitleaks.toml 95 KB

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