7.4 Ensure that only approved extensions are installed

Information

Only install organization-approved extensions on VMs.

Rationale:

Azure virtual machine extensions are small applications that provide post-deployment configuration and automation tasks on Azure virtual machines. These extensions run with administrative privileges and could potentially access anything on a virtual machine. The Azure Portal and community provide several such extensions. Each organization should carefully evaluate these extensions and ensure that only those that are approved for use are actually implemented.

Solution

From Azure Console

Go to Virtual machines

For each virtual machine, go to Settings

Click on Extensions

If there are unapproved extensions, uninstall them.

From Azure Command Line Interface 2.0
From the audit command identify the unapproved extensions, and use the below CLI command to remove an unapproved extension attached to VM.

az vm extension delete --resource-group <resourceGroupName> --vm-name <vmName> --name <extensionName>

Default Value:

By default, no extensions are added to the virtual machines.

See Also

https://workbench.cisecurity.org/files/3459