-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathconfig.yaml
More file actions
1846 lines (1735 loc) · 44.2 KB
/
config.yaml
File metadata and controls
1846 lines (1735 loc) · 44.2 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
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
- name: DOC_GET
severity: medium
confidence: moderate
type: pattern
values:
- (?P<variable>(\w*(?i:비밀번호|비번|패스워드|키|암호화?|토큰|(?<!by)pass(?!e[dns]|ing|ion|age)|\bpwd?\b|token(?!ize)|secret|key(?!word|board|pad)|cred)\w*)\s*(설정은|[=:!]{1,3}))?\s*([._0-9A-Za-z\[\]]*get(env)?\s*\(\s*(?(variable)[^,]+|[\"'\\]*(\\*([\"']|&(quot|apos|#3[49]);)){0,4}(\w*(?i:(?<!by)pass(?!e[dns]|ing|ion|age|\s+[a-z]{3,64})|\bpwd?\b|token|secret|key|cred)\w*))(\\*([\"']|&(quot|apos|#3[49]);)){0,4})\s*(,(\s*default\s*=)?|\)\s*or)\s*([brufl@]{1,2}(?=\\*[\"'&]))?(?P<lq>(\\*([\"']|&(quot|apos|#3[49]);)){1,4})(?P<value>(.(?!(?P=lq))){4,8000}.?)
filter_type:
- ValueAllowlistCheck
- ValueBlocklistCheck
- LineGitBinaryCheck
- LineUUEPartCheck
- ValueFilePathCheck
- ValuePatternCheck(5)
min_line_len: 8
required_substrings:
- pass
- pw
- token
- secret
- key
- cred
- 비밀번호
- 비번
- 패스워드
- 암호
- 키
- 토큰
target:
- doc
use_ml: true
- name: DOC_CREDENTIALS
severity: medium
confidence: moderate
type: pattern
values:
- (?P<wrap>[\"'`(])?\s*(?P<variable>(\w*(?i:(?<!by)passw?o?r?d?s?(?!e[dns]|ing|ion|age)|pwd?\b|\bp/w\b|token(?!ize)|secret|key(?!word|board|pad)|credential)\w*|비밀번호|비번|패스워드|키|암호화?|토큰))[\"'`]*(\s+(?i:is|are|was|were)(\s*[:-])?\s+|\s*(?P<separator>설정은|:=|:(?!:)|=(>|>|(\\\\*u00|%)26gt;)|!==|!=|===|==|=~|=|%3[Dd])\s*)(?P<quote>[\"'`]{1,6})?(?P<value>(?(quote)(?(wrap)[^\"'`)]{4,8000}|[^\"'`]{4,8000})|(?(wrap)[^\"'`)]{4,8000}|\S{4,8000})))
filter_type:
- ValueAllowlistCheck
- ValueBlocklistCheck
- LineGitBinaryCheck
- LineUUEPartCheck
- ValueFilePathCheck
- ValuePatternCheck(5)
min_line_len: 8
required_substrings:
- pass
- sword
- pw
- p/w
- paasw
- 비밀번호
- 비번
- 패스워드
- 암호
- token
- secret
- key
- credential
- 키
- 토큰
target:
- doc
use_ml: true
- name: SECRET_PAIR
severity: medium
confidence: moderate
type: pattern
values:
- (?P<variable>[\"'`]?(?i:token|secret|key|키|암호화?|토큰)[\"'`]?)((\s)*(?P<separator>설정은|:=|:(?!:)|=(>|>|(\\\\*u00|%)26gt;)|!==|!=|===|==|=~|=|%3[Dd])(\s)*)(?P<quote>[\"'`(])?(?P<value>(?-i:(?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9/_+=~!@#$%^&*;:?-])){8,80}(?(a)(?(b)(?(c)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x))(?(quote)[)\"'`])
filter_type:
- ValueAllowlistCheck
- ValuePatternCheck(4)
- ValueEntropyBase64Check
- ValueMorphemesCheck
min_line_len: 16
required_substrings:
- token
- secret
- key
- 키
- 암호
- 토큰
target:
- doc
use_ml: true
- name: PASSWD_PAIR
severity: medium
confidence: moderate
type: pattern
values:
- (?P<variable>[\"'`]?(?i:(?<!id[ :/])pa[as]swo?r?ds?|pwd?|p/w|비밀번호|비번|패스워드|암호)[\"'`]?)((\s)*(?P<separator>설정은|:=|:(?!:)|=(>|>|(\\\\*u00|%)26gt;)|!==|!=|===|==|=~|=|%3[Dd])(\s)*)(?P<quote>[\"'`(])?(?P<value>(?-i:(?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9/_+=~!@#$%^&*;:?-])){8,64}(?(a)(?(b)(?(c)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x))(?(quote)[)\"'`])
filter_type:
- ValueAllowlistCheck
- ValuePatternCheck(4)
- ValueDictionaryKeywordCheck
- LineGitBinaryCheck
- LineUUEPartCheck
- ValueFilePathCheck
- ValueHexNumberCheck
min_line_len: 10
required_substrings:
- pass
- sword
- pw
- p/w
- paasw
- 비밀번호
- 비번
- 패스워드
- 암호
target:
- doc
use_ml: true
- name: IP_ID_PASSWORD_TRIPLE
severity: medium
confidence: moderate
type: pattern
values:
- (^|\s|(?P<variable>(?i:\bip[\s/]{1,80}id[\s/]{1,80}pw[\s/:]{0,80}))|(?P<url>://))(?P<ip>(?<![0-9.])[0-2]?[0-9]{1,2}\.[0-2]?[0-9]{1,2}\.[0-2]?[0-9]{1,2}\.[0-2]?[0-9]{1,2}(?![0-9.]))((\s*[(])?|(?(variable)[\s,/]{1,80}|(?(url)[,]|[,/])))\s*\w[\w.-]{3,80}[\s,/]{1,80}(?P<value>(?(url)(?-i:(?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9_+=~!@#$%^&*;?-])){7,64}(?(a)(?(b)(?(c)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x)|(?-i:(?P<e>[A-Z])|(?P<f>[a-z])|(?P<g>[0-9/_+=~!@#$%^&*;?-])){7,64}(?(e)(?(f)(?(g)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x)))(?:\s|[^/]|$)
filter_type:
- ValueAllowlistCheck
- ValuePatternCheck(4)
- ValueDictionaryKeywordCheck
min_line_len: 10
required_substrings:
- "."
target:
- doc
use_ml: true
- name: ID_PAIR_PASSWD_PAIR
severity: medium
confidence: moderate
type: pattern
values:
- (?P<ddash>--)?(?P<variable>\w*(?i:pa[as]swords?|passwd?|pwd|\bp/w|\bpw|비밀번호|비번|패스워드|암호))\s*?(?(ddash)[ =]|[:=/>-]{1,2})\s*(?P<quote>[\"'`]{1,8})?(?P<value>(?-i:(?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9/_+=~!@#$%^&*;:?-])){4,64}(?(a)(?(b)(?(c)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x))(?(quote)(?P=quote)|(\s|$))
- (?P<ddash>--)?(?P<variable>(?i:user\s*)?(?i:id|login|account|root|admin|user|name|wifi|role|host|default|계정|아이디))\s*?(?(ddash)[ =]|[ :=])\s*?(?P<value>\S+)
filter_type:
- ValueAllowlistCheck
- ValuePatternCheck(4)
min_line_len: 10
required_substrings:
- pass
- sword
- p/w
- pw
- 비밀번호
- 비번
- 패스워드
- 암호
target:
- doc
use_ml: true
- name: ID_PASSWD_PAIR
severity: medium
confidence: moderate
type: pattern
values:
- (?P<variable>[\w.-]{0,80}(?i:(?P<id>\bid\b)|id\b|user|name|계정|아이디)[\w.-]{0,80}(?(id)[ :(/]{1,80}|[:(/]{1,80})(?i:pa[as]swo?r?ds?|pwd?|비밀번호|비번|패스워드|암호))\)?(\s*->\s*|[ =:)(/]{1,80}|\s+is\s+|\s+are\s+|\s*는\s*|\s*은\s*|\s*설정은\s*)\(?(?P<id_value>[\w.-]{2,64})[ :\(/\"',]{1,80}(?P<value>(?-i:(?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9/_+=~!@#$%^&*;:?-])){4,64}(?(a)(?(b)(?(c)(\S|$)|(?!x)x)|(?!x)x)|(?!x)x))
filter_type:
- ValueAllowlistCheck
- ValuePatternCheck(4)
- ValueDictionaryKeywordCheck
min_line_len: 10
required_substrings:
- pw
- pass
- sword
- 비밀번호
- 비번
- 패스워드
- 암호
target:
- doc
use_ml: true
- name: UUID
severity: info
confidence: strong
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9A-F]{8}(-[0-9A-F]{4}){3}-[0-9A-F]{12}|[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12})(?![0-9A-Za-z_+-])
min_line_len: 36
required_substrings:
- "-"
filter_type:
- ValuePatternCheck(4)
use_ml: false
target:
- code
- doc
- name: Akamai Credentials
severity: high
confidence: strong
type: pattern
values:
- (?P<value>akab-[0-9a-z]{16}-[0-9a-z]{16})(?!\.[0-9a-z-]{1,80}\.akamaiapis\.net)
filter_type: GeneralPattern
required_substrings:
- akab-
min_line_len: 38
target:
- code
- doc
- name: Amazon Bedrock API Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>(ABSK|bedrock-api-key-)[0-9A-Za-z/+]{28,800})(?![0-9A-Za-z/+])
filter_type: GeneralPattern
required_substrings:
- ABSK
- bedrock-api-key-
min_line_len: 44
target:
- code
- doc
- name: AWS Client ID
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>(A3T[0-9A-Z]|ABIA|ACCA|AGPA|AIDA|AIPA|AKIA|ANPA|ANVA|AROA|APKA|ASCA|ASIA)[0-9A-Z]{16,17})(?![0-9A-Za-z_+-])
filter_type: GeneralPattern
required_substrings:
- A3T
- ABIA
- ACCA
- AGPA
- AIDA
- AIPA
- AKIA
- ANPA
- ANVA
- AROA
- APKA
- ASCA
- ASIA
min_line_len: 20
required_regex: "[0-9A-Za-z_/+-]{15}"
target:
- code
- doc
- name: AWS Multi
severity: high
confidence: moderate
type: multi
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>A(KIA|SIA)[0-9A-Z]{16})(?![0-9A-Za-z_])
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>((?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9/+])){40,44}(?(a)(?(b)(?(c)\b|(?!x)x)|(?!x)x)|(?!x)x))(?![0-9A-Za-z/+])
filter_type:
- LineSpecificKeyCheck
- ValuePatternCheck
- ValueBase64PartCheck
- ValueMorphemesCheck
required_substrings:
- AKIA
- ASIA
min_line_len: 20
required_regex: "[0-9A-Za-z_/+-]{15}"
target:
- code
- doc
- name: AWS MWS Key
severity: high
confidence: strong
type: pattern
values:
- (?P<value>amzn\.mws\.[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12})(?![0-9A-Za-z_-])
filter_type: GeneralPattern
required_substrings:
- amzn.mws.
min_line_len: 30
target:
- code
- doc
- name: Dynatrace API Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>dt0[A-Za-z]{1}[0-9]{2}\.[0-9A-Z]{24}\.[0-9A-Z]{64})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- dt0
min_line_len: 90
target:
- code
- doc
- name: Facebook Access Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>EAA[0-9A-Za-z]{80,800})
filter_type:
- ValuePatternCheck
- ValueBase64PartCheck
- ValueNotPartEncodedCheck
required_substrings:
- EAA
min_line_len: 80
target:
- code
- doc
- name: Facebook App Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9]{12,18}\|[0-9A-Za-z_-]{24,28})(?![0-9A-Za-z_+-])
filter_type: TokenPattern
required_substrings:
- "|"
required_regex: "[0-9A-Za-z_/+-]{15}"
min_line_len: 33
target:
- code
- doc
- name: Google API Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>AIza[0-9A-Za-z_-]{35})
filter_type: TokenPattern
required_substrings:
- AIza
min_line_len: 39
target:
- code
- doc
- name: Google Multi
severity: high
confidence: moderate
type: multi
values:
- (?P<value>[0-9]{3,80}-[0-9a-z_]{32}\.apps\.googleusercontent\.com)
- \b(?P<value>GOCSPX-[0-9A-Za-z_-]{28}|((?P<a>[A-Z])|(?P<b>[a-z])|(?P<c>[0-9_-])){24,80}(?(a)(?(b)(?(c)\b|(?!x)x)|(?!x)x)|(?!x)x))
filter_type: GeneralPattern
required_substrings:
- .apps.googleusercontent.com
min_line_len: 40
target:
- code
- doc
- name: Google OAuth Secret
severity: high
confidence: strong
type: pattern
values:
- (?P<value>GOCSPX-[0-9A-Za-z_-]{28})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- GOCSPX-
min_line_len: 40
target:
- code
- doc
- name: Google OAuth Access Token
severity: high
confidence: moderate
type: pattern
values:
- (?P<value>ya29\.[0-9A-Za-z_-]{22,8000})
filter_type: TokenPattern
required_substrings:
- ya29.
min_line_len: 27
target:
- code
- doc
- name: Google OAuth Refresh Token
severity: medium
confidence: weak
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>1//0[0-9A-Za-z_-]{80,8000})
filter_type: TokenPattern
required_substrings:
- 1//0
min_line_len: 84
target:
- code
- doc
- name: Heroku Credentials
severity: high
confidence: strong
type: pattern
values:
- (?P<value>HRKU-([0-9A-Za-z_-]{60}|[0-9A-Fa-f]{8}(-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}))
filter_type: TokenPattern
required_substrings:
- HRKU-
min_line_len: 41
target:
- code
- doc
- name: Instagram Access Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>IGQVJ[=0-9A-Za-z_-]{100,8000})(?![=0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- IGQVJ
min_line_len: 105
target:
- code
- doc
- name: JSON Web Token
severity: medium
confidence: strong
type: pattern
values:
- (?P<value>eyJ[=0-9A-Za-z_+/-]{15,8000}(\.[=0-9A-Za-z_+/-]{0,8000}){2,16})(?![=0-9A-Za-z_-])
filter_type:
- ValueJsonWebTokenCheck
required_substrings:
- eyJ
min_line_len: 64
target:
- code
- doc
- name: JSON Web Key
severity: medium
confidence: strong
type: pattern
values:
- (?P<value>\b(e(yJ|yAi|woi|wog|w0K)|W(yJ|3si|wp7|wog|w0K|3sK))[0-9A-Za-z_+/-]{60,8000})
filter_type:
- ValueJsonWebKeyCheck
required_substrings:
- eyJ
- eyAi
- ewoi
- ewog
- ew0K
- WyJ
- W3si
- Wwp7
- Wwog
- Ww0K
- W3sK
min_line_len: 64
target:
- code
- doc
- name: JWK
severity: medium
confidence: moderate
type: multi
values:
- (?P<value>['"]?\b(?P<variable>kty)[^0-9A-Za-z_-]{1,8}(RSA|EC|oct)\b['"]?)
- (?P<variable>\b[dk])[^0-9A-Za-z_-]{1,8}(?P<value>[0-9A-Za-z_-]{22,8000})(?![=0-9A-Za-z_-])
filter_type:
- ValuePatternCheck
- ValueMorphemesCheck
required_substrings:
- kty
min_line_len: 8
target:
- code
- doc
- name: MailChimp API Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9A-Za-z_-]{32}-us[0-9]{1,2})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- -us
min_line_len: 35
target:
- code
- doc
- name: MailGun API Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>key-[0-9a-z]{32}|[0-9a-f]{32}-[0-9a-f]{8}-[0-9a-f]{8})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_regex: "[0-9A-Za-z_/+-]{15}"
min_line_len: 36
target:
- code
- doc
- name: PayPal Braintree Access Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>access_token\$production\$[0-9a-z]{16}\$[0-9a-z]{32})(?![0-9A-Za-z_-])
filter_type: GeneralPattern
required_substrings:
- access_token$production$
min_line_len: 72
target:
- code
- doc
- name: PEM Private Key
severity: high
confidence: strong
type: pem_key
values:
- (?P<value>-----BEGIN\s(?!ENCRYPTED)[^-]{0,80}PRIVATE[^-]{0,80}KEY[^-]{0,40}-----(.+-----END[^-]{1,80}KEY[^-]{0,40}-----)?)
min_line_len: 27
target:
- code
- doc
- name: BASE64 encoded PEM Private Key
severity: high
confidence: strong
type: pattern
values:
- (?P<value>[0-9A-Za-z_/+-]{0,8000}LS0t(LS1CRUdJTiB|LUJFR0lOI|QkVHSU4g)[0-9A-Za-z_/+-]{0,11}(UFJJVkFURSBLRVkt|QUklWQVRFIEtFWS0t|FBSSVZBVEUgS0VZ)[0-9A-Za-z_/+-]{1,8000}LS0t[0-9A-Za-z_/+-]{1,8000})
filter_type:
- ValueBase64EncodedPem
min_line_len: 300
required_substrings:
- UFJJVkFURSBLRVkt
- QUklWQVRFIEtFWS0t
- FBSSVZBVEUgS0VZ
target:
- code
- doc
- name: BASE64 Private Key
severity: high
confidence: strong
type: pattern
values:
- (?P<value>MII[A-Za-f][0-9A-Za-z/+]{8}(?s:[^!#$&()*\-.:;<=>?@\[\]^_{|}~]{8,8000}))
filter_type:
- ValueBase64KeyCheck
min_line_len: 160
required_substrings:
- MII
target:
- code
- doc
- name: Picatic API Key
severity: high
confidence: strong
type: pattern
values:
- (?P<value>sk_live_[0-9a-z]{32})(?![0-9A-Za-z_-])
filter_type: GeneralPattern
required_substrings:
- sk_live_
min_line_len: 40
target:
- code
- doc
- name: SendGrid API Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>SG\.[0-9A-Za-z_-]{16,32}\.[0-9A-Za-z_-]{16,64})
filter_type: TokenPattern
required_substrings:
- SG.
min_line_len: 34
target:
- code
- doc
- name: Shopify Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>shp(at|ca|pa|ss|tka)_[0-9A-Fa-f]{32})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- shp
min_line_len: 38
target:
- code
- doc
- name: Slack Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>(xapp|xox[a-z])\-[0-9A-Za-z-]{10,250})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- xox
- xapp
min_line_len: 15
target:
- code
- doc
- name: Slack Webhook
severity: medium
confidence: strong
type: pattern
values:
- (?P<variable>hooks\.slack\.com/services)(?P<value>/T[0-9A-Z]{8,16}/B[0-9A-Z]{8,16}/[0-9A-Za-z_]{24})
filter_type: GeneralPattern
required_substrings:
- hooks.slack.com/services/T
min_line_len: 61
target:
- code
- doc
- name: Stripe Credentials
severity: high
confidence: strong
type: pattern
values:
- (?P<value>(whsec|[prs]k_(test|live))_[0-9A-Za-z]{24,160})
filter_type: GeneralPattern
required_substrings:
- k_live_
- k_test_
- whsec_
min_line_len: 32
target:
- code
- doc
- name: Square Access Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>EAAA[0-9A-Za-z_-]{60})(?![0-9A-Za-z_-])
filter_type:
- ValuePatternCheck
- ValueBase64PartCheck
required_substrings:
- EAAA
min_line_len: 64
target:
- code
- doc
- name: Square Credentials
severity: medium
confidence: strong
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>sq0[a-z]{3}-[0-9A-Za-z_-]{22}([0-9A-Za-z_-]{21})?)(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- sq0
min_line_len: 29
target:
- code
- doc
- name: Twilio Credentials
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>(AC|AD|AL|CA|CF|CL|CN|CR|FW|IP|KS|MM|NO|PK|PN|QU|RE|SC|SD|SK|SM|TR|UT|XE|XR)[0-9A-Fa-f]{32})(?![0-9A-Za-z_+-])
filter_type: TokenPattern
required_substrings:
- AC
- AD
- AL
- CA
- CF
- CL
- CN
- CR
- FW
- IP
- KS
- MM
- "NO"
- PK
- PN
- QU
- RE
- SC
- SD
- SK
- SM
- TR
- UT
- XE
- XR
min_line_len: 34
target:
- code
- doc
- name: Telegram Bot API Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9]{8,10}:[0-9A-Za-z_-]{35})(?![0-9A-Za-z_-])
filter_type: TokenPattern
required_substrings:
- :AA
min_line_len: 45
target:
- code
- doc
- name: PyPi API Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>pypi-[0-9A-Za-z_-]{150,255})
filter_type: TokenPattern
required_substrings:
- pypi-
min_line_len: 155
target:
- code
- doc
- name: NPM Token
severity: high
confidence: strong
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>npm_[0-9A-Za-z_-]{36,255})
filter_type:
- ValueGitHubCheck
required_substrings:
- npm_
min_line_len: 40
target:
- code
- doc
- name: Github Classic Token
severity: high
confidence: strong
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>gh[pousr]_[0-9A-Za-z_-]{36,255})
filter_type:
- ValueGitHubCheck
required_substrings:
- ghp_
- gho_
- ghu_
- ghs_
- ghr_
min_line_len: 40
target:
- code
- doc
- name: Github Fine-granted Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>github_pat_[0-9A-Za-z_]{80,255})
filter_type: GeneralPattern
required_substrings:
- github_pat_
min_line_len: 90
target:
- code
- doc
- name: Firebase Domain
severity: info
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[a-z0-9.-]{1,80}\.firebaseio\.com|[a-z0-9.-]{1,80}\.firebaseapp\.com)
filter_type: GeneralPattern
required_substrings:
- .firebase
min_line_len: 16
target:
- code
- doc
- name: AWS S3 Bucket
severity: info
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[a-z0-9.-]{3,63}\.s3\.amazonaws\.com|[a-z0-9.-]{3,63}\.s3-website[.-](eu|ap|us|ca|sa|cn))
filter_type: GeneralPattern
required_substrings:
- .s3-website
- .s3.amazonaws.com
min_line_len: 14
target:
- code
- doc
- name: Jfrog Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>(cmVmdGtuO[0-9A-Za-z_-]{55}|AKCp[0-9A-Za-z_-]{69}))(?![0-9A-Za-z_-])
filter_type:
- ValueJfrogTokenCheck
required_substrings:
- cmVmdGtuO
- AKCp
min_line_len: 64
target:
- code
- doc
- name: Azure Access Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>eyJ[=0-9A-Za-z_-]{50,500}\.eyJ[=0-9A-Za-z_-]{8,8000}\.[=0-9A-Za-z_-]{18,800})
filter_type:
- ValueAzureTokenCheck
required_substrings:
- eyJ
min_line_len: 148
target:
- code
- doc
- name: Azure Secret Value
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9A-Za-z_~.-]{3}8Q~[0-9A-Za-z_~.-]{34})(?![0-9A-Za-z_-])
filter_type: TokenPattern
min_line_len: 40
required_substrings:
- 8Q~
target:
- code
- doc
- name: Azure Storage Account Key
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>[0-9A-Za-z]{52}JQQJ9[9DH][0-9A-Za-z]{26}([0-9A-Za-z=]{4})?)(?![0-9A-Za-z_/+-])
min_line_len: 80
filter_type:
- ValuePatternCheck(17)
required_substrings:
- JQQJ99
- JQQJ9D
- JQQJ9H
target:
- code
- doc
- name: Bitbucket App Password
severity: high
confidence: strong
type: pattern
values:
- (?P<value>ATBB[0-9A-Za-z]{24}[A-F0-9]{8})(?![0-9A-Za-z_])
filter_type:
- ValueAtlassianTokenCheck
min_line_len: 28
required_substrings:
- ATBB
target:
- code
- doc
- name: Bitbucket Repository Access Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>ATCTT3xFfGN0[0-9A-Za-z_-]{80,800}(\\?=|%3[dD])[A-F0-9]{8})
filter_type:
- ValueAtlassianTokenCheck
min_line_len: 160
required_substrings:
- ATCTT3xFfGN0
target:
- code
- doc
- name: Bitbucket HTTP Access Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>BBDC-[MNO][ADQTgjwz][AEIMQUYcgk][012345wxyz][0-9A-Za-z_-]{40})
filter_type:
- ValueAtlassianTokenCheck
min_line_len: 49
required_substrings:
- BBDC-
target:
- code
- doc
- name: Jira / Confluence PAT token
severity: high
confidence: strong
type: pattern
values:
- (?<!BBDC-)(?P<value>[MNO][ADQTgjwz][AEIMQUYcgk][012345wxyz][0-9A-Za-z_-]{40})(?![0-9A-Za-z_-])
filter_type:
- ValueAtlassianTokenCheck
min_line_len: 44
required_substrings:
- M
- N
- O
required_regex: "[0-9A-Za-z_/+-]{15}"
target:
- code
- doc
- name: Atlassian PAT token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>ATATT3xFfGF0[0-9A-Za-z_-]{80,800}(\\?=|%3[dD])[A-F0-9]{8})
filter_type:
- ValueAtlassianTokenCheck
min_line_len: 160
required_substrings:
- ATATT3xFfGF0
target:
- code
- doc
- name: Digital Ocean Token
severity: high
confidence: strong
type: pattern
values:
- (?P<value>do[opr]_v1_[a-f0-9]{64})(?![0-9A-Za-z_-])
filter_type: TokenPattern
min_line_len: 71
required_substrings:
- doo_v1_
- dop_v1_
- dor_v1_
target:
- code
- doc
- name: Dropbox OAuth2 API Access Token
severity: high
confidence: moderate
type: pattern
values:
- (?:^|/|[^\\0-9A-Za-z+_-]|\\[0abfnrtv]|(?:%|\\x)[0-9A-Fa-f]{2}|\\[0-7]{3}|\\[Uu][0-9A-Fa-f]{4}|\x1B\[[0-9;]{0,80}m)(?P<value>sl\.(u\.)?[0-9A-Za-z_-]{77,177})(?![0-9A-Za-z_-])
filter_type: TokenPattern
min_line_len: 80
required_substrings:
- sl.