Skip to content

Commit 36d2206

Browse files
committed
ML config preparation
1 parent 0cdf032 commit 36d2206

File tree

1 file changed

+51
-10
lines changed

1 file changed

+51
-10
lines changed

credsweeper/ml_model/ml_config.json

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
"attribute": "value"
7171
}
7272
},
73+
{
74+
"type": "SearchInAttribute",
75+
"comment": "ASN1 prefix for PEM keys",
76+
"kwargs": {
77+
"pattern": "MII",
78+
"attribute": "value"
79+
}
80+
},
7381
{
7482
"type": "SearchInAttribute",
7583
"comment": "camelStyle naming detection",
@@ -139,15 +147,21 @@
139147
"kwargs": {
140148
"words": [
141149
" ",
150+
".",
151+
"#",
142152
"/",
143153
"_at",
144154
"_id",
145155
"_len",
156+
"256",
157+
"512",
146158
"access",
147159
"cache",
148160
"client",
149161
"control",
162+
"dummy",
150163
"encrypted",
164+
"encrypt",
151165
"example",
152166
"expire",
153167
"fake",
@@ -173,6 +187,7 @@
173187
"pw",
174188
"secret",
175189
"size",
190+
"sha",
176191
"space",
177192
"status",
178193
"sword",
@@ -195,6 +210,7 @@
195210
"kwargs": {
196211
"words": [
197212
" ",
213+
":",
198214
"$(",
199215
"${",
200216
"(",
@@ -207,25 +223,33 @@
207223
"[",
208224
"_id",
209225
"abc",
226+
"aaaa",
210227
"allow",
228+
"arn:aws:",
211229
"bar",
212230
"disable",
213231
"changeme",
232+
"encrypt",
214233
"example",
215234
"fake",
216235
"file",
217236
"foo",
237+
"hex",
238+
"key",
218239
"min",
219240
"mock",
220241
"my",
221242
"nil",
222243
"pass",
223-
"passwd",
224-
"password",
225-
"pswd",
226244
"public",
227245
"pwd",
246+
"rsa-",
247+
"salt",
248+
"secret",
249+
"sha",
250+
"ssh",
228251
"test",
252+
"word",
229253
"xxx",
230254
"xyz"
231255
]
@@ -248,9 +272,12 @@
248272
"@",
249273
"[",
250274
"approval",
275+
"arn:aws:",
251276
"assert",
252277
"case",
253278
"circle",
279+
"color",
280+
"e.g.",
254281
"equal",
255282
"example",
256283
"expect",
@@ -263,15 +290,15 @@
263290
"none",
264291
"null",
265292
"pass",
266-
"password",
267293
"path",
268294
"pwd",
269295
"sqa",
270296
"test",
271297
"true",
272298
"undefined",
273299
"unit",
274-
"width"
300+
"width",
301+
"word"
275302
]
276303
}
277304
},
@@ -284,11 +311,15 @@
284311
"&",
285312
"(",
286313
"->",
314+
"=>",
287315
".",
316+
",",
288317
"?",
289318
"@",
290319
"[",
291320
"bearer",
321+
"get",
322+
"e.g.",
292323
"equal",
293324
"example",
294325
"expect",
@@ -321,6 +352,8 @@
321352
"assert",
322353
"case",
323354
"circle",
355+
"color",
356+
"e.g.",
324357
"equal",
325358
"example",
326359
"expect",
@@ -333,16 +366,15 @@
333366
"none",
334367
"null",
335368
"pass",
336-
"passwd",
337-
"password",
338369
"path",
339370
"pwd",
340371
"sqa",
341372
"test",
342373
"true",
343374
"undefined",
344375
"unit",
345-
"width"
376+
"width",
377+
"word"
346378
]
347379
}
348380
},
@@ -378,6 +410,7 @@
378410
"kwargs": {
379411
"extensions": [
380412
"",
413+
".04",
381414
".1",
382415
".adoc",
383416
".asciidoc",
@@ -386,17 +419,16 @@
386419
".bat",
387420
".bats",
388421
".bazel",
389-
".bin",
390422
".build",
391423
".bundle",
392424
".bzl",
393425
".c",
426+
".cast",
394427
".cc",
395428
".cf",
396429
".cjs",
397430
".cljc",
398431
".cmd",
399-
".cmm",
400432
".cnf",
401433
".coffee",
402434
".conf",
@@ -409,6 +441,7 @@
409441
".dist",
410442
".doc",
411443
".dockerfile",
444+
".edited",
412445
".eex",
413446
".env",
414447
".erb",
@@ -424,7 +457,9 @@
424457
".go",
425458
".golden",
426459
".gradle",
460+
".graphql",
427461
".groovy",
462+
".gtpl",
428463
".h",
429464
".haml",
430465
".hs",
@@ -456,6 +491,7 @@
456491
".lua",
457492
".m",
458493
".manifest",
494+
".markdown",
459495
".markerb",
460496
".md",
461497
".mdx",
@@ -471,6 +507,7 @@
471507
".odd",
472508
".onnx",
473509
".oracle",
510+
".original",
474511
".pan",
475512
".patch",
476513
".php",
@@ -488,17 +525,20 @@
488525
".purs",
489526
".pxd",
490527
".py",
528+
".pyi",
491529
".pyx",
492530
".r",
493531
".rake",
494532
".rb",
495533
".re",
496534
".red",
535+
".response",
497536
".resx",
498537
".rexx",
499538
".rnh",
500539
".rrc",
501540
".rs",
541+
".rsa",
502542
".rsp",
503543
".rst",
504544
".rules",
@@ -512,6 +552,7 @@
512552
".storyboard",
513553
".strings",
514554
".sty",
555+
".swift",
515556
".t",
516557
".td",
517558
".tdf",

0 commit comments

Comments
 (0)