eBPF on Windows, Today

Contents
On a Windows 11 virtual machine with Memory Integrity switched on, eBPF for Windows 1.8.0, released yesterday, loaded the bind counter I have now written three times, as an 11-kilobyte signed driver, and counted 100,001 socket binds out of 100,001. It attached to a hook with the same name as on Linux, kept its running total in a global variable, and a Go program built on ebpf-go read the same map without a line of Windows-specific BPF code. Five and a half years after Microsoft announced the port, it has reached version 1. All 34 of its GitHub releases are still marked pre-release, its kernel drivers are still signed with a test certificate, and when I switched on the check designed to replace test signing, no program I could build would load.
This is the third and last time this series visits the Windows port. The first visit found a verifier moved out of the kernel and a handful of networking hooks. The second found the JIT quietly leaving the installer and native drivers becoming the real path. This one asks what the project has become, what it shares with Linux now, what it never will, and what still stands between it and a machine that is not in test-signing mode.
This is Part 16 of a series on eBPF, written for C programmers who know what a process, a system call and a socket are, and nothing about kernel internals. It closes the thread that Part 7 (October 2022) and Part 12 (April 2024) began. Everything here ran on the same Hyper-V virtual machine as those two, restored to a clean image and given eBPF for Windows v1.8.0, the release of 3 December 2026, on Windows 11 Enterprise evaluation, version 26H2, build 26300.9457. The output is pasted from those runs, and the note at the end says exactly where and how.
Where the port stands
Microsoft announced eBPF for Windows on 10 May 2021. Its pitch, then and now, is the one Part 1 made for Linux: hand the kernel a small program, have it proved safe, run it on an event, and read the results through maps. The stated goal has not changed in five and a half years either. The project promises source compatibility for programs that use common hooks and helpers, not binary compatibility, and not that a Linux tool will run unmodified.
Since Part 12’s release, v0.16.0 in April 2024, there have been seventeen more. The version number
crossed 1.0 by an unusual route. Release-v1.0.0-rc1 came out in October 2025 and rc2 in November;
there is no 1.0.0. Release-v1.1.0, in March 2026, describes itself in its notes as “the first stable
release of eBPF for Windows following the v1.0.0 release candidates”, and since May there has been
a release roughly every month, from 1.2.1 to the 1.8.0 I installed. Every one of those, like every
release before them, is flagged as a pre-release on GitHub, and asking the GitHub API for the
repository’s latest release still returns 404 Not Found, because there is no release that is not
a pre-release.
The README has moved on in two ways that matter. It now reads “This project supports eBPF on Windows 11 or later, and on Windows Server 2022 or later”, where it used to say Windows 10 and Server 2019. And it describes native mode, the path that compiles a program into a driver ahead of time, as “the preferred way of deploying eBPF programs”. In 2022 the README called the JIT the typical path. It no longer does.
The figure puts the three releases I have installed side by side: the one from Part 7, the one from Part 12, and today’s. Every cell was measured on this VM in the part named by its column, except the few marked as read from the source. The rest of this post goes through the rows that changed.
Three visits, one table
The same questions asked of each release I installed. Green marks a 2026 answer that is new since 2024.
| Oct 2022v0.5.0 | Apr 2024v0.16.0 | Dec 2026v1.8.0 | |
|---|---|---|---|
| Status | |||
| Marked pre-release on GitHub | yes | yes | yes, all 34 releases |
| Kernel drivers signed by | WDK test certificate | WDK test certificate | WDK test certificate |
| Toolchain the docs pin | clang 11.0.1 | clang 11.0.1 | clang 18.1.8 |
| bpftool reports | v0.1 / libbpf v1.0 | v0.1 / libbpf v1.0 | v0.1 / libbpf v1.0 |
| Getting code into the kernel | |||
| What the published MSI loads | ELF (JIT) and native | native only; the JIT build is in a zip | ELF (JIT) and native; the service is mandatory |
| JIT with Memory Integrity on | refusedread | refused | refused |
| Atomic add through the JIT | refused, LMEM | refused, LMEM | compiles and counts exactly |
| Native image accepted if signed by | any test certificateread | any test certificate | any test certificate; Microsoft's "eBPF Verification" only, once Proof of Verification is on |
| The language and the library | |||
| General helpers | 19 | 25 | 35 |
| Map types | 13 | 13 | 15 |
| libbpf-style exports | 96 of 118 | 102 of 128 | 116 of 168 |
| Map definitions | bpf_map_def | BTF .maps | BTF .maps |
| Global variables | no | no | native only, and static |
| Perf event array | no (unspec) | no | yes |
ring_buffer__poll | no | no | yes, and perf_buffer__poll |
Linux-ABI bpf() | no | no | yes; ebpf-go loads programsran |
| CO-RE | no | no | noread |
| Hooks | |||
| The bind counter's section | bind | bind | cgroup/bind4, the Linux name |
| XDP in the core driver | yes, on WFP | test type only | none: xdp-for-windows, Server only |
| Tracepoints, kprobes | none | none | none |
| The bind counter, measured | |||
| bpf2c output | 428 lines | 1,173 lines | 430 lines |
| Counted | 10 of 10, JIT, plain ++ | all 100,001 native; the JIT lost up to 22 | all 100,001, JIT and native, every run |
Each column is the release installed for that part, on the same virtual machine. Counts for all three were recomputed by one rule from each release's NuGet package. "read" marks a cell taken from the project's source rather than run.
Installing 1.8.0: the JIT that left, and didn’t
The installation is the one the project documents. I restored the VM to the checkpoint Part 7 created, a Windows 11 image with Secure Boot off, test signing on, Memory Integrity off and nothing installed, and copied in the 1.8.0 MSI. Its SHA-256 matched the digest GitHub publishes for the release asset. There is no Visual C++ redistributable step any more; the docs dropped it in 2024.
The install docs, at the v1.8.0 tag, still show the command with two features, the runtime and the JIT. So I ran that first:
> msiexec /i ebpf-for-windows.x64.1.8.0.msi ADDLOCAL=eBPF_Runtime_Components,eBPF_Runtime_Components_JIT /qn
msi exit 1603
DEBUG: Error 2711: The specified Feature name ('eBPF_Runtime_Components_JIT') not found in Feature Table.
The same error, word for word, that Part 12 hit with v0.16.0. Asking the MSI’s own feature table
shows why: it has exactly one installable feature, eBPF_Runtime_Components. With that alone the
install succeeds, and lists what it put on disk. Two kernel drivers, eBPFCore.sys and
NetEbpfExt.sys; the API library EbpfApi.dll; netsh and bpftool plugins; bpf2c; and one more
file, in a folder whose name gives the game away: JIT\ebpfsvc.exe, running as an automatic
service.
In 2024 the release’s published MSI was the native-only build, and an ELF object could not be loaded
at all. Today’s is the opposite. I took Part 12’s plain-increment bind counter, compiled it with
today’s clang, and asked netsh to load it:
> netsh ebpf add program p12_plain.bpf.o
Loaded with ID 27
> netsh ebpf show programs
ID Pins Links Mode Type Name
====== ==== ===== ========= ============= ====================
27 1 1 JIT bind count_bind
Mode JIT. The JIT is in the release you download, and it works. What happened is that the JIT
feature went away, not the JIT. In June 2025 a change titled “Always install ebpfsvc” deleted the
optional feature and made the service mandatory, because, in its own words, “the ebpfsvc will host
the logic to validate the signature on native BPF programs”. The service that verifies and
JIT-compiles ELF objects became the service that checks signatures on drivers, and since it can no
longer be left out, neither can the JIT it carries. Its symbol path says it is the ordinary
x64\Release build, and the kernel driver beside it still contains the string Part 7 quoted in
2022, slightly reworded: “code_type == EBPF_CODE_JIT blocked by Hyper-V Code Integrity policy”.
So “the JIT is gone” is true in a narrower sense than it sounds. It is gone from the ARM64 build,
from which uBPF, the JIT’s code generator, was removed this June. It is gone from the project’s
recommendations. It is gone from the installer’s list of choices. On an x64 machine with Memory
Integrity off, it is still one netsh command away.
The bind counter, a third time
Part 7 wanted to port Part 1’s execve counter and could
not, because Windows has no tracepoints. It counted socket binds per process instead, through a
Windows-only hook called bind. Three things about that program were dictated by what the release
could not do: an old-style map definition, a plain ++ because the JIT could not compile an atomic
add, and a copy loop to pull the process’s image name out of the hook’s context.
Part 12 fixed the first, got the atomic add only by building a
driver, and had to unroll the loop because a newer verifier lost track of it.
Here is the program as I would write it today:
// bindcount.bpf.c — runs in the Windows kernel, once per IPv4 bind()
#include "bpf_helpers.h"
#include "ebpf_nethooks.h"
struct
{
__uint(type, BPF_MAP_TYPE_HASH);
__type(key, uint32_t); // process ID
__type(value, uint64_t); // binds
__uint(max_entries, 1024);
} counts SEC(".maps");
static volatile uint64_t total; // a global variable, in .bss; bpf2c requires static
SEC("cgroup/bind4")
int
count_bind(bpf_sock_addr_t* ctx)
{
uint32_t pid = bpf_get_current_pid_tgid() >> 32;
uint64_t one = 1, *val;
__sync_fetch_and_add(&total, 1);
val = bpf_map_lookup_elem(&counts, &pid);
if (val)
__sync_fetch_and_add(val, 1);
else
bpf_map_update_elem(&counts, &pid, &one, BPF_NOEXIST);
return BPF_SOCK_ADDR_VERDICT_PROCEED_SOFT;
}
Put it next to Part 1’s Linux counter and the body is
the same shape line for line: look the key up, add one atomically if it is there, insert a one with
BPF_NOEXIST if it is not. The differences are each a piece of the last two and a half years.
The hook is cgroup/bind4. That is the section name a Linux program uses for the
BPF_CGROUP_INET4_BIND attach type, and since v1.3.0 in June it means the same here: a program of
the BPF_PROG_TYPE_CGROUP_SOCK_ADDR type, run when an IPv4 socket is bound. The Windows-only
BPF_PROG_TYPE_BIND that Parts 7 and 12 used still exists, but since v1.6.0 in September its header
comment says “@deprecated Use BPF_PROG_TYPE_CGROUP_SOCK_ADDR with BPF_CGROUP_INET4_BIND /
BPF_CGROUP_INET6_BIND instead”. The cost of moving is the context. The old hook’s bind_md_t carried
the process ID and a pointer to the binding program’s image path. The sock_addr context is Linux’s
shape: an address family, addresses, ports, a protocol, and nothing about the process.
The process ID comes from a helper. bpf_get_current_pid_tgid() returns the process ID in its
upper 32 bits, as on Linux. It is one of 35 general helpers now, against 19 in Part 7. The image
name, which Part 7’s loop copied out of the context, is gone from the context, so the user-space half
looks it up by process ID instead. That takes the loop, and the verifier trouble it caused, out of
the kernel program entirely.
The increments are atomic, both of them. No unrolled loop, no plain ++.
total is a global variable. Global variables arrived in v0.21.0, in April 2025. A global
lives in the object’s .bss section, which the loader turns into a one-entry array map, so both the
program and user space can reach it. The static is not my style; it is a requirement, and the
first thing this program taught me about today’s release. Without it, bpf2c stops:
> bpf2c --bpf bindcount.bpf.o --sys bindcount_driver.c
Global variables must be static
On Linux, non-static globals are the ordinary kind, the ones a libbpf skeleton exposes to user
space by name. Here they have to be static, and user space finds the map by its section name.
Compiled with clang 18.1.8, the version the project’s docs pin today (Parts 7 and 12 were pinned to 11.0.1), and with the headers from the release’s NuGet package, the object describes itself correctly:
> clang -target bpf -O2 -g -Werror -I sdk\include -c bindcount.bpf.c -o bindcount.bpf.o
> netsh ebpf show sections bindcount.bpf.o
Size
Section Program Type (bytes)
============================== ======================== ========= =======
cgroup/bind4 count_bind sock_addr 216
Key Value Max
Map Type Size Size Entries Name
================== ==== ===== ======= ========
hash 4 8 1024 counts
> netsh ebpf show verification bindcount.bpf.o
Verification succeeded
Program terminates within 0 loop iterations
Two small things in that output are fixes. Part 12 noted that netsh printed unspec in the Type
column for every object file; it now says sock_addr. And 216 bytes is 27 instructions, the same
count, as it happens, as Part 1’s counter on Linux.
What the JIT can do now
With Memory Integrity off, the JIT is there to try, so I tried it. The atomic add that failed in
2022 and again in 2024, both times with the same opaque error 131 and LMEM, now loads. This is
Part 12’s counter, compiled with today’s clang:
> netsh ebpf add program md12_bindcount.bpf.o
Loaded with ID 62
uBPF, the JIT’s code generator, learned the atomic instructions somewhere in the last two and a half years. Under load it gets them right: with four threads making 100,001 binds between them, the JIT build of today’s counter (without the global, for reasons that follow) counted 100,001 in each of three runs. Part 12’s plain-increment JIT run had lost up to 22.
The global variable is a different story. The full program, total and all, fails through the JIT
on both loaders, netsh and libbpf:
> netsh ebpf add program bindcount.bpf.o
error 13: could not load program
Map cache entry for original map fd 3 not found.
Map 3 is the .bss map. The project’s own end-to-end test for global variables begins with “Skip
this test in JIT-compiled and interpreted mode”. Global variables are a native-mode feature, and the
error message does not say so.
Old programs on the new release
Source compatibility across the project’s own releases has been uneven, so I gave today’s release the two earlier programs as published, compiled with today’s clang. Part 7’s still fails verification on its copy loop, as it did in 2024, now with one error instead of three:
35: Upper bound must be at most 65535 (valid_access(r4.offset) for comparison/subtraction)
Part 12’s counter, with its unrolled loop, verifies and loads on the deprecated bind type. Part
12’s connect-redirect example no longer compiles at all:
md12_redirect.bpf.c:17:12: error: use of undeclared identifier 'BPF_SOCK_ADDR_VERDICT_PROCEED'
The verdict was renamed BPF_SOCK_ADDR_VERDICT_PROCEED_SOFT in the 1.0 release candidate, when a
..._PROCEED_HARD arrived beside it. The difference matters on Windows because these hooks are
filters in the Windows Filtering Platform, where a soft permit can be overridden by a lower-priority
filter and a hard one cannot. The doc comment that Part 12 found with the meanings swapped is fixed;
the header now says BPF_SOCK_ADDR_VERDICT_REJECT blocks and the two PROCEED values allow.
Native, end to end
Native mode is the path the README prefers and the only one that carries a global variable, so the
counter goes that way. The steps are the ones Part 12 took by hand. bpf2c, which runs the PREVAIL
verifier before writing anything, turns the object into C:
> bpf2c --bpf bindcount.bpf.o --sys bindcount_driver.c
430 lines, against Part 12’s 1,173, almost all the difference being the unrolled loop that is no
longer there. The interesting part is how the two new things translate. The global is a table entry,
"bindcou.bss", eight bytes, placed in a section called global_variables, and both increments
become the Windows interlocked add:
#line 22 "C:\\work\\p16/bindcount.bpf.c"
r1 = POINTER(runtime_context->global_variable_section_data[0].address_of_map_value + 0);
#line 22 "C:\\work\\p16/bindcount.bpf.c"
r2 = IMMEDIATE(1);
#line 22 "C:\\work\\p16/bindcount.bpf.c"
InterlockedExchangeAdd64((volatile int64_t*)(uintptr_t)(r1 + OFFSET(0)), (uint64_t)r2);
Line 22 is __sync_fetch_and_add(&total, 1). The global’s address is not a constant baked into the
driver; it comes from a runtime context that ebpfcore.sys fills in when it creates the .bss map
for the loaded program.
The generated file is a WDM driver, so it needs the Windows Driver Kit. I compiled and linked it on the host against the kernel headers and libraries of the WDK 10.0.28000 NuGet package, the version the project’s build uses with Visual Studio 2026:
cl /kernel /O2 /Gy /GS ... bindcount_driver.c
link /DRIVER /SUBSYSTEM:NATIVE /ENTRY:GsDriverEntry /NXCOMPAT ... ntoskrnl.lib hal.lib netio.lib BufferOverflowFastFailK.lib
The result is 9,728 bytes. Its section table has grown two entries since 2024:
.text Execute Read
cgroup/bind4 Execute Read
.rdata Read Only
.data Read Write
hash Read Only
maps Read Write
global_variables Read Write
programs Read Write
INIT Execute Read
global_variables is the global’s descriptor. hash holds a 32-byte _elf_hash, a hash of the
ELF file the driver was generated from, embedded since v1.2.1 so that a driver can be tied back to
the object it came from. The program’s own code is still in an executable section named after its hook, and still
nothing is both writable and executable.
Drivers have to be signed. With test signing on, a test signature does, so I made a code-signing
certificate inside the VM, trusted it there, and signed on the host with signtool and the exported
key file, which leaves the host’s certificate stores alone. Signed, the driver is 11,168 bytes, and
it loads:
> netsh ebpf add program bindcount.sys
Loaded with ID 88
> netsh ebpf show programs
ID Pins Links Mode Type Name
====== ==== ===== ========= ============= ====================
88 1 1 NATIVE sock_addr count_bind
> netsh ebpf show maps
Key Value Max Inner
ID Map Type Size Size Entries ID Pins Name
======= ================== ==== ===== ======= ===== ==== ========
86 array 4 8 1 0 0 bindcou.bss
87 hash 4 8 1024 0 0 counts
There is the global: an array map with one eight-byte value, named after the first seven characters of the object file and its section.
The user-space half is Part 1’s loader with Windows calls where Linux has /proc:
// bindcount.c — load, attach, wait, then read the map and the global variable
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <bpf/bpf.h>
#include <bpf/libbpf.h>
static const char* image_name(uint32_t pid, char* buf, DWORD len)
{
HANDLE h = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, pid);
const char* base = "?";
if (h && QueryFullProcessImageNameA(h, 0, buf, &len)) {
base = strrchr(buf, '\\') ? strrchr(buf, '\\') + 1 : buf;
}
if (h)
CloseHandle(h);
return base;
}
int main(int argc, char** argv)
{
const char* file = argc > 1 ? argv[1] : "bindcount.bpf.o";
int seconds = argc > 2 ? atoi(argv[2]) : 5;
struct bpf_object* obj;
struct bpf_program* prog;
struct bpf_link* link;
struct bpf_map* map;
uint32_t key, next, *prev = NULL, zero = 0;
uint64_t count, total = 0;
char path[MAX_PATH];
int fd;
obj = bpf_object__open(file); /* an ELF object or a native .sys */
if (!obj || bpf_object__load(obj)) {
fprintf(stderr, "failed to open and load %s\n", file);
return 1;
}
prog = bpf_object__find_program_by_name(obj, "count_bind");
link = bpf_program__attach(prog); /* cgroup/bind4 */
if (!link) {
fprintf(stderr, "failed to attach\n");
bpf_object__close(obj);
return 1;
}
printf("counting bind() for %d s\n", seconds);
fflush(stdout);
Sleep(seconds * 1000);
fd = bpf_object__find_map_fd_by_name(obj, "counts");
while (bpf_map_get_next_key(fd, prev, &next) == 0) {
bpf_map_lookup_elem(fd, &next, &count);
printf("%6u %-24s %llu\n", next, image_name(next, path, sizeof(path)), (unsigned long long)count);
key = next;
prev = &key;
}
bpf_object__for_each_map(map, obj) { /* the .bss map holds 'total' */
if (strstr(bpf_map__name(map), ".bss"))
bpf_map_lookup_elem(bpf_map__fd(map), &zero, &total);
}
printf("total (global variable): %llu\n", (unsigned long long)total);
bpf_link__destroy(link);
bpf_object__close(obj);
return 0;
}
Everything between bpf_object__open and bpf_object__close would compile against libbpf on
Linux. It builds with the ordinary Windows C compiler against the EbpfApi.lib in the release’s NuGet
package. I read the map key by key with bpf_map_get_next_key rather than in one batch, as Part 12
did. The batch call’s crash on a NULL options pointer, which cost Part 12 two reboots, is still in
the v1.8.0 source: bpf_map_lookup_batch reads opts->flags before anything else. I read that
rather than reproduce it.
Run against the signed driver while one PowerShell process binds ten UDP sockets:
> bindcount.exe bindcount.sys 12
counting bind() for 12 s
1492 powershell.exe 10
total (global variable): 10
Part 7’s answer, powershell.exe 10, from a program that now looks like Part 1’s. The global and
the map agree.
Memory Integrity on
The point of native mode has always been machines with Memory Integrity, Windows’ name for hypervisor-enforced code integrity, which forbids kernel pages that are both writable and executable and so forbids a JIT. Part 12 showed the mechanism working on v0.16.0. Today’s release should behave the same, but the release has rebuilt its load path around the service, so I ran it again.
The setup is Part 12’s: expose virtualization extensions to the VM from the host, then inside the
guest set EnableVirtualizationBasedSecurity to 1, RequirePlatformSecurityFeatures to 0 (this VM
has Secure Boot off, which test signing requires, and by default virtualization-based security will
not start without it) and the hypervisor-enforced code integrity scenario’s Enabled to 1, then
reboot. After one reboot Device Guard reported VirtualizationBasedSecurityStatus 2 and
SecurityServicesRunning {1, 2}: running, with code integrity among the running services. Test
signing was still on, and the two test-signed eBPF drivers had started under it.
Then every load failed, native included, with the same error 131. The reason had nothing to do
with Memory Integrity:
> sc query ebpfsvc
STATE : 1 STOPPED
System log, Service Control Manager, event 7023:
The eBPFSvc service terminated with the following error:
The request is not supported.
The service had died a few seconds into the boot. It was the boot before as well, the one with only
nested virtualization switched on, and when I later went back to the checkpoint without Memory
Integrity and simply restarted Windows, it happened again. The service is an automatic one with no
declared dependency on the EbpfCore driver and no recovery action configured. At start-up its first
act is to ask the kernel driver whether test signing and code integrity are on; reading the source,
if that request fails it exits with ERROR_NOT_SUPPORTED, which is the “request is not supported” in
the log. My reading is that it can start before the driver is ready to answer. I did not find an
issue for it. Since 1.0, native programs need the service too, so on this VM an eBPF for Windows that
has just booted loads nothing until someone runs Start-Service ebpfsvc. After that:
> netsh ebpf add program md12_bindcount.bpf.o
error 131: could not load program
> netsh ebpf add program bindcount.sys
Loaded with ID 28
> netsh ebpf show programs
ID Pins Links Mode Type Name
====== ==== ===== ========= ============= ====================
28 1 1 NATIVE sock_addr count_bind
The JIT’s refusal is exactly Part 12’s. Recording a trace with the profile the install ships, the service’s process logs the same two lines it logged in 2024:
"Operation id %d not permitted due to system configuration", 0
"_ebpf_object_load_programs returned error", 21
Operation 0 asks the kernel for a helper’s address, which only the JIT needs, so the kernel refuses
it while Memory Integrity is on, and error 21 is EBPF_BLOCKED_BY_POLICY. The native driver, on the
other hand, counted powershell.exe 10 again, with the global at 10, and then 100,001 binds out of
100,001 in each of three runs of four threads. An unsigned copy of the same driver was refused with
error 2, and Code Integrity logged event 3004, “unable to verify the image integrity of the file
… bindcount_unsigned.sys”. Nothing about that has changed since 2024, which is the right result: it is
the part of the design that was already correct.
Proof of Verification
What has changed is a step that runs before the driver ever reaches Code Integrity, and it is the most important thing to happen to the project since Part 12.
The problem it solves follows from native mode itself. On Linux the verifier runs inside the
BPF_PROG_LOAD system call, on the machine that will run the program, every time. In native mode
the verifier runs in bpf2c, on the build machine, once. The driver that comes out is just a driver.
Nothing in it proves that its code came from a program PREVAIL accepted rather than from someone’s
hand-written C with a BPF-shaped table of contents. Any test-signed driver can be presented to
netsh ebpf add program, and so can any driver with an ordinary production signature. The Windows
kernel would load it, and ebpfcore.sys would attach it.
The project’s answer, proposed in June 2025 and shipped in 1.0’s first release candidate, is to make
a signature the proof. The project’s design document puts it in one sentence: “All BPF programs that
are executed in kernel are accompanied by proof of verification, in the form of a digital signature
that has been generated after the BPF program was verified and the native image generated.” The
signing certificate is a new kind, issued by Microsoft, with the ordinary code-signing extended key
usage plus a new one, 1.3.6.1.4.1.311.133.1, meaning “generated from a verified BPF program”. The
plan is that verification, generation and signing happen together in a pipeline Microsoft runs, so
that nobody can sign a driver that did not come out of bpf2c with a passing verdict. The design
document calls a Microsoft-hosted signing service for developers “the aspirational goal”, and says
that “in the short term the pipeline would be owned and managed by the eBPF for Windows team at
Microsoft”. I found no published way for anyone outside to submit a program to it.
The load path that enforces it is the reason the service became mandatory. The stepper follows one driver through it; the outcomes it shows for my certificates are the ones I measured.
What a native program goes through before it runs
The bind counter as a signed driver on eBPF for Windows v1.8.0. Pick a signature and a Proof of Verification setting, then step through.
1Verify, then generate a driver
build machine
clang -target bpf -O2 -g -c bindcount.bpf.c bpf2c --bpf bindcount.bpf.o --sys bindcount_driver.c (430 lines) cl /kernel … ; link /DRIVER … → bindcount.sys, 9,728 bytes
PREVAIL runs inside bpf2c. A program it cannot prove safe never becomes C, so every driver that exists was verified once, here.
2Sign it
build machine
signtool sign /fd SHA256 /f labsign.pfx … → 11,168 bytes signer: CN=ebpf-lab test signing 2026
signtool sign /fd SHA256 /f lookalike2.pfx … signer: CN=Microsoft Corporation eBPF Verification, O=Microsoft Corporation, … EKUs 1.3.6.1.5.5.7.3.3, 1.3.6.1.4.1.311.133.1 root: one I made
(not signed)
submit the program to Microsoft's pipeline; get back a driver signed by "Microsoft Corporation eBPF Verification", chained to Microsoft Root CA 2011
The signature is the only thing that travels with the driver to say it was verified.
3Ask to load it
your machine · user mode
netsh ebpf add program bindcount.sys → EbpfApi.dll → RPC → ebpfsvc
Since 1.0 the service is always installed, because this is its job now: the API library hands every native image to it before the kernel sees it.
4Does Proof of Verification apply?
ebpfsvc
test signing on? → read HKLM\Software\eBPF\Parameters\ProofOfVerification test signing off → always required
On a test-signing machine the check is opt-in, read live from the registry on every load. On a production machine it cannot be turned off.
5Check the signature
ebpfsvc
WinVerifyTrust(file)
subject == "…, Microsoft Corporation eBPF Verification"
root thumbprint == 8f43288ad272f3103b6fb1428485ea3014c0bcfe
EKUs ⊇ { 1.3.6.1.5.5.7.3.3, 1.3.6.1.4.1.311.133.1 }All four must hold for one certificate in the signature. The root is pinned, so a certificate that merely looks right is not enough.
6Authorise this exact file
ebpfsvc → ebpfcore.sys
SHA-256(bindcount.sys) → EBPF_OPERATION_AUTHORIZE_NATIVE_MODULE
The kernel accepts this request only from the service's own security identifier.
7Windows loads the driver
kernel · Code Integrity
new driver service <GUID> → start → signature check
The ordinary driver rules apply on top: with test signing on, a test signature passes; with Memory Integrity on, this check runs under the hypervisor.
8Attach
ebpfcore.sys
NMR attach → hash the image again → authorised? → programs and maps handed over
A file swapped after stage 6 has a different hash and is turned away here.
All outcomes, as measured
| Signed with | Proof of Verification not set | ProofOfVerification = 1 |
|---|---|---|
| my test certificate | loaded, Mode NATIVE | error 2 |
| a look-alike (same subject and EKUs, my root) | loaded, Mode NATIVE | error 2 |
| nothing | error 2 (Code Integrity) | error 22 |
| Microsoft eBPF Verification | not run: no such signature is available to me | not run |
Test signing on, Memory Integrity off and on: the outcomes were the same. Green passed, grey skipped, copper refused. A program loaded from an ELF object through the JIT does not take this path at all, and still loaded with Proof of Verification on.
In words: EbpfApi.dll hands the driver to ebpfsvc, which checks the signature with
WinVerifyTrust and then demands one certificate in it with the subject “Microsoft Corporation eBPF
Verification”, a chain ending at Microsoft Root Certificate Authority 2011 (pinned by thumbprint in
the source), and both extended key usages. If one qualifies, the service hashes the file and tells
the kernel driver that this hash is authorised, a request the kernel accepts only from the service’s
own security identifier. When Windows then loads the driver and it attaches to ebpfcore.sys, the
kernel hashes the image again and refuses it unless the hash was authorised.
Then comes the condition that decides what happens on every machine I could test on:
if (_ebpf_service_test_signing_enabled) {
// Test signing is enabled, check the registry for proof of verification setting.
// Read live from registry so tests can toggle it dynamically.
if (!_ebpf_is_proof_of_verification_required()) {
// Proof of verification is not set, so we don't verify the signature.
EBPF_RETURN_RESULT(EBPF_SUCCESS);
}
}
With test signing on, the check is skipped unless a registry value, ProofOfVerification under
HKLM\Software\eBPF\Parameters, is non-zero. With test signing off, it always runs. Every eBPF for
Windows release is test-signed and needs test signing on, so on any machine where the released
binaries run at all, Proof of Verification is off unless someone turns it on.
So I turned it on. Three drivers: the one signed with my lab certificate; a look-alike, the same
program signed with a certificate I made with exactly the required subject and both extended key
usages, chained to a root of my own that I added to the VM’s trusted roots; and an unsigned copy.
With the value absent, the first two load as NATIVE and the unsigned one is refused by Code
Integrity, as above. Then:
> reg add HKLM\Software\eBPF\Parameters /v ProofOfVerification /t REG_DWORD /d 1 /f
> netsh ebpf add program bindcount.sys
error 2: could not load program
> netsh ebpf add program bindcount_la.sys
error 2: could not load program
> netsh ebpf add program bindcount_unsigned.sys
error 22: could not load program
The trace says _ebpf_object_load_native: Authorization failed for both signed drivers. The
look-alike passes WinVerifyTrust, matches the subject and carries both usages, and fails on the
one thing it cannot fake, the pinned root. The unsigned driver fails earlier, inside WinVerifyTrust,
which surfaces as an invalid-argument error, hence the different number. With Memory Integrity on
the outcomes were the same.
One more result says what Proof of Verification is and is not. With the value set and Memory Integrity off, an ELF object still loads through the JIT:
> netsh ebpf add program v_noglobal.bpf.o
Loaded with ID 109
That is consistent rather than a loophole. A JIT-loaded program is verified by ebpfsvc on this
machine at load time, so there is nothing to prove after the fact; Proof of Verification exists for
programs verified somewhere else. And with Memory Integrity on, the JIT is refused anyway. Put the two
mechanisms together and the trust model of a production Windows machine is clear: kernel code
arrives only as signed images, and eBPF code arrives only as images whose signature says Microsoft
saw the verifier accept them.
Streaming events to user space
Two gaps from 2022 that mattered for real tools were both about getting data out. There was no perf
event array, the classic per-CPU channel a BPF program uses to stream records to user space, and the
ring buffer had only a callback-style consumer, with no ring_buffer__poll to block on. The perf
event array arrived in v0.21.0 in April 2025; the synchronous ring_buffer__poll and
perf_buffer__poll, and their __consume forms, in v1.1.0 in March. Together they mean a Windows
consumer can be written the way Linux consumers are written.
Here is one program with both channels, attached on the same hook, emitting one small record per bind:
// bindevents.bpf.c — one record per IPv4 bind(), streamed to user space two ways
#include "bpf_helpers.h"
#include "ebpf_nethooks.h"
struct event
{
uint32_t pid;
uint32_t addr; // network byte order
uint16_t port; // network byte order
uint16_t pad;
uint32_t cpu;
};
struct
{
__uint(type, BPF_MAP_TYPE_RINGBUF);
__uint(max_entries, 256 * 1024);
} ring SEC(".maps");
struct
{
__uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY);
__uint(max_entries, 64 * 1024);
} perf SEC(".maps");
static volatile uint64_t dropped; // outputs the kernel refused, counted in a global
static void
fill(bpf_sock_addr_t* ctx, struct event* e)
{
e->pid = bpf_get_current_pid_tgid() >> 32;
e->addr = ctx->user_ip4;
e->port = ctx->user_port;
e->pad = 0;
e->cpu = bpf_get_smp_processor_id();
}
SEC("cgroup/bind4")
int
to_ring(bpf_sock_addr_t* ctx)
{
struct event e;
fill(ctx, &e);
if (bpf_ringbuf_output(&ring, &e, sizeof(e), 0) < 0)
__sync_fetch_and_add(&dropped, 1);
return BPF_SOCK_ADDR_VERDICT_PROCEED_SOFT;
}
SEC("cgroup/bind4")
int
to_perf(bpf_sock_addr_t* ctx)
{
struct event e;
fill(ctx, &e);
if (bpf_perf_event_output(ctx, &perf, EBPF_MAP_FLAG_CURRENT_CPU, &e, sizeof(e)) < 0)
__sync_fetch_and_add(&dropped, 1);
return BPF_SOCK_ADDR_VERDICT_PROCEED_SOFT;
}
A few Windows details are visible in it. Two programs share one section name, which has been allowed
since v0.17.0. The perf event array’s max_entries is a buffer size in bytes, not a CPU count, and
the “this CPU” flag is spelled EBPF_MAP_FLAG_CURRENT_CPU rather than Linux’s BPF_F_CURRENT_CPU.
And the ring buffer is written with bpf_ringbuf_output, which copies a finished record in. Linux
programs usually use bpf_ringbuf_reserve and bpf_ringbuf_submit instead, writing straight into
the buffer; those helpers do not exist here. The project’s own notes say why: they are “blocked on
verifier support”, namely a PREVAIL issue about tracking reserved records that has been open since
September 2021.
netsh now recognises both map types; Part 7’s probe of the perf event array came back unspec:
ringbuf 0 0 262144 ring
perf_event_array 0 0 65536 perf
The consumer attaches one of the two programs and then polls, as a Linux tool would. The core of it:
if (ring)
rb = ring_buffer__new(bpf_object__find_map_fd_by_name(obj, "ring"), on_ring, NULL, NULL);
else
pb = perf_buffer__new(bpf_object__find_map_fd_by_name(obj, "perf"), 0, on_perf, on_lost, NULL, NULL);
/* ... */
while (GetTickCount64() < end) {
if (ring)
ring_buffer__poll(rb, 100);
else
perf_buffer__poll(pb, 100);
polls++;
if (pause_ms)
Sleep(pause_ms);
}
The program went the native way, bpf2c to a 595-line driver, signed like the first. Ten binds from
one process, through each buffer:
polling the ring buffer for 12 s
pid 10140 bound 0.0.0.0:58998 on cpu 3
pid 10140 bound 0.0.0.0:58999 on cpu 0
pid 10140 bound 0.0.0.0:59000 on cpu 3
events 11, lost (callback) 0, dropped (in kernel) 0, polls 126
pid 10140: 11
Eleven, because the bind generator makes one warm-up bind before its threads start. The port is already filled in. The hook runs at the point where the Windows Filtering Platform assigns the local address, after the stack has picked an ephemeral port for a bind to port 0, so a program here sees the port the socket actually got.
Then the same thing under load: four threads, 100,001 binds, each buffer three times, alternating. Then again with a consumer that falls behind, sleeping a second after every poll. The figure shows where every record went.
Where 100,001 events went
One record per bind, four threads binding as fast as they can. Each bar is one run: what reached user space, and what the kernel refused to write.
Consumer keeping uppolling continuously
Consumer falling behindsleeping 1 s after every poll
lost callback reported 57,270
lost callback reported 59,634
lost callback reported 59,713
Table view
| Consumer | Buffer | Delivered | Dropped (kernel) | Lost (callback) |
|---|---|---|---|---|
| Consumer keeping up | ring | 100,003 | 0 | no callback |
| Consumer keeping up | ring | 100,001 | 0 | no callback |
| Consumer keeping up | ring | 100,006 | 0 | no callback |
| Consumer keeping up | perf | 100,003 | 0 | 0 |
| Consumer keeping up | perf | 100,004 | 0 | 0 |
| Consumer keeping up | perf | 100,003 | 0 | 0 |
| Consumer falling behind | ring | 36,316 | 63,693 | no callback |
| Consumer falling behind | ring | 39,176 | 60,825 | no callback |
| Consumer falling behind | ring | 40,520 | 59,481 | no callback |
| Consumer falling behind | perf | 42,731 | 57,270 | 57,270 |
| Consumer falling behind | perf | 40,369 | 59,634 | 59,634 |
| Consumer falling behind | perf | 40,290 | 59,713 | 59,713 |
Both buffers delivered every bind while the consumer kept up. Behind, both dropped about three in five. The difference is who hears about it: the perf buffer's lost callback reported exactly the number the program counted, while the ring buffer has no such callback, so only the program knows.
While the consumer kept up, both buffers delivered every bind, at the rate four threads can bind sockets in this VM. With a slow consumer, both lost about 60%: the 256 KiB ring and the perf array’s per-CPU buffers filled between polls, and outputs failed. The difference is in who finds out. The perf buffer’s lost callback reported 57,270, 59,634 and 59,713, exactly the counts the program kept in its global. The ring buffer has no such callback; only the program saw its writes fail. That is also how the two behave on Linux, which Part 5 measured there, and it is the right thing to find here. The point of these APIs is that a consumer written for one platform behaves the same on the other.
One wrinkle from the stress runs: twice, starting the next run straight after the previous one exited, loading the driver again failed. With ten seconds between runs, none of twelve loads did. Each load of a native program installs a fresh kernel driver service under a new GUID, and after each run the previous one was still listed as running for a while, which is presumably what a too-quick reload tripped over.
ebpf-go
Part 7 noted that the bpf() entry point EbpfApi.dll exports did not take the Linux system
call’s argument layout, so a Go or Rust loader written against the Linux system call could not just
point at it. v0.20.0, in December 2024, made it take Linux’s union bpf_attr, and in April 2025
cilium/ebpf, the Go library that Part 3
used on Linux, shipped “Initial Windows Support” in its v0.18.0. Today it is at v0.22.0.
Its Windows guide is candid. It warns that “efW doesn’t have feature parity with Linux”, that “it is
not possible to compile an eBPF program for Linux and use it on Windows”, and, most usefully, that
since “the runtime will most likely require all eBPF programs to be signed by Microsoft”, programs
should come as native drivers loaded with LoadCollection. So that is what I did, with Go installed
in the VM and the same signed driver:
// main.go — the same native bind counter, loaded and read by ebpf-go
package main
import (
"fmt"
"os"
"strings"
"time"
"github.com/cilium/ebpf"
"github.com/cilium/ebpf/link"
)
// EBPF_ATTACH_TYPE_CGROUP_INET4_BIND, from ebpf_program_attach_type_guids.h
const inet4Bind = "{0d7ce21a-7773-405c-93b6-d5bfb92e74bc}"
func main() {
coll, err := ebpf.LoadCollection("bindcount.sys") // a native image: maps and programs come back ready
if err != nil {
fmt.Fprintln(os.Stderr, "load:", err)
os.Exit(1)
}
defer coll.Close()
attach, err := ebpf.WindowsAttachTypeForGUID(inet4Bind)
if err != nil {
fmt.Fprintln(os.Stderr, "attach type:", err)
os.Exit(1)
}
l, err := link.AttachRawLink(link.RawLinkOptions{Program: coll.Programs["count_bind"], Attach: attach})
if err != nil {
fmt.Fprintln(os.Stderr, "attach:", err)
os.Exit(1)
}
defer l.Close()
fmt.Println("counting bind() for 12 s")
time.Sleep(12 * time.Second)
var pid uint32
var n uint64
it := coll.Maps["counts"].Iterate()
for it.Next(&pid, &n) {
fmt.Printf("%6d %d\n", pid, n)
}
for name, m := range coll.Maps {
if strings.HasSuffix(name, ".bss") {
var total uint64
if err := m.Lookup(uint32(0), &total); err == nil {
fmt.Println("total (global variable):", total)
}
}
}
}
> gobind.exe
counting bind() for 12 s
6956 10
total (global variable): 10
It ran the same with Memory Integrity on. The map iteration and lookup are the Linux API unchanged.
The attach is where the platforms part: ebpf-go v0.22.0 has named constants only for the Windows
attach types that predate this year’s additions, so a hook added in June is reached by its GUID,
which the library turns into the runtime’s attach type by asking EbpfApi.dll. The newest eBPF for
Windows its CI names is 1.0.0-rc2, and it worked against 1.8.0.
What does not work is the other half of the Linux workflow. Handed the ELF object instead of the driver, ebpf-go parses it as a Linux object and stops:
NewCollection: map counts: map type Hash (linux): not supported on windows
Map and program type numbers are different on Windows. The perf event array, for one, is type 14
here and 4 on Linux, so ebpf-go keeps a separate set of Windows… constants and refuses to guess.
Its guide says plainly that “loading Windows ELFs is not supported yet”. On Windows, ebpf-go is a
loader for drivers.
What reached parity, and what never will
Read down the right-hand column of the table at the top and the language has, for the programs this
project targets, mostly caught up. BTF-defined maps, atomics in both engines, global variables (in
native mode), the perf event array, synchronous polling of both buffers, bpf-to-bpf calls, tail calls
to the Linux depth of 33, the Linux bpf() ABI, and a library surface of 116 libbpf-style functions
against 96 in 2022. Since v1.5.0 there are even kfunc-like “BTF-resolved functions” that extension
drivers can offer to programs. And since v1.7.0 the project’s pre-merge CI runs tests that compare
its API’s behaviour with Linux’s. A socket-level program written carefully for Linux, on the
cgroup/connect4 or cgroup/bind4 family, is now a recompile away from Windows, with the verdict
names as the most likely edit.
Three things have not moved, and on the evidence will not.
Tracing. There are still no tracepoints, no kprobes, no fentry, no uprobes, no LSM hooks, in the
core project. A tracepoint section still fails before verification starts; today the message is
“Unspecified program type”. Everything the core attaches to is a socket event in the Windows
Filtering Platform: bind, connect, connect authorisation, listen, receive-accept, and sock_ops, twelve
section names in all. The project’s answer to “watch every process start”, the question Part 1 began
with, is an external driver, ntosebpfext, which provides a PROCESS program type and has published
pre-releases since 2025. That is the model for everything outside networking: not hooks into arbitrary
kernel functions, which on Windows would mean hooks into a kernel nobody outside Microsoft is
supposed to patch or instrument, but extension drivers that offer specific, versioned events. It is a
deliberate choice, and it means the half of eBPF’s Linux story that is observability will always be
narrower here.
CO-RE. Compile-once-run-everywhere, the subject of
Part 6, is not here and is
not coming in the form Linux has it. The project’s copy of include/linux/bpf.h marks the CO-RE
relocation fields “Not supported, must be zero”. Without tracing hooks there are no kernel structures
for a program to read, so there is nothing for CO-RE to relocate. Programs read contexts the hooks
define, and those are versioned by the hooks, not by the kernel build.
XDP in the box. XDP left the core driver in 2023, its test-only stand-in went in 2025, and today a
program with an xdp section gets “Unspecified program type” unless xdp-for-windows is installed.
That project’s v1.4.0, from July, is a full release rather than a pre-release, but its prerequisites
are “Windows Server 2022 or 2025, x64”. On Windows 11 there is no XDP.
And one thing has barely moved: bpftool still reports itself as the port’s v0.1, over libbpf v1.0, exactly as it did in October 2022.
Adoption, honestly
The project is busy. It has shipped monthly this year, has about 3,600 stars, and its issue tracker and pull requests are active. What I could not find is anywhere it ships.
The most visible consumer was always going to be Cilium. Microsoft ported Cilium’s layer-4 load balancer as a demonstration in February 2022, and at KubeCon Europe in 2024 two of its engineers presented Cilium on Windows as the plan. Today, Microsoft’s own documentation for Azure CNI Powered by Cilium, the managed Cilium in Azure Kubernetes Service, lists among its limitations, as of its August 2026 revision: “Available only for Linux and not for Windows.” Microsoft’s Kubernetes network observability project, Retina, merged an eBPF-for-Windows plugin and end-to-end tests for it in the summer of 2025; a further plugin was proposed this year and closed unmerged in October. ebpf-go works, as above. I found no Microsoft product, Windows component or supported Azure feature that ships eBPF for Windows, and the signing status makes it hard to see how one could.
That status is the whole story, really. The issue titled “Work out production signing pipeline” was opened on 11 June 2021, a month after the announcement, and is still open. The install docs still say the binaries “are not yet signed by Microsoft” and so “will only work on a machine with a kernel debugger (KD) attached and running, or test signing is enabled”, and that official releases will be “production signed at some point in the future after security hardening is completed”. In May 2025 someone opened an issue titled “Cannot be installed on windows 11”, and a maintainer replied that “these binaries are test signed and will require test signing to be enabled”. The follow-up question on that issue, in October, “Will this ever not be test signed and actually signed?”, has no reply in the thread. The issue is still open.
Test signing is not a detail an administrator can live with. It requires Secure Boot off, which disables a protection most fleets mandate, and it lets any test-signed driver load, not just these. No security team that runs Memory Integrity will turn it on for an observability agent. So the honest description of eBPF for Windows in December 2026 is the one Part 7 gave in October 2022: a working, increasingly complete runtime for research and development, on machines set up for driver development.
What it would take
None of what stands between the project and a production machine is technical in the way the first two years’ gaps were. In order:
Signed releases. eBPFCore.sys and NetEbpfExt.sys need production signatures, the kind
any Windows driver vendor obtains, and the releases need to stop being pre-releases. Until then
nothing else matters, because nothing else can be installed on a normal machine.
A way to get the other signature. Proof of Verification means that once test signing is off, every native program needs Microsoft’s “eBPF Verification” certificate. Today there is no published way for anyone outside the project to get one. The design document’s “Microsoft hosted service” has to exist, and to be quick, because BPF programs are generated and changed far more often than drivers are. The KubeCon talk Part 12 cited listed “dynamically generated programs” among Cilium’s hard problems on Windows. Under this model, each generated program is a signing request.
Robustness at boot. A runtime whose service may not survive a reboot, as on this VM, cannot host anything that must be running when the machine comes up. That is the smallest of these and the easiest to fix.
Hooks beyond the socket layer, through extension drivers, for the programs people actually want
to write. The external PROCESS type shows the shape; it needs to become part of a supported
release rather than a separate pre-release project.
The verifier, the two execution engines, the native pipeline and its integrity story, the Linux ABI, the libbpf surface and the buffers all exist and work. What remains is distribution and trust, and those are decisions rather than code.
What we covered
- eBPF for Windows reached version 1 by way of two release candidates and a 1.1.0 its notes call “the first stable release”. All 34 releases, up to v1.8.0 of 3 December, are still pre-releases with test-signed drivers, and the production-signing issue from June 2021 is still open.
- The installer has no JIT feature, but the JIT has not left the x64 release:
ebpfsvc, now mandatory because it checks driver signatures, still JIT-compiles ELF objects. With Memory Integrity off, Part 12’s programs load asMode JIT, and the JIT now compiles atomics and counted 100,001 binds of 100,001. With Memory Integrity on it is refused at the same step as in 2024. - The bind counter, written a third time, uses
cgroup/bind4, the Linux section name, gets the process ID frombpf_get_current_pid_tgid, increments atomically, and keeps a total in a global variable. Globals work only in native mode, andbpf2crequires them to bestatic. - Natively,
bpf2cproduced 430 lines, the driver 9,728 bytes, with newhashandglobal_variablessections. Signed with a test certificate, it countedpowershell.exe 10, and under Memory Integrity 100,001 of 100,001 three times. On this VM,ebpfsvcdid not survive a reboot and had to be started by hand. - Proof of Verification requires native drivers to be signed by Microsoft’s “eBPF Verification” certificate, pinned to Microsoft’s root. With test signing on it is off by default. Turned on, it refused my test-signed driver and a look-alike with the right subject and key usages alike, and left JIT-loaded objects alone.
- The perf event array and
ring_buffer__poll/perf_buffer__pollwork as on Linux: every event delivered while the consumer kept up, about 60% dropped when it slept a second between polls, with the perf buffer’s lost callback matching the program’s own count and the ring buffer silent. - ebpf-go v0.22.0 loaded the signed driver, attached it by GUID and read the map and the global, with Memory Integrity on or off. It refuses Windows ELF objects.
- Parity is close for socket-level programs. Tracing hooks, CO-RE and XDP on client Windows are not coming in Linux’s form. Adoption is thin: AKS’s Cilium is Linux-only, and I found no shipping Microsoft product. What it would take is signing, on both levels, and a service that starts reliably.
The next part, the last of the series, goes back to Linux and looks at where eBPF stands there at the end of 2026.
A note on the evidence
What I ran, and where. Every Windows listing is pasted from a run on the Hyper-V Generation-2
virtual machine of Parts 7 and 12 (4 vCPU, 8 GB), running Windows 11 Enterprise evaluation, version
26H2, build 26300.9457, with Secure Boot off and test signing on, restored to its clean checkpoint
first. eBPF for Windows v1.8.0 was installed from the release’s x64 MSI, whose SHA-256 matched
the digest GitHub lists for it, with ADDLOCAL=eBPF_Runtime_Components after the documented JIT
feature was rejected. BPF objects were compiled in the VM with clang 18.1.8, the version the
project’s docs pin today, against the headers of the eBPF-for-Windows.x64 1.8.0 NuGet package. The
C loaders and the bind generator (Part 12’s, unchanged) were built on the host with Visual Studio 2026
against that package’s EbpfApi.lib. Native drivers were generated by the release’s bpf2c in the VM,
then compiled and linked on the host against the WDK and Windows SDK 10.0.28000.3231 NuGet packages,
and signed on the host with signtool and a key file exported from a certificate created inside the
VM; nothing was added to any certificate store on the host. The look-alike certificate and its root
were also made in the VM and trusted only there. Go 1.27.4 was installed in the VM, and the Go
program was built there against github.com/cilium/ebpf v0.22.0. For the Memory Integrity runs I
exposed virtualization extensions to the VM, enabled virtualization-based security and the HVCI
scenario in the guest’s registry with RequirePlatformSecurityFeatures 0, and confirmed
VirtualizationBasedSecurityStatus 2 and SecurityServicesRunning {1, 2} before loading anything.
The C and Go programs shown in full were extracted from this page, built and run again on the VM
before publication, with the same results.
What I trimmed. Program and map IDs and process IDs are as printed, each from one load. netsh
output has blank lines removed. The cl and link command lines are shortened where marked, and the
section table is dumpbin’s, reduced to names and permissions, without .pdata and .reloc. The
generated C is three statements of 430 lines. The trace lines are two of several hundred events from
one failed load. The consumer listing is an excerpt; the rest of the program declares its variables,
loads and attaches the chosen program, counts records per process in its callbacks, and prints the
totals. Commands run inside the VM are shown with a bare > prompt; the SDK include path is
abbreviated.
The counts. Each stress run was one process making 100,001 UDP binds, one warm-up bind and then four threads of 25,000, with ten seconds between runs. The counter: three runs of the JIT build without the global and three of the native build, interleaved, with Memory Integrity off, and three of the native build with it on; all counted 100,001, and the global matched except in one run where it was 100,002 because a system service bound one socket. The buffers: three runs each of ring and perf, interleaved, with a consumer polling continuously, then three each with the consumer sleeping 1,000 ms after each poll; “delivered” includes the few records from other processes, so its totals with the drops are a little over 100,001. I report counts, not rates or timings: the bind generator’s run times moved between runs and are not a measurement of anything in this post.
What I cited rather than ran. Release dates, release notes and the changes attributed to each
release are from the project’s GitHub releases and pull requests, checked with GitHub’s API on the day
of writing. The Proof of Verification design and the required subject, root thumbprint and key usages
are from the project’s design document and its source at the v1.8.0 tag, where I also read the
batch-API NULL dereference, the service’s start-up path and the global-variable test that skips the
JIT. The service’s boot failure is observed; the race behind it is my reading of the source, not
something I traced. ebpf-go’s statements are from its Windows guide and release notes at v0.22.0. The
AKS limitation is from Microsoft’s documentation page as revised in August 2026; Retina’s history is
from its pull requests; xdp-for-windows is described from its releases and usage guide. The claim that
no Microsoft product ships eBPF for Windows is the absence of evidence after searching, not proof of
absence. The Linux comparison in the box is Part 15’s.
What I’d still change. Everything here ran with test signing on, because nothing else is possible: the release’s own drivers need it. So the one configuration that matters most, a production machine where Proof of Verification cannot be switched off, is described from the source and not tested, and no row in this post comes from a driver signed by Microsoft’s verification certificate. The boot failure was seen on one VM, on three boots; I would want to see it on a second, cleanly installed machine before calling it a bug in the release rather than in my setup.
eBPF on Windows, Today