diff --git a/credsweeper/ml_model/ml_config.json b/credsweeper/ml_model/ml_config.json index 6ce32e018..f290a9409 100644 --- a/credsweeper/ml_model/ml_config.json +++ b/credsweeper/ml_model/ml_config.json @@ -70,6 +70,14 @@ "attribute": "value" } }, + { + "type": "SearchInAttribute", + "comment": "ASN1 prefix for PEM keys", + "kwargs": { + "pattern": "MII", + "attribute": "value" + } + }, { "type": "SearchInAttribute", "comment": "camelStyle naming detection", @@ -139,15 +147,25 @@ "kwargs": { "words": [ " ", + ".", + "#", "/", "_at", "_id", "_len", + "256", + "512", "access", "cache", "client", "control", - "encrypted", + "crypt", + "crypted", + "decrypt", + "encrypt", + "dummy", + "disable", + "changeme", "example", "expire", "fake", @@ -173,6 +191,7 @@ "pw", "secret", "size", + "sha", "space", "status", "sword", @@ -195,6 +214,7 @@ "kwargs": { "words": [ " ", + ":", "$(", "${", "(", @@ -207,25 +227,37 @@ "[", "_id", "abc", + "aaaa", "allow", + "arn:aws:", "bar", "disable", "changeme", + "crypt", + "crypted", + "decrypt", + "encrypt", "example", "fake", "file", "foo", + "hash", + "hex", + "key", "min", "mock", "my", "nil", "pass", - "passwd", - "password", - "pswd", "public", "pwd", + "rsa-", + "salt", + "secret", + "sha", + "ssh", "test", + "word", "xxx", "xyz" ] @@ -248,9 +280,12 @@ "@", "[", "approval", + "arn:aws:", "assert", "case", "circle", + "color", + "e.g.", "equal", "example", "expect", @@ -263,7 +298,6 @@ "none", "null", "pass", - "password", "path", "pwd", "sqa", @@ -271,7 +305,8 @@ "true", "undefined", "unit", - "width" + "width", + "word" ] } }, @@ -284,11 +319,15 @@ "&", "(", "->", + "=>", ".", + ",", "?", "@", "[", "bearer", + "get", + "e.g.", "equal", "example", "expect", @@ -321,6 +360,8 @@ "assert", "case", "circle", + "color", + "e.g.", "equal", "example", "expect", @@ -333,8 +374,6 @@ "none", "null", "pass", - "passwd", - "password", "path", "pwd", "sqa", @@ -342,7 +381,8 @@ "true", "undefined", "unit", - "width" + "width", + "word" ] } }, @@ -378,6 +418,7 @@ "kwargs": { "extensions": [ "", + ".04", ".1", ".adoc", ".asciidoc", @@ -386,17 +427,16 @@ ".bat", ".bats", ".bazel", - ".bin", ".build", ".bundle", ".bzl", ".c", + ".cast", ".cc", ".cf", ".cjs", ".cljc", ".cmd", - ".cmm", ".cnf", ".coffee", ".conf", @@ -409,6 +449,7 @@ ".dist", ".doc", ".dockerfile", + ".edited", ".eex", ".env", ".erb", @@ -424,7 +465,9 @@ ".go", ".golden", ".gradle", + ".graphql", ".groovy", + ".gtpl", ".h", ".haml", ".hs", @@ -456,6 +499,7 @@ ".lua", ".m", ".manifest", + ".markdown", ".markerb", ".md", ".mdx", @@ -471,6 +515,7 @@ ".odd", ".onnx", ".oracle", + ".original", ".pan", ".patch", ".php", @@ -488,17 +533,20 @@ ".purs", ".pxd", ".py", + ".pyi", ".pyx", ".r", ".rake", ".rb", ".re", ".red", + ".response", ".resx", ".rexx", ".rnh", ".rrc", ".rs", + ".rsa", ".rsp", ".rst", ".rules", @@ -512,6 +560,7 @@ ".storyboard", ".strings", ".sty", + ".swift", ".t", ".td", ".tdf",