Gallery › Security Center › Azure built-in policies
[Preview]: Virtual machines guest attestation status should be healthy
Converted Policy AuditIfNotExists Disabled Mode All Version 1.0.0-preview Preview
Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "[Preview]: Virtual machines guest attestation status should be healthy",
"policyType": "BuiltIn",
"mode": "All",
"description": "Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.",
"metadata": {
"category": "Security Center",
"version": "1.0.0-preview",
"preview": true
},
"version": "1.0.0-preview",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/virtualMachines/extensions"
},
{
"field": "Microsoft.Compute/virtualMachines/extensions/publisher",
"in": [
"Microsoft.Azure.Security.WindowsAttestation",
"Microsoft.Azure.Security.LinuxAttestation"
]
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "b7604066-ed76-45f9-a5c1-c97e4812dc55",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/f6358610-e532-4236-b178-4c65865eb262",
"name": "f6358610-e532-4236-b178-4c65865eb262"
}# Converted from ASC_BootIntegrityAttestation_Audit.json by ConvertTo-Bylaw.
Policy 'f6358610-e532-4236-b178-4c65865eb262' {
Properties @{
DisplayName = '[Preview]: Virtual machines guest attestation status should be healthy'
Description = 'Guest attestation is performed by sending a trusted log (TCGLog) to an attestation server. The server uses these logs to determine whether boot components are trustworthy. This assessment is intended to detect compromises of the boot chain which might be the result of a bootkit or rootkit infection. This assessment only applies to Trusted Launch enabled virtual machines that have Guest Attestation extension installed.'
Category = 'Security Center'
Version = '1.0.0-preview'
Preview = $true
PolicyVersion = '1.0.0-preview'
Mode = 'All'
}
Parameter Effect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'AuditIfNotExists'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Compute/virtualMachines/extensions' {
Require 'publisher is not one of 2 values' {
Field publisher | Must -Not -BeIn @('Microsoft.Azure.Security.WindowsAttestation', 'Microsoft.Azure.Security.LinuxAttestation') -IfPresent
}
}
AuditIfNotExists 'Microsoft.Security/assessments' -Name 'b7604066-ed76-45f9-a5c1-c97e4812dc55' -Effect (Param Effect) {
Require 'status.code is one of 2 values' {
Field status.code | Must -BeIn @('NotApplicable', 'Healthy')
}
}
}Source: built-in-policies/policyDefinitions/Security Center/ASC_BootIntegrityAttestation_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw