Appearance
Secure Boot Remediation ​
Introduction ​
This guide describes the procedure for remediating Secure Boot on a virtual machine, required due to upcoming Microsoft certificate changes.
Non vTPM enabled VMs are remediated automatically with a reboot. Only vTPM enabled VMs require the manual remediation steps described in this document.
For vTPM enabled VMs, the remediation process consists of two automated catalog item operations with a mandatory manual step in between that must be performed by the customer.
WARNING
The three steps must be executed in order. Do not skip or rearrange them. The feature should be requested to be enabled per tenant. The catalog items will be enabled in the old ESC2 Portal and are intended for the ESC3 environment.
Overview ​
| Step | Type | Action |
|---|---|---|
| 1 | Automated (Catalog Item in Secure Boot Services) | Secure Boot Preparation ESC3 |
| 2 | Manual (Customer) | Platform Key Enrollment in BIOS/EFI |
| 3 | Automated (Catalog Item in Secure Boot Services) | Secure Boot Finalization ESC3 |
Step 1: Secure Boot Preparation (Automated Operation) ​
This catalog item prepares your virtual machine for the Secure Boot certificate update required due to upcoming Microsoft changes.
The process will automatically perform the following steps:
- Configure VM boot settings to allow Secure Boot updates
- Attach a temporary disk containing the required Microsoft Platform Key (PK)
- Create a safety snapshot for rollback purposes
- Perform a controlled reboot of the virtual machine
INFO
- No changes are made inside the operating system during this step.
- A snapshot is created to allow rollback in case of issues.
- A maintenance window and console access are required for the next step.
Once completed, the VM is ready for manual Secure Boot key enrollment. Proceed to Step 2.
Step 2: Secure Boot Platform Key Enrollment (Manual Steps) ​
After the preparation is complete, the customer must manually enroll the Platform Key in the VM's BIOS/EFI.
WARNING
This step requires console access and must be performed during a maintenance window.
Follow the steps below carefully.
Step 1: Open Virtual Machine Console
- Open the VM Console via the Portal
- Keep the console open for BIOS/EFI access
Step 2: Power On the Virtual Machine
- Start the VM while the console is open
- Press F2 to enter BIOS/EFI setup
Step 3: Enroll Microsoft Platform Key
Navigate in BIOS:
- Enter Setup
- Secure Boot Configuration
- PK Options
- Enroll PK
- Enroll KEK
Enroll PK:
- Select the disk labeled
KEYUPDATE - Choose:
WindowsOEMDevicesPK.der - Confirm and commit changes
Enroll KEK:
- Select the disk labeled
KEYUPDATE - Choose:
microsoft corporation kek 2k ca 2023.der - Confirm and commit changes
- Exit BIOS
INFO
Ensure the correct files are selected. Incorrect selection may result in Secure Boot misconfiguration.
Step 4: Reboot the Virtual Machine
- The VM should reboot automatically after exiting BIOS
- If not, reboot it manually via the Portal
Step 5: Operating System Boot
- Wait until the operating system has fully started
Step 6: Verify Platform Key
Linux:
bash
mokutil --pkWindows:
Execute the provided PowerShell verification script. The script will:
- Check if Microsoft Secure Boot certificates (2023) are present
- Verify required Windows updates
- Support certificate migration (if needed)
Step 7: Sanity Reboot
Perform a full power cycle to ensure Secure Boot is functioning correctly:
- Power OFF the VM
- Power ON the VM
WARNING
This sanity reboot is required before proceeding to Step 3.
Once all manual steps are completed successfully, proceed to Step 3.
Step 3: Secure Boot Finalization (Automated Operation) ​
This catalog item completes the Secure Boot remediation after the Platform Key (PK) has been successfully enrolled.
The process will automatically perform the following steps:
- Detach the temporary disk used for Platform Key installation
- Remove temporary Secure Boot compatibility settings
- Restore normal VM boot configuration
- Delete previously created safety snapshots
WARNING
This step should only be executed after the manual BIOS/EFI key enrollment in Step 2 is completed successfully. No changes are made inside the operating system.
After completion, the virtual machine is returned to its standard configuration and is ready for normal operation.
Remediation Runbooks ​
Remediation Runbook (No vTPM) ​
Follow the full three-step procedure described above (Steps 1–3).
Remediation Runbook (vTPM) ​
Same procedure as Remediation Runbook (No vTPM) as long as no BitLocker is used.
Remediation Runbook (vTPM with BitLocker Enabled) ​
When BitLocker is active, additional steps are required before and after the standard remediation.
| Step | Responsible | Action |
|---|---|---|
| Suspend BitLocker | Customer | Before starting the remediation, suspend BitLocker |
| Run Remediation | Swisscom / Customer | Execute Steps 1–3 as described in Remediation Runbook (No vTPM) |
| Resume BitLocker | Customer | After successful remediation, resume BitLocker |
Suspend BitLocker (run before Step 1)
powershell
Suspend-BitLocker -MountPoint "C:" -RebootCount 0Resume BitLocker (run after Step 3)
powershell
Resume-BitLocker -MountPoint "C:"WARNING
Resuming BitLocker will generate a new BitLocker key and the disk will be re-encrypted. Make sure to safely and centrally store the new BitLocker recovery key.
