-
Notifications
You must be signed in to change notification settings - Fork 12
/
secret_search.conf
55 lines (44 loc) · 1.6 KB
/
secret_search.conf
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
[General]
ignored_extensions = png,gif,tiff,msi,bmp,jpg,jpeg,zip,gz,bz2,7z,xz,exe,dll,pdf
max_file_size = 20000
secret_patterns = NetUser,RunAs,SecureString,PasswordConfig,PasswordJson,PasswordYaml,PasswordXml,PrivateKey,AwsSecrets,GenericApi
[NetUser]
regex = net use.*/user.*
reliability = high
false_positive_string =
[RunAs]
regex = runas.*/user
reliability = high
false_positive_string =
[SecureString]
regex = ConvertTo-SecureString
reliability = high
false_positive_string =
[PasswordConfig]
regex = (password|pwd|passwd)[a-z]*\s*=(?P<secret>.*)
reliability = high
false_positive_string = ShowPasswordDialog=
[PasswordJson]
regex = "[\S^"]*(password|pwd|passwd)[\S^"]*"\s*:\s*"(?P<secret>\S*)"
reliability = high
false_positive_string = DisableChangePassword=
[PasswordYaml]
regex = \s*[a-z]*passw[a-z]*:(?P<secret>.*)
reliability = high
false_positive_string =
[PasswordXml]
regex = <[a-z]*pass[^>]*>(?P<secret>[^<]+)</[a-z]*pass
reliability = high
false_positive_string =
[PrivateKey]
regex = ----- *BEGIN[A-Z ]* PRIVATE KEY *-----
reliability = high
false_positive_string =
[AwsSecrets]
regex = (aws_access_key_id|aws_secret_access_key)\s*=(?P<secret>.*)
reliability = high
false_positive_string =
[GenericApi]
regex = (?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)
reliability = high
false_positive_string =