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