Skip to main content

One Flipped Bit in a .NET File Bypassed Windows Code Integrity Until October

Project Zero shows one header bit let untrusted .NET code past Windows code integrity. October's update fixed it; one route into protected processes is not.

KBY News Desk7 min read
A close-up of a laptop displaying code in a dimly lit room with a coffee mug nearby.

A Google Project Zero researcher has shown that flipping one bit in the header of a .NET program file was enough to get untrusted code past Windows’ code integrity checks. James Forshaw published the write-up on Monday 23 November 2026. Microsoft had already fixed the Windows flaw, CVE-2026-108398, on Tuesday 13 October, and Oracle fixed a related VirtualBox flaw, CVE-2026-87268, in September. If your Windows machines took October’s cumulative update, the main bug is closed. The write-up is still worth reading, for two reasons. It says that one related route into protected processes is not fixed. And it is a reminder that a rule saying “only approved code may run” is only as strong as every piece of Microsoft-signed code that can be tricked into loading something else.

#What was found

Forshaw has studied how Oracle VirtualBox protects its virtual machine processes on Windows since 2017. Looking again in 2026, he found three new ways around that protection, and the write-up focuses on one of them, CVE-2026-87268. It depends on how the .NET Framework loads programs.

Normally Windows maps a program file into memory as an “image”, and security tools that check signatures and locations get a chance to object. Forshaw says .NET has a fallback. If the image mapping fails with a particular error, bad executable format, the .NET runtime, which is Microsoft-signed and so usually trusted, maps the file as plain data instead and runs it from memory. A file loaded that way skips the image checks.

The Hacker News, summarising the research, says VirtualBox’s own check returned that exact error for .NET files compiled as AnyCPU, so an unmodified file reached the unchecked path. Forshaw got the file loaded by registering a COM object in the current user’s settings, a method known as COM hijacking, so that a protected VirtualBox process would pull it in.

#The single bit

The same idea worked against Windows’ own protections. Forshaw found that clearing one bit in a .NET file’s header, the IMAGE_FILE_EXECUTABLE_IMAGE flag, made the image mapping fail while .NET still loaded and ran the file. “This single bit change is all you need to load an untrusted .NET assembly,” he wrote. He tested it on Windows 11 in S Mode with User Mode Code Integrity (UMCI) enforced, the policy that limits which user-mode programs may run.

The reason it worked is a mistake in .NET’s own safety check. The runtime is meant to refuse the memory-loading fallback when code integrity is enforced. In the code listing in his write-up, the check looks at the wrong policy state, and the October fix changes it to test for enforcement explicitly. In his words, the developers “just made a mistake.”

#What is fixed, and what is not

  • Windows code integrity, CVE-2026-108398. Microsoft fixed it on 13 October. The Hacker News reports that Microsoft rates it a local, low-privilege security feature bypass, scores it 8.8, and lists it as publicly disclosed but not used in attacks.
  • VirtualBox, CVE-2026-87268. Oracle fixed it in September. The Hacker News reports Oracle scores it 7.8, lists VirtualBox 7.2.16 on Windows hosts as affected, and says 7.2.18, which shipped on 15 September, carries the fixes. The code runs inside the protected VirtualBox process. It is not an escape from a guest virtual machine onto the host.
  • Protected Process Light (PPL). Forshaw says that by hijacking a COM object that WerSecureFault.exe loads, he ran his test code inside a PPL process at the highest protection level, without administrator rights. He says the October fix corrects the check for UMCI but does not change how protected processes load files, so that route should still work. It has no separate CVE. The older, stricter Protected Process type resisted the technique, because the .NET runtime files lack the page hashes it requires.

It is not a way to take over a Windows machine from the internet. The attacker must already be running on the machine as an ordinary user, and needs a program willing to load the file. The Hacker News makes the same point about the Windows flaw.

#A reporting decision worth noting

The timeline is unusual. Forshaw first presented the Windows bypass at the 44Con conference in September. He had not reported it to Microsoft, because he judged that Microsoft’s published servicing criteria might treat a bypass of code integrity as out of scope when a policy exists that can block the behaviour. He assumed the block came from a separate setting. After .NET developers told him it was accidental and not intended, he reported it in late September. Because it was already public, Microsoft treated it as a zero day, and fixed it in October, less than a month after the report. He thanked the .NET team for the speed.

Our view: the fix was quick, and the lesson is about the rules, not the people. If a security boundary only counts when a researcher reads the servicing criteria the same way as the vendor, some real flaws will not get reported. Here the conference talk came first. We would rather see ambiguous cases reported.

#Who should care

Most firms do not need to act beyond normal patching. The people with a stake are:

  • Anyone who uses code integrity as a security control. That means shops that rely on Windows Defender Application Control (WDAC) or similar policies to limit which programs run, and devices in S Mode. The bypass defeats that rule for someone who is already on the machine.
  • Anyone who runs VirtualBox on Windows hosts, such as developers and labs.
  • Anyone whose threat model includes a low-privilege user or malware trying to reach PPL processes, which include security tooling. That route is the one Forshaw says remains.

A typical office with ordinary patching and no strict application control is not exposed in any new way.

#What to check

  1. Confirm the October cumulative update is installed on every Windows machine that enforces code integrity. The Hacker News says the update must match the exact Windows and .NET Framework version, not one shared package, and gives KB5127694 for Windows 11 version 26H2 as an example. Microsoft’s .NET Framework release notes for the October cumulative update list the right package for each version.
  2. Update VirtualBox on Windows hosts to a build that carries Oracle’s September fixes. The Hacker News points to 7.2.18, which shipped on 15 September. Check the version that is actually running, because an upstream code fix is not the same as a build that has been installed.
  3. Do not treat application control as your only line. Pair it with removing local admin rights, monitoring for new COM registrations in user settings, and endpoint detection.
  4. Watch for a PPL fix. The write-up says that route should still work. We have not seen Microsoft say whether it plans to change that.

#For a small firm

If you have an outside IT provider and use only standard Windows settings, the practical step is one question: “Are all our Windows PCs on October’s cumulative update or later, and do we run any VirtualBox virtual machines?” If the answer to the first is yes and the second is no, nothing more is needed. This sits alongside another Windows weakness we covered, the lock screen bypass that needs a startup PIN, where the answer was also about layers.

#What we do not know yet

  • Whether anyone has used either flaw in an attack. Microsoft lists CVE-2026-108398 as publicly disclosed and not exploited, according to The Hacker News.
  • Whether Microsoft will change how protected processes load .NET files. Forshaw says the October fix does not.
  • How many organisations rely on code integrity enough for this to matter in practice.

We will update this story if Microsoft addresses the protected process route or if anyone reports the technique in an attack.

Evidence trail

Sources and verification

Primary documentation and external technical references used in this article.

  1. 01Google Project Zero, VirtualBox Process Hardening on Windows 2026 Edition: What's a Single Bit Between Friends?projectzero.google
  2. 02The Hacker News, Google Researcher Shows How a Single Bit Change in .NET Files Bypassed Windows Code Integrity, 24 November 2026thehackernews.com
  3. 03Microsoft, .NET Framework October 2026 cumulative update release noteslearn.microsoft.com

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Reader Interaction

Comments

Add a thoughtful note on One Flipped Bit in a .NET File Bypassed Windows Code Integrity Until October. Comments are checked for spam and held for moderation before appearing.

Loading comments...

More from KBY that goes with this story.

More news

All news

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

Get new fixes by email.

For IT teams: new runbooks, configuration traps and fixes, and the Microsoft and Apple deadlines coming up, about twice a week.