gitleaks.toml 92 KB

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