Secure Virtualization Infrastructure Flashcards
Guarded Fabric Shielded VMs Encryption Supported VMs
What is the Host Guardian Service?
A server role installed on a secure cluster of bare-metal servers that are able to measure the health of a Hyper-V host and release keys for powering on or live migrating shielded VMs. Runs the attestation service and key protection service.
What are the necessary requirements of a Guarded Fabric?
1 Host Guardian Service (usually cluster of 3 nodes)
1 or more guarded hosts
A set of shielded VMs
What are the requirements for deploying a host guardian service
- At least 2 HGS Servers: Servers can be physical or virtual (3 total recommended)
- Servers should have TPMs (2.0 recommended, 1.2 supported)
- Server Core 2016+
- Network line-of-site to fabric allowing HTTP
- HTTPS certificate for access
- Every 4C/4GB can handle 1000 Hyper-V Hosts
How do you handle disaster recovery for a Host Guardian Service?
Choose One
- Install separate HGS in each DC to authorize shielded VMs
- Install HGS stretch cluster between two or more datacenters
- Register Hyper-V with another HGS as a failover
NOTE: HGS should be backed up by exporting its configuration for local recovery
What services (functions) are provided by the host guardian service?
- Attestation: Ensures only trusted Hyper-V Hosts can run shielded VMs
- Key Protection: Provides keys necessary to power on and live migrate shielded VMs to other guarded hosts.
What security benefit is gained from shielded VMs?
If a VM is exported or copied, the VM cannot be run as it is only allowed to run from protected systems.
What are the different attestation modes?
- TPM-Trusted attestation (Hardware based)
- Host Key Attestation (based on asymmetric key pairs)
- Admin-trusted attestation (AD based; depreciated in Server 2019)
What attestation mode is recommended in a guarded fabric?
TPM-Trusted mode. It offers stronger assurances bv ensuring the guarded hosts are approved based on their TPM identity, measured boot sequence, and code integrity policies.
What are the requirements for TPM-trusted attestation/
TPM 2.0 and UEFI 2.3.1 with Secure Boot
If a Hyper-V Host does not have TPM 2.0 can it still be part of a guarded fabric?
Yes. It requires a compromise by using Hosted Key Attestation instead of TPM attestation. Hosted Key Attestation utilizes asymmetric keys to validate hosts.
What is Admin-trusted attestation?
This attestation mode uses AD Group Membership to attest a guarded fabric. It is being deprecated in Server 2019 in favor of Host Key Attestation.
What are the primary use cases for Shielded VMs and Guarded Fabric?
Cloud Providers and Enterprise Clouds
What types of VMs can be run on a guarded fabric?
- Normal VMs with no protection
- Encryption-supported VMS who can be configured by fabric admins
- Shielded VMs who are protected in a way that cannot be disabled by fabric admins
How does the guarded host determine a VM is still protected after the VM has been started?
In addition to the initial check of the VM at boot, TPM-trusted attestation checks the VM every 8 hours after its boot.
Which HGS attestation mode would you use if the goal is to protect VMs from malicious admins or a compromised fabric?
TPM attestation. This mode works well for multi-tenant hosting as well as high-value enterprise environments.
You work for a company that has industry-specific compliance settings that require that VMs be encrypted at rest and in flight. Which HGS attestation mode accommodates this requirement?
Host Key Attestation. Works well for general purpose data centers where fabric admins are trusted and are allowed access to guest VMs.
What powershell cmdlets can be used to backup and restore an HGS?
Export-HgsServerState
Import-HgsServerState
What version of Windows Server is required for a server to be made a Guarded Host?
- Host Key Attestation: Server 2019 Standard or Datacenter
- TPM-Based: Server 2016+ Standard or Datacenter
What needs configured so the fabric (host) domain and the HGS domain can communicate?
DNS forwarding
Why is HGS relegated to its own forest?
The AD for HGS is treated as sensitive because its administrators have access to the keys that control shielded VMs. The environment is self-contained and thus a known good source.
Can an HGS be installed in an existing Bastion forest?
Yes. HGS can be installed in an existing bastion forest. The only real forest requirement for the HGS is that it be configured in the root domain of the forest.
What cmdlet will install the Host Guardian Service role?
Install-WindowsFeature -Name HostGuardianServiceRole - IncludeManagementTools -Restart
What command will install an HGS in its own dedicated forest?
Install-HgsServer -HsgDomainName $DomainName -SafeModeAdministratorPassword $PwdSecString -Restart
What is the process to add HGS to an existing Bastion Forest?
- Install HGS Role
- Join HGS to existing domain (HGS must be added to the root domain)
- Create security group for HGS Nodes
- Create gMSA for the HGS (gMSA will need to be able to generate events in the security log on the HGS server)
- Configure/Create JEA Security Groups. JEA is not required to manage HGS but it must be configured.
Create 2 groups: Admins and Reviewers - Configure/Create cluster computer objects
Prestage the computer accounts if the Hgs Account cannot create computers. Whoever runs the Initialize-HgsServer command needs full control over the cluster object and the security object. - Configure security.