gitleaks.toml 94 KB

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