CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLegacy virtual hard disks (VHDs) are stored in Azure blob storage, which is encrypted by default. Encryption should be enabled for virtual machines running VHDs in order to protect the data from unwarranted reads.
Virtual Machine legacy virtual hard disks should be encrypted.
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2022-11-01",
"name": "allowed2/Extensions",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines', 'allowed2')]",
"[resourceId('Microsoft.KeyVault/vaults', 'example-vault-700')]"
],
"properties": {
"publisher": "Microsoft.Azure.Security",
"settings": {
"EncryptionOperation": "EnableEncryption",
"KeyVaultURL": "[reference(resourceId('Microsoft.KeyVault/vaults', 'example-vault-700'), '2022-07-01', 'Full').properties.vaultUri]",
"KeyVaultResourceId": "/subscriptions/5f479449-6df7-4c39-af0f-d8837aa02eec/resourceGroups/snyk_3/providers/Microsoft.KeyVault/vaults/example-vault-700",
"KeyEncryptionAlgorithm": "RSA-OAEP",
"VolumeType": "All"
},
"type": "AzureDiskEncryptionForLinux",
"typeHandlerVersion": "1.1"
}
},
Set the azurerm_virtual_machine_extension
type
attribute to AzureDiskEncryption
for Windows VMs or AzureDiskEncryptionForLinux
for Linux VMs.
resource "azurerm_virtual_machine_extension" "allowed2-vm-extension" {
name = "allowed2-vm-encrypt"
virtual_machine_id = azurerm_virtual_machine.allowed2.id
publisher = "Microsoft.Azure.Security"
type = "AzureDiskEncryptionForLinux"
type_handler_version = "1.1"
settings = <<SETTINGS
{
"EncryptionOperation": "EnableEncryption",
"KeyVaultURL": "${azurerm_key_vault.example-vault700.vault_uri}",
"KeyVaultResourceId": "${azurerm_key_vault.example-vault700.id}",
"KeyEncryptionAlgorithm": "RSA-OAEP",
"VolumeType": "All"
}
SETTINGS
}