-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
WindowsComponents_AINE.json
454 lines (454 loc) · 20.8 KB
/
WindowsComponents_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
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
{
"properties": {
"displayName": "Windows machines should meet requirements for 'Windows Components'",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Windows machines should have the specified Group Policy settings in the category 'Windows Components' for basic authentication, unencrypted traffic, Microsoft accounts, telemetry, Cortana, and other Windows behaviors. 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_WindowsComponents",
"version": "1.*",
"configurationParameter": {
"SendFileSamplesWhenFurtherAnalysisIsRequired": "Send file samples when further analysis is required;ExpectedValue",
"AllowIndexingOfEncryptedFiles": "Allow indexing of encrypted files;ExpectedValue",
"AllowTelemetry": "Allow Telemetry;ExpectedValue",
"AllowUnencryptedTraffic": "Allow unencrypted traffic;ExpectedValue",
"AlwaysInstallWithElevatedPrivileges": "Always install with elevated privileges;ExpectedValue",
"AlwaysPromptForPasswordUponConnection": "Always prompt for password upon connection;ExpectedValue",
"ApplicationSpecifyTheMaximumLogFileSizeKB": "Application: Specify the maximum log file size (KB);ExpectedValue",
"AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": "Automatically send memory dumps for OS-generated error reports;ExpectedValue",
"ConfigureDefaultConsent": "Configure Default consent;ExpectedValue",
"ConfigureWindowsSmartScreen": "Configure Windows SmartScreen;ExpectedValue",
"DisallowDigestAuthentication": "Disallow Digest authentication;ExpectedValue",
"DisallowWinRMFromStoringRunAsCredentials": "Disallow WinRM from storing RunAs credentials;ExpectedValue",
"DoNotAllowPasswordsToBeSaved": "Do not allow passwords to be saved;ExpectedValue",
"SecuritySpecifyTheMaximumLogFileSizeKB": "Security: Specify the maximum log file size (KB);ExpectedValue",
"SetClientConnectionEncryptionLevel": "Set client connection encryption level;ExpectedValue",
"SetTheDefaultBehaviorForAutoRun": "Set the default behavior for AutoRun;ExpectedValue",
"SetupSpecifyTheMaximumLogFileSizeKB": "Setup: Specify the maximum log file size (KB);ExpectedValue",
"SystemSpecifyTheMaximumLogFileSizeKB": "System: Specify the maximum log file size (KB);ExpectedValue",
"TurnOffDataExecutionPreventionForExplorer": "Turn off Data Execution Prevention for Explorer;ExpectedValue",
"SpecifyTheIntervalToCheckForDefinitionUpdates": "Specify the interval to check for definition updates;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"
},
"SendFileSamplesWhenFurtherAnalysisIsRequired": {
"type": "string",
"metadata": {
"displayName": "Send file samples when further analysis is required",
"description": "Specifies whether and how Windows Defender will submit samples of suspected malware to Microsoft for further analysis when opt-in for MAPS telemetry is set."
},
"defaultValue": "1"
},
"AllowIndexingOfEncryptedFiles": {
"type": "string",
"metadata": {
"displayName": "Allow indexing of encrypted files",
"description": "Specifies whether encrypted items are allowed to be indexed."
},
"defaultValue": "0"
},
"AllowTelemetry": {
"type": "string",
"metadata": {
"displayName": "Allow Telemetry",
"description": "Specifies configuration of the amount of diagnostic and usage data reported to Microsoft. The data is transmitted securely and sensitive data is not sent."
},
"defaultValue": "2"
},
"AllowUnencryptedTraffic": {
"type": "string",
"metadata": {
"displayName": "Allow unencrypted traffic",
"description": "Specifies whether the Windows Remote Management (WinRM) service sends and receives unencrypted messages over the network."
},
"defaultValue": "0"
},
"AlwaysInstallWithElevatedPrivileges": {
"type": "string",
"metadata": {
"displayName": "Always install with elevated privileges",
"description": "Specifies whether Windows Installer should use system permissions when it installs any program on the system."
},
"defaultValue": "0"
},
"AlwaysPromptForPasswordUponConnection": {
"type": "string",
"metadata": {
"displayName": "Always prompt for password upon connection",
"description": "Specifies whether Terminal Services/Remote Desktop Connection always prompts the client computer for a password upon connection."
},
"defaultValue": "1"
},
"ApplicationSpecifyTheMaximumLogFileSizeKB": {
"type": "string",
"metadata": {
"displayName": "Application: Specify the maximum log file size (KB)",
"description": "Specifies the maximum size for the Application event log in kilobytes."
},
"defaultValue": "32768"
},
"AutomaticallySendMemoryDumpsForOSgeneratedErrorReports": {
"type": "string",
"metadata": {
"displayName": "Automatically send memory dumps for OS-generated error reports",
"description": "Specifies if memory dumps in support of OS-generated error reports can be sent to Microsoft automatically."
},
"defaultValue": "1"
},
"ConfigureDefaultConsent": {
"type": "string",
"metadata": {
"displayName": "Configure Default consent",
"description": "Specifies setting of the default consent handling for error reports sent to Microsoft."
},
"defaultValue": "4"
},
"ConfigureWindowsSmartScreen": {
"type": "string",
"metadata": {
"displayName": "Configure Windows SmartScreen",
"description": "Specifies how to manage the behavior of Windows SmartScreen. Windows SmartScreen helps keep PCs safer by warning users before running unrecognized programs downloaded from the Internet. Some information is sent to Microsoft about files and programs run on PCs with this feature enabled."
},
"defaultValue": "1"
},
"DisallowDigestAuthentication": {
"type": "string",
"metadata": {
"displayName": "Disallow Digest authentication",
"description": "Specifies whether the Windows Remote Management (WinRM) client will not use Digest authentication."
},
"defaultValue": "0"
},
"DisallowWinRMFromStoringRunAsCredentials": {
"type": "string",
"metadata": {
"displayName": "Disallow WinRM from storing RunAs credentials",
"description": "Specifies whether the Windows Remote Management (WinRM) service will not allow RunAs credentials to be stored for any plug-ins."
},
"defaultValue": "1"
},
"DoNotAllowPasswordsToBeSaved": {
"type": "string",
"metadata": {
"displayName": "Do not allow passwords to be saved",
"description": "Specifies whether to prevent Remote Desktop Services - Terminal Services clients from saving passwords on a computer."
},
"defaultValue": "1"
},
"SecuritySpecifyTheMaximumLogFileSizeKB": {
"type": "string",
"metadata": {
"displayName": "Security: Specify the maximum log file size (KB)",
"description": "Specifies the maximum size for the Security event log in kilobytes."
},
"defaultValue": "196608"
},
"SetClientConnectionEncryptionLevel": {
"type": "string",
"metadata": {
"displayName": "Set client connection encryption level",
"description": "Specifies whether to require the use of a specific encryption level to secure communications between client computers and RD Session Host servers during Remote Desktop Protocol (RDP) connections. This policy only applies when you are using native RDP encryption."
},
"defaultValue": "3"
},
"SetTheDefaultBehaviorForAutoRun": {
"type": "string",
"metadata": {
"displayName": "Set the default behavior for AutoRun",
"description": "Specifies the default behavior for Autorun commands. Autorun commands are generally stored in autorun.inf files. They often launch the installation program or other routines."
},
"defaultValue": "1"
},
"SetupSpecifyTheMaximumLogFileSizeKB": {
"type": "string",
"metadata": {
"displayName": "Setup: Specify the maximum log file size (KB)",
"description": "Specifies the maximum size for the Setup event log in kilobytes."
},
"defaultValue": "32768"
},
"SystemSpecifyTheMaximumLogFileSizeKB": {
"type": "string",
"metadata": {
"displayName": "System: Specify the maximum log file size (KB)",
"description": "Specifies the maximum size for the System event log in kilobytes."
},
"defaultValue": "32768"
},
"TurnOffDataExecutionPreventionForExplorer": {
"type": "string",
"metadata": {
"displayName": "Turn off Data Execution Prevention for Explorer",
"description": "Specifies whether to turn off Data Execution Prevention for Windows File Explorer. Disabling data execution prevention can allow certain legacy plug-in applications to function without terminating Explorer."
},
"defaultValue": "0"
},
"SpecifyTheIntervalToCheckForDefinitionUpdates": {
"type": "string",
"metadata": {
"displayName": "Specify the interval to check for definition updates",
"description": "Specifies an interval at which to check for Windows Defender definition updates. The time value is represented as the number of hours between update checks."
},
"defaultValue": "8"
},
"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_WindowsComponents",
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
"equals": "Compliant"
},
{
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash",
"equals": "[base64(concat('Send file samples when further analysis is required;ExpectedValue', '=', parameters('SendFileSamplesWhenFurtherAnalysisIsRequired'), ',', 'Allow indexing of encrypted files;ExpectedValue', '=', parameters('AllowIndexingOfEncryptedFiles'), ',', 'Allow Telemetry;ExpectedValue', '=', parameters('AllowTelemetry'), ',', 'Allow unencrypted traffic;ExpectedValue', '=', parameters('AllowUnencryptedTraffic'), ',', 'Always install with elevated privileges;ExpectedValue', '=', parameters('AlwaysInstallWithElevatedPrivileges'), ',', 'Always prompt for password upon connection;ExpectedValue', '=', parameters('AlwaysPromptForPasswordUponConnection'), ',', 'Application: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('ApplicationSpecifyTheMaximumLogFileSizeKB'), ',', 'Automatically send memory dumps for OS-generated error reports;ExpectedValue', '=', parameters('AutomaticallySendMemoryDumpsForOSgeneratedErrorReports'), ',', 'Configure Default consent;ExpectedValue', '=', parameters('ConfigureDefaultConsent'), ',', 'Configure Windows SmartScreen;ExpectedValue', '=', parameters('ConfigureWindowsSmartScreen'), ',', 'Disallow Digest authentication;ExpectedValue', '=', parameters('DisallowDigestAuthentication'), ',', 'Disallow WinRM from storing RunAs credentials;ExpectedValue', '=', parameters('DisallowWinRMFromStoringRunAsCredentials'), ',', 'Do not allow passwords to be saved;ExpectedValue', '=', parameters('DoNotAllowPasswordsToBeSaved'), ',', 'Security: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SecuritySpecifyTheMaximumLogFileSizeKB'), ',', 'Set client connection encryption level;ExpectedValue', '=', parameters('SetClientConnectionEncryptionLevel'), ',', 'Set the default behavior for AutoRun;ExpectedValue', '=', parameters('SetTheDefaultBehaviorForAutoRun'), ',', 'Setup: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SetupSpecifyTheMaximumLogFileSizeKB'), ',', 'System: Specify the maximum log file size (KB);ExpectedValue', '=', parameters('SystemSpecifyTheMaximumLogFileSizeKB'), ',', 'Turn off Data Execution Prevention for Explorer;ExpectedValue', '=', parameters('TurnOffDataExecutionPreventionForExplorer'), ',', 'Specify the interval to check for definition updates;ExpectedValue', '=', parameters('SpecifyTheIntervalToCheckForDefinitionUpdates')))]"
}
]
}
}
}
},
"versions": [
"3.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/8537fe96-8cbe-43de-b0ef-131bc72bc22a",
"name": "8537fe96-8cbe-43de-b0ef-131bc72bc22a"
}