Back to blog
Threat Intel
Phishing Forensics

Deconstructing BYOVD: Blinding Defenses from Ring 0

When ransomware operators want your security stack dead, they drop a signed, vulnerable kernel driver and pull the plug from beneath.

MailSleuth Research
Email Security Team
September 6, 20267 min read
A glowing trapdoor opening beneath a steel vault, illustrating kernel level attacks bypassing defenses.

Threat actors have stopped trying to arm-wrestle security agents in user space. They realized that if you can establish a foothold in Ring 0, the entire defense stack is sitting on a trapdoor. You do not need a novel exploit to subvert a modern security sensor. You just need a ten-year-old, poorly written hardware monitor utility signed by a legitimate certificate authority.

When incident responders arrive on the scene of a mature ransomware deployment, they often find the endpoint agents completely silent. The telemetry simply stops mid-execution. This is not a software crash or a lucky network configuration error. This is the Bring Your Own Vulnerable Driver technique at work, a staple for ALPHV, Scattered Spider, and anyone else operating at the sharp end of modern extortion.

We are going to rip apart how this kernel-level sabotage actually executes, why user-mode tamper controls fail against it, and how defensive architecture must evolve to intercept the load sequence before the sensor goes dark.

The Resurgence of the Vulnerable Driver

Security agents operate with extensive privileges, deeply hooking into the Windows operating system to monitor process execution, memory allocation, and network connections. To prevent attackers from simply turning them off, vendors implemented edr tamper protection. This defense mechanism relies on Windows concepts like Protected Process Light, ensuring that only trusted, properly signed binaries can interact with or terminate the security agent.

If an attacker with standard local administrator privileges tries to kill the service using native process termination tools, the operating system denies the request. The protection holds. But this architectural boundary assumes the kernel itself remains uncompromised.

The Economics of Kernel Access

Scattered Spider and ALPHV recognized this structural dependency early on. Instead of finding complex user-mode exploits to bypass tamper controls, they shifted their focus downward. They began bundling old, commercially signed drivers with their ransomware payloads. These drivers belong to legitimate software like motherboard diagnostic tools, firmware updaters, or even video game anti-cheat engines.

The Genshin Impact anti-cheat driver became a massive favorite in recent years precisely because it was heavily distributed, properly signed, and contained a glaring flaw allowing any user-mode application to read and write arbitrary kernel memory. Burning a novel kernel exploit on a ransomware deployment is a terrible waste of resources with a short shelf life. But a legitimate, digitally signed driver with a known flaw is an infinite resource. As long as the cryptographic signature remains valid in the eyes of the Windows operating system, the driver will load. The attacker borrows the trust established by the hardware vendor to cross the kernel boundary.

Dismantling Tamper Controls from the Inside

Once the vulnerable driver is loaded into kernel space, the attacker deploys a user-mode component to interact with it. This component acts as the controller, sending specific DeviceIoControl requests to the driver over a symbolic link. Because the driver contains a flaw in how it validates these incoming requests, the controller can direct it to manipulate kernel memory directly.

This is where the agent meets its match. The security software relies on the EPROCESS structure in the Windows kernel to define its protection level. Specifically, the Protection member of this structure dictates whether the process is designated as Protected Process Light.

Patching the EPROCESS Structure

Using the read-write primitive provided by the vulnerable driver, the attacker scans kernel memory to locate the EPROCESS structure of the target security agent. They find the exact byte responsible for the protection designation and overwrite it with zeros. Instantly, the operating system stops treating the agent as a protected entity. The armor is gone.

At this point, the attacker does not even need kernel privileges to finish the job. With the protection flag removed, a standard user-mode script or a simple API call can terminate the security process. The telemetry pipeline goes dark. The Local Security Authority subsystem, which also relies on these same mechanisms to protect credential material in memory, is equally vulnerable to this exact memory patching technique. The attacker blinds the security sensor and clears the path for credential dumping in a single sequence.

Tracing the Execution Flow

Understanding the execution flow is critical for defenders because the kernel-level bypass is actually the final stage of the sequence. Before the driver can patch memory, it must be staged, configured, and loaded. This creates a highly visible chain of events in the Windows event logs.

Attackers typically use living-off-the-land binaries to stage the payload. They might drop the driver file into standard temporary directories, public user profiles, or even directly into the Windows drivers folder to blend in. Next, they must create a service to instruct the operating system to load the driver into memory. The attacker will execute the Service Control utility or directly call the CreateService API from a compiled executable.

EventID 7045: A service was installed in the system. Service Name: mhyprot2. Service File Name: C:\Windows\Temp\mhyprot2.sys. Service Type: kernel mode driver. Start Type: Demand start. — Windows System Event Log

This log entry represents the precise moment the defense perimeter is breached. Following the service creation, the attacker issues the start command to execute the driver. This is the moment the Windows kernel verifies the digital signature of the file. If the system is not configured with a strict driver blocklist, the operating system sees a valid signature from a known vendor and maps the driver into Ring 0. The user-mode controller then initializes communication, sends the exploit payload via an IOCTL request, and the sensor dies.

Detection Engineering with Sysmon

Hunting for this behavior requires a precise understanding of what is normal for your environment. Security operations centers cannot simply alert on all new kernel drivers being loaded, as legitimate software updates trigger this constantly. The detection engineering must focus on the specifics of the driver load event.

Sysmon Event ID 6, which triggers on driver loading, is the cornerstone of this defensive strategy. When configured correctly, Sysmon captures the driver file path, the cryptographic hashes, and the signature status. Analysts must proactively ingest lists of known vulnerable driver hashes and cross-reference them against this telemetry.

Hunting the Anomalies

Relying strictly on static blocklists is a failing strategy against advanced adversaries. Scattered Spider constantly rotates through obscure, highly localized vulnerable drivers that are not yet tracked by mainstream security vendors. Instead of just hunting for bad hashes, analysts must look for contextual anomalies.

A kernel driver loading from a user profile directory, a temporary folder, or a public file share is an immediate red flag. Legitimate kernel drivers should reside in designated Windows system directories. Furthermore, correlating Event ID 6 with a subsequent and sudden cessation of telemetry from that specific endpoint provides a high-confidence indicator of a successful driver-based attack. If an endpoint stops checking in five seconds after a driver loads from a temp directory, incident response protocols must activate immediately.

Hardening the Kernel Boundary

Detection is only half the battle. If you are waiting for a Sysmon alert to fire when the EDR process dies, you are already behind the timeline. The adversary is moving laterally while your on-call analyst is just opening the ticket. To stop this attack class, defenders must prevent the vulnerable driver from loading into the kernel in the first place.

The most effective control mechanism available natively in the operating system is Windows Defender Application Control. Microsoft maintains a constantly updated Vulnerable Driver Blocklist that integrates directly with this framework and Hypervisor-Protected Code Integrity.

Enforcing the Blocklist via Code Integrity

Implementing the Microsoft blocklist ensures that even if a driver possesses a valid digital signature, the operating system will refuse to load it if the hash matches a known vulnerable entity. This effectively neutralizes the primary advantage of the attack.

Activating this defense requires careful planning. IT administrators must audit their current fleet to ensure legacy hardware dependencies do not rely on drivers present on the blocklist. A phased rollout, starting with audit mode, allows security engineers to identify potential conflicts before switching to enforcement mode. Once enforced, the kernel refuses the payload, the service fails to start, and the attacker is left stranded in user space with an active security agent watching their every move.

The takeaway

The assumption that kernel space is inherently secure because of modern driver signature enforcement has proven critically flawed. Attackers have weaponized the massive backlog of poorly written legacy software to bypass the exact mechanisms designed to stop them.

When we analyze initial access vectors here at MailSleuth.AI, whether it starts with an advanced phishing campaign or a compromised identity token, the endgame for the adversary on the endpoint is almost always blinding the defensive telemetry. You cannot rely solely on your security agents to protect themselves from an adversary holding kernel privileges. You must proactively harden the boundary, intercept the load sequence, and ensure that the only code executing in Ring 0 is code you implicitly trust.

#byovd#edr#kernel-security#scattered-spider#sysmon#wdac#ransomware
MailSleuth Research
Email Security Team

We dissect phishing campaigns and email infrastructure so you don't have to.