-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.yml
278 lines (278 loc) · 8.99 KB
/
default.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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
{{ if .Vars.WNFWA_cat1 }}
command:
{{ if .Vars.WNFWA_000004 }}
domain_firewall_block_inbound:
title: 000004 | The Windows Firewall with Advanced Security must block unsolicited inbound connections when connected to a domain.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_DOM }} Name EnableFirewall
exit-status: 0
stdout:
- '1'
meta:
Cat: 1
CCI:
- CCI-000382
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241992r698217_rule
STIG_ID: WNFWA-000004
Vul_ID: V-241992
{{ end }}
{{ if .Vars.WNFWA_000012 }}
private_firewall_block_inbound:
title: 000012 | The Windows Firewall with Advanced Security must block unsolicited inbound connections when connected to a private network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD}} -Name DefaultInboundAction
exit-status: 0
stdout:
- '1'
meta:
Cat: 1
CCI:
- CCI-000382
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241997r698232_rule
STIG_ID: WNFWA-000012
Vul_ID: V-241997
{{ end }}
{{ if .Vars.WNFWA_000020 }}
public_firewall_block_inbound:
title: 000020 | The Windows Firewall with Advanced Security must block unsolicited inbound connections when connected to a public network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB }} -Name DefaultInboundAction
exit-status: 0
stdout:
- '1'
meta:
Cat: 1
CCI:
- CCI-000382
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-242002r698247_rule
STIG_ID: WNFWA-000020
Vul_ID: V-242002
{{ end }}
{{ end }}
{{ if .Vars.WNFWA_cat2 }}
{{ if .Vars.WNFWA_000002 }}
Private_firewall_on:
title: 000002 | The Windows Firewall with Advanced Security must be enabled when connected to a private network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD}} -Name EnableFirewall
exit-status: 0
stdout:
- '1'
meta:
Cat: 2
CCI:
- CCI-001414
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241990r698211_rule
STIG_ID: WNFWA-000002
Vul_ID: V-241990
{{ end }}
{{ if .Vars.WNFWA_000003 }}
Public_firewall_on:
title: 000003 | The Windows Firewall with Advanced Security must be enabled when connected to a public network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB }} -Name EnableFirewall
exit-status: 0
stdout:
- '1'
meta:
Cat: 2
CCI:
- CCI-001414
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241991r698214_rule
STIG_ID: WNFWA-000003
Vul_ID: V-241991
{{ end }}
{{ if .Vars.WNFWA_000005 }}
domain_firewall_block_outbound:
title: 000005 The Windows Firewall with Advanced Security must allow outbound connections, unless a rule explicitly blocks the connection when connected to a domain.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_DOM }} -Name DefaultOutboundAction
exit-status: 0
stdout:
- '0'
meta:
Cat: 2
CCI:
- CCI-001094
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241993r698220_rule
STIG_ID: WNFWA-000005
Vul_ID: V-241993
{{ end }}
{{ if .Vars.WNFWA_000013 }}
private_firewall_block_outbound:
title: 000013 | The Windows Firewall with Advanced Security must allow outbound connections, unless a rule explicitly blocks the connection when connected to a private network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD}} -Name DefaultOutboundAction
exit-status: 0
stdout:
- '0'
meta:
Cat: 2
CCI:
- CCI-001094
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-241998r698235_rule
STIG_ID: WNFWA-000013
Vul_ID: V-241998
{{ end }}
{{ if .Vars.WNFWA_000021 }}
public_firewall_block_outbound:
title: 000021 | The Windows Firewall with Advanced Security must allow outbound connections, unless a rule explicitly blocks the connection when connected to a public network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB }} -Name DefaultOutboundAction
exit-status: 0
stdout:
- '0'
meta:
Cat: 2
CCI:
- CCI-001094
Group_Title: SRG-OS-000480-GPOS-00227
Rule_ID: SV-242003r698250_rule
STIG_ID: WNFWA-000021
Vul_ID: V-242003
{{ end }}
{{ end }}
{{ if .Vars.WNFWA_cat3 }}
{{ if .Vars.WNFWA_000009 }}
domain_firewall_logsize:
title: 000009 | The Windows Firewall with Advanced Security log size must be configured for domain connections.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_DOM_LOG }} -Name LogFileSize
exit-status: 0
stdout:
- '/(^16[3-9][8-9][4-9]|1[7-9]\d{3,}|[2-9][0-9]{4,}|[1-9][0-9]{5,})/'
meta:
Cat: 3
CCI:
- CCI-000140
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-241994r698223_rule
STIG_ID: WNFWA-000009
Vul_ID: V-241994
{{ end }}
{{ if .Vars.WNFWA-000010 }}
domain_firewall_log_dropped:
title: 000010| The Windows Firewall with Advanced Security must log dropped packets when connected to a domain.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_DOM_LOG }} -Name LogDroppedPackets
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-000172
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-241995r698226_rule
STIG_ID: WNFWA-000010
Vul_ID: V-241995
{{ end }}
{{ if .Vars.WNFWA-000011}}
domain_firewall_log_success:
title: 000011 | The Windows Firewall with Advanced Security must log successful connections when connected to a domain.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_DOM_LOG }} -Name LogSuccessfulConnections
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-001462
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-241996r698229_rule
STIG_ID: WNFWA-000011
Vul_ID: V-241996
{{ end }}
{{ if .Vars.WNFWA_000017 }}
private_firewall_logsize:
title: 000017 | The Windows Firewall with Advanced Security log size must be configured for private connections.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD_LOG }} -Name LogFileSize
exit-status: 0
stdout:
- '/(^16[3-9][8-9][4-9]|1[7-9]\d{3,}|[2-9][0-9]{4,}|[1-9][0-9]{5,})/'
meta:
Cat: 3
CCI:
- CCI-000140
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-241999r698238_rule
STIG_ID: WNFWA-000017
Vul_ID: V-241999
{{ end }}
private_firewall_log_dropped:
title: 000018| The Windows Firewall with Advanced Security must log dropped packets when connected to a private network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD_LOG }} -Name LogDroppedPackets
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-000172
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-242000r698241_rule
STIG_ID: WNFWA-000018
Vul_ID: V-242000
{{ end }}
{{ if .Vars.WNFWA-000019 }}
private_firewall_log_success:
title: 000019 | The Windows Firewall with Advanced Security must log successful connections when connected to a private network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_STD_LOG }} -Name LogSuccessfulConnections
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-001462
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-242001r698244_rule
STIG_ID: WNFWA-000019
Vul_ID: V-242001
{{ end }}
{{ if .Vars.WNFWA_000027 }}
public_firewall_logsize:
title: 000027 | The Windows Firewall with Advanced Security log size must be configured for public network connections.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB_LOG }} -Name LogFileSize
exit-status: 0
stdout:
- '/(^16[3-9][8-9][4-9]|1[7-9]\d{3,}|[2-9][0-9]{4,}|[1-9][0-9]{5,})/'
meta:
Cat: 3
CCI:
- CCI-000140
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-242006r698259_rule
STIG_ID: WNFWA-000027
Vul_ID: V-242006
{{ end }}
{{ if .Vars.WNFWA-000028 }}
public_firewall_log_dropped:
title: 000028 | The Windows Firewall with Advanced Security must log dropped packets when connected to a public network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB_LOG }} -Name LogDroppedPackets
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-000172
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-242007r698262_rule
STIG_ID: WNFWA-000028
Vul_ID: V-242007
{{ end }}
{{ if .Vars.WNFWA-000029 }}
public_firewall_log_success:
title: 000029 | The Windows Firewall with Advanced Security must log successful connections when connected to a public network.
exec: {{ .Vars.ps_regcheck }} {{ .Vars.HKLM_SHARED_FW_PUB_LOG }} -Name LogSuccessfulConnections
exit-status: 0
stdout:
- '1'
meta:
Cat: 3
CCI:
- CCI-001462
Group_Title: SRG-OS-000327-GPOS-00127
Rule_ID: SV-242008r698265_rule
STIG_ID: WNFWA-000029
Vul_ID: V-242008
{{ end }}
{{ end }}