Guidance for mitigating speculative execution side-channel vulnerabilities in Azure
Last document update: March 6, 10:00 AM PST.
The recent disclosure of a new class of CPU vulnerabilities known as speculative execution side-channel attacks has resulted in questions from customers seeking more clarity.
The infrastructure that runs Azure and isolates customer workloads from each other is protected. This means that other customers running on Azure can't attack your application using these vulnerabilities.
In late February 2018, Intel Corporation published updated Microcode Revision Guidance on the status of their microcode releases, which improve stability and mitigate against the recent vulnerabilities disclosed by Google Project Zero. The mitigations put in place by Azure on January 3, 2018 are not affected by Intel’s microcode update. Microsoft already put strong mitigations in place to protect Azure customers from other Azure tenants.
Intel’s microcode addresses variant 2 Spectre (CVE-2017-5715) to protect against attacks which would only be applicable where you run shared or untrusted workloads inside your VMs on Azure. Our engineers are testing the stability to minimize performance impacts of the microcode, prior to making it available to Azure customers. As very few customers run untrusted workloads within their VMs, most customers will not need to enable this capability once released.
This page will be updated as more information is available.
Keeping your Operating Systems up-to-date
While an OS update is not required to isolate your applications running on Azure from other customers running on Azure, it is always a best practice to keep your OS versions up-to-date.
In the following offerings, here are our recommended actions to update your Operating System:
|Azure Cloud Services||Enable auto update or ensure you are running the newest Guest OS.|
|Azure Linux Virtual Machines||Install updates from your operating system provider when available.|
|Azure Windows Virtual Machines||Verify that you are running a supported antivirus application before you install OS updates. Contact your antivirus software vendor for compatibility information.
Install the January security rollup.
|Other Azure PaaS Services||There is no action needed for customers using these services. Azure automatically keeps your OS versions up-to-date.|
Additional guidance if you are running untrusted code
No additional customer action is needed unless you are running untrusted code. If you allow code that you do not trust (for example, you allow one of your customers to upload a binary or code-snippet that you then execute in the cloud within your application), then the following additional steps should be taken.
If you are using Windows and hosting untrusted code, you should also enable a Windows feature called Kernel Virtual Address (KVA) Shadowing which provides additional protection against speculative execution side-channel vulnerabilities. This feature is turned off by default and may impact performance if enabled. Follow Windows Server KB4072698 instructions for Enabling Protections on the Server. If you are running Azure Cloud Services, verify that you are running WA-GUEST-OS-5.15_201801-01 or WA-GUEST-OS-4.50_201801-01 (available starting on January 10, 2018) and enable the registry key via a startup task.
If you are using Linux and hosting untrusted code, you should also update Linux to a more recent version that implements kernel page-table isolation (KPTI) which separates the page tables used by the kernel from those belonging to user space. These mitigations require a Linux OS update and can be obtained from your distribution provider when available. Your OS provider can tell you whether protections are enabled or disabled by default.
To learn more, see Securing Azure customers from CPU vulnerability.