Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Kernel-Mode Code Integrity (KMCI)
Architecture & Implementation

Kernel-Mode Code Integrity (KMCI)

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Architecture & Implementation

Kernel-Mode Code Integrity (KMCI) is the Windows mechanism that checks kernel-mode code, such as drivers, is validly signed before it loads. Attackers bypass it by loading legitimately signed but vulnerable drivers to gain kernel access. Defenders enable memory integrity, apply driver blocklists and application control policies, and monitor for new or unexpected driver loads.

What KMCI actually does

Kernel-Mode Code Integrity is a Windows trust check for kernel drivers and other kernel-mode code. Its job is to stop untrusted code from entering the most privileged part of the operating system, where a mistake or bypass can affect the whole machine rather than a single application.

The practical value of KMCI is that it turns driver loading into an enforcement point. If a driver is not accepted by policy, it should not be able to run in kernel space. That matters because kernel code can observe, modify, or hide activity across the system, so integrity failures at this layer are far more serious than ordinary application issues.

Why attackers care about kernel-mode trust

Attackers target KMCI because kernel access changes the defensive game. A signed but vulnerable driver can be used as a trusted execution path, which is why Windows Memory Integrity (HVCI) Guide is relevant to any defender trying to reduce BYOVD-style abuse. Once code runs in kernel mode, it can disable protections, tamper with security tooling, and make response work much harder.

KMCI also matters because signature validity is not the same as safety. A driver may be legitimately signed and still contain exploitable logic, outdated assumptions, or behaviours that attackers can weaponize. That is why code-signing trust, driver reputation, and blocklists need to be treated as separate layers, not as one control.

How organisations reduce exposure

Exposure checking starts with asset awareness: you need to know which Windows endpoints allow third-party drivers, which hardware or software stacks depend on them, and where memory integrity or other related protections are actually enabled. Without that inventory, KMCI can be present in policy but absent in practice.

Policy enforcement is usually strongest when KMCI is paired with application control and driver blocklists. App Control for Business (WDAC) helps reduce what the platform will accept, while driver blocklists reduce the chance that known-bad or dangerous-but-signed drivers can be loaded. For deeper platform context, M1045 Code Signing explains why signing is useful but not sufficient on its own.

Operationally, exposure review should include vendor advisories, driver provenance, and changes to hardware or security software that may alter driver compatibility. Where organisations run EDR or other kernel-aware tooling, Kernel-Mode vs User-Mode EDR is a useful lens because protection depth and tamper resistance vary sharply depending on where the agent runs.

Detection, response, and post-compromise review

KMCI failures often show up as unexpected driver loads, drivers that should never be present on a hardened build, or security tools being tampered with after a vulnerable driver is introduced. Monitoring should therefore focus on new kernel modules, code integrity events, and sudden changes in protection status rather than only on classic malware alerts.

After an incident, review whether the driver was abused only as an execution primitive or whether it was also used to disable defenses, hide processes, or persist. The D3-DLIC Driver Load Integrity Checking guide is useful here because it connects driver integrity validation to detection and verification thinking, while D3-PCSV Process Code Segment Verification helps frame follow-on memory integrity checks when kernel compromise is suspected.

If compromise is confirmed, response should include driver removal, blocklist updates, and a review of the security stack that trusted the driver in the first place. In kernel-space incidents, post-patch assurance matters as much as remediation, because a system can remain trustworthy in appearance while still being instrumented by the earlier kernel foothold.

Risk and Threat Considerations

KMCI is a high-value control because kernel compromise can outlast the initial exploit and undermine the endpoint’s own defenses. Attackers favour this layer when they want stealth, persistence, or the ability to interfere with detection, and signed-vulnerable-driver abuse is one of the clearest ways to bypass platform trust without needing to drop obviously malicious code.

Failure mechanism: A validly signed but vulnerable or abused driver is loaded into kernel space, then used to disable protection, gain privileged execution, or conceal malicious activity from user-mode tooling.

Impact: The attacker may obtain durable control of the endpoint, weaken monitoring, and create a platform where ordinary remediation steps no longer provide reliable assurance.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SI-7 — Software, Firmware, and Information IntegrityKMCI enforces kernel code integrity and blocks untrusted or altered code from loading.
CM-5 — Access Restrictions for ChangeDriver loading is a privileged change path that KMCI and blocklists help constrain.
SI-3 — Malicious Code ProtectionKMCI reduces malicious or unsafe kernel code execution on Windows endpoints.
Recommendation — Apply SI-7 to verify kernel code integrity and block untrusted drivers before execution. Restrict driver installation and loading to approved change paths under CM-5. Use SI-3 to detect and prevent malicious or unsafe code from reaching kernel mode.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareKMCI depends on hardened endpoint settings, memory integrity, and driver control.
CIS-10 — Malware DefensesBlocklisting and driver monitoring support detection and prevention of BYOVD-style abuse.
Recommendation — Harden endpoint configuration to keep code integrity and driver controls consistently enforced. Combine malware defenses with driver blocklists to reduce vulnerable-driver abuse.
ISO/IEC 27001:2022A.8.9 — Configuration managementKMCI relies on controlled security configuration for Windows integrity settings and driver policy.
Recommendation — Manage integrity-related Windows settings through controlled configuration and change approval.

Practitioner Guidance

Why practitioners should care: KMCI is only effective when signing trust, blocklists, and endpoint policy are managed together. A system that technically supports code integrity but allows risky drivers through exceptions or stale policies can still be exposed to BYOVD abuse.

What to watch for: Treat newly loaded drivers, sudden changes in driver inventory, and any loss of memory integrity or code-integrity enforcement as investigation triggers. The key judgement is whether the platform is enforcing trust consistently, not whether a driver merely looks familiar.

Practitioner takeaway: Use KMCI as part of a layered control set, then verify it continuously, because the attacker only needs one trusted path into kernel mode.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org