gitleaks.toml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. title = "gitleaks config"
  2. # Gitleaks rules are defined by regular expressions and entropy ranges.
  3. # Some secrets have unique signatures which make detecting those secrets easy.
  4. # Examples of those secrets would be Gitlab Personal Access Tokens, AWS keys, and Github Access Tokens.
  5. # All these examples have defined prefixes like `glpat`, `AKIA`, `ghp_`, etc.
  6. #
  7. # Other secrets might just be a hash which means we need to write more complex rules to verify
  8. # that what we are matching is a secret.
  9. #
  10. # Here is an example of a semi-generic secret
  11. #
  12. # discord_client_secret = "8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ"
  13. #
  14. # We can write a regular expression to capture the variable name (identifier),
  15. # the assignment symbol (like '=' or ':='), and finally the actual secret.
  16. # The structure of a rule to match this example secret is below:
  17. #
  18. # Beginning string
  19. # quotation
  20. # │ End string quotation
  21. # │ │
  22. # ▼ ▼
  23. # (?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9=_\-]{32})['\"]
  24. #
  25. # ▲ ▲ ▲
  26. # │ │ │
  27. # │ │ │
  28. # identifier assignment symbol
  29. # Secret
  30. #
  31. [[rules]]
  32. id = "gitlab-pat"
  33. description = "GitLab Personal Access Token"
  34. regex = '''glpat-[0-9a-zA-Z\-]{20}'''
  35. [[rules]]
  36. id = "aws-access-token"
  37. description = "AWS"
  38. regex = '''AKIA[0-9A-Z]{16}'''
  39. # Cryptographic keys
  40. [[rules]]
  41. id = "PKCS8-PK"
  42. description = "PKCS8 private key"
  43. regex = '''-----BEGIN PRIVATE KEY-----'''
  44. [[rules]]
  45. id = "RSA-PK"
  46. description = "RSA private key"
  47. regex = '''-----BEGIN RSA PRIVATE KEY-----'''
  48. [[rules]]
  49. id = "OPENSSH-PK"
  50. description = "SSH private key"
  51. regex = '''-----BEGIN OPENSSH PRIVATE KEY-----'''
  52. [[rules]]
  53. id = "PGP-PK"
  54. description = "PGP private key"
  55. regex = '''-----BEGIN PGP PRIVATE KEY BLOCK-----'''
  56. [[rules]]
  57. id = "github-pat"
  58. description = "Github Personal Access Token"
  59. regex = '''ghp_[0-9a-zA-Z]{36}'''
  60. [[rules]]
  61. id = "github-oauth"
  62. description = "Github OAuth Access Token"
  63. regex = '''gho_[0-9a-zA-Z]{36}'''
  64. [[rules]]
  65. id = "SSH-DSA-PK"
  66. description = "SSH (DSA) private key"
  67. regex = '''-----BEGIN DSA PRIVATE KEY-----'''
  68. [[rules]]
  69. id = "SSH-EC-PK"
  70. description = "SSH (EC) private key"
  71. regex = '''-----BEGIN EC PRIVATE KEY-----'''
  72. [[rules]]
  73. id = "github-app-token"
  74. description = "Github App Token"
  75. regex = '''(ghu|ghs)_[0-9a-zA-Z]{36}'''
  76. [[rules]]
  77. id = "github-refresh-token"
  78. description = "Github Refresh Token"
  79. regex = '''ghr_[0-9a-zA-Z]{76}'''
  80. [[rules]]
  81. id = "shopify-shared-secret"
  82. description = "Shopify shared secret"
  83. regex = '''shpss_[a-fA-F0-9]{32}'''
  84. [[rules]]
  85. id = "shopify-access-token"
  86. description = "Shopify access token"
  87. regex = '''shpat_[a-fA-F0-9]{32}'''
  88. [[rules]]
  89. id = "shopify-custom-access-token"
  90. description = "Shopify custom app access token"
  91. regex = '''shpca_[a-fA-F0-9]{32}'''
  92. [[rules]]
  93. id = "shopify-private-app-access-token"
  94. description = "Shopify private app access token"
  95. regex = '''shppa_[a-fA-F0-9]{32}'''
  96. [[rules]]
  97. id = "slack-access-token"
  98. description = "Slack token"
  99. regex = '''xox[baprs]-([0-9a-zA-Z]{10,48})?'''
  100. [[rules]]
  101. id = "stripe-access-token"
  102. description = "Stripe"
  103. regex = '''(?i)(sk|pk)_(test|live)_[0-9a-z]{10,32}'''
  104. [[rules]]
  105. id = "pypi-upload-token"
  106. description = "PyPI upload token"
  107. regex = '''pypi-AgEIcHlwaS5vcmc[A-Za-z0-9-_]{50,1000}'''
  108. [[rules]]
  109. id = "gcp-service-account"
  110. description = "Google (GCP) Service-account"
  111. regex = '''\"type\": \"service_account\"'''
  112. [[rules]]
  113. id = "heroku-api-key"
  114. description = "Heroku API Key"
  115. regex = ''' (?i)(heroku[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})['\"]'''
  116. secretGroup = 3
  117. [[rules]]
  118. id = "slack-web-hook"
  119. description = "Slack Webhook"
  120. regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}'''
  121. [[rules]]
  122. id = "twilio-api-key"
  123. description = "Twilio API Key"
  124. regex = '''SK[0-9a-fA-F]{32}'''
  125. [[rules]]
  126. id = "age-secret-key"
  127. description = "Age secret key"
  128. regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
  129. [[rules]]
  130. id = "facebook-token"
  131. description = "Facebook token"
  132. regex = '''(?i)(facebook[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32})['\"]'''
  133. secretGroup = 3
  134. [[rules]]
  135. id = "twitter-token"
  136. description = "Twitter token"
  137. regex = '''(?i)(twitter[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{35,44})['\"]'''
  138. secretGroup = 3
  139. [[rules]]
  140. id = "adobe-client-id"
  141. description = "Adobe Client ID (Oauth Web)"
  142. regex = '''(?i)(adobe[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32})['\"]'''
  143. secretGroup = 3
  144. [[rules]]
  145. id = "adobe-client-secret"
  146. description = "Adobe Client Secret"
  147. regex = '''(p8e-)(?i)[a-z0-9]{32}'''
  148. [[rules]]
  149. id = "alibaba-access-key-id"
  150. description = "Alibaba AccessKey ID"
  151. regex = '''(LTAI)(?i)[a-z0-9]{20}'''
  152. [[rules]]
  153. id = "alibaba-secret-key"
  154. description = "Alibaba Secret Key"
  155. regex = '''(?i)(alibaba[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{30})['\"]'''
  156. secretGroup = 3
  157. [[rules]]
  158. id = "asana-client-id"
  159. description = "Asana Client ID"
  160. regex = '''(?i)(asana[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9]{16})['\"]'''
  161. secretGroup = 3
  162. [[rules]]
  163. id = "asana-client-secret"
  164. description = "Asana Client Secret"
  165. regex = '''(?i)(asana[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{32})['\"]'''
  166. secretGroup = 3
  167. [[rules]]
  168. id = "atlassian-api-token"
  169. description = "Atlassian API token"
  170. regex = '''(?i)(atlassian[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{24})['\"]'''
  171. secretGroup = 3
  172. [[rules]]
  173. id = "bitbucket-client-id"
  174. description = "Bitbucket client ID"
  175. regex = '''(?i)(bitbucket[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{32})['\"]'''
  176. secretGroup = 3
  177. [[rules]]
  178. id = "bitbucket-client-secret"
  179. description = "Bitbucket client secret"
  180. regex = '''(?i)(bitbucket[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9_\-]{64})['\"]'''
  181. secretGroup = 3
  182. [[rules]]
  183. id = "beamer-api-token"
  184. description = "Beamer API token"
  185. regex = '''(?i)(beamer[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"](b_[a-z0-9=_\-]{44})['\"]'''
  186. secretGroup = 3
  187. [[rules]]
  188. id = "clojars-api-token"
  189. description = "Clojars API token"
  190. regex = '''(CLOJARS_)(?i)[a-z0-9]{60}'''
  191. [[rules]]
  192. id = "contentful-delivery-api-token"
  193. description = "Contentful delivery API token"
  194. regex = '''(?i)(contentful[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9\-=_]{43})['\"]'''
  195. secretGroup = 3
  196. [[rules]]
  197. id = "contentful-preview-api-token"
  198. description = "Contentful preview API token"
  199. regex = '''(?i)(contentful[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9\-=_]{43})['\"]'''
  200. secretGroup = 3
  201. [[rules]]
  202. id = "databricks-api-token"
  203. description = "Databricks API token"
  204. regex = '''dapi[a-h0-9]{32}'''
  205. [[rules]]
  206. id = "discord-api-token"
  207. description = "Discord API key"
  208. regex = '''(?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{64})['\"]'''
  209. secretGroup = 3
  210. [[rules]]
  211. id = "discord-client-id"
  212. description = "Discord client ID"
  213. regex = '''(?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9]{18})['\"]'''
  214. secretGroup = 3
  215. [[rules]]
  216. id = "discord-client-secret"
  217. description = "Discord client secret"
  218. regex = '''(?i)(discord[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9=_\-]{32})['\"]'''
  219. secretGroup = 3
  220. [[rules]]
  221. id = "doppler-api-token"
  222. description = "Doppler API token"
  223. regex = '''['\"](dp\.pt\.)(?i)[a-z0-9]{43}['\"]'''
  224. [[rules]]
  225. id = "dropbox-api-secret"
  226. description = "Dropbox API secret/key"
  227. regex = '''(?i)(dropbox[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{15})['\"]'''
  228. [[rules]]
  229. id = "dropbox-sl-api-token"
  230. description = "Dropbox short lived API token"
  231. regex = '''(?i)(dropbox[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"](sl\.[a-z0-9\-=_]{135})['\"]'''
  232. [[rules]]
  233. id = "dropbox-ll-api-token"
  234. description = "Dropbox long lived API token"
  235. regex = '''(?i)(dropbox)(.{0,20})['\"](?i)[a-z0-9]{11}(AAAAAAAAAA)[a-z0-9-_=]{43}['\"]'''
  236. [[rules]]
  237. id = "duffel-api-token"
  238. description = "Duffel API token"
  239. regex = '''['\"]duffel_(test|live)_(?i)[a-z0-9_-]{43}['\"]'''
  240. [[rules]]
  241. id = "dynatrace-api-token"
  242. description = "Dynatrace API token"
  243. regex = '''['\"]dt0c01\.(?i)[a-z0-9]{24}\.[a-z0-9]{64}['\"]'''
  244. [[rules]]
  245. id = "easypost-api-token"
  246. description = "EasyPost API token"
  247. regex = '''['\"]EZAK(?i)[a-z0-9]{54}['\"]'''
  248. [[rules]]
  249. id = "easypost-test-api-token"
  250. description = "EasyPost test API token"
  251. regex = '''['\"]EZTK(?i)[a-z0-9]{54}['\"]'''
  252. [[rules]]
  253. id = "fastly-api-token"
  254. description = "Fastly API token"
  255. regex = '''(?i)(fastly[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9\-=_]{32})['\"]'''
  256. secretGroup = 3
  257. [[rules]]
  258. id = "finicity-client-secret"
  259. description = "Finicity client secret"
  260. regex = '''(?i)(finicity[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{20})['\"]'''
  261. secretGroup = 3
  262. [[rules]]
  263. id = "finicity-api-token"
  264. description = "Finicity API token"
  265. regex = '''(?i)(finicity[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32})['\"]'''
  266. secretGroup = 3
  267. [[rules]]
  268. id = "flutterweave-public-key"
  269. description = "Flutterweave public key"
  270. regex = '''FLWPUBK_TEST-(?i)[a-h0-9]{32}-X'''
  271. [[rules]]
  272. id = "flutterweave-secret-key"
  273. description = "Flutterweave secret key"
  274. regex = '''FLWSECK_TEST-(?i)[a-h0-9]{32}-X'''
  275. [[rules]]
  276. id = "flutterweave-enc-key"
  277. description = "Flutterweave encrypted key"
  278. regex = '''FLWSECK_TEST[a-h0-9]{12}'''
  279. [[rules]]
  280. id = "frameio-api-token"
  281. description = "Frame.io API token"
  282. regex = '''fio-u-(?i)[a-z0-9-_=]{64}'''
  283. [[rules]]
  284. id = "gocardless-api-token"
  285. description = "GoCardless API token"
  286. regex = '''['\"]live_(?i)[a-z0-9-_=]{40}['\"]'''
  287. [[rules]]
  288. id = "grafana-api-token"
  289. description = "Grafana API token"
  290. regex = '''['\"]eyJrIjoi(?i)[a-z0-9-_=]{72,92}['\"]'''
  291. [[rules]]
  292. id = "hashicorp-tf-api-token"
  293. description = "Hashicorp Terraform user/org API token"
  294. regex = '''['\"](?i)[a-z0-9]{14}\.atlasv1\.[a-z0-9-_=]{60,70}['\"]'''
  295. [[rules]]
  296. id = "hubspot-api-token"
  297. description = "Hubspot API token"
  298. regex = '''(?i)(hubspot[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{8}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{12})['\"]'''
  299. secretGroup = 3
  300. [[rules]]
  301. id = "intercom-api-token"
  302. description = "Intercom API token"
  303. regex = '''(?i)(intercom[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9=_]{60})['\"]'''
  304. secretGroup = 3
  305. [[rules]]
  306. id = "intercom-client-secret"
  307. description = "Intercom client secret/ID"
  308. regex = '''(?i)(intercom[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{8}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{12})['\"]'''
  309. secretGroup = 3
  310. [[rules]]
  311. id = "ionic-api-token"
  312. description = "Ionic API token"
  313. regex = '''ion_(?i)[a-z0-9]{42}'''
  314. [[rules]]
  315. id = "linear-api-token"
  316. description = "Linear API token"
  317. regex = '''lin_api_(?i)[a-z0-9]{40}'''
  318. [[rules]]
  319. id = "linear-client-secret"
  320. description = "Linear client secret/ID"
  321. regex = '''(?i)(linear[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32})['\"]'''
  322. secretGroup = 3
  323. [[rules]]
  324. id = "lob-api-key"
  325. description = "Lob API Key"
  326. regex = '''(?i)(lob[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]((live|test)_[a-f0-9]{35})['\"]'''
  327. secretGroup = 3
  328. [[rules]]
  329. id = "lob-pub-api-key"
  330. description = "Lob Publishable API Key"
  331. regex = '''(?i)(lob[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]((test|live)_pub_[a-f0-9]{31})['\"]'''
  332. secretGroup = 3
  333. [[rules]]
  334. id = "mailchimp-api-key"
  335. description = "Mailchimp API key"
  336. regex = '''(?i)(mailchimp[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-f0-9]{32}-us20)['\"]'''
  337. secretGroup = 3
  338. [[rules]]
  339. id = "mailgun-private-api-token"
  340. description = "Mailgun private API token"
  341. regex = '''(?i)(mailgun[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"](key-[a-f0-9]{32})['\"]'''
  342. secretGroup = 3
  343. [[rules]]
  344. id = "mailgun-pub-key"
  345. description = "Mailgun public validation key"
  346. regex = '''(?i)(mailgun[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"](pubkey-[a-f0-9]{32})['\"]'''
  347. secretGroup = 3
  348. [[rules]]
  349. id = "mailgun-signing-key"
  350. description = "Mailgun webhook signing key"
  351. regex = '''(?i)(mailgun[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{32}-[a-h0-9]{8}-[a-h0-9]{8})['\"]'''
  352. secretGroup = 3
  353. [[rules]]
  354. id = "mapbox-api-token"
  355. description = "Mapbox API token"
  356. regex = '''(?i)(pk\.[a-z0-9]{60}\.[a-z0-9]{22})'''
  357. [[rules]]
  358. id = "messagebird-api-token"
  359. description = "MessageBird API token"
  360. regex = '''(?i)(messagebird[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{25})['\"]'''
  361. secretGroup = 3
  362. [[rules]]
  363. id = "messagebird-client-id"
  364. description = "MessageBird API client ID"
  365. regex = '''(?i)(messagebird[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-h0-9]{8}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{4}-[a-h0-9]{12})['\"]'''
  366. secretGroup = 3
  367. [[rules]]
  368. id = "new-relic-user-api-key"
  369. description = "New Relic user API Key"
  370. regex = '''['\"](NRAK-[A-Z0-9]{27})['\"]'''
  371. [[rules]]
  372. id = "new-relic-user-api-id"
  373. description = "New Relic user API ID"
  374. regex = '''(?i)(newrelic[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([A-Z0-9]{64})['\"]'''
  375. secretGroup = 3
  376. [[rules]]
  377. id = "new-relic-browser-api-token"
  378. description = "New Relic ingest browser API token"
  379. regex = '''['\"](NRJS-[a-f0-9]{19})['\"]'''
  380. [[rules]]
  381. id = "npm-access-token"
  382. description = "npm access token"
  383. regex = '''['\"](npm_(?i)[a-z0-9]{36})['\"]'''
  384. [[rules]]
  385. id = "planetscale-password"
  386. description = "Planetscale password"
  387. regex = '''pscale_pw_(?i)[a-z0-9\-_\.]{43}'''
  388. [[rules]]
  389. id = "planetscale-api-token"
  390. description = "Planetscale API token"
  391. regex = '''pscale_tkn_(?i)[a-z0-9\-_\.]{43}'''
  392. [[rules]]
  393. id = "postman-api-token"
  394. description = "Postman API token"
  395. regex = '''PMAK-(?i)[a-f0-9]{24}\-[a-f0-9]{34}'''
  396. [[rules]]
  397. id = "pulumi-api-token"
  398. description = "Pulumi API token"
  399. regex = '''pul-[a-f0-9]{40}'''
  400. [[rules]]
  401. id = "rubygems-api-token"
  402. description = "Rubygem API token"
  403. regex = '''rubygems_[a-f0-9]{48}'''
  404. [[rules]]
  405. id = "sendgrid-api-token"
  406. description = "Sendgrid API token"
  407. regex = '''SG\.(?i)[a-z0-9_\-\.]{66}'''
  408. [[rules]]
  409. id = "sendinblue-api-token"
  410. description = "Sendinblue API token"
  411. regex = '''xkeysib-[a-f0-9]{64}\-(?i)[a-z0-9]{16}'''
  412. [[rules]]
  413. id = "shippo-api-token"
  414. description = "Shippo API token"
  415. regex = '''shippo_(live|test)_[a-f0-9]{40}'''
  416. [[rules]]
  417. id = "linedin-client-secret"
  418. description = "Linkedin Client secret"
  419. regex = '''(?i)(linkedin[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z]{16})['\"]'''
  420. secretGroup = 3
  421. [[rules]]
  422. id = "linedin-client-id"
  423. description = "Linkedin Client ID"
  424. regex = '''(?i)(linkedin[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{14})['\"]'''
  425. secretGroup = 3
  426. [[rules]]
  427. id = "twitch-api-token"
  428. description = "Twitch API token"
  429. regex = '''(?i)(twitch[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([a-z0-9]{30})['\"]'''
  430. secretGroup = 3
  431. [[rules]]
  432. id = "typeform-api-token"
  433. description = "Typeform API token"
  434. regex = '''(?i)(typeform[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}(tfp_[a-z0-9\-_\.=]{59})'''
  435. secretGroup = 3
  436. [[rules]]
  437. id = "generic-api-key"
  438. description = "Generic API Key"
  439. regex = '''(?i)((key|api|token|secret|password)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z\-_=]{8,64})['\"]'''
  440. entropy = 3.7
  441. secretGroup = 4
  442. [allowlist]
  443. description = "global allow lists"
  444. regexes = ['''219-09-9999''', '''078-05-1120''', '''(9[0-9]{2}|666)-\d{2}-\d{4}''']
  445. paths = [
  446. '''gitleaks.toml''',
  447. '''(.*?)(jpg|gif|doc|pdf|bin|svg|socket)$'''
  448. ]