gitleaks.toml 91 KB

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