-
Notifications
You must be signed in to change notification settings - Fork 8
/
inspec.yml
262 lines (226 loc) · 6.62 KB
/
inspec.yml
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
name: nginx-srg-baseline
title: The NGINX Web SRG v2.0 STIG-Ready Baseline
maintainer: The MITRE Security Automation Framework
copyright: (c) 2021
copyright_email: [email protected]
license: Apache-2.0
summary: "Inspec Validation Profile for NGINX SRG"
version: 2.4.3
inspec_version: ">= 4.0"
inputs:
- name: "conf_path"
description: Path for the nginx configuration file
type: String
value: "/etc/nginx/nginx.conf"
- name: "nginx_log_path"
description: "Path for the nginx log directory"
type: String
value: "/var/log/nginx"
- name: "access_log_path"
description: "Path for the nginx access log"
type: String
value: "/var/log/nginx/access.log"
- name: "error_log_path"
description: "Path for the nginx error log"
type: String
value: "/var/log/nginx/error.log"
- name: "mime_type_path"
description: "Path for the MIME types file"
type: String
value: "/etc/nginx/mime.types"
- name: "key_file_path"
description: "Path for the private key"
type: String
value: "/etc/ssl/key.pem"
- name: "minimum_log_file_size"
description: "Minimum size of log file"
type: String
value: "25G"
- name: "org_allowed_nginx_version"
description: "Latest allowed Nginx version"
type: String
value: "1.21.5"
- name: "nginx_owner"
description: "The NGINX process owner"
type: String
value: "nginx"
- name: "nginx_group"
description: "The NGINX process group"
type: String
value: "nginx"
- name: "charset_required"
description: "The expected character encoding used by the NGINX web-server"
type: String
value: "utf-8"
- name: "performs_session_management"
description: "true/false - NGINX performs session management"
type: Boolean
value: true
- name: "manages_auth"
description: "true/false - NGINX performs user management"
type: Boolean
value: false
- name: "implements_mobile_code"
description: "true/false - NGINX implements mobile code"
type: Boolean
value: false
- name: "proxy_server"
description: "true/false - NGINX is a proxy server"
type: Boolean
value: false
- name: "behind_proxy_server"
description: "true/false - NGINX is behind a proxy server"
type: Boolean
value: false
- name: "high_availability"
description: "true/false - NGINX is a high-availability server"
type: Boolean
value: false
- name: "is_cluster"
description: "true/false - NGINX is part of a cluster"
type: Boolean
value: false
- name: "is_cluster_master"
description: "true/false - NGINX is the cluster master"
type: Boolean
value: false
- name: "uses_enterprise_tool"
description: "true/false -NGINX uses Enterprise Tool for enforcing policy on remote sessions"
type: Boolean
value: false
- name: "uses_pki"
description: "true/false -NGINX uses PKI for Authentication"
type: Boolean
value: true
- name: "sys_admin"
description: "Allowed NGINX system administrative users"
type: Array
value:
- "root"
- name: "sys_admin_group"
description: "Allowed NGINX system administrative groups"
type: Array
value:
- "root"
- name: excluded_users
description: "Users excluded from review"
type: Array
value: []
- name: "authorized_user_list"
description: "List of non admin user accounts"
type: Array
value: []
- name: "authorized_ports"
description: "List of authorized ports that are IANA compliant"
type: Array
value:
- "80"
- "443"
- name: "access_control_files"
description: "List of the access control files"
type: Array
value:
- "nginx.conf"
- name: "dod_approved_pkis"
description: "DoD-approved PKIs (e.g., DoD PKI, DoD ECA, and DoD-approved external partners."
type: Array
value:
- "DoD"
- "ECA"
- name: "approved_ssl_ciphers"
description: "List of approved and FIPS compliant SSL Ciphers. Some sites show +'s in the cipher names, while others use -'s.'"
type: Array
value:
- "EECDH+ECDSA+AESGCM"
- "EECDH+aRSA+AESGCM"
- "EECDH+ECDSA+SHA384"
- "EECDH+ECDSA+SHA256"
- "EECDH+aRSA+SHA384"
- "EECDH+aRSA+SHA256"
- "EECDH+aRSA+RC4"
- "EECDH"
- "EDH+aRSA"
- "HIGH"
- "!RC4"
- "!aNULL"
- "!eNULL"
- "!LOW"
- "!3DES"
- "!MD5"
- "!EXP"
- "!PSK"
- "!SRP"
- "!DSS"
- name: "approved_ssl_protocols"
description: "List of approved and FIPS compliant TLS protocols."
type: Array
value:
- "TLSv1.2"
- name: "nginx_authorized_modules"
description: "List of authorized NGINX modules"
type: Array
value:
- "http_addition"
- "http_auth_request"
- "http_dav"
- "http_flv"
- "http_gunzip"
- "http_gzip_static"
- "http_mp4"
- "http_random_index"
- "http_realip"
- "http_secure_link"
- "http_slice"
- "http_ssl"
- "http_stub_status"
- "http_sub"
- "http_v2"
- "mail_ssl"
- "stream_realip"
- "stream_ssl"
- "stream_ssl_preread"
- name: "nginx_disallowed_mime_type"
description: "List of disallowed MIME types."
type: Array
value:
- "text/mathml"
- "text/vnd.sun.j2me.app-descriptor"
- "text/vnd.wap.wml"
- "application/java-archive"
- "application/mac-binhex40"
- "application/postscript"
- "application/vnd.wap.wmlc"
- "application/vnd.google-earth.kml+xml"
- "application/vnd.google-earth.kmz"
- "application/x-7z-compressed"
- "application/x-cocoa"
- "application/x-java-archive-diff"
- "application/x-java-jnlp-file"
- "application/x-makeself"
- "application/x-perl"
- "application/x-pilot"
- "application/x-redhat-package-manager"
- "application/x-sea"
- "application/x-shockwave-flash"
- "application/x-stuffit"
- "application/x-sit"
- "application/x-xpinstall"
- "application/octet-stream"
- name: "nginx_unauthorized_modules"
description: "List of unauthorized NGINX modules"
type: Array
value:
- "http_proxy"
- name: "nginx_disallowed_file_list"
description: "File list of disallowed documentation, sample code, example applications, and tutorials."
type: Array
value:
- "/usr/share/man/man8/nginx.8.gz"
- name: "nginx_allowed_file_list"
description: "File list of allowed documentation, sample code, example applications, and tutorials."
type: Array
value: []
- name: "nginx_allowed_script_list"
description: "List of allowed cgi scripts."
type: Array
value: []