Security

Virtualization Based Security (VBS) in Windows Explained

Virtualization based security (VBS) uses hardware virtualization and the Windows hypervisor to create an isolated virtual environment, and Windows runs some of its security features inside it. The goal is to keep those protections working even if an attacker compromises the normal Windows kernel.

This article explains what VBS is, what runs on top of it, what hardware it needs, and how to check whether it is running on your PC. Details come from Microsoft Learn, as of November 2026.

What is virtualization based security?

Microsoft describes VBS as an isolated virtual environment that becomes the root of trust of the operating system, built on the assumption that the kernel can be compromised. Normally the Windows kernel is the most trusted code on the machine. If malware gets into it, everything that the kernel guards is exposed, including the checks that decide which drivers may load.

VBS changes that. The hypervisor, which sits below the kernel, carves out a separate region that the normal kernel cannot read or modify. Security features that live in that region are protected from vulnerabilities in the rest of the operating system. Microsoft says VBS enforces restrictions to protect vital system and operating system resources, and to protect security assets such as authenticated user credentials.

In short, VBS is not an antivirus and not a single switch with its own behavior. It is a foundation. What you notice as a user are the features built on it.

What runs on top of VBS

The feature most people meet is memory integrity, the toggle in Windows Security. It runs kernel mode code integrity inside the VBS environment. Kernel mode code integrity is the check that every kernel mode driver and binary goes through before it starts, so unsigned or untrusted drivers cannot load into system memory.

Memory integrity also restricts kernel memory allocations. A kernel memory page becomes executable only after it passes the code integrity checks inside the secure environment, and executable pages are never writable. So even if malware finds a buffer overflow, it cannot modify executable code pages or make modified memory executable. Microsoft also says memory integrity protects changes to the Control Flow Guard (CFG) bitmap for kernel mode drivers.

Memory integrity goes by other names. Microsoft says it is sometimes called hypervisor-protected code integrity (HVCI) or hypervisor enforced code integrity, and that it was originally released as part of Device Guard. Device Guard is no longer used except to locate memory integrity and VBS settings in Group Policy or the registry. That is why you still see "Device Guard" in the policy path and "DeviceGuard" in registry keys.

The Win32_DeviceGuard WMI class lists the services that can run on VBS. Microsoft's table for SecurityServicesRunning includes:

ValueService
1Credential Guard
2Memory integrity
3System Guard Secure Launch
4SMM Firmware Measurement
5Kernel-mode Hardware-enforced Stack Protection
7Hypervisor-Enforced Paging Translation

Value 6 means the stack protection feature is running in audit mode, and 0 means no services are running.

What VBS requires

VBS depends on the Windows hypervisor, so the machine needs hardware and firmware support. Microsoft's OEM documentation lists these components:

RequirementDetails
64-bit CPU with virtualization extensionsIntel VT-x or AMD-V
Second Level Address Translation (SLAT)Intel VT-x2 with Extended Page Tables, or AMD-V with Rapid Virtualization Indexing
IOMMU or SMMUIntel VT-d, AMD-Vi or Arm64 SMMU, with DMA-capable devices behind it
TPM 2.0A Trusted Platform Module, version 2.0
SMM protection in firmwareFirmware must follow the Windows SMM Security Mitigations Table (WSMT) specification
UEFI memory reportingMemory Attributes Table and page protections reported correctly
Secure MOR revision 2Protects the Memory Overwrite Request lock with a UEFI secure variable
Compatible driversEvery system driver verified to work with memory integrity
Secure BootMust be enabled on devices that use VBS

Most of these are firmware and hardware matters you cannot change from inside Windows. The two you can usually act on are the CPU virtualization setting and Secure Boot, both found in UEFI setup. Our guides on turning on hardware virtualization in BIOS/UEFI and enabling Secure Boot cover those.

How to check if VBS is running

Open an elevated PowerShell window and run:

Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard

Look at VirtualizationBasedSecurityStatus. Microsoft defines the values as follows: 0 means VBS is not enabled, 1 means it is enabled but not running, and 2 means it is enabled and running. Example output, trimmed to the relevant lines:

SecurityServicesConfigured        : {2}
SecurityServicesRunning           : {2}
VirtualizationBasedSecurityStatus : 2

The second way is graphical. Run msinfo32.exe from an elevated PowerShell session. Microsoft says the VBS features are listed at the bottom of the System Summary section.

The state "enabled but not running" (1) is the one to watch. It means something is configured but did not start, commonly because a hardware or firmware requirement from the table above is missing. Microsoft documents one concrete case: Azure VMs with Secure Boot with DMA selected show VBS as enabled but not running, because memory integrity is not supported with that option. Choose Secure Boot only there.

Is VBS on by default?

Often, but not everywhere. Microsoft says memory integrity is enabled by default on many new Windows 11 devices that meet the hardware and compatibility requirements, and that it is expanding enablement to eligible existing Windows 11 devices. Microsoft adds that actual protection depends on device eligibility, driver compatibility, policy, rollout assignment and a restart, and that existing explicit user or administrator settings are respected. Because so many conditions apply, the WMI query above is the reliable answer for a specific PC. Do not assume.

To change memory integrity itself, use Windows Security under Device security, then Core isolation details. Our guide to enabling memory integrity in Windows 11 walks through that path, the Group Policy and registry options, and recovery from a boot failure.

Does VBS slow the PC down?

Microsoft does not publish a single figure, so none is given here. It does say how the cost varies. Memory integrity works better on Intel Kaby Lake and newer processors with Mode-Based Execution Control, and on AMD Zen 2 and newer processors with Guest Mode Execute Trap. Older processors fall back to an emulation called Restricted User Mode, which has a bigger performance impact. If a workload of yours matters, measure it with the feature on and off on your own hardware instead of relying on a general claim.

Driver problems and the risk of turning it on

The main practical risk is drivers. Microsoft warns that some applications and device drivers are incompatible with memory integrity, which can make devices or software malfunction and, in rare cases, cause a boot failure (a blue screen). Updating the driver in Device Manager, or installing the vendor's latest version, is the first fix.

Microsoft also documents a registry value, Mandatory, that stops the OS loader from continuing to boot if the hypervisor, the Secure Kernel or a dependent module fails to load. It warns that special care is needed before using it, since any failure of the virtualization modules means the system refuses to boot. Leave it alone on a personal PC.

VBS in virtual machines

VBS works on VMs with nested virtualization support or Guest VSM enabled. Microsoft says Guest VSM is on by default for Generation 2 VMs on Hyper-V, including all Generation 2 VMs on Microsoft Azure, and that Generation 1 VMs work if nested virtualization is enabled.

For memory integrity in Hyper-V, the host must run at least Windows Server 2016 or Windows 10 version 1607, and the VM must be Generation 2 running at least Windows Server 2016 or Windows 10. Microsoft notes that it protects against malware running inside the guest but gives no extra protection from the host administrator. From the host, an administrator can opt a VM out:

Set-VMSecurity -VMName <VMName> -VirtualizationBasedSecurityOptOut $true

Virtual Fibre Channel adapters and the AllowFullSCSICommandSet option for pass-through disks are not compatible with memory integrity, so opt out first if you need either.

If VBS shows enabled but not running

Work through the causes in order. Confirm virtualization extensions, TPM 2.0 and Secure Boot are on in UEFI setup. Update the BIOS or UEFI firmware, because VBS also relies on SMM protection and correct UEFI memory reporting. Update chipset, storage, graphics and network drivers from the vendor. Restart, then run the Win32_DeviceGuard query again and read VirtualizationBasedSecurityStatus and SecurityServicesRunning.

Frequently asked questions

Is virtualization based security turned on by default in Windows 11?
On many new Windows 11 devices, yes. Microsoft says memory integrity, which runs on VBS, is enabled by default on many new devices that meet the hardware and compatibility requirements, and that it is expanding enablement to eligible existing devices. Whether it protects your PC depends on eligibility, driver compatibility, policy and a restart, so check the real state with the Win32_DeviceGuard query.
What is the difference between VBS and memory integrity?
VBS is the isolation layer: the hypervisor creates a protected virtual environment. Memory integrity (also called HVCI) is one security feature that runs inside it, checking kernel mode drivers and binaries before they load. Credential Guard is another feature built on the same layer.
Does VBS work inside a virtual machine?
Yes. Microsoft says VBS works on VMs that have nested virtualization support or Guest VSM enabled. Guest VSM is enabled by default for Generation 2 VMs on Hyper-V, and that includes all Generation 2 VMs on Microsoft Azure.
Does VBS need a TPM?
Yes. Microsoft's VBS requirements list Trusted Platform Module (TPM) 2.0 and Secure Boot alongside CPU virtualization extensions, second level address translation, an IOMMU, firmware protections for System Management Mode, and compatible drivers.

Sources