gitleaks.toml 88 KB

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