blob: 178dde4575dd1976604a4c314e9b5bf7a1f2cb9f (
plain)
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
|
---
# This file uses standard regular expression syntax, however be mindful
# of escaping YAML delimiters too (such as `:`) using double quotes "".
binaries:
binary_ignore:
- \.git/(index|objects)
file_audits:
file_names:
- \.asc
- \.gpg
- \.key
- \.md(2|3|4|5)
- \.sha1
- \.sig
- \.pcap
- \.kdb
- \.pypirc
- \.pem
- \.cer
- \.der
- \.crt
- \.crl
- \.p7b
- \.p7r
- \.spc
- \.sst
- \.stl
- \.pfx
- \.p12
- _rsa
- _dsa
- (irb|plsq|mysql|bash|zsh)_history
- (zsh|bash)rc-secrets
- \.vimrc
- \.gem\/credentials
- configuration\.user\.xpl
- \.dockercfg
- \.npmrc
- key(store|ring)
- ovpn
- secret_token\.rb
- omniauth\.rb
- carrierwave\.rb
- schema\.rb
- database\.yml
- settings\.py
- keychain
- backup
- credentials\.xml
- htpasswd
- kwallet
- aws_access_key_id
- aws_secret_access_key
file_contents:
private_key:
regex: -----BEGIN\sRSA\sPRIVATE\sKEY----
desc: "This looks like it could be a private key"
password:
regex: (password|passwd)(.*:|.*=.*)
desc: "Possible hardcoded password"
curl:
regex: \bcurl\b
desc: "Curl can be used for retrieving objects from untrusted sources"
clone:
regex: git.*clone
desc: "clone blocked as using an non approved external source"
dual_ec_drbg:
regex: dual_ec_drbg
desc: "Insecure cryptographic algorithm"
base64_decode:
regex: base64_decode
desc: "Insecure cryptographic algorithm"
gost:
regex: gost
desc: "Insecure cryptographic algorithm"
md245:
regex: md[245]
desc: "Insecure hashing algorithm"
panama:
regex: panama
desc: "Insecure cryptographic algorithm"
private_key2:
regex: private_key
desc: "This looks like it could be a private key"
rc4:
regex: rc4
desc: "Rivest Cipher 4 is an insecure stream cipher"
ripemd:
regex: ripemd
desc: |
"RACE Integrity Primitives Evaluation Message Digest
is an insecure hashing algorithm"
secret:
regex: secret
desc: "Possible leak of sensitive information"
sha:
regex: sha[01]
desc: "Insecure hashing algorithm"
snefru:
regex: snefru
desc: "Insecure hashing algorithm"
ssh_key:
regex: ssh_key
desc: "Possible leak of private SSH key"
sslv:
regex: sslv[12]
desc: "Insecure SSL Version"
streebog:
regex: sslv[12]
desc: "Insecure cryptographic hashing algorithm"
tlsv1:
regex: tlsv1
desc: "Insecure TLS Version"
wget:
regex: wget
desc: "WGET is blocked to unknown / untrusted destinations"
run_as_root:
regex: run_as_root.*=.*True
desc: "Its better to use sudo or a rootwrapper"
exec:
regex: \sexec\s*(\"|\().+(\"|\))
desc: "Exec can be dangerous when used with arbitrary, untrusted code."
eval:
regex: \beval\b
desc: "Eval can be dangerous when used with arbitrary, untrusted code."
apprun:
regex: app\.run\s*\(.*debug.*=.*True.*\)
desc: |
"Running flask in debug mode can give away sensitive data on a
systems configuration"
autoescape:
regex: autoescape.*=.*False
desc: |
"Without escaping HTML input an application becomes
vulnerable to Cross Site Scripting (XSS) attacks."
safestring:
regex: safestring\.mark_safe.*\(.*\)
desc: |
"Without escaping HTML input an application becomes
vulnerable to Cross Site Scripting (XSS) attacks."
shelltrue:
regex: shell.*=.*True
desc: |
"Shell=True can lead to dangerous shell escapes,
expecially when the input can be crafted by untrusted external input"
tmp:
regex: \/tmp\/
desc: |
"Use of tmp directories can be dangerous. Its world writable and
accessable, and can be easily guessed by attackers"
yamlload:
regex: \yaml\.load
desc: |
"Avoid dangerous file parsing and object serialization libraries,
use instead `yaml.safe_load`"
telnet:
regex: telnet
desc: "Avoid coms applications that transmit credentials in clear text"
ftp:
regex: \bftp\b
desc: "Avoid coms applications that transmit credentials in clear text"
finger:
regex: \bfinger\b
desc: "Avoid coms applications that transmit credentials in clear text"
licence:
licence_ext:
- '.java'
- '.md'
- '.py'
- '.rb'
- '.rst'
- '.sh'
licence_ignore:
- '__init__.py'
project_exceptions:
- apex: exceptions/apex.yaml
- armband: exceptions/armband.yaml
- bamboo: exceptions/bamboo.yaml
- barometer: exceptions/barometer.yaml
- bottlenecks: exceptions/bottlenecks.yaml
- calipso: exceptions/calipso.yaml
- compass4nfv: exceptions/compass4nfv.yaml
- conductor: exceptions/conductor.yaml
- copper: exceptions/copper.yaml
- cperf: exceptions/cperf.yaml
- daisy: exceptions/daisy.yaml
- doctor: exceptions/doctor.yaml
- dovetail: exceptions/dovetail.yaml
- dpacc: exceptions/dpacc.yaml
- enfv: exceptions/enfv.yaml
- escalator: exceptions/escalator.yaml
- fds: exceptions/fds.yaml
- functest: exceptions/functest.yaml
- octopus: exceptions/octopus.yaml
- pharos: exceptions/pharos.yaml
- releng: exceptions/releng.yaml
- sandbox: exceptions/sandbox.yaml
- yardstick: exceptions/yardstick.yaml
|