Microsoft’s Kitchen Knife: How KslDump Exposes the BYOVD Attack Surface Microsoft Won’t Fix + Video

Listen to this Post

Featured Image

Introduction:

The concept of “Bring Your Own Vulnerable Driver” (BYOVD) has long been a favored technique for attackers seeking to escape user-mode constraints and execute code with kernel-level privileges. Microsoft’s recent handling of the KslDump tool—a utility that leverages a legitimate but vulnerable Microsoft driver to achieve administrator-to-SYSTEM privilege escalation—highlights a contentious security boundary. While Microsoft typically does not classify local privilege escalation from admin to SYSTEM as a vulnerability, the weaponization potential of leaving such drivers on disk presents a critical risk that defenders must actively mitigate.

Learning Objectives:

  • Understand the mechanics of BYOVD attacks and why Microsoft’s vulnerable drivers remain a persistent threat.
  • Learn to enumerate and identify vulnerable drivers on Windows systems using command-line tools and PowerShell.
  • Implement defensive strategies, including Windows Defender Application Control (WDAC) and driver block lists, to prevent abuse of legitimate drivers.

You Should Know:

1. The BYOVD Mechanism and KslDump

The KslDump tool, developed by researcher Andrea Bocchetti, exemplifies a sophisticated BYOVD attack. It operates by exploiting a Microsoft-signed vulnerable driver that remains on the system post-installation. The core concept is simple: instead of importing a malicious, unsigned driver (which would be blocked by modern security controls), the attacker leverages a driver that Microsoft itself has already placed—and signed—on the disk. KslDump takes this “knife left in the kitchen” and uses it to escalate privileges.

Step‑by‑step guide explaining what this does and how to use it:

From an attacker’s perspective, the process typically involves:

  1. Driver Enumeration: Identifying if the vulnerable driver (often associated with older hardware support or debugging tools) exists on the target system.
    PowerShell command to list all installed drivers
    Get-WindowsDriver -Online | Where-Object { $_.ProviderName -like "Microsoft" } | Select-Object OriginalFileName, Driver
    
  2. Driver Loading: Using Windows service control or a tool like `sc.exe` to create and start the vulnerable driver service.
    sc.exe create VulnerableDriver binPath= "C:\Path\To\Driver.sys" type= kernel start= demand
    sc.exe start VulnerableDriver
    
  3. Exploitation: The KslDump tool then communicates with the driver using specific IOCTL (Input/Output Control) codes. These codes contain flaws that allow an attacker to manipulate kernel memory, effectively granting SYSTEM privileges.
    Example using KslDump from the GitHub repository
    KslDump.exe --exploit
    

2. Detection and Monitoring for BYOVD Attacks

Proactive defense requires continuous monitoring for anomalous driver behavior. Security teams must look for drivers being loaded from unexpected paths or services that are started shortly after a user gains administrative access.

Step‑by‑step guide explaining what this does and how to use it:
– Enable Driver Block Lists: Microsoft provides a driver block list that can be updated via Group Policy to prevent known vulnerable drivers from loading.

 Check current driver block list policy
Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CI\Policy" -Name "DriverBlocklist"

– Monitor with Sysmon: Configure Sysmon (System Monitor) to log driver load events (Event ID 6) and filter for Microsoft-signed drivers with unusual filenames or locations.

<!-- Sysmon configuration snippet to monitor driver loads -->
<EventFiltering>
<DriverLoad onmatch="include">
<Image condition="contains">\driver.sys</Image>
</DriverLoad>
</EventFiltering>

– Utilize Windows Defender Exploit Guard: Implement attack surface reduction rules to block processes from loading unsigned or vulnerable drivers.

 Enable block of untrusted and vulnerable drivers
Set-MpPreference -AttackSurfaceReductionRules_Ids "d3e037e4-6f4f-4b6c-8e6f-6a5b3c7d8e9f" -AttackSurfaceReductionRules_Actions Enabled

3. Mitigation: Hardening the Kernel Attack Surface

Preventing BYOVD attacks is not merely about patching; it requires a fundamental shift in how administrative privileges are managed and how drivers are vetted. Since Microsoft does not classify admin-to-SYSTEM escalation as a vulnerability, the onus falls on the organization to enforce strict controls.

Step‑by‑step guide explaining what this does and how to use it:
– Deploy Windows Defender Application Control (WDAC): WDAC allows you to explicitly control which drivers are allowed to run. This is the most effective method to block both known and unknown vulnerable drivers.

 Generate a base WDAC policy that allows only Microsoft and your organization's signed drivers
New-CIPolicy -FilePath C:\WDAC\BasePolicy.xml -Level Publisher -Fallback Hash
ConvertFrom-CIPolicy -XmlFilePath C:\WDAC\BasePolicy.xml -BinaryFilePath C:\WDAC\BasePolicy.bin

– Regularly Audit and Remove Obsolete Drivers: Use a script to identify drivers not used within a specific timeframe and remove them.

 Identify drivers that are loaded but correspond to deprecated hardware
Get-WmiObject Win32_PnPSignedDriver | Where-Object { $_.DriverDate -lt (Get-Date).AddYears(-5) } | Select-Object DeviceName, DriverVersion

– Implement Virtualization-Based Security (VBS) and Hypervisor-Protected Code Integrity (HVCI): These features run kernel security in a hypervisor-protected environment, making it significantly harder for a compromised driver to persist even if loaded.

 Check HVCI status
Get-ComputerInfo -Property "DeviceGuard"

4. Privilege Escalation and the Admin-to-SYSTEM Fallacy

The KslDump research underscores a critical point: in enterprise environments, the distinction between Administrator and SYSTEM is often moot from a risk perspective. An attacker with administrative privileges can already disable security tools, exfiltrate data, and move laterally. However, achieving SYSTEM allows for deeper persistence, tampering with the kernel, and evading user-mode detection tools.

Step‑by‑step guide explaining what this does and how to use it:
– Simulate Lateral Movement: After gaining SYSTEM on one endpoint, attackers often use tools like `PsExec` or WMI to pivot.

 Using PsExec to maintain SYSTEM access
psexec.exe -s -i cmd.exe

– Post-Exploitation Defense: Security teams should implement Just Enough Administration (JEA) and Privileged Access Workstations (PAW) to ensure that administrative privileges are ephemeral and isolated, reducing the impact of such escalation techniques.

What Undercode Say:

  • Key Takeaway 1: Microsoft’s security boundary does not include admin-to-SYSTEM escalation, but attackers will continue to exploit this gap using signed, legitimate drivers, making proactive driver management a critical organizational responsibility.
  • Key Takeaway 2: Defenders must move beyond reliance on antivirus and adopt a layered security model that includes WDAC, HVCI, and continuous monitoring for anomalous driver load events to effectively mitigate BYOVD attacks.
  • The KslDump incident serves as a stark reminder that trust in vendor signatures is a liability when those signatures are attached to flawed code. As attackers refine their techniques, the industry must evolve to treat driver loading with the same scrutiny as remote code execution. The future of endpoint security lies not in patching every driver flaw—an impossible task—but in restricting the execution environment so rigidly that even signed, vulnerable drivers cannot be weaponized. Organizations should prioritize deploying WDAC and HVCI across all endpoints, particularly on systems with high-value data. While Microsoft may not classify these issues as vulnerabilities requiring an immediate patch, the threat landscape dictates that defenders act independently to close these gaps. The “knife” may be left in the kitchen, but proper security controls ensure that the kitchen remains locked.

Prediction:

As BYOVD techniques become more mainstream, expect to see an increase in tooling that automates the discovery and exploitation of signed vulnerable drivers. Microsoft may eventually be forced to re-evaluate its stance on admin-to-SYSTEM boundaries as cloud-based and hybrid work environments blur the lines of traditional privilege models. In the near term, security vendors will likely enhance their EDR solutions with dedicated BYOVD detection heuristics, focusing on driver provenance and post-load behavior rather than just file signatures.

▶️ Related Video (82% Match):

🎯Let’s Practice For Free:

IT/Security Reporter URL:

Reported By: Andreabocchetti My – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeTesting & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky