Open Windows Security's core isolation page on a recent PC and you may see a setting with a mouthful of a name: Kernel-mode Hardware-enforced Stack Protection. It uses a security feature built into newer Intel and AMD processors to stop a common kind of attack on the Windows kernel, and it's off by default, whereas memory integrity is switched on automatically on many newer PCs. This guide explains what it does, which CPUs support it, how to turn it on, and what to do if Windows says a driver is incompatible. It's based on Microsoft's support and Learn documentation, checked on 1 December 2026.
What it does
When code runs, the processor keeps return addresses on a stack so it knows where to go back to after each function finishes. Malicious programs or drivers can corrupt those return addresses in kernel-mode memory to redirect execution to their own code. With this feature on, supported CPUs keep a second copy of valid return addresses on a read-only shadow stack that drivers can't modify. If an address on the normal stack doesn't match the shadow copy, Windows stops with a blue screen rather than let the malicious code run.
Microsoft describes it as complementing Control Flow Guard: Control Flow Guard checks indirect calls, while hardware-enforced stack protection checks returns.
What you need
According to Microsoft, the prerequisites are:
Windows 11 2022 update or newer.
Windows Security app version 1000.25330.0.9000 or newer.
A CPU that supports Intel Control-flow Enforcement Technology (CET) or AMD Shadow Stack. Microsoft's examples are 11th Gen Intel Core mobile processors and AMD Zen 3 cores and newer.
Virtualization-based security (VBS) and memory integrity, also called hypervisor-protected code integrity (HVCI), turned on.
Memory integrity in turn needs hardware virtualization enabled in your UEFI/BIOS. If it's off, see our guide to enabling virtualization in the BIOS first. Microsoft says VBS and memory integrity are switched on automatically on Windows systems that meet the minimum hardware requirements, so many newer PCs already have them. If you're not sure what CPU you have, a tool from our best free system information tools will tell you.
Step 1: Turn on memory integrity
Open the Windows Security app.
Go to Device security > Core isolation details > Memory integrity.
Set it to On, then restart your PC.
If memory integrity won't turn on because of an incompatible driver, our guide to fixing memory integrity incompatible drivers walks through finding and removing it.
Step 2: Turn on hardware-enforced stack protection
Open Windows Security again.
Go to Device security > Core isolation details > Kernel-mode Hardware-enforced Stack Protection.
Set it to On, and restart if prompted.
Microsoft notes that the features shown on the core isolation page vary with your Windows version and hardware. If the setting doesn't appear at all, check the prerequisites above: Windows and Windows Security app versions, and CPU support for CET or AMD Shadow Stack.
Using Group Policy instead
If your edition of Windows includes the Local Group Policy Editor, Microsoft documents a second route aimed at business users:
Open the Local Group Policy Editor.
Go to Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security.
Make sure the policy is Enabled.
Under Options, find Kernel-mode Hardware-enforced Stack Protection and select Enabled in enforcement mode.
Select Apply, then OK.
If it says a driver is incompatible
Microsoft says a small number of legitimate drivers modify return addresses for non-malicious reasons, so they don't work with this feature. Its examples are apps that use obfuscation engines to protect their code and disguise control flow. Windows keeps a list of drivers known to be incompatible, and instead of letting them crash the PC, it simply doesn't let them load when the feature is on, showing a prompt that a driver cannot load on this device.
The feature can't be turned on until incompatibilities are resolved. Select Review incompatible drivers to see what's blocking it, then either get an updated driver from the device maker or app publisher, or remove the app or device that installed it. Microsoft notes that some apps install a service first and only load their driver when the app launches, so Windows also lists services known to be associated with incompatible drivers. If an app you rely on stops working after you turn the feature on, you can switch it off again in Windows Security, though Microsoft points out that doing so lowers your PC's security.
Should you turn it on?
If your CPU supports it and memory integrity is already running without problems, it's an extra layer of kernel protection that's easy to try, and you can reverse it from the same toggle. It sits alongside the other core isolation settings rather than replacing them: the Microsoft Vulnerable Driver Blocklist stops known-bad drivers loading at all, and memory integrity checks kernel code before it runs.