Cybersecurity researchers have uncovered a novel technique that allows hackers to leverage Windows kernel structures to hide malicious processes from detection tools, even while advanced security measures like PatchGuard remain active. This exploitation of Kernel Patch Protection (PatchGuard) by attackers, detailed by Outflank analysts, circumvents standard monitoring capabilities, presenting a significant challenge for maintaining system integrity and visibility.
The discovered method exploits a critical timing vulnerability during the process termination sequence, enabling malware to operate undetected for extended periods. This bypass highlights a sophisticated approach to achieving persistence on Windows systems by manipulating internal operating system data, rather than directly disabling security features. The implications for endpoint detection and response (EDR) systems are substantial, as conventional process monitoring may prove insufficient.
Hackers Can Leverage Kernel Patch Protection to Hide Process from Task Manager
A newly documented technique allows attackers to effectively hide running processes from virtually all monitoring tools, including robust security solutions and standard utilities like Task Manager and Process Hacker. This sophisticated attack method, identified by security researchers, exploits a specific window during the process termination lifecycle in Windows. By manipulating internal kernel data structures, malicious actors can ensure their operations remain invisible to system administrators and security software until they choose to reveal themselves or are discovered through other means.
Microsoft has implemented multiple layers of defense, such as PatchGuard, designed to prevent unauthorized modifications to critical kernel components, and hypervisor-protected integrity (HVCI), which safeguards code pages from direct alteration. However, Outflank’s findings suggest that these protections, while robust, can be bypassed by focusing on data manipulation rather than code injection. This new approach does not require attackers to disable these security mechanisms but rather to operate within their constraints, exploiting specific timing windows.
Process List Manipulation and the Termination Problem
At the core of this technique lies the manipulation of Windows’ internal process management structures. Windows maintains a list of all active processes, typically managed through a doubly-linked list known as ActiveProcessLinks within the EPROCESS structure. This list uses forward and backward pointers to chain together each running process. To hide a process, an attacker can simply unlink it from this chain, making it appear as if the preceding process directly points to the succeeding one, effectively skipping the hidden process in the sequence.
The challenge for attackers arises during the termination of the hidden process. The Windows kernel function, PspProcessDelete, is responsible for validating the integrity of these linked structures before performing cleanup. This validation checks for bidirectional consistency between the forward and backward pointers. If any corruption or inconsistency is detected during this phase, the system will trigger a KERNEL_SECURITY_CHECK_FAILURE, resulting in a system crash or Blue Screen of Death (BSOD). This integrity check is a crucial safeguard against precisely this type of manipulation.
The workaround discovered by researchers involves leveraging the PsSetCreateProcessNotifyRoutineEx callback function. This documented Windows API allows drivers to register for notifications regarding process creation and termination. By registering such a callback, a malicious driver can receive the EPROCESS structure of a terminating process just before the PspProcessDelete validation routine executes. At this critical juncture, the malicious driver can perform on-the-fly repairs to the LIST_ENTRY structure, restoring the necessary consistency to the forward and backward pointers.
This rapid, micro-second repair effectively fools the integrity checks. The process is unlinked and invisible for its entire execution lifetime, only to be momentarily “re-linked” before termination. The validation checks find no anomalies, and the process terminates cleanly, leaving no trace of its hidden presence during its active phase. Crucially, this method operates on writable data structures, which are not protected by hardware-enforced integrity mechanisms like HVCI, allowing attackers to modify them.
The primary practical barrier to widespread exploitation of this technique remains the requirement for kernel-level execution privileges. Furthermore, deploying a malicious driver typically necessitates a valid driver signature, which is a significant hurdle for most attackers. However, the discovery underscores the ongoing cat-and-mouse game between security defenders and attackers, who continue to innovate methods to subvert even the most advanced security postures.
Moving forward, security vendors will likely focus on developing more sophisticated behavioral analysis and anomaly detection techniques that can identify deviations from normal system behavior, even when direct process visibility is compromised. The development of kernel integrity monitoring tools that can detect attempted manipulations of data structures, rather than just code, will also be a key area of focus. The long-term impact of this vulnerability depends on how quickly Microsoft and third-party security providers can patch or mitigate this specific exploitation vector.

