sodcalculator

10 Tech How-To

Byovd Attack: Evade Microsoft Defender for Ransomware?

Guide 10-50636 · Updated · Step by step

No, the Byovd attack does not evade Microsoft Defender, and Defender is not a bypass tool for ransomware. Byovd is a known malware family that has been observed attempting to disable security software, but Microsoft Defender includes specific protections that detect and block this behavior, and it is not designed to help ransomware evade detection. Below we explain what Byovd is, how it works, and how Defender responds, plus what you should actually do to protect against ransomware.

What Is the Byovd Attack?

Byovd (also written as BYOVD) is an acronym for “Bring Your Own Vulnerable Driver.” It is a technique used by attackers to load a legitimate but outdated or vulnerable Windows driver into the kernel, then exploit that driver’s known flaw to gain elevated privileges or disable security controls. The name comes from the fact that the attacker “brings” the driver themselves, rather than exploiting a driver already on the system.

In the context of ransomware, Byovd is often used as a pre-attack step. The attacker first gains some level of access (perhaps through phishing or a remote exploit), then loads a vulnerable driver to disable antivirus or to bypass user account control (UAC). Once the security software is down or the attacker has kernel-level access, the ransomware payload can be deployed with less chance of being stopped. Byovd itself is not ransomware—it is an enabling technique.

Commonly abused drivers include older versions of hardware drivers (e.g., from motherboard vendors, graphics card makers, or security products themselves) that have known vulnerabilities allowing arbitrary code execution in kernel mode. Microsoft has published a list of drivers that are blocked by default in Windows because they are known to be vulnerable.

How Does Byovd Work in Practice?

The attack typically follows these steps:

  1. Gain initial access – The attacker compromises a user account or exploits a remote service to get a foothold on the machine.
  2. Drop a vulnerable driver – The attacker copies a known-vulnerable driver file (for example, a signed driver from a legitimate vendor that has a flaw) to the system.
  3. Load the driver – Using a service creation or a kernel-level exploit, the attacker loads the driver. On modern Windows, loading unsigned or untrusted drivers is blocked by default, but signed vulnerable drivers can still be loaded if they are not on the blocklist.
  4. Exploit the vulnerability – The attacker triggers the flaw in the driver to execute code in kernel mode, which gives them the highest privilege level in Windows.
  5. Disable security or deploy ransomware – With kernel access, the attacker can kill antivirus processes, delete security services, or directly inject ransomware code that is difficult for user-mode security tools to see.

This technique is not new—it has been used in various forms for years, and Microsoft has been actively hardening Windows against it. The Windows kernel now checks driver signatures and maintains a blocklist of known-vulnerable drivers, which is updated via Windows Update. However, attackers sometimes find new drivers to exploit before they are added to the blocklist.

Does Microsoft Defender Detect or Block Byovd?

Yes, Microsoft Defender (including Microsoft Defender for Endpoint, the enterprise version) has multiple layers of defense that can detect and block Byovd attacks:

  • Driver blocklist – Windows includes a built-in list of vulnerable drivers that are blocked from loading. This list is updated regularly and covers many known Byovd drivers.
  • Memory integrity (HVCI) – Windows Security offers a feature called Memory Integrity, also known as Hypervisor-protected Code Integrity (HVCI). When enabled, it prevents unsigned or vulnerable drivers from being loaded into kernel memory, even if they are signed.
  • Behavioral detection – Microsoft Defender uses machine learning and behavioral monitoring to detect suspicious activity, such as a driver being loaded from a temporary folder or an unusual service creation. Even if a driver is not on the blocklist, Defender may flag the behavior as malicious.
  • Attack surface reduction rules – Defender for Endpoint includes rules that can block processes from creating or loading drivers from unusual locations, and can also block the exploitation of vulnerable drivers.

In practice, an attacker using Byovd may attempt to disable Defender itself by exploiting a vulnerable driver to kill its processes. However, Defender has tamper protection that prevents unauthorized changes to its own settings and processes. If tamper protection is enabled (it is on by default for consumer versions), even a kernel-level attacker cannot easily disable Defender without also disabling tamper protection, which itself requires administrative privileges and may trigger alerts.

That said, no security product is perfect. There have been instances where attackers found new drivers or techniques that temporarily bypassed these protections. But the claim that Byovd “evades” Microsoft Defender is not accurate as a general statement—Defender is specifically designed to counter this technique, and it has a strong track record of doing so.

How to Protect Yourself from Byovd and Ransomware

Even though Defender is effective, you should not rely solely on it. Here are practical steps to reduce your risk:

  • Keep Windows and Defender updated – Microsoft regularly adds new drivers to the blocklist and improves detection. Enable automatic updates.
  • Enable Memory Integrity – Go to Windows Security > Device Security > Core isolation and turn on Memory Integrity. This blocks many Byovd attacks by preventing vulnerable drivers from loading.
  • Use a standard user account – Byovd requires administrative privileges to load a driver. If you use a standard account for daily work, the attacker will need to escalate privileges first, which gives Defender more chances to detect.
  • Enable tamper protection – This is on by default, but verify it is enabled in Windows Security > Virus & threat protection > Manage settings.
  • Back up your data – Ransomware can still slip through. Keep offline or cloud backups that are not accessible from your main system, and test recovery regularly.
  • Use application control – In enterprise environments, enable Windows Defender Application Control (WDAC) or AppLocker to block unauthorized drivers and executables.

Common Misconceptions About Byovd and Defender

One common misconception is that Byovd is a specific piece of malware. In reality, it is a technique that can be used by various malware families, including some ransomware. Another misconception is that once an attacker loads a vulnerable driver, Defender is powerless. This is false—Defender’s tamper protection and kernel-level monitoring are designed to resist such attacks, and Microsoft has invested heavily in this area.

Another myth is that you need a third-party antivirus to block Byovd. While some third-party products offer additional driver protection, Microsoft Defender is built into Windows and is continuously updated. For most home users, Defender with Memory Integrity enabled is sufficient. For businesses, Defender for Endpoint provides even more advanced protection.

What to Do If You Suspect a Byovd Attack

If you believe your system has been compromised, act quickly:

  1. Disconnect from the network – This can prevent ransomware from spreading or communicating with its command-and-control server.
  2. Run a full offline scan – Use Windows Defender Offline (available in Windows Security) to scan for malware without booting the full OS.
  3. Check for driver blocklist updates – Ensure Windows Update has installed the latest driver blocklist.
  4. Review recent driver installations – Look for any suspicious .sys files in C:\Windows\System32\drivers or in the Windows event logs.
  5. Restore from backup – If ransomware has encrypted your files, the only reliable recovery is from a clean backup.

If you are in an enterprise environment, contact your IT security team immediately. They can use Microsoft Defender for Endpoint’s investigation tools to trace the attack and remediate.

Frequently Asked Questions

Can Byovd completely disable Microsoft Defender?

In theory, a sophisticated attacker could exploit a zero-day driver vulnerability to disable Defender, but it is not easy. Tamper protection prevents most attempts, and any successful tampering would likely trigger alerts. Microsoft patches known driver vulnerabilities quickly, and the blocklist is updated regularly.

Is Byovd a new attack?

No, the technique has been around for years. It gained attention in the security community around 2019-2020 as more ransomware groups adopted it. Microsoft has been actively mitigating it since then.

Does enabling Memory Integrity affect performance?

Memory Integrity can cause a small performance impact, especially on older hardware, but on modern systems it is usually negligible. If you experience issues, you may need to update drivers or disable the feature, but it is recommended to keep it on for security.

Can I manually add drivers to the blocklist?

Yes, advanced users can use Group Policy or the Microsoft Recommended Driver Block Rules to add their own list of blocked drivers. This is more common in enterprise environments.

Is Microsoft Defender enough for ransomware protection?

For most consumers, yes, especially when combined with good backup practices and safe browsing habits. For businesses, Defender for Endpoint offers additional threat hunting and response capabilities. No antivirus is 100% foolproof, so layered defenses are always recommended.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →