-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathacr_checklist.en.json
323 lines (323 loc) · 15.3 KB
/
acr_checklist.en.json
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
{
"items": [
{
"category": "Security",
"subcategory": "Data Protection",
"text": "Disable Azure Container Registry image export",
"description": "Disable image export to prevent data exfiltration. Note that this will prevent image import of images into another ACR instance.",
"waf": "Security",
"service": "ACR",
"guid": "ab91932c-9fc9-4d1b-a880-37f5e6bfcb9e",
"id": "A01.01",
"severity": "High",
"query": "resources | where type =~ 'Microsoft.ContainerRegistry/registries' | extend acrName = name, acrId = id | extend exportPolicyStatus = properties.policies.exportPolicy.status | extend compliant = iif(exportPolicyStatus =~ 'Disabled', true, false) | project acrName, acrId, exportPolicyStatus, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/data-loss-prevention"
},
{
"category": "Security",
"subcategory": "Data Protection",
"text": "Enable Azure Policies for Azure Container Registry",
"description": "Enable audit compliance visibility by enabling Azure Policy for Azure Container Registry",
"waf": "Security",
"service": "ACR",
"guid": "d503547c-d447-4e82-9128-a7100f1cac6d",
"id": "A01.02",
"severity": "High",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-azure-policy"
},
{
"category": "Security",
"subcategory": "Data Protection",
"text": "Sign and Verify containers with notation (Notary v2)",
"description": "The Azure Key Vault (AKV) is used to store a signing key that can be utilized by?notation?with the notation AKV plugin (azure-kv) to sign and verify container images and other artifacts. The Azure Container Registry (ACR) allows you to attach these signatures using the?az?or?oras?CLI commands.",
"waf": "Security",
"service": "ACR",
"guid": "d345293c-7639-4637-a551-c5c04e401955",
"id": "A01.03",
"severity": "High",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-tutorial-sign-build-push"
},
{
"category": "Security",
"subcategory": "Data Protection",
"text": "Encrypt registry with a customer managed key",
"description": "Azure Container Registry automatically encrypts images and other artifacts that you store. By default, Azure automatically encrypts the registry content at rest by using service-managed keys. By using a customer-managed key, you can supplement default encryption with an additional encryption layer.",
"waf": "Security",
"service": "ACR",
"guid": "0bd05dc2-efd5-4d76-8d41-d2500cc47b49",
"id": "A01.04",
"severity": "Medium",
"graph": "resources | where type =~ 'Microsoft.ContainerRegistry/registries' | extend acrName = name, acrId = id | extend encryptionStatus = properties.encryption.status | extend compliant = iif(encryptionStatus == 'disabled', false, true) | project acrName, acrId, encryptionStatus, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/tutorial-customer-managed-keys"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Use Managed Identities to connect instead of Service Principals",
"description": "Use managed identities to secure ACRPull/Push RBAC access from client applications",
"waf": "Security",
"service": "ACR",
"guid": "8f42d78e-79dc-47b3-9bd2-a1a27e7a8e90",
"id": "A02.01",
"severity": "High",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-authentication-managed-identity"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Disable local authentication for management plane access",
"description": "The local Administrator account is disabled by default and should not be enabled. Use either Token or RBAC-based access methods instead",
"waf": "Security",
"service": "ACR",
"guid": "be0e38ce-e297-411b-b363-caaab79b198d",
"id": "A02.02",
"severity": "High",
"graph": "resources | where type =~ 'microsoft.containerregistry/registries' | extend localAdminDisabled = properties.adminUserEnabled // Adjust this property as needed | extend compliant = iif(localAdminDisabled == 'false', true, false) // Check if local admin is disabled | project compliant, name, id, tags | distinct id, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-authentication-managed-identity"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Assign AcrPull & AcrPush RBAC roles rather than granting Administrative access to identity principals",
"description": "Disable Administrator account and assign RBAC roles to principals for ACR Pull/Push operations",
"waf": "Security",
"service": "ACR",
"guid": "387e5ced-126c-4d13-8af5-b20c6998a646",
"id": "A02.03",
"severity": "High",
"graph": "resources | where type =~ 'microsoft.containerregistry/registries' | extend localAdminDisabled = properties.adminUserEnabled // Adjust this property as needed | extend compliant = iif(localAdminDisabled == 'false', true, false) // Check if local admin is disabled | project compliant, name, id, tags | distinct id, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-roles?tabs=azure-cli"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Disable Anonymous pull access",
"description": "Disable anonymous pull/push access",
"waf": "Security",
"service": "ACR",
"guid": "e338997e-41c7-47d7-acf6-a62a1194956d",
"id": "A02.04",
"severity": "Medium",
"graph": "resources | where type =~ 'microsoft.containerregistry/registries' | extend compliant = iif(properties.anonymousPullEnabled == false, true, false) | project compliant, name, id, tags | distinct id, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/anonymous-pull-access#configure-anonymous-pull-access"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Disable repository-scoped access tokens",
"description": "Token authentication doesn't support assignment to an AAD principal. Any tokens provided are able to be used by anyone who can access the token",
"waf": "Security",
"service": "ACR",
"guid": "698dc3a2-fd27-4b2e-8870-1a1252beedf6",
"id": "A02.05",
"severity": "High",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-authentication?tabs=azure-cli"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Deploy images from a trusted environment",
"description": "Deploy container images to an ACR behind a Private endpoint within a trusted network",
"waf": "Security",
"service": "ACR",
"guid": "b3bec3d4-f343-47c1-936d-b55f27a71eee",
"id": "A02.06",
"severity": "High"
},
{
"category": "Security",
"subcategory": "Identity and Access Control",
"text": "Disable Azure ARM audience tokens for authentication",
"description": "Only tokens with an ACR audience can be used for authentication. Used when enabling Conditional access policies for ACR",
"waf": "Security",
"service": "ACR",
"guid": "3a041fd3-2947-498b-8288-b3c6a56ceb54",
"id": "A02.07",
"severity": "Medium",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-enable-conditional-access-policy"
},
{
"category": "Security",
"subcategory": "Logging and Monitoring",
"text": "Enable diagnostics logging",
"description": "Set up a diagnostic setting to send 'repositoryEvents' & 'LoginEvents' to Log Analytics as the central destination for logging and monitoring. This allows you to monitor control plane activity on the ACR resource itself.",
"waf": "Security",
"service": "ACR",
"guid": "8a488cde-c486-42bc-9bd2-1be77f26e5e6",
"id": "A03.01",
"severity": "Medium",
"link": "https://learn.microsoft.com/azure/container-registry/monitor-service"
},
{
"category": "Security",
"subcategory": "Network Security",
"text": "Control inbound network access with Private Link",
"description": "Service supports disabling public network access either through using service-level IP ACL filtering rule (not NSG or Azure Firewall) or using a 'Disable Public Network Access' toggle switch",
"waf": "Security",
"service": "ACR",
"guid": "21d41d25-00b7-407a-b9ea-b40fd3290798",
"id": "A04.01",
"severity": "Medium",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-private-link"
},
{
"category": "Security",
"subcategory": "Network Security",
"text": "Disable Public Network access",
"description": "Disable public network access if inbound network access is secured using Private Link",
"waf": "Security",
"service": "ACR",
"guid": "cd289ced-6b17-4db8-8554-62f2aee4553a",
"id": "A04.02",
"severity": "Medium",
"graph": "resources | where type =~ 'Microsoft.ContainerRegistry/registries' | where sku.name =~ 'Premium' // Check for Premium SKU | extend publicAccessEnabled = properties.publicNetworkAccess | extend defaultAction = tostring(properties.networkRuleSet.defaultAction) // Extract defaultAction | extend compliant = iif(publicAccessEnabled != 'Enabled' or defaultAction == 'Deny', true, false) | project name, id, publicAccessEnabled, defaultAction, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-access-selected-networks#disable-public-network-access"
},
{
"category": "Security",
"subcategory": "Network Security",
"text": "Use an Azure Container Registry SKU that supports Private Link (Premium SKU)",
"description": "Only the ACR Premium SKU supports Private Link access",
"waf": "Security",
"service": "ACR",
"guid": "fc833934-8b26-42d6-ac5f-512925498f6d",
"id": "A04.03",
"severity": "Medium",
"graph": "resources | where type =~ 'Microsoft.ContainerRegistry/registries' | extend skuName = sku.name // Extract the SKU name | extend compliant = iif(skuName == 'Premium', true, false) // Check if SKU is Premium | project name, id, skuName, compliant",
"link": "https://learn.microsoft.com/azure/container-registry/container-registry-skus"
},
{
"category": "Security",
"subcategory": "Network Security",
"text": "Enable Defender for Containers to scan Azure Container Registry for vulnerabilities",
"description": "Azure Defender for containers or equivalent service should be used to scan container images for vulnerabilities",
"waf": "Security",
"service": "ACR",
"guid": "bad37dac-43bc-46ce-8d7a-a9b24604489a",
"id": "A04.04",
"severity": "Low",
"link": "https://learn.microsoft.com/azure/defender-for-cloud/defender-for-containers-introduction"
},
{
"category": "Security",
"subcategory": "Vulnerability Management",
"text": "Deploy validated container images",
"description": "Deploy trusted code that was validated and scanned for vulnerabilities according to DevSecOps practices.",
"waf": "Security",
"service": "ACR",
"guid": "4451e1a2-d345-4293-a763-9637a551c5c0",
"id": "A05.01",
"severity": "Medium"
},
{
"category": "Security",
"subcategory": "Vulnerability Management",
"text": "Use up-to-date platforms, languages, protocols and frameworks",
"description": "Use the latest versions of supported platforms, programming languages, protocols, and frameworks.",
"waf": "Security",
"service": "ACR",
"guid": "4e401955-387e-45ce-b126-cd132af5b20c",
"id": "A05.02",
"severity": "High"
}
],
"categories": [
{
"name": "Security"
},
{
"name": "Network topology and connectivity"
},
{
"name": "Operations management"
},
{
"name": "Platform Automation"
},
{
"name": "Security"
},
{
"name": "Ledger"
},
{
"name": "Logging"
},
{
"name": "Networking"
},
{
"name": "Data Discovery and Classification"
},
{
"name": "Data Masking"
},
{
"name": "Code"
}
],
"waf": [
{
"name": "Reliability"
},
{
"name": "Security"
},
{
"name": "Cost"
},
{
"name": "Operations"
},
{
"name": "Performance"
}
],
"yesno": [
{
"name": "Yes"
},
{
"name": "No"
}
],
"status": [
{
"name": "Not verified",
"description": "This check has not been looked at yet"
},
{
"name": "Open",
"description": "There is an action item associated to this check"
},
{
"name": "Fulfilled",
"description": "This check has been verified, and there are no further action items associated to it"
},
{
"name": "N/A",
"description": "Not applicable for current design"
},
{
"name": "Not required",
"description": "Not required"
}
],
"severities": [
{
"name": "High"
},
{
"name": "Medium"
},
{
"name": "Low"
}
],
"metadata": {
"name": "Azure Container Registry Security Review",
"waf": "security",
"state": "Preview",
"timestamp": "October 23, 2024"
}
}