-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
UserRightsAssignment_AINE.json
427 lines (427 loc) · 19.8 KB
/
UserRightsAssignment_AINE.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
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
422
423
424
425
426
427
{
"properties": {
"displayName": "Windows machines should meet requirements for 'User Rights Assignment'",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Windows machines should have the specified Group Policy settings in the category 'User Rights Assignment' for allowing log on locally, RDP, access from the network, and many other user activities. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.",
"metadata": {
"category": "Guest Configuration",
"version": "3.0.0",
"requiredProviders": [
"Microsoft.GuestConfiguration"
],
"guestConfiguration": {
"name": "AzureBaseline_UserRightsAssignment",
"version": "1.*",
"configurationParameter": {
"UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": "Access this computer from the network;ExpectedValue",
"UsersOrGroupsThatMayLogOnLocally": "Allow log on locally;ExpectedValue",
"UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": "Allow log on through Remote Desktop Services;ExpectedValue",
"UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": "Deny access to this computer from the network;ExpectedValue",
"UsersOrGroupsThatMayManageAuditingAndSecurityLog": "Manage auditing and security log;ExpectedValue",
"UsersOrGroupsThatMayBackUpFilesAndDirectories": "Back up files and directories;ExpectedValue",
"UsersOrGroupsThatMayChangeTheSystemTime": "Change the system time;ExpectedValue",
"UsersOrGroupsThatMayChangeTheTimeZone": "Change the time zone;ExpectedValue",
"UsersOrGroupsThatMayCreateATokenObject": "Create a token object;ExpectedValue",
"UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": "Deny log on as a batch job;ExpectedValue",
"UsersAndGroupsThatAreDeniedLoggingOnAsAService": "Deny log on as a service;ExpectedValue",
"UsersAndGroupsThatAreDeniedLocalLogon": "Deny log on locally;ExpectedValue",
"UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": "Deny log on through Remote Desktop Services;ExpectedValue",
"UserAndGroupsThatMayForceShutdownFromARemoteSystem": "Force shutdown from a remote system;ExpectedValue",
"UsersAndGroupsThatMayRestoreFilesAndDirectories": "Restore files and directories;ExpectedValue",
"UsersAndGroupsThatMayShutDownTheSystem": "Shut down the system;ExpectedValue",
"UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": "Take ownership of files or other objects;ExpectedValue"
}
}
},
"version": "3.0.0",
"parameters": {
"IncludeArcMachines": {
"type": "string",
"metadata": {
"displayName": "Include Arc connected servers",
"description": "By selecting this option, you agree to be charged monthly per Arc connected machine.",
"portalReview": "true"
},
"allowedValues": [
"true",
"false"
],
"defaultValue": "false"
},
"UsersOrGroupsThatMayAccessThisComputerFromTheNetwork": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may access this computer from the network",
"description": "Specifies which remote users on the network are permitted to connect to the computer. This does not include Remote Desktop Connection."
},
"defaultValue": "Administrators, Authenticated Users"
},
"UsersOrGroupsThatMayLogOnLocally": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may log on locally",
"description": "Specifies which users or groups can interactively log on to the computer. Users who attempt to log on via Remote Desktop Connection or IIS also require this user right."
},
"defaultValue": "Administrators"
},
"UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may log on through Remote Desktop Services",
"description": "Specifies which users or groups are permitted to log on as a Terminal Services client, Remote Desktop, or for Remote Assistance."
},
"defaultValue": "Administrators, Remote Desktop Users"
},
"UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork": {
"type": "string",
"metadata": {
"displayName": "Users and groups that are denied access to this computer from the network",
"description": "Specifies which users or groups are explicitly prohibited from connecting to the computer across the network."
},
"defaultValue": "Guests"
},
"UsersOrGroupsThatMayManageAuditingAndSecurityLog": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may manage auditing and security log",
"description": "Specifies users and groups permitted to change the auditing options for files and directories and clear the Security log."
},
"defaultValue": "Administrators"
},
"UsersOrGroupsThatMayBackUpFilesAndDirectories": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may back up files and directories",
"description": "Specifies users and groups allowed to circumvent file and directory permissions to back up the system."
},
"defaultValue": "Administrators, Backup Operators"
},
"UsersOrGroupsThatMayChangeTheSystemTime": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may change the system time",
"description": "Specifies which users and groups are permitted to change the time and date on the internal clock of the computer."
},
"defaultValue": "Administrators, LOCAL SERVICE"
},
"UsersOrGroupsThatMayChangeTheTimeZone": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may change the time zone",
"description": "Specifies which users and groups are permitted to change the time zone of the computer."
},
"defaultValue": "Administrators, LOCAL SERVICE"
},
"UsersOrGroupsThatMayCreateATokenObject": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may create a token object",
"description": "Specifies which users and groups are permitted to create an access token, which may provide elevated rights to access sensitive data."
},
"defaultValue": "No One"
},
"UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob": {
"type": "string",
"metadata": {
"displayName": "Users and groups that are denied logging on as a batch job",
"description": "Specifies which users and groups are explicitly not permitted to log on to the computer as a batch job (i.e. scheduled task)."
},
"defaultValue": "Guests"
},
"UsersAndGroupsThatAreDeniedLoggingOnAsAService": {
"type": "string",
"metadata": {
"displayName": "Users and groups that are denied logging on as a service",
"description": "Specifies which service accounts are explicitly not permitted to register a process as a service."
},
"defaultValue": "Guests"
},
"UsersAndGroupsThatAreDeniedLocalLogon": {
"type": "string",
"metadata": {
"displayName": "Users and groups that are denied local logon",
"description": "Specifies which users and groups are explicitly not permitted to log on to the computer."
},
"defaultValue": "Guests"
},
"UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices": {
"type": "string",
"metadata": {
"displayName": "Users and groups that are denied log on through Remote Desktop Services",
"description": "Specifies which users and groups are explicitly not permitted to log on to the computer via Terminal Services/Remote Desktop Client."
},
"defaultValue": "Guests"
},
"UserAndGroupsThatMayForceShutdownFromARemoteSystem": {
"type": "string",
"metadata": {
"displayName": "User and groups that may force shutdown from a remote system",
"description": "Specifies which users and groups are permitted to shut down the computer from a remote location on the network."
},
"defaultValue": "Administrators"
},
"UsersAndGroupsThatMayRestoreFilesAndDirectories": {
"type": "string",
"metadata": {
"displayName": "Users and groups that may restore files and directories",
"description": "Specifies which users and groups are permitted to bypass file, directory, registry, and other persistent object permissions when restoring backed up files and directories."
},
"defaultValue": "Administrators, Backup Operators"
},
"UsersAndGroupsThatMayShutDownTheSystem": {
"type": "string",
"metadata": {
"displayName": "Users and groups that may shut down the system",
"description": "Specifies which users and groups who are logged on locally to the computers in your environment are permitted to shut down the operating system with the Shut Down command."
},
"defaultValue": "Administrators"
},
"UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects": {
"type": "string",
"metadata": {
"displayName": "Users or groups that may take ownership of files or other objects",
"description": "Specifies which users and groups are permitted to take ownership of files, folders, registry keys, processes, or threads. This user right bypasses any permissions that are in place to protect objects to give ownership to the specified user."
},
"defaultValue": "Administrators"
},
"effect": {
"type": "string",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of this policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
},
"policyRule": {
"if": {
"anyOf": [
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/virtualMachines"
},
{
"anyOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"in": [
"esri",
"incredibuild",
"MicrosoftDynamicsAX",
"MicrosoftSharepoint",
"MicrosoftVisualStudio",
"MicrosoftWindowsDesktop",
"MicrosoftWindowsServerHPCPack"
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "MicrosoftWindowsServer"
},
{
"field": "Microsoft.Compute/imageSKU",
"notLike": "2008*"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "MicrosoftSQLServer"
},
{
"field": "Microsoft.Compute/imageOffer",
"notLike": "SQL2008*"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "microsoft-dsvm"
},
{
"field": "Microsoft.Compute/imageOffer",
"like": "dsvm-win*"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "microsoft-ads"
},
{
"field": "Microsoft.Compute/imageOffer",
"in": [
"standard-data-science-vm",
"windows-data-science-vm"
]
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "batch"
},
{
"field": "Microsoft.Compute/imageOffer",
"equals": "rendering-windows2016"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "center-for-internet-security-inc"
},
{
"field": "Microsoft.Compute/imageOffer",
"like": "cis-windows-server-201*"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "pivotal"
},
{
"field": "Microsoft.Compute/imageOffer",
"like": "bosh-windows-server*"
}
]
},
{
"allOf": [
{
"field": "Microsoft.Compute/imagePublisher",
"equals": "cloud-infrastructure-services"
},
{
"field": "Microsoft.Compute/imageOffer",
"like": "ad*"
}
]
},
{
"allOf": [
{
"anyOf": [
{
"field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration",
"exists": "true"
},
{
"field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType",
"like": "Windows*"
}
]
},
{
"anyOf": [
{
"field": "Microsoft.Compute/imageSKU",
"exists": "false"
},
{
"allOf": [
{
"field": "Microsoft.Compute/imageSKU",
"notLike": "2008*"
},
{
"field": "Microsoft.Compute/imageOffer",
"notLike": "SQL2008*"
}
]
}
]
}
]
}
]
}
]
},
{
"allOf": [
{
"value": "[parameters('IncludeArcMachines')]",
"equals": "true"
},
{
"anyOf": [
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.HybridCompute/machines"
},
{
"field": "Microsoft.HybridCompute/imageOffer",
"like": "windows*"
}
]
},
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines"
},
{
"field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType",
"like": "windows*"
}
]
}
]
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
"name": "AzureBaseline_UserRightsAssignment",
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
"equals": "Compliant"
},
{
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
"equals": "[base64(concat('Access this computer from the network;ExpectedValue', '=', parameters('UsersOrGroupsThatMayAccessThisComputerFromTheNetwork'), ',', 'Allow log on locally;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnLocally'), ',', 'Allow log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersOrGroupsThatMayLogOnThroughRemoteDesktopServices'), ',', 'Deny access to this computer from the network;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedAccessToThisComputerFromTheNetwork'), ',', 'Manage auditing and security log;ExpectedValue', '=', parameters('UsersOrGroupsThatMayManageAuditingAndSecurityLog'), ',', 'Back up files and directories;ExpectedValue', '=', parameters('UsersOrGroupsThatMayBackUpFilesAndDirectories'), ',', 'Change the system time;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheSystemTime'), ',', 'Change the time zone;ExpectedValue', '=', parameters('UsersOrGroupsThatMayChangeTheTimeZone'), ',', 'Create a token object;ExpectedValue', '=', parameters('UsersOrGroupsThatMayCreateATokenObject'), ',', 'Deny log on as a batch job;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsABatchJob'), ',', 'Deny log on as a service;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLoggingOnAsAService'), ',', 'Deny log on locally;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLocalLogon'), ',', 'Deny log on through Remote Desktop Services;ExpectedValue', '=', parameters('UsersAndGroupsThatAreDeniedLogOnThroughRemoteDesktopServices'), ',', 'Force shutdown from a remote system;ExpectedValue', '=', parameters('UserAndGroupsThatMayForceShutdownFromARemoteSystem'), ',', 'Restore files and directories;ExpectedValue', '=', parameters('UsersAndGroupsThatMayRestoreFilesAndDirectories'), ',', 'Shut down the system;ExpectedValue', '=', parameters('UsersAndGroupsThatMayShutDownTheSystem'), ',', 'Take ownership of files or other objects;ExpectedValue', '=', parameters('UsersOrGroupsThatMayTakeOwnershipOfFilesOrOtherObjects')))]"
}
]
}
}
}
},
"versions": [
"3.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/e068b215-0026-4354-b347-8fb2766f73a2",
"name": "e068b215-0026-4354-b347-8fb2766f73a2"
}