gitleaks.toml 91 KB

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