%3CLINGO-SUB%20id%3D%22lingo-sub-372282%22%20slang%3D%22en-US%22%3EWhy%20use%20shielded%20VMs%20for%20your%20privileged%20access%20workstation%20(PAW)%20solution%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-372282%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3EFirst%20published%20on%20TECHNET%20on%20Nov%2029%2C%202017%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20It%E2%80%99s%20great%20to%20see%20customers%20trying%20out%20PAWs%20and%20it%E2%80%99s%20generating%20a%20lot%20of%20great%20questions.%20Many%20questions%20are%20related%20to%20shielded%20VMs%20so%20I%E2%80%99d%20like%20to%20focus%20this%20blog%20post%20on%20sharing%20our%20reasoning%20for%20building%20the%20PAW%20solution%20on%20shielded%20VMs.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Running%20virtual%20machines%20(VMs)%20on%20Windows%20client%20is%20not%20new%2C%20but%20running%20a%20shielded%20VM%20on%20Windows%20client%20is.%20The%20ability%20to%20run%20shielded%20VMs%20on%20client%20was%20introduced%20in%20the%20Windows%2010%201709%20release.%20There%20are%20many%20security%20considerations%20built%20in%20to%20shielded%20VMs%2C%20from%20secure%20provisioning%20to%20protecting%20data%20at%20rest.%20As%20part%20of%20the%20PAW%20solution%2C%20the%20privileged%20access%20workload%20gains%20additional%20security%20protections%20by%20running%20inside%20a%20shielded%20VM.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20There%20are%20tons%20of%20documents%2Fvideos%20on%20technet%20about%20shielded%20VMs%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fvirtualization%2Fguarded-fabric-shielded-vm%2Fguarded-fabric-and-shielded-vms-top-node%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20this%20%3C%2FA%3E%20is%20a%20good%20starting%20point.%20Note%20that%20this%20blog%20post%20is%20not%20intended%20to%20repeat%20the%20content%2C%20but%20rather%20focus%20on%20its%20usage%20from%20the%20PAW%20perspective.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20So%20why%20shielded%20VMs%3F%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20There%20are%20two%20aspects%20to%20this%20question%3A%20%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EWhy%20do%20we%20want%20to%20use%20VMs%3F%20(as%20opposed%20to%20dedicated%20physical%20PAW%20devices%20)%3F%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EWhat%20are%20the%20security%20benefits%20when%20running%20a%20shielded%20VM%20over%20a%20regular%20VM%3F%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%20The%20use%20of%20VMs%20reduces%20the%20number%20of%20devices%20per%20user.%20In%20most%20environments%20where%20PAW%20is%20deployed%2C%20its%20user%20must%20carry%20at%20least%202%20devices%3B%20in%20some%20cases%2C%205%20or%20more%20(based%20on%20customer%20feedback).%20By%20using%20VMs%2C%20a%20user%20can%20carry%20just%20one%20device%20with%20all%20their%20workloads%20and%20the%20PAW%20itself%20running%20in%20different%20isolated%20VMs.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Admins%20also%20have%20an%20easier%20time%20managing%20the%20VM%20images%20as%20the%20images%20can%20be%20more%20tailored%20to%20a%20specific%20role.%20For%20example%2C%20the%20PAW%20VM%20used%20by%20Domain%20Admins%20to%20manage%20Active%20Directory%20will%20differ%20from%20the%20VM%20image%20that%20SQL%20admins%20use%20allowing%20each%20to%20be%20locked%20down%20in%20ways%20specific%20to%20its%20role.%20If%20there%20is%20a%20need%20for%20new%20applications%2C%20admins%20can%20easily%20create%20new%20VM%20images.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Furthermore%2C%20you%20can%20harden%20the%20OS%20on%20the%20physical%20machine%20when%20all%20the%20workloads%20are%20moved%20to%20VMs.%20Using%20application%20whitelisting%20(such%20as%20a%20code%20integrity%20policy)%2C%20the%20physical%20machine%20can%20be%20further%20locked%20down%20allowing%20it%20to%20run%20only%20authorized%20VMs.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Let%E2%80%99s%20dive%20into%20the%20second%20question%20about%20the%20security%20benefits%20of%20using%20shielded%20VMs.%20It%20starts%20with%20enforcing%20higher%20security%20requirements%20on%20the%20physical%20PAW%20itself%20through%20remote%20health%20attestation%3A%20%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EThe%20physical%20device%20must%20have%20TPM%20version%202.0.%20The%20endorsement%20key%20from%20the%20TPM%20is%20used%20as%20a%20strong%20form%20of%20device%20identity%3B%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EThe%20TPM%20is%20also%20used%20in%20measured%20boot%20to%20ensure%20that%20the%20security%20configuration%20and%20the%20binaries%20loaded%20in%20the%20boot%20process%20match%20the%20approved%20(healthy)%20baseline%20configuration%3B%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%3COL%3E%3CBR%20%2F%3E%3CLI%3EFinally%2C%20the%20code%20integrity%20policy%20is%20also%20measured%20and%20validated%20against%20the%20policy%20managed%20by%20the%20Host%20guardian%20service.%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FOL%3E%3CBR%20%2F%3E%20If%20the%20device%20itself%20is%20compromised%2C%20any%20changes%20to%20operating%20system%20binaries%20or%20the%20code%20integrity%20policy%20will%20cause%20it%20to%20fail%20attestation%20and%20prevent%20VMs%20from%20running.%20In%20short%2C%20shielded%20VM%20security%20starts%20with%20a%20clean%2C%20trustworthy%20host%20as%20illustrated%20below%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F90751i047F8BD50059510D%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20addition%20to%20the%20host%20remote%20health%20attestation%2C%20shielded%20VMs%20use%20a%20virtual%20TPM%20to%20encrypt%20data%20through%20Bitlocker.%20If%20the%20physical%20device%20is%20compromised%2C%20the%20virtual%20disks%20are%20encrypted%20and%20the%20attacker%20will%20either%20have%20to%20find%20a%20way%20to%20break%20BitLocker%20encryption%20or%20compromise%20the%20Host%20guardian%20service%20in%20the%20datacenter%3B%20neither%20is%20trivial.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20A%20typical%20process%20to%20create%20a%20VM%20is%20to%20simply%20attach%20a%20copy%20of%20a%20VHDX%20which%20contains%20the%20appropriate%20operating%20system.%20In%20a%20production%20deployment%2C%20admins%20usually%20create%20syspreped%20images%20and%20distribute%20the%20images%20through%20file%20shares.%20At%20deployment%20time%2C%20however%2C%20there%20is%20no%20guarantee%20that%20the%20VHDX%20file%20the%20admin%20created%20hasn%E2%80%99t%20been%20tampered%20with.%20Shielded%20VMs%20add%20security%20measures%20to%20detect%20images%20that%20have%20been%20tampered%20with%20and%20prevent%20deployment.%20Admins%20create%20a%20signature%20(.vsc%20files)%20for%20each%20trustworthy%20VHDX.%20The%20signature%20is%20included%20in%20the%20encrypted%20shielding%20data%20files%20(.pdk%20files)%20and%20used%20to%20check%20the%20VHDX%20during%20provisioning.%20If%20the%20VHDX%E2%80%99s%20current%20signature%20doesn%E2%80%99t%20match%2C%20VM%20provisioning%20will%20fail.%20Shielding%20data%20files%20are%20unique%20to%20shielded%20VM%20provisioning%20and%20you%20can%20find%20more%20information%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fvirtualization%2Fguarded-fabric-shielded-vm%2Fguarded-fabric-tenant-creates-shielding-data%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20here%20%3C%2FA%3E%20.%20Therefore%2C%20to%20create%20a%20PAW%20VM%2C%20you%20will%20need%20to%20have%20a%20shielding%20data%20file%20and%20a%20VM%20template%20disk%20with%20a%20matching%20or%20trusted%20signature.%20You%20can%20find%20the%20steps%20to%20create%20shielding%20data%20files%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fdatacentersecurity%2F2017%2F11%2F01%2Fhow-to-create-a-vm-template-for-paw%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20here%20%3C%2FA%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20my%20next%20blog%20post%2C%20I%20will%20share%20how%20I%20built%20a%20couple%20of%20PAW%20VM%20template.%20If%20you%20have%20ideas%2Frequests%2C%20you%20are%20welcome%20to%20share%20it%20with%20%3CA%20href%3D%22mailto%3Apawfeedback%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20us%20%3C%2FA%3E%20.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-372282%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20Nov%2029%2C%202017%20It%E2%80%99s%20great%20to%20see%20customers%20trying%20out%20PAWs%20and%20it%E2%80%99s%20generating%20a%20lot%20of%20great%20questions.%3C%2FLINGO-TEASER%3E
Microsoft
First published on TECHNET on Nov 29, 2017
It’s great to see customers trying out PAWs and it’s generating a lot of great questions. Many questions are related to shielded VMs so I’d like to focus this blog post on sharing our reasoning for building the PAW solution on shielded VMs.

Running virtual machines (VMs) on Windows client is not new, but running a shielded VM on Windows client is. The ability to run shielded VMs on client was introduced in the Windows 10 1709 release. There are many security considerations built in to shielded VMs, from secure provisioning to protecting data at rest. As part of the PAW solution, the privileged access workload gains additional security protections by running inside a shielded VM.

There are tons of documents/videos on technet about shielded VMs, this is a good starting point. Note that this blog post is not intended to repeat the content, but rather focus on its usage from the PAW perspective.

So why shielded VMs?

There are two aspects to this question:

  1. Why do we want to use VMs? (as opposed to dedicated physical PAW devices )?



  1. What are the security benefits when running a shielded VM over a regular VM?


The use of VMs reduces the number of devices per user. In most environments where PAW is deployed, its user must carry at least 2 devices; in some cases, 5 or more (based on customer feedback). By using VMs, a user can carry just one device with all their workloads and the PAW itself running in different isolated VMs.

Admins also have an easier time managing the VM images as the images can be more tailored to a specific role. For example, the PAW VM used by Domain Admins to manage Active Directory will differ from the VM image that SQL admins use allowing each to be locked down in ways specific to its role. If there is a need for new applications, admins can easily create new VM images.

Furthermore, you can harden the OS on the physical machine when all the workloads are moved to VMs. Using application whitelisting (such as a code integrity policy), the physical machine can be further locked down allowing it to run only authorized VMs.

Let’s dive into the second question about the security benefits of using shielded VMs. It starts with enforcing higher security requirements on the physical PAW itself through remote health attestation:

  1. The physical device must have TPM version 2.0. The endorsement key from the TPM is used as a strong form of device identity;



  1. The TPM is also used in measured boot to ensure that the security configuration and the binaries loaded in the boot process match the approved (healthy) baseline configuration;



  1. Finally, the code integrity policy is also measured and validated against the policy managed by the Host guardian service.


If the device itself is compromised, any changes to operating system binaries or the code integrity policy will cause it to fail attestation and prevent VMs from running. In short, shielded VM security starts with a clean, trustworthy host as illustrated below:



In addition to the host remote health attestation, shielded VMs use a virtual TPM to encrypt data through Bitlocker. If the physical device is compromised, the virtual disks are encrypted and the attacker will either have to find a way to break BitLocker encryption or compromise the Host guardian service in the datacenter; neither is trivial.

A typical process to create a VM is to simply attach a copy of a VHDX which contains the appropriate operating system. In a production deployment, admins usually create syspreped images and distribute the images through file shares. At deployment time, however, there is no guarantee that the VHDX file the admin created hasn’t been tampered with. Shielded VMs add security measures to detect images that have been tampered with and prevent deployment. Admins create a signature (.vsc files) for each trustworthy VHDX. The signature is included in the encrypted shielding data files (.pdk files) and used to check the VHDX during provisioning. If the VHDX’s current signature doesn’t match, VM provisioning will fail. Shielding data files are unique to shielded VM provisioning and you can find more information here . Therefore, to create a PAW VM, you will need to have a shielding data file and a VM template disk with a matching or trusted signature. You can find the steps to create shielding data files here .

In my next blog post, I will share how I built a couple of PAW VM template. If you have ideas/requests, you are welcome to share it with us .