/
section_2.sp
243 lines (210 loc) · 9.55 KB
/
section_2.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
locals {
cis_v140_2_common_tags = merge(local.cis_v140_common_tags, {
cis_section_id = "2"
})
}
benchmark "cis_v140_2" {
title = "2 Microsoft Defender for Cloud"
documentation = file("./cis_v140/docs/cis_v140_2.md")
children = [
control.cis_v140_2_1,
control.cis_v140_2_2,
control.cis_v140_2_3,
control.cis_v140_2_4,
control.cis_v140_2_5,
control.cis_v140_2_6,
control.cis_v140_2_7,
control.cis_v140_2_8,
control.cis_v140_2_9,
control.cis_v140_2_10,
control.cis_v140_2_11,
control.cis_v140_2_12,
control.cis_v140_2_13,
control.cis_v140_2_14,
control.cis_v140_2_15
]
tags = merge(local.cis_v140_2_common_tags, {
type = "Benchmark"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_1" {
title = "2.1 Ensure that Microsoft Defender for Servers is set to 'On'"
description = "Turning on Microsoft Defender for Servers enables threat detection for Servers, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_server
documentation = file("./cis_v140/docs/cis_v140_2_1.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.1"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_2" {
title = "2.2 Ensure that Microsoft Defender for App Service is set to 'On'"
description = "Turning on Microsoft Defender for App Service enables threat detection for App Service, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_appservice
documentation = file("./cis_v140/docs/cis_v140_2_2.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.2"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_3" {
title = "2.3 Ensure that Microsoft Defender for Azure SQL Databases is set to 'On'"
description = "Turning on Microsoft Defender for Azure SQL Databases enables threat detection for Azure SQL database servers, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_sqldb
documentation = file("./cis_v140/docs/cis_v140_2_3.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.3"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_4" {
title = "2.4 Ensure that Microsoft Defender for SQL servers on machines is set to 'On'"
description = "Turning on Microsoft Defender for SQL servers on machines enables threat detection for SQL servers on machines, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_sqlservervm
documentation = file("./cis_v140/docs/cis_v140_2_4.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.4"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_5" {
title = "2.5 Ensure that Microsoft Defender for Storage is set to 'On'"
description = "Turning on Microsoft Defender for Storage enables threat detection for Storage, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_storage
documentation = file("./cis_v140/docs/cis_v140_2_5.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.5"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_6" {
title = "2.6 Ensure that Microsoft Defender for Kubernetes is set to 'On'"
description = "Turning on Microsoft Defender for Kubernetes enables threat detection for Kubernetes, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_k8s
documentation = file("./cis_v140/docs/cis_v140_2_6.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.6"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_7" {
title = "2.7 Ensure that Microsoft Defender for Container Registries is set to 'On'"
description = "Turning on Microsoft Defender for Container Registries enables threat detection for Container Registries, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_containerregistry
documentation = file("./cis_v140/docs/cis_v140_2_7.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.7"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_8" {
title = "2.8 Ensure that Microsoft Defender for Key Vault is set to 'On'"
description = "Turning on Microsoft Defender for Key Vault enables threat detection for Key Vault, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud."
query = query.securitycenter_azure_defender_on_for_keyvault
documentation = file("./cis_v140/docs/cis_v140_2_8.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.8"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_9" {
title = "2.9 Ensure that Microsoft Defender for Endpoint (WDATP) integration with Microsoft Defender for Cloud is selected"
description = "This setting enables Microsoft Defender for Endpoint integration with Microsoft Defender for Cloud."
query = query.securitycenter_wdatp_integration
documentation = file("./cis_v140/docs/cis_v140_2_9.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.9"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_10" {
title = "2.10 Ensure that Microsoft Defender for Cloud Apps (MCAS) Integration with Microsoft Defender for Cloud is Selected"
description = "This setting enables Microsoft Defender for Cloud Apps (MCAS) integration with Microsoft Defender for Cloud."
query = query.securitycenter_mcas_integration
documentation = file("./cis_v140/docs/cis_v140_2_10.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.10"
cis_type = "manual"
cis_level = "2"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_11" {
title = "2.11 Ensure That Auto provisioning of 'Log Analytics agent for Azure VMs' is Set to 'On'"
description = "Enable automatic provisioning of the monitoring agent to collect security data."
query = query.securitycenter_automatic_provisioning_monitoring_agent_on
documentation = file("./cis_v140/docs/cis_v140_2_11.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.11"
cis_type = "automated"
cis_level = "1"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_12" {
title = "2.12 Ensure Any of the ASC Default Policy Setting is Not Set to 'Disabled'"
description = "None of the settings offered by ASC Default policy should be set to effect \"Disabled\"."
query = query.securitycenter_asc_default_setting_not_disabled
documentation = file("./cis_v140/docs/cis_v140_2_12.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.12"
cis_type = "automated"
cis_level = "1"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_13" {
title = "2.13 Ensure 'Additional email addresses' is Configured with a Security Contact Email"
description = "Microsoft Defender for Cloud emails the subscription owners whenever a high-severity alert is triggered for their subscription. You should provide a security contact email address as an additional email address."
query = query.securitycenter_additional_email_configured
documentation = file("./cis_v140/docs/cis_v140_2_13.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.13"
cis_type = "automated"
cis_level = "1"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_14" {
title = "2.14 Ensure that 'Notify about alerts with the following severity' is set to 'High'"
description = "Enables emailing security alerts to the subscription owner or other designated security contact."
query = query.securitycenter_notify_alerts_configured
documentation = file("./cis_v140/docs/cis_v140_2_14.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.14"
cis_type = "automated"
cis_level = "1"
service = "Azure/SecurityCenter"
})
}
control "cis_v140_2_15" {
title = "2.15 Ensure that 'All users with the following roles' is set to 'Owner'"
description = "Enable security alert emails to subscription owners."
query = query.securitycenter_security_alerts_to_owner_enabled
documentation = file("./cis_v140/docs/cis_v140_2_15.md")
tags = merge(local.cis_v140_2_common_tags, {
cis_item_id = "2.15"
cis_type = "automated"
cis_level = "1"
service = "Azure/SecurityCenter"
})
}