.NET Code Integrity Bypass: One Bit Beat Windows UMCI

By 12 min read
.NET code integrity bypass where one cleared PE header bit lets unsigned code run on Windows

One flag, one bit, in the header of a .NET file was enough to get unsigned code past Windows user-mode code integrity on a locked-down Windows 11 S Mode machine. Google Project Zero published the details on 23 November 2026, along with the same trick working against VirtualBox’s process hardening.

In short: the .NET code integrity bypass works because clearing the executable image flag in an assembly’s PE header makes Windows refuse to map the file as an image, and .NET Framework 4 quietly falls back to loading it as data, where image-based checks never run. Microsoft fixed the Windows side (CVE-2026-108398) on 13 October 2026 and Oracle fixed VirtualBox (CVE-2026-87268) in September. One related route into Protected Process Light remains open by design.

What is the .NET code integrity bypass?

It is a loader mismatch between Windows and the .NET Framework 4 runtime, described by James Forshaw of Google Project Zero in a post titled “VirtualBox Process Hardening on Windows 2026 Edition”. Windows decides whether a file is a valid image, and when it says no, .NET loads the file another way and runs it anyway.

Code integrity is the Windows feature that checks a file’s signature before it can run. User-mode code integrity (UMCI) applies that check to ordinary programs and libraries, not just drivers. It is enforced through App Control for Business, formerly Windows Defender Application Control (WDAC), and through the locked-down Windows 11 S Mode.

Four headline figures: one bit changed, three new bypasses, CVSS 8.8, nineteen CVEs fixed
The whole bypass rests on one header bit, but it sat in an update that fixed 19 .NET Framework CVEs. Data: Google Project Zero, Microsoft, The Hacker News.

Who found it?

James Forshaw, a long-time Windows researcher at Google Project Zero. The Hacker News reports he first presented the Windows bypass at the 44Con conference in September 2026. Project Zero says the bug was reported to Microsoft in late September and fixed in October, less than a month later.

What CVEs does it have?

There are two. CVE-2026-108398 is the Windows code integrity bypass in .NET Framework 4. Microsoft’s October 2026 .NET Framework release notes list it as a security feature bypass vulnerability, and The Hacker News reports a CVSS score of 8.8.

CVE-2026-87268 is the VirtualBox process hardening bypass on Windows hosts. The Hacker News reports that Oracle rates it 7.8, local, low privileges, no user interaction. We could not open Oracle’s advisory page to confirm the score, so treat it as reported.

How does the one-bit bypass work?

The idea is simple once you see the two loaders side by side. This section stays conceptual: there is no code here, and the full technical detail is in the Project Zero post.

Step 1: Windows refuses the file as an image

A PE file is the Portable Executable format Windows uses for programs and DLLs. Its header has a Characteristics field, and one flag in it, IMAGE_FILE_EXECUTABLE_IMAGE, marks the file as a runnable image. Normal programs and DLLs have it set.

When that flag is cleared, the Windows call that creates an image mapping fails with an invalid image format error. Project Zero notes that no checksum fix-up is needed after the change.

Step 2: .NET falls back to a flat load

When .NET Framework 4 loads an assembly from disk, it first asks Windows for a proper image mapping. If Windows answers that the file is not a valid image, the runtime falls back to mapping the file as plain read-only data, which Project Zero calls the flat layout.

The flat path skips image-based checks. The runtime then executes the assembly from that copy. In Forshaw’s words, this single bit change “is all you need to load an untrusted .NET assembly.”

Five-step flow from a cleared PE flag to unsigned .NET code running under UMCI
Windows says the file is not an image, .NET loads it anyway, and a policy check misreads S Mode's settings. Data: Google Project Zero.

Step 3: the policy check let it through

.NET is supposed to ask Windows Lockdown Policy (WLDP) whether code integrity is enforced before it takes the flat path. Project Zero found that check only stopped the load when the policy was neither off nor a configurable CI mode. Windows 11 S Mode returns exactly the combination of flags that slipped past that test.

Forshaw demonstrated it on Windows 11 S Mode by passing a modified assembly to RegAsm.exe, a signed .NET registration tool, with its unregister option. The fix changes the check so that any enforced lockdown policy blocks the fallback.

Why Forshaw did not report it at first

Project Zero says Forshaw first assumed the WLDP behaviour was by design. He reported it to Microsoft only after .NET developers said it was accidental. That detail matters: it is a reminder that “by design” behaviour in a loader is often just untested behaviour.

How does the VirtualBox variant work?

VirtualBox protects its VM processes on Windows with a feature called process hardening. Project Zero describes it as the mechanism that protects VirtualBox VM processes “from the user on the host”. It hooks the Windows call that creates image mappings and screens every DLL before it loads.

The screening code returned the same invalid image format status for files whose architecture did not match the host but which still contained code. A .NET assembly compiled as AnyCPU is built as a 32-bit x86 PE with code, so on a 64-bit host it hit that path. .NET then fell back to the flat load, exactly as on Windows.

Four-step flow showing how a user COM registration led to code inside the VirtualBox process
The VirtualBox variant needs a host user account and a VM start, and ends inside the hardened process, not outside a guest. Data: Google Project Zero, The Hacker News.

What an attacker needs

The Hacker News summarises the prerequisites: local access to the Windows host and the ability to write a COM registration in the current user’s registry hive. COM, the Component Object Model, is the Windows system that lets programs load shared components by ID. When the user next starts a VM, VirtualBox loads the registered object and the attacker’s code runs inside the protected process.

This is not a guest-to-host escape. It is a way for a host user to get code into a process VirtualBox tries to protect from that same user.

How Oracle fixed it

Project Zero links two VirtualBox source commits. The first stops the hardening code from returning the invalid image format status, which closes the .NET fallback. The second uses an undocumented COM option to stop COM lookups in the current user hive, which removes the easy loading route.

Is the Protected Process Light route still open?

Yes, according to Project Zero. Protected Process Light (PPL) is a Windows mode that stops even administrators from tampering with certain processes, such as anti-malware services. The original Protected Process mode is not exploitable because its DLLs need page hashes in their signatures, which the .NET runtime DLLs lack.

PPL has no such requirement. Forshaw hijacked a COM object loaded by WerSecureFault.exe and reached PPL at the highest signer level without administrator rights. Project Zero says the October fix did not change PPL behaviour, so this route should still work.

Microsoft’s servicing criteria treat PPL bypasses as out of scope, so this is not expected to get a security patch. App Control (WDAC), by contrast, is a supported security boundary, which is why the UMCI case received a CVE.

Timeline

The 2026 bug is the latest chapter in a long series. Project Zero first broke VirtualBox process hardening in 2017.

Date Event Source
August 2017 Project Zero publishes three VirtualBox hardening bypasses Project Zero
2020 COM runtime issue in VirtualBox reported Project Zero
September 2026 Windows bypass shown at 44Con; Oracle ships its fix in the September update The Hacker News
Late September 2026 Bug reported to Microsoft Project Zero
13 October 2026 .NET Framework October cumulative update ships the fix Microsoft
23 November 2026 Project Zero publishes the write-up Project Zero
Timeline from the 2017 VirtualBox bypasses to the November 2026 Project Zero write-up
Both CVE fixes shipped weeks before the full write-up went public on 23 November. Data: Google Project Zero, The Hacker News, Microsoft.

Project Zero says the 2026 work found three new protected process bypasses plus a broken fix for the 2020 issue. The 23 November post covers only CVE-2026-87268 and the .NET behaviour behind it.

How does it compare with earlier bypasses?

The 2017 VirtualBox research used a related .NET idea: loading an assembly from a byte array through JScript. Project Zero says that approach led to Forshaw’s DotNetToJScript tool, which runs .NET code from script files.

Case Year What it got past Root cause Fixed?
VirtualBox hardening bypasses 2017 VirtualBox process hardening Several loader and COM gaps Yes, at the time
.NET one-bit bypass, Windows 2026 UMCI on Windows 11 S Mode .NET flat-load fallback plus a weak WLDP check Yes, 13 October 2026
.NET one-bit bypass, VirtualBox 2026 VirtualBox process hardening Hook returned the status that triggers the fallback Yes, September 2026
.NET route into PPL 2026 Protected Process Light Same fallback, PPL lacks page hash checks No, out of scope
SignDrop 2026 CLFS log authentication A new mitigation became the bug No patch as of late November

The pattern is the same one we saw in SignDrop, where Microsoft’s CLFS fix became the bug: security checks that sit in one layer get undone by a fallback in another. It also echoes Process Parameter Poisoning, where defenders trusted data that the attacker controlled at load time.

Who is affected and how do you check exposure?

Three groups should care.

Organisations using App Control or S Mode

If you rely on App Control for Business (WDAC) with UMCI, or ship devices in Windows 11 S Mode, unpatched .NET Framework 4 installs let a user run unsigned .NET code. Check that the October 2026 .NET Framework cumulative update is installed. Microsoft’s release notes list, for example:

Windows version .NET Framework Update
Windows 11 26H2 3.5, 4.8.1 KB5127694
Windows 11 24H2 and 25H2 3.5, 4.8.1 KB5127690
Windows 11 23H2 3.5, 4.8.1 KB5127692
Windows Server 2025 3.5, 4.8.1 KB5127690
Windows Server 2022 3.5, 4.8.1 KB5127693
Windows 10 22H2 3.5, 4.8.1 KB5127689

Microsoft notes that the operating system KB rows are only for update offering; the .NET Framework KB is what actually gets installed. Any later cumulative update also contains the fix.

VirtualBox users on Windows hosts

Shared Windows hosts where several people run VMs, such as training labs and developer workstations, are the realistic case. Update to the latest VirtualBox 7.2 build. The official changelog lists 7.2.18 on 15 September, 7.2.20 on 22 September and 7.2.22 on 20 October 2026, the last described as a maintenance release with security fixes.

Anyone relying on PPL to protect a security agent

Vendors and defenders who treat PPL as a hard wall around an EDR or anti-malware service should know that Project Zero considers it bypassable without administrator rights. For more on why agent self-protection is fragile, see our piece on the GodDamn EDR killer and its 61 vulnerable drivers.

How do you detect the .NET one-bit bypass?

Neither Project Zero nor The Hacker News publishes detection rules, indicators or ATT&CK mappings. The hunts below are our suggestions, built only from the behaviour the research describes.

File-level hunting

A .NET assembly with a CLR header but the executable image flag cleared is abnormal, and we would not expect a normal build process to produce one. If your EDR or file scanner exposes PE header fields, flag DLL and EXE files that carry .NET metadata but lack IMAGE_FILE_EXECUTABLE_IMAGE.

Process and registry hunting

  • RegAsm.exe launched with its unregister option by a user, outside software installation, especially against a file in a user-writable folder. The closest ATT&CK technique defenders already track is System Binary Proxy Execution: Regsvcs/Regasm (T1218.009).
  • New COM class registrations under the current user’s Classes key that point at DLLs in user-writable paths, followed by a VirtualBox VM start. This matches Component Object Model Hijacking (T1546.015).
  • COM registrations for objects that WerSecureFault.exe loads, which is the PPL route Project Zero describes.

Log sources

Use process creation events (Windows event 4688 with command lines, or Sysmon event 1), registry change events (Sysmon events 12 and 13), and image load events (Sysmon event 7). Also review App Control audit and block events: a policy that never blocks anything may be in audit mode.

How do you mitigate it?

In priority order:

  1. Install the .NET Framework October 2026 cumulative update or any later one on every Windows system, starting with S Mode devices and machines under App Control policies.
  2. Update VirtualBox on Windows hosts to the latest 7.2 release and remove old installers from internal software shares.
  3. Confirm your App Control policy enforces UMCI rather than only auditing it. Project Zero notes that the vulnerable WLDP check only mattered when UMCI or the Dynamic Code Security option was on.
  4. Test the Dynamic Code Security option before enabling it. Project Zero warns it blocks all dynamic .NET code loading, including loading assemblies from byte arrays, and may break applications.
  5. Restrict who can write COM registrations on shared hosts and monitor the current user Classes key for new entries pointing at user-writable folders.
  6. Do not treat PPL as a security boundary in your threat model. Layer it with tamper protection, driver blocklists and alerting on agent health.

What is still unknown?

  • The exact fixed VirtualBox build. The Hacker News names 7.2.18 as the fixed build in one place and lists 7.2.16 and 7.2.18 as affected in another. Oracle’s advisory was not reachable for this article, and the VirtualBox changelog does not mention hardening.
  • How broad the AnyCPU condition is. The Hacker News says the VirtualBox check fails for any AnyCPU .NET file. Project Zero ties it to a 32-bit image with code loading on a 64-bit host.
  • The other two bypasses. Project Zero says it found three new protected process bypasses in 2026 but describes only one in this post.
  • Modern .NET. Both sources discuss .NET Framework 4 only. They say nothing about .NET 8 or later, so do not assume either way.
  • The PPL route. Microsoft has not said whether it will ever change PPL loading behaviour.

The bottom line

The .NET code integrity bypass shows how a single fallback path can undo a signature check that everything else depends on. Both CVEs are patched and no attacks are reported, so the job is to confirm the October .NET update and a current VirtualBox build are actually deployed. The PPL route stays open, so do not rely on PPL alone to protect your security tools.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is the .NET single-bit code integrity bypass?

It is a technique published by Google Project Zero in November 2026. Clearing the executable image flag in a .NET assembly's PE header makes Windows reject it as an image, and .NET Framework 4 then falls back to loading it as plain data, skipping image-based integrity checks.

Which CVEs cover the .NET one-bit bypass?

CVE-2026-108398 covers the Windows code integrity bypass in .NET Framework 4, fixed by Microsoft on 13 October 2026. CVE-2026-87268 covers the VirtualBox process hardening bypass on Windows hosts, fixed by Oracle in September 2026.

Was CVE-2026-108398 exploited in the wild?

No exploitation has been reported. The Hacker News says Microsoft lists it as publicly disclosed but not exploited, and Project Zero says it was handled as a zero-day only because it had already been shown publicly at 44Con.

Which update fixes CVE-2026-108398?

The .NET Framework October 2026 cumulative update released on 13 October 2026. On Windows 11 26H2 that is KB5127694 for .NET Framework 3.5 and 4.8.1, and on Windows 11 24H2, 25H2 and Windows Server 2025 it is KB5127690.

Is VirtualBox still vulnerable to the single-bit bypass?

Oracle fixed CVE-2026-87268 in its September 2026 Critical Patch Update, per The Hacker News. Reports differ on the exact fixed build, so run the newest VirtualBox 7.2 release rather than relying on a specific version number.

Does the .NET bypass let an attacker escape a VirtualBox guest?

No. The VirtualBox variant needs local access on the Windows host and runs code inside the protected VirtualBox process. It does not break out of a virtual machine.

Does the October fix stop the Protected Process Light route?

No. Project Zero says the October .NET fix did not change how Protected Process Light loads assemblies, so that route should still work. Microsoft's servicing criteria treat PPL bypasses as out of scope for security fixes.

How do I detect the .NET one-bit bypass?

The sources publish no detection rules. Practical hunts are .NET assemblies whose PE header has the executable image flag cleared, unusual RegAsm.exe unregister runs, and new COM registrations in the current user registry hive that point at unexpected DLLs.

Keep reading

.NET code integrity bypassGoogle Project ZeroWDACVirtualBoxCVE-2026-108398CVE-2026-87268Windows security