cannot turn on Kernel-Mode Hardware-enforced Stack Protection

2k1KellyB-0731 0 Reputation points
2024-05-03T14:01:25.2466667+00:00

I noticed that my Windows 11 Professional system in the Windows Security / Device Security / Core Isolation settings has "Kernel-Mode Hardware-enforced Stack Protection" disabled and grayed out, and above that it says that "This setting is managed by your administrator." I manage my computer as the only user (and thus have admin authority) and didn't directly do anything to turn that setting off or make it unchangeable. My system has at least an 11th generation Intel processor and I am using virtualization. Memory integrity is on and editable. Everything I've described in this post was true when I was using W11 Pro 22H2 (build 22621.3155) and is still true now that I am on W11 Pro 23H2 (build 22631.3447).

Does your computer "Kernel-Mode Hardware-enforced Stack Protection" have disabled and grayed out with the verbiage about it being managed by the administrator? I'm wondering if:

  • Windows no longer supports "Kernel-Mode Hardware-enforced Stack Protection" (e.g., because it has been replaced by something else) but the setting is still visible, or
  • Windows automatically disabled the setting (e.g., because of an incompatible driver), or
  • an application or driver disabled the setting (e.g., during installation), or
  • something else likely happened.

I don't think I made any group policy changes. In the registry for HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\KernelShadowStacks, Enabled is set to 0 and WasEnabledBy is set to 0x00000004 (4). Why/how do you think that those two keys got set that way?

If I want to turn on this stack protection, what do you think I should do? For example, would it be safe to use RegEdit to set Enabled=1 and WasEnabledBy=2 for KernelShadowStacks, and would Windows then tell me about any problematic drivers that I could then update or delete, or is there a better approach? I don't want to break something, cause security issues or other problems, etc.

Thank you for your help!

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,911 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,648 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wesley Li 8,855 Reputation points
    2024-05-08T13:15:33.1+00:00

    Hello

    It seems there are some prerequirements for this feature.

    • TPM 2.0 (also referred to as your security processor)
    • Secure boot enabled
    • DEP
    • UEFI MAT

    Device protection in Windows Security - Microsoft Support


  2. Paul Alexandru Cazacliu 0 Reputation points
    2024-07-28T21:07:35.8033333+00:00

    Hello Wesley Li, please don't play the wise guy with the wrong arguments. I have a 13th-gen Intel CPU i7-13700k on an Asus TUF GAMING motherboard B660M-E D4 so you can bet your ass that it has TPM 2.0, DEP, and UEFI MAT and Secure Boot is enabled, but still Kernel-mode Hardware-enforced Stack Protection is off and cannot be turned off because it's greyed out. And I'm the administrator, I build my PC, and I'm the only user!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.