/
section_1_1_1.sp
421 lines (397 loc) · 15.8 KB
/
section_1_1_1.sp
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
locals {
cis_v100_1_1_1_common_tags = merge(local.cis_v100_1_1_common_tags, {
cis_section_id = "1.1.1"
})
}
locals {
cis_v100_1_1_1_1_common_tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_section_id = "1.1.1.1"
})
}
benchmark "cis_v100_1_1_1" {
title = "1.1.1 Security"
children = [
benchmark.cis_v100_1_1_1_1,
control.cis_v100_1_1_1_2,
control.cis_v100_1_1_1_3,
control.cis_v100_1_1_1_4,
control.cis_v100_1_1_1_5,
control.cis_v100_1_1_1_6,
control.cis_v100_1_1_1_7,
control.cis_v100_1_1_1_8,
control.cis_v100_1_1_1_9,
control.cis_v100_1_1_1_10,
control.cis_v100_1_1_1_11,
]
tags = merge(local.cis_v100_1_1_1_common_tags, {
service = "Zoom/Meeting"
type = "Benchmark"
})
}
benchmark "cis_v100_1_1_1_1" {
title = "1.1.1.1 Passcode Requirement"
children = [
control.cis_v100_1_1_1_1_1,
control.cis_v100_1_1_1_1_2,
control.cis_v100_1_1_1_1_3,
control.cis_v100_1_1_1_1_4,
control.cis_v100_1_1_1_1_5,
control.cis_v100_1_1_1_1_6,
control.cis_v100_1_1_1_1_7,
control.cis_v100_1_1_1_1_8,
]
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
type = "Benchmark"
})
}
control "cis_v100_1_1_1_1_1" {
title = "1.1.1.1.1 Ensure minimum passcode length is set to at least 6 characters (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. Minimum passcode length must be at least 6 characters."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.1"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'length')::int >= 6 then 'ok'
else 'alarm'
end as status,
'Minimum passcode length set to ' || (meeting_security -> 'meeting_password_requirement' ->> 'length') || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_2" {
title = "1.1.1.1.2 Ensure passcode is set to have at least 1 letter (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. As per passcode requirements, have at least 1 letter (a, b, c...). This shall make the passcode strong."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.2"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'have_letter')::bool then 'ok'
else 'alarm'
end as status,
'Have at least 1 letter setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'have_letter')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_3" {
title = "1.1.1.1.3 Ensure passcode is set to have at least 1 number (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. As per passcode requirements, Have at least 1 number (1, 2, 3...). This shall make the passcode strong."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.3"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'have_number')::bool then 'ok'
else 'alarm'
end as status,
'Have at least 1 number setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'have_number')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_4" {
title = "1.1.1.1.4 Ensure passcode is set to have at least 1 special character (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. As per passcode requirements, Have at least 1 special character (!, @, #...). This shall make the passcode strong."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.4"
cis_type = "manual"
cis_level = 2
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'have_special_character')::bool then 'ok'
else 'alarm'
end as status,
'Have special character setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'have_special_character')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_5" {
title = "1.1.1.1.5 Ensure passcode include both uppercase and lowercase characters is set to enabled (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. As per passcode requirements, Include both uppercase and lowercase characters. This shall make the passcode strong."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.5"
cis_type = "manual"
cis_level = 2
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'have_upper_and_lower_characters')::bool then 'ok'
else 'alarm'
end as status,
'Have uppercase and lowercase characters setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'have_upper_and_lower_characters')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_6" {
title = "1.1.1.1.6 Ensure passcode cannot contain consecutive characters is set to enabled (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. Cannot contain consecutive characters (e.g. \"11111\", \"12345\", \"abcde\", or \"qwert\")."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.6"
cis_type = "manual"
cis_level = 2
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'consecutive_characters_length')::int > 0 then 'ok'
else 'alarm'
end as status,
'Consecutive characters length set to ' || (security -> 'password_requirement' ->> 'consecutive_characters_length') || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_7" {
title = "1.1.1.1.7 Ensure enhanced weak passcode detection is set to enabled (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode can meet. As per passcode requirements, Use enhanced weak passcode detection. This shall make the passcode strong."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.7"
cis_type = "manual"
cis_level = 2
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'weak_enhance_detection')::bool then 'ok'
else 'alarm'
end as status,
'Enhanced weak password detection setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'weak_enhance_detection')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_1_8" {
title = "1.1.1.1.8 Ensure only allow numeric passcode is set to disabled (Manual)"
description = "For security purposes, Zoom has a few requirements that your passcode must meet. As per passcode requirements, Disable \"Only allow numeric passcode”, enabling this shall make the passcode weaker."
tags = merge(local.cis_v100_1_1_1_1_common_tags, {
cis_item_id = "1.1.1.1.8"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password_requirement' -> 'only_allow_numeric')::bool then 'alarm'
else 'ok'
end as status,
'Only allow numeric passcode setting is ' || case when (meeting_security -> 'meeting_password_requirement' -> 'only_allow_numeric')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_2" {
title = "1.1.1.2 Ensure waiting room is set to enabled (Manual)"
description = "When participants join a meeting, place them in a waiting room and require the host to admit them individually. Enabling the waiting room automatically disables the setting for allowing participants to join before host."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.2"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'waiting_room')::bool then 'ok'
else 'alarm'
end as status,
'Waiting room setting is ' || case when (meeting_security -> 'waiting_room')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_3" {
title = "1.1.1.3 Ensure waiting room options is set to everyone (Manual)"
description = "Click on \"Edit Options\" to choose who should go in the waiting room? A) Everyone, B) Users not in your account, C) Users who are not in your account and not part of the allowed domains."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.3"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'waiting_room_settings' -> 'participants_to_place_in_waiting_room')::int = 0 then 'ok'
else 'alarm'
end as status,
'Waiting room is enabled for ' ||
case (meeting_security -> 'waiting_room_settings' -> 'participants_to_place_in_waiting_room')::int
when 1 then 'Users not in your account'
when 2 then 'Users who are not in your account and not part of the allowed domains'
else 'Everyone' -- usually 0
end ||
'.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_4" {
title = "1.1.1.4 Ensure require a passcode when scheduling new meetings is set to enabled (Manual)"
description = "Require a passcode when scheduling new meetings must be set to enabled. A passcode will be generated when scheduling a meeting and participants require the passcode to join the meeting."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.4"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'meeting_password')::bool then 'ok'
else 'alarm'
end as status,
'Meeting password is ' || case when (meeting_security -> 'meeting_password')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_5" {
title = "1.1.1.5 Ensure room meeting ID passcode is set to enabled (Manual)"
description = "All Room Meeting ID meetings that users can join via client, phone, or room systems will be passcode-protected."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.5"
cis_type = "manual"
cis_level = 2
})
sql = query.no_api_available.sql
}
control "cis_v100_1_1_1_6" {
title = "1.1.1.6 Ensure require a password for instant meetings is set to enabled (Manual)"
description = "A random passcode will be generated when starting an instant meeting."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.6"
cis_type = "manual"
cis_level = 1
})
sql = query.no_api_available.sql
}
control "cis_v100_1_1_1_7" {
title = "1.1.1.7 Ensure require a password for Personal Meeting ID (PMI) is set to enabled (Manual)"
description = "Enable \"Require a passcode for Personal Meeting ID (PMI)\" to set a passcode for meetings that use the personal meeting ID (PMI) and then choose \"All meetings using PMI\"."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.7"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'pmi_password')::bool then 'ok'
else 'alarm'
end as status,
'Meeting password is ' || case when (meeting_security -> 'pmi_password')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_8" {
title = "1.1.1.8 Ensure embed password in meeting link for one-click join is set to enabled (Manual)"
description = "Meeting passcode will be encrypted and included in the invite link to allow participants to join with just one click without having to enter the passcode."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.8"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'embed_password_in_join_link')::bool then 'ok'
else 'alarm'
end as status,
'Embed password in meeting link is ' || case when (meeting_security -> 'embed_password_in_join_link')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_9" {
title = "1.1.1.9 Ensure only authenticated users can join meetings is set to enabled (Manual)"
description = "The participants need to authenticate prior to joining the meetings."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.9"
cis_type = "manual"
cis_level = 2
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_authentication -> 'enabled')::bool then 'ok'
else 'alarm'
end as status,
'Only authenticated users can join meetings is ' || case when (meeting_authentication -> 'enabled')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_10" {
title = "1.1.1.10 Ensure require password for participants joining by phone is set to enabled (Manual)"
description = "A numeric passcode will be required for participants joining by phone if your meeting has a passcode. For meeting with an alphanumeric passcode, a numeric version will be generated."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.10"
cis_type = "manual"
cis_level = 1
})
sql = <<-EOQ
select
-- Required Columns
account_id as resource,
case
when (meeting_security -> 'phone_password')::bool then 'ok'
else 'alarm'
end as status,
'Phone password is ' || case when (meeting_security -> 'phone_password')::bool then 'enabled' else 'disabled' end || '.' as reason
from
zoom_account_settings
EOQ
}
control "cis_v100_1_1_1_11" {
title = "1.1.1.11 Ensure only authenticated users can join meetings from Web client is set to enabled (Manual)"
description = "Only authenticated users can join meetings from Web client should be set to enabled. This requires users to authenticate and identify themselves prior to logging in and joining a meeting."
tags = merge(local.cis_v100_1_1_1_common_tags, {
cis_item_id = "1.1.1.11"
cis_type = "manual"
cis_level = 2
})
sql = query.no_api_available.sql
}