-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetectors.toml
More file actions
902 lines (782 loc) · 26.9 KB
/
Copy pathdetectors.toml
File metadata and controls
902 lines (782 loc) · 26.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
[[detectors]]
name = "AWSKeyDetector"
pattern = "\\bAKIA[0-9A-Z]{16}\\b"
finding_type = "AWS Access Key"
severity = "HIGH"
keywords = ["AKIA"]
# AWS's own documentation example key appears in READMEs everywhere and is
# never a real credential; exact-match allowlist so nothing else is lost.
allowlist = ["^AKIAIOSFODNN7EXAMPLE$"]
[[detectors]]
name = "GoogleAPIKeyDetector"
pattern = "\\bAIza[0-9A-Za-z\\-_]{35}\\b"
finding_type = "Google API Key"
severity = "HIGH"
description = "Covers Google, Firebase, and YouTube API keys (same pattern)"
keywords = ["AIza"]
[[detectors]]
name = "SlackTokenDetector"
pattern = "\\bxox[pboa]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32}\\b"
finding_type = "Slack Token"
severity = "HIGH"
keywords = ["xoxb-", "xoxp-", "xoxo-", "xoxr-"]
[[detectors]]
name = "GitHubTokenDetector"
pattern = "\\b(?i)(github|ghp|gho|ghu|ghs)_[0-9a-zA-Z]{36,255}\\b"
finding_type = "GitHub Token"
severity = "HIGH"
keywords = ["ghp_", "gho_", "ghu_", "ghs_"]
[[detectors]]
name = "JWTokenDetector"
pattern = "\\beyJ[A-Za-z0-9-_=]+\\.eyJ[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*\\b"
finding_type = "JWT Token"
severity = "MEDIUM"
keywords = ["eyJ"]
[[detectors]]
name = "SSHPrivateKeyDetector"
pattern = "-----BEGIN (?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED) )?PRIVATE KEY-----"
finding_type = "SSH Private Key"
severity = "HIGH"
keywords = ["PRIVATE KEY"]
[[detectors]]
name = "PrivateKeyDetector"
pattern = "(?s)-----BEGIN (?:(?:RSA|DSA|EC|PGP|OPENSSH|ENCRYPTED) )?PRIVATE KEY-----[\\s\\S]*?-----END (?:(?:RSA|DSA|EC|PGP|OPENSSH|ENCRYPTED) )?PRIVATE KEY-----"
finding_type = "Private Key Content"
severity = "HIGH"
[[detectors]]
name = "PasswordDetector"
pattern = "(?i)(password|passwd|pwd)\\s*[:=]\\s*(?-i)[\"']?([^\"'\\n]+)[\"']?"
finding_type = "Password"
severity = "HIGH"
keywords = ["password", "passwd", "pwd"]
# $PWD is the shell working-directory variable (docker --volume "$PWD:...",
# Makefiles), never a password literal.
allowlist = [
"^\\$?PWD:",
# Placeholder values in templates and .env.example files. Case-sensitive
# (placeholders are lowercase by convention) and shape-checked: a mixed
# value like "ReplaceThisRealSecret123" does not match and stays reported.
"[=:\"]?\\s*(changeme|changeit|your(-[a-z0-9]+)+|replace(-[a-z0-9]+)+|placeholder|dummy|xxxxx+)",
]
[[detectors]]
name = "EmailDetector"
pattern = "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b"
finding_type = "Email Address"
severity = "LOW"
# Emails are rarely secrets; the noisiest matches are documentation
# addresses on the RFC 2606 reserved domains and noreply conventions.
allowlist = [
"@example\\.(com|org|net)",
"^noreply@",
"^no-reply@",
"@users\\.noreply\\.github\\.com$",
]
[[detectors]]
name = "IPAddressDetector"
pattern = "\\b(?:[1-9]\\d?|1\\d{2}|2[0-4]\\d|25[0-5])\\.(?:\\d{1,3}\\.){2}\\d{1,3}\\b"
finding_type = "IP Address"
severity = "LOW"
[[detectors]]
name = "PhoneNumberDetector"
# Requires punctuation or a country code: an unseparated 10-digit run is a
# unix timestamp or numeric id far more often than a phone number.
pattern = "(?:\\+1[-.\\s]?)?(?:\\(\\d{3}\\)[-.\\s]*|\\b\\d{3}[-.\\s])\\d{3}[-.\\s]?\\d{4}\\b"
finding_type = "Phone Number"
severity = "LOW"
# The 555 exchange is reserved for fictional use; documentation phone
# numbers are the detector's dominant match.
allowlist = ["555"]
[[detectors]]
name = "CreditCardDetector"
# Issuer prefixes (Visa/Mastercard/Amex/Discover/UnionPay) in 4-digit groups,
# including Discover's 644-649 and 65 ranges. The old "any 13-16 digits with
# arbitrary spaces" shape matched commit hashes, timestamps and ids, and even
# spanned the gap between two unrelated numbers ("index aabbcc0..1111111
# 100644"). Luhn on its own does not fix that: roughly one in ten random
# digit runs satisfies it.
pattern = "\\b(?:4\\d{3}|5[1-5]\\d{2}|2[2-7]\\d{2}|6011|64[4-9]\\d{2}|65\\d{2}|3[47]\\d{2})[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{1,4}\\b"
validate = "luhn"
finding_type = "Credit Card Number"
severity = "HIGH"
[[detectors]]
name = "SSNDetector"
pattern = "\\b\\d{3}-\\d{2}-\\d{4}\\b"
finding_type = "Social Security Number"
severity = "HIGH"
[[detectors]]
name = "GenericKeyValueDetector"
pattern = "(?i)(api_?key|secret|password|token|access_?key|security_?key|_key|credential|auth)\\s*[:=]\\s*(?-i)[\"']?([a-zA-Z0-9\\-_=]{10,})[\"']?"
finding_type = "Generic Key/Secret"
severity = "HIGH"
keywords = ["api_key", "secret", "password", "token", "access_key", "credential"]
entropy = 2.5
# An unquoted, all-lowercase snake_case value is a variable reference, not a
# credential: `let payment_method_token = card_token;` reads identically to
# `token = <10 random chars>` to the pattern above. Requiring no quotes, no
# digits and no capitals keeps real values flagged — quoted literals end in a
# quote, and generated secrets carry digits or mixed case.
# A bare CamelCase value (no digits, no symbols) is a Rust type path in a
# field declaration (`token: PaymentTokenData,`), not a credential either.
allowlist = [
"[:=]\\s*[a-z]+(?:_[a-z]+)+$",
"[:=]\\s*[A-Z][a-z]+(?:[A-Z][a-z]*)*$",
# Placeholder values in templates and .env.example files (case-sensitive:
# mixed-case shapes are plausibly real weak credentials).
"[=:]\\s*[\"']?(changeme|changeit|your(-[a-z0-9]+)+|replace(-[a-z0-9]+)+|placeholder|dummy|xxxxx+)",
]
[[detectors]]
name = "CertificateDetector"
pattern = "-----BEGIN CERTIFICATE-----"
finding_type = "Certificate"
severity = "MEDIUM"
keywords = ["BEGIN CERTIFICATE"]
[[detectors]]
name = "DatabaseURLDetector"
pattern = "(?i)(mysql|postgres|mongodb|redis)://[^'\"\\s]+@[^'\"\\s]+"
finding_type = "Database URL"
severity = "MEDIUM"
keywords = ["mysql://", "postgres://", "mongodb://", "redis://"]
[[detectors]]
name = "Base64Detector"
# 28 chars, not 20: below that, entropy cannot separate base64 from ordinary
# CamelCase identifiers (a random 20-char base64 string averages 4.04 bits,
# a 20-char identifier 3.68 — the distributions overlap), so a threshold low
# enough to catch short base64 floods reports with identifiers, and one high
# enough to reject identifiers drops 4 out of 5 short base64 strings. At 28+
# the two separate cleanly. Known short credential formats are covered by
# their own detectors, which have no entropy gate.
pattern = "\\b[A-Za-z0-9+/]{28,}[=]{0,2}\\b"
finding_type = "Base64 Encoded String"
severity = "LOW"
entropy = 4.2
# The AWS documentation example secret pairs with the example access key.
allowlist = ["^wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY$"]
[[detectors]]
name = "HighEntropyDetector"
pattern = "\\b[a-f0-9]{48,}\\b|\\b[A-Fa-f0-9]{48,}\\b"
finding_type = "High Entropy String"
severity = "MEDIUM"
# Hex has 16 symbols, so entropy cannot exceed log2(16) = 4.0 and reaches it
# only on a perfectly uniform string: at 4.0 this detector could never fire
# (measured max over 20k random 64-char hex strings: 3.97).
entropy = 3.6
# A bare 64-char hex string is a SHA-256 digest as often as it is a 32-byte
# token, and nothing about the content tells them apart — enabling this
# detector without context produced 758 hits in one hashing-heavy repository.
# The keyword prefilter restricts it to lines that name a credential.
keywords = ["key", "secret", "token", "password", "credential", "auth", "bearer"]
[[detectors]]
name = "StripeAPIKeyDetector"
pattern = "\\b(?:sk|pk)_(?:test|live)_[0-9a-zA-Z]{10,}\\b"
finding_type = "Stripe API Key"
severity = "HIGH"
keywords = ["sk_test_", "sk_live_", "pk_test_", "pk_live_"]
[[detectors]]
name = "AdyenAPIKeyDetector"
pattern = "\\b(?:ws|sk|pk)_[0-9a-zA-Z]{10,}@[a-zA-Z]+\\.[a-zA-Z]+\\b"
finding_type = "Adyen API Key"
severity = "HIGH"
keywords = ["ws_", "sk_", "pk_"]
[[detectors]]
name = "PaymentGatewayKeyDetector"
pattern = "\\b(?:api_?key|secret)_(?:test|live)_[0-9a-zA-Z]{10,}\\b"
finding_type = "Generic Payment Gateway Key"
severity = "HIGH"
keywords = ["api_key_test", "api_key_live", "secret_test", "secret_live"]
[[detectors]]
name = "RandomString"
pattern = "\"[a-zA-Z0-9\\-_=]{35,}\""
finding_type = "Random String"
severity = "LOW"
entropy = 3.5
# Long all-lowercase snake_case string literals are identifiers — serde
# attributes, config keys, enum names — not random values. A generated secret
# of this length carries digits or capitals.
allowlist = [
"^\"[a-z]+(?:_[a-z]+)+\"$",
# npm/shield-style checksum strings carry their algorithm prefix inside
# the quotes, so the prefix is visible in the match.
"^\"sha(256|384|512)-",
]
[[detectors]]
name = "TwilioAPIKeyDetector"
pattern = "SK[0-9a-fA-F]{32}"
finding_type = "Twilio API Key"
severity = "HIGH"
keywords = ["SK"]
[[detectors]]
name = "SendGridAPIKeyDetector"
pattern = "SG\\.[A-Za-z0-9]{22}\\.[A-Za-z0-9]{42,43}"
finding_type = "SendGrid API Key"
severity = "HIGH"
keywords = ["SG."]
[[detectors]]
name = "MailgunAPIKeyDetector"
pattern = "key-[0-9a-zA-Z]{32}"
finding_type = "Mailgun API Key"
severity = "HIGH"
keywords = ["key-"]
[[detectors]]
name = "DigitalOceanTokenDetector"
pattern = "dop_v1_[a-f0-9]{64}"
finding_type = "DigitalOcean API Token"
severity = "HIGH"
keywords = ["dop_v1_"]
[[detectors]]
name = "HerokuAPIKeyDetector"
pattern = "\\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\b"
finding_type = "Heroku API Key"
severity = "HIGH"
keywords = ["heroku"]
[[detectors]]
name = "NPMTokenDetector"
pattern = "npm_[0-9a-zA-Z]{36}"
finding_type = "NPM Token"
severity = "HIGH"
keywords = ["npm_"]
[[detectors]]
name = "DiscordTokenDetector"
pattern = "(mfa\\.[0-9a-zA-Z_-]{84}|[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27})"
finding_type = "Discord Token"
severity = "HIGH"
keywords = ["mfa."]
[[detectors]]
name = "OpenAIAPIKeyDetector"
pattern = "\\bsk-[a-zA-Z0-9]{48,}\\b"
finding_type = "OpenAI API Key"
severity = "HIGH"
description = "OpenAI API keys (sk- prefix + 48+ alphanumeric chars). Covers both standard and project-scoped keys."
keywords = ["sk-"]
[[detectors]]
name = "OpenCodeAPIKeyDetector"
pattern = "(?i)(?:opencode|OPENCODE_API_KEY)[\\s'\":=]+[\"']?(sk-[a-zA-Z0-9]{20,})[\"']?"
finding_type = "OpenCode API Key"
severity = "HIGH"
description = "OpenCode AI API keys (sk- prefix). Detected via context (opencode/OPENCODE_API_KEY). Shares sk- prefix with OpenAI and Kimi."
[[detectors]]
name = "AzureStorageAccountKeyDetector"
pattern = "DefaultEndpointsProtocol=https;AccountName=[^;]+;AccountKey=[^;]+"
finding_type = "Azure Storage Account Key"
severity = "HIGH"
keywords = ["AccountKey", "DefaultEndpointsProtocol"]
[[detectors]]
name = "MongoDBConnectionStringDetector"
pattern = "mongodb(?:\\+srv)?://[^:]+:[^@]+@[^/]+"
finding_type = "MongoDB Connection String"
severity = "HIGH"
keywords = ["mongodb://", "mongodb+srv://"]
[[detectors]]
name = "CloudinaryURLDetector"
pattern = "cloudinary://[0-9]+:[0-9A-Za-z\\-_]+@[0-9A-Za-z\\-_]+"
finding_type = "Cloudinary URL"
severity = "HIGH"
keywords = ["cloudinary://"]
[[detectors]]
name = "PrivateKeyContentDetector"
pattern = "(?s)-----BEGIN RSA PRIVATE KEY-----.*?-----END RSA PRIVATE KEY-----"
finding_type = "Private Key Content"
severity = "HIGH"
keywords = ["BEGIN RSA PRIVATE KEY"]
[[detectors]]
name = "DockerHubTokenDetector"
pattern = "dckr_pat_[0-9a-zA-Z_-]{52,56}"
finding_type = "DockerHub Token"
severity = "HIGH"
keywords = ["dckr_pat_"]
[[detectors]]
name = "CircleCITokenDetector"
pattern = "CIRCLE_[0-9a-zA-Z_-]{40}"
finding_type = "CircleCI Token"
severity = "HIGH"
keywords = ["CIRCLE_"]
[[detectors]]
name = "SquareAccessTokenDetector"
pattern = "sq0atp-[0-9A-Za-z\\-_]{22}"
finding_type = "Square Access Token"
severity = "HIGH"
keywords = ["sq0atp-"]
[[detectors]]
name = "SquareOAuthSecretDetector"
pattern = "sq0csp-[0-9A-Za-z\\-_]{43}"
finding_type = "Square OAuth Secret"
severity = "HIGH"
keywords = ["sq0csp-"]
[[detectors]]
name = "GoogleOAuthTokenDetector"
pattern = "ya29\\.[0-9A-Za-z\\-_]+"
finding_type = "Google OAuth Token"
severity = "HIGH"
keywords = ["ya29."]
[[detectors]]
name = "AadhaarCardDetector"
pattern = "\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}\\b"
finding_type = "Aadhaar Card Number"
severity = "HIGH"
# Real Aadhaar numbers satisfy the Verhoeff checksum; without it, any
# 12-digit run (UUID tails, numeric ids) reports HIGH.
validate = "verhoeff"
[[detectors]]
name = "VoterIDDetector"
pattern = "\\b[A-Z]{3}\\d{7}\\b"
finding_type = "Voter ID (EPIC)"
severity = "HIGH"
[[detectors]]
name = "PANCardDetector"
pattern = "\\b[A-Z]{5}\\d{4}[A-Z]\\b"
finding_type = "PAN Card Number"
severity = "HIGH"
[[detectors]]
name = "ABHADetector"
pattern = "\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{2}\\b"
finding_type = "ABHA Health ID"
severity = "HIGH"
[[detectors]]
name = "AnthropicAPIKeyDetector"
pattern = "\\bsk-ant-(?:admin01|api03)-[a-zA-Z0-9_\\-]{93}AA\\b"
finding_type = "Anthropic API Key"
severity = "HIGH"
keywords = ["sk-ant-"]
[[detectors]]
name = "HuggingFaceTokenDetector"
pattern = "\\b(?:hf_|api_org_)[a-zA-Z0-9]{34}\\b"
finding_type = "Hugging Face Token"
severity = "HIGH"
keywords = ["hf_", "api_org_"]
[[detectors]]
name = "GroqAPIKeyDetector"
pattern = "\\bgsk_[a-zA-Z0-9]{52}\\b"
finding_type = "Groq API Key"
severity = "HIGH"
keywords = ["gsk_"]
[[detectors]]
name = "ReplicateAPITokenDetector"
pattern = "\\br8_[0-9A-Za-z\\-_]{37}\\b"
finding_type = "Replicate API Token"
severity = "HIGH"
keywords = ["r8_"]
[[detectors]]
name = "LangSmithAPIKeyDetector"
pattern = "\\blsv2_(?:pt|sk)_[a-f0-9]{32}_[a-f0-9]{10}\\b"
finding_type = "LangSmith API Key"
severity = "HIGH"
keywords = ["lsv2_pt_", "lsv2_sk_"]
[[detectors]]
name = "KimiMoonshotAPIKeyDetector"
pattern = "\\bsk-[a-zA-Z0-9]{30,}\\b"
finding_type = "Kimi/Moonshot API Key"
severity = "MEDIUM"
keywords = ["sk-"]
[[detectors]]
name = "VercelTokenDetector"
pattern = "\\b(?:vcp|vci|vca|vcr|vck)_[a-zA-Z0-9]{24}\\b"
finding_type = "Vercel Token"
severity = "HIGH"
keywords = ["vcp_", "vci_", "vca_", "vcr_", "vck_"]
[[detectors]]
name = "NetlifyTokenDetector"
pattern = "\\bnf[a-z]_[a-zA-Z0-9_]{36}\\b"
finding_type = "Netlify Token"
severity = "HIGH"
keywords = ["nf_"]
[[detectors]]
name = "SupabaseTokenDetector"
pattern = "\\bsbp_[a-z0-9]{40}\\b"
finding_type = "Supabase API Token"
severity = "HIGH"
keywords = ["sbp_"]
[[detectors]]
name = "ConvexDeployKeyDetector"
pattern = "(?:prod|dev|preview):[a-z0-9-]+\\|[a-zA-Z0-9_-]+\\.eyJ[a-zA-Z0-9_-]*\\.[a-zA-Z0-9_-]+"
finding_type = "Convex Deploy Key"
severity = "HIGH"
keywords = ["convex"]
[[detectors]]
name = "DatadogAppKeyDetector"
pattern = "\\bddapp_[a-zA-Z0-9]{34}\\b"
finding_type = "Datadog Application Key"
severity = "HIGH"
keywords = ["ddapp_"]
[[detectors]]
name = "NewRelicAPIKeyDetector"
pattern = "\\bNRAK-[a-z0-9]{27}\\b"
finding_type = "New Relic API Key"
severity = "HIGH"
keywords = ["NRAK-"]
[[detectors]]
name = "NewRelicBrowserKeyDetector"
pattern = "\\bNRJS-[a-f0-9]{19}\\b"
finding_type = "New Relic Browser Key"
severity = "HIGH"
keywords = ["NRJS-"]
[[detectors]]
name = "NewRelicInsertKeyDetector"
pattern = "\\bNRII-[a-z0-9\\-]{32}\\b"
finding_type = "New Relic Insert Key"
severity = "HIGH"
keywords = ["NRII-"]
[[detectors]]
name = "PagerDutyTokenDetector"
pattern = "\\bu\\+[a-zA-Z0-9_+\\-]{18}\\b"
finding_type = "PagerDuty Token"
severity = "HIGH"
keywords = ["u+"]
[[detectors]]
name = "SentryAuthTokenDetector"
pattern = "\\bsntryu_[a-f0-9]{64}\\b"
finding_type = "Sentry Auth Token"
severity = "HIGH"
keywords = ["sntryu_"]
[[detectors]]
name = "SentryOrgTokenDetector"
pattern = "\\bsntrys_eyJ[a-zA-Z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[a-zA-Z0-9+/]{10,200}={0,2}_[a-zA-Z0-9+/]{43}\\b"
finding_type = "Sentry Org Token"
severity = "HIGH"
keywords = ["sntrys_"]
[[detectors]]
name = "ElasticCloudAPIKeyDetector"
pattern = "\\bessu_[A-Za-z0-9+/]{4,}\\b"
finding_type = "Elastic Cloud API Key"
severity = "HIGH"
keywords = ["essu_"]
[[detectors]]
name = "ConfluentAPIKeyDetector"
pattern = "\\bcflt[A-Za-z0-9+/]{60}\\b"
finding_type = "Confluent/Kafka API Key"
severity = "HIGH"
keywords = ["cflt"]
[[detectors]]
name = "AirtablePATDetector"
pattern = "\\bpat[a-zA-Z0-9]{14}\\.[a-f0-9]{64}\\b"
finding_type = "Airtable Personal Access Token"
severity = "HIGH"
keywords = ["pat"]
[[detectors]]
name = "HashicorpVaultTokenDetector"
pattern = "\\bhvs\\.[a-zA-Z0-9]{24,}\\b"
finding_type = "HashiCorp Vault Token"
severity = "HIGH"
keywords = ["hvs."]
[[detectors]]
name = "TerraformCloudTokenDetector"
pattern = "\\b[a-zA-Z0-9]{14}\\.[a-zA-Z0-9]{6}\\.([a-zA-Z0-9]{38}|[a-zA-Z0-9]{46})\\b"
finding_type = "Terraform Cloud Token"
severity = "HIGH"
keywords = ["terraform"]
[[detectors]]
name = "AtlassianTokenDetector"
pattern = "\\bATATT[a-zA-Z0-9]{50,}\\b"
finding_type = "Atlassian API Token"
severity = "HIGH"
keywords = ["ATATT"]
[[detectors]]
name = "AsanaPATDetector"
pattern = "\\b1/[0-9]+:[a-f0-9]{32}\\b"
finding_type = "Asana Personal Access Token"
severity = "HIGH"
keywords = ["1/"]
[[detectors]]
name = "LobAPIKeyDetector"
pattern = "(?i)lob[_\\-]?api[_\\-]?key[\\s'\":=]+[\"']?(test_[a-f0-9]{35}|live_[a-f0-9]{35})[\"']?"
finding_type = "Lob API Key"
severity = "HIGH"
keywords = ["lob_api_key", "test_", "live_"]
[[detectors]]
name = "PlaidSecretKeyDetector"
pattern = "(?i)plaid[_\\-]?(?:secret|key)[\\s'\":=]+[\"']?(?:sk_live|sk_test|secret)_[a-f0-9]{30,40}[\"']?"
finding_type = "Plaid Secret Key"
severity = "HIGH"
keywords = ["plaid", "sk_live", "sk_test"]
[[detectors]]
name = "OktaAPITokenDetector"
pattern = "\\b00[a-zA-Z0-9_-]{40}\\b"
finding_type = "Okta API Token"
severity = "MEDIUM"
keywords = ["00"]
[[detectors]]
name = "TwilioAccountSIDDetector"
pattern = "\\bAC[a-f0-9]{32}\\b"
finding_type = "Twilio Account SID"
severity = "MEDIUM"
keywords = ["AC"]
[[detectors]]
name = "StripeWebhookSecretDetector"
pattern = "\\bwhsec_[a-zA-Z0-9]{32,}\\b"
finding_type = "Stripe Webhook Secret"
severity = "HIGH"
keywords = ["whsec_"]
[[detectors]]
name = "RazorpayKeyDetector"
pattern = "\\brzp_[a-zA-Z0-9]{14,}\\b"
finding_type = "Razorpay Key"
severity = "HIGH"
keywords = ["rzp_"]
[[detectors]]
name = "PaystackKeyDetector"
pattern = "\\bsk_live_[a-f0-9]{40}\\b|\\bsk_test_[a-f0-9]{40}\\b"
finding_type = "Paystack Key"
severity = "HIGH"
keywords = ["sk_live_", "sk_test_"]
[[detectors]]
name = "ShopifyAccessTokenDetector"
pattern = "\\bshpat_[a-fA-F0-9]{32}\\b"
finding_type = "Shopify Access Token"
severity = "HIGH"
keywords = ["shpat_"]
[[detectors]]
name = "ShopifyAPIKeyDetector"
pattern = "\\b[0-9a-f]{32}\\b"
finding_type = "Shopify API Key"
severity = "LOW"
keywords = ["shopify"]
[[detectors]]
name = "WooCommerceAPIKeyDetector"
pattern = "(?i)woocommerce[_\\-]?(?:api[_\\-]?key|consumer[_\\-]?key)[\\s'\":=]+[\"']?(ck_[a-f0-9]{40})[\"']?"
finding_type = "WooCommerce API Key"
severity = "HIGH"
keywords = ["woocommerce", "ck_"]
[[detectors]]
name = "HubSpotAPIKeyDetector"
pattern = "\\bpat-na1-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\\b"
finding_type = "HubSpot API Key"
severity = "HIGH"
keywords = ["pat-na1-"]
[[detectors]]
name = "IntercomAccessTokenDetector"
pattern = "(?i)intercom[_\\-]?access[_\\-]?token[\\s'\":=]+[\"']?(d\\d{8}-[a-f0-9]{24})[\"']?"
finding_type = "Intercom Access Token"
severity = "HIGH"
keywords = ["intercom"]
[[detectors]]
name = "GitLabPersonalAccessTokenDetector"
pattern = "\\bglpat-[a-zA-Z0-9\\-_]{20,}\\b"
finding_type = "GitLab Personal Access Token"
severity = "HIGH"
keywords = ["glpat-"]
[[detectors]]
name = "GitLabPipelineTokenDetector"
pattern = "\\bglptt-[a-zA-Z0-9\\-_]{20,}\\b"
finding_type = "GitLab Pipeline Token"
severity = "HIGH"
keywords = ["glptt-"]
[[detectors]]
name = "GitLabRunnerTokenDetector"
pattern = "\\bglrt-[a-zA-Z0-9\\-_]{20,}\\b"
finding_type = "GitLab Runner Token"
severity = "HIGH"
keywords = ["glrt-"]
[[detectors]]
name = "AzureDevOpsPATDetector"
pattern = "\\b[a-z2-7]{52}\\b"
finding_type = "Azure DevOps PAT"
severity = "LOW"
keywords = ["azure"]
[[detectors]]
name = "BuildkiteAPITokenDetector"
pattern = "\\bbkua_[a-f0-9]{40}\\b"
finding_type = "Buildkite API Token"
severity = "HIGH"
keywords = ["bkua_"]
[[detectors]]
name = "CodecovTokenDetector"
pattern = "\\b[0-9a-f]{32}\\b"
finding_type = "Codecov Token"
severity = "LOW"
entropy = 3.0
[[detectors]]
name = "NetlifyBuildHookDetector"
pattern = "\\bhttps://api\\.netlify\\.com/build_hooks/[a-f0-9]{24}\\b"
finding_type = "Netlify Build Hook"
severity = "HIGH"
keywords = ["netlify.com/build_hooks"]
[[detectors]]
name = "CloudflareAPITokenDetector"
pattern = "\\b[a-zA-Z0-9_-]{40}\\b"
finding_type = "Cloudflare API Token"
severity = "LOW"
keywords = ["cloudflare"]
[[detectors]]
name = "NgrokAPITokenDetector"
pattern = "\\bngrok_[a-zA-Z0-9]{20,}\\b"
finding_type = "Ngrok API Token"
severity = "HIGH"
keywords = ["ngrok_"]
[[detectors]]
name = "TailscaleAPIKeyDetector"
pattern = "\\btskey-api-[a-zA-Z0-9]{20,}\\b"
finding_type = "Tailscale API Key"
severity = "HIGH"
keywords = ["tskey-api-"]
[[detectors]]
name = "FlyIOTokenDetector"
pattern = "\\bfo1_[a-zA-Z0-9]{30,}\\b"
finding_type = "Fly.io Token"
severity = "HIGH"
keywords = ["fo1_"]
[[detectors]]
name = "RailwayTokenDetector"
pattern = "\\brailway_[a-f0-9]{24,}\\b"
finding_type = "Railway Token"
severity = "HIGH"
keywords = ["railway_"]
[[detectors]]
name = "RenderAPIKeyDetector"
pattern = "\\brnd_[a-zA-Z0-9]{32,}\\b"
finding_type = "Render API Key"
severity = "HIGH"
keywords = ["rnd_"]
[[detectors]]
name = "PlanetScaleTokenDetector"
pattern = "(?i)planetscale[_\\-]?token[\\s'\":=]+[\"']?(pscale_tkn_[a-zA-Z0-9]{32,})[\"']?"
finding_type = "PlanetScale Token"
severity = "HIGH"
keywords = ["planetscale", "pscale_tkn_"]
[[detectors]]
name = "SupabaseServiceRoleKeyDetector"
pattern = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\\.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IiIsInJvbGUiOiJzZXJ2aWNlX3JvbGUiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MjAxNTU3NTk5OX0\\.[a-zA-Z0-9_-]+"
finding_type = "Supabase Service Role Key"
severity = "HIGH"
keywords = ["supabase", "service_role"]
[[detectors]]
name = "MailchimpAPIKeyDetector"
pattern = "(?i)mailchimp[_\\-]?api[_\\-]?key[\\s'\":=]+[\"']?([a-f0-9]{32}-us[0-9]{1,2})[\"']?"
finding_type = "Mailchimp API Key"
severity = "HIGH"
keywords = ["mailchimp"]
[[detectors]]
name = "MandrillAPIKeyDetector"
pattern = "(?i)mandrill[_\\-]?api[_\\-]?key[\\s'\":=]+[\"']?([a-zA-Z0-9]{22}-us[0-9]{1,2})[\"']?"
finding_type = "Mandrill API Key"
severity = "HIGH"
keywords = ["mandrill"]
[[detectors]]
name = "SegmentAPIKeyDetector"
pattern = "(?i)segment[_\\-]?api[_\\-]?key[\\s'\":=]+[\"']?(?:wk_[a-f0-9]{32,}|[a-f0-9]{32,})[\"']?"
finding_type = "Segment API Key"
severity = "HIGH"
keywords = ["segment"]
[[detectors]]
name = "FacebookAppSecretDetector"
pattern = "(?i)facebook[_\\-]?app[_\\-]?secret[\\s'\":=]+[\"']?([a-f0-9]{32})[\"']?"
finding_type = "Facebook App Secret"
severity = "HIGH"
keywords = ["facebook"]
[[detectors]]
name = "GoogleClientSecretDetector"
pattern = "(?i)google[_\\-]?client[_\\-]?secret[\\s'\":=]+[\"']?(GOCSPX-[a-zA-Z0-9_-]{28})[\"']?"
finding_type = "Google Client Secret"
severity = "HIGH"
keywords = ["GOCSPX-"]
[[detectors]]
name = "GCPServiceAccountKeyDetector"
pattern = "\"type\"\\s*:\\s*\"service_account\""
finding_type = "GCP Service Account Key"
severity = "HIGH"
keywords = ["service_account"]
[[detectors]]
name = "AzureStorageKeyDetector"
pattern = "AccountKey=[A-Za-z0-9+/]{88}=="
finding_type = "Azure Storage Key"
severity = "HIGH"
keywords = ["AccountKey"]
[[detectors]]
name = "WebhookSecretDetector"
pattern = "(?i)whsec_[a-zA-Z0-9]{32,}"
finding_type = "Webhook Signing Secret"
severity = "HIGH"
keywords = ["whsec_"]
[[detectors]]
name = "InternalAuthTokenDetector"
pattern = "(?i)(?:internal|private)[_-]?(?:auth|api)[_-]?token[\\s'\":=]+[\"']?([a-zA-Z0-9\\-_]{20,})[\"']?"
finding_type = "Internal Auth Token"
severity = "HIGH"
keywords = ["internal", "private"]
[[detectors]]
name = "ServiceAccountKeyDetector"
pattern = "(?i)service[_\\-]?account[_\\-]?key[\\s'\":=]+[\"']?([a-zA-Z0-9\\-_]{20,})[\"']?"
finding_type = "Service Account Key"
severity = "HIGH"
keywords = ["service_account"]
[[detectors]]
name = "MasterAPIKeyDetector"
pattern = "(?i)master[_\\-]?api[_\\-]?key[\\s'\":=]+[\"']?([a-zA-Z0-9\\-_]{20,})[\"']?"
finding_type = "Master API Key"
severity = "CRITICAL"
keywords = ["master"]
[[detectors]]
name = "RazorpayAPIKeyDetector"
pattern = "\\b(rzp_(live|test)_[a-zA-Z0-9]{20,})\\b"
finding_type = "Razorpay API Key"
severity = "HIGH"
keywords = ["rzp_live_", "rzp_test_"]
[[detectors]]
name = "PaystackSecretKeyDetector"
pattern = "\\b(sk_(live|test)_[a-zA-Z0-9]{30,})\\b"
finding_type = "Paystack Secret Key"
severity = "HIGH"
keywords = ["sk_live_", "sk_test_"]
[[detectors]]
name = "CREDAPITokenDetector"
pattern = "(?i)cred[_\\-]?api[_\\-]?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{32,})[\"']?"
finding_type = "CRED API Token"
severity = "MEDIUM"
keywords = ["cred_api", "cred-api"]
[[detectors]]
name = "PhonePeAPITokenDetector"
pattern = "(?i)phonepe[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "PhonePe API Token"
severity = "MEDIUM"
keywords = ["phonepe_api", "phonepe-api", "phonepe_key", "phonepe-key"]
[[detectors]]
name = "PaytmAPITokenDetector"
pattern = "(?i)paytm[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "Paytm API Token"
severity = "MEDIUM"
keywords = ["paytm_api", "paytm-api", "paytm_key", "paytm-key"]
[[detectors]]
name = "ZerodhaAPITokenDetector"
pattern = "(?i)zerodha[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{16,})[\"']?"
finding_type = "Zerodha API Token"
severity = "MEDIUM"
keywords = ["zerodha_api", "zerodha-api", "zerodha_key", "zerodha-key"]
[[detectors]]
name = "UpstoxAPITokenDetector"
pattern = "(?i)upstox[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "Upstox API Token"
severity = "MEDIUM"
keywords = ["upstox_api", "upstox-api", "upstox_key", "upstox-key"]
[[detectors]]
name = "GrowwAPITokenDetector"
pattern = "(?i)groww[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "Groww API Token"
severity = "MEDIUM"
keywords = ["groww_api", "groww-api", "groww_key", "groww-key"]
[[detectors]]
name = "AngelBrokingAPITokenDetector"
pattern = "(?i)angel[_\\-]?broking[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "Angel Broking API Token"
severity = "MEDIUM"
keywords = ["angel_broking_api", "angel-broking-api", "angel_broking_key", "angel-broking-key"]
[[detectors]]
name = "ZebPayAPITokenDetector"
pattern = "(?i)zebpay[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "ZebPay API Token"
severity = "MEDIUM"
keywords = ["zebpay_api", "zebpay-api", "zebpay_key", "zebpay-key"]
[[detectors]]
name = "CoinDCXAPITokenDetector"
pattern = "(?i)coindcx[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "CoinDCX API Token"
severity = "MEDIUM"
keywords = ["coindcx_api", "coindcx-api", "coindcx_key", "coindcx-key"]
[[detectors]]
name = "WazirXAPITokenDetector"
pattern = "(?i)wazirx[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "WazirX API Token"
severity = "MEDIUM"
keywords = ["wazirx_api", "wazirx-api", "wazirx_key", "wazirx-key"]
[[detectors]]
name = "UnocoinAPITokenDetector"
pattern = "(?i)unocoin[_\\-]?(api[_\\-]?)?(key|token)[\\s'\":=]+[\"']?([a-zA-Z0-9]{20,})[\"']?"
finding_type = "Unocoin API Token"
severity = "MEDIUM"
keywords = ["unocoin_api", "unocoin-api", "unocoin_key", "unocoin-key"]