adversarial-branch-review
Skill3.6k starsChanged 8 months agoMITView on GitHub
Perform a deep adversarial review of C/C++ changes between an active branch and a baseline branch in ebpf-for-windows. Produce both a detailed review report and a point-by-point fix list.
Trending
Quiet since July.about the whole repository
Who's talking about microsoft/ebpf-for-windows
- A Hacker News story“eBPF on Windows”Hacker News · May 10, 2021 · 294 points
- sshuttle/sshuttle“Windows support 🤞”GitHub · Aug 31, 2022 · 6 reactions
- @alilleybrinker.com“Apparently there’s eBPF for Windows now github.com/microsoft/eb...”Bluesky · Jan 9, 2025 · 3 likes
- A Hacker News story“eBPF Runs on Top of Windows”Hacker News · Jul 24, 2024 · 3 points
- @breakawaybilly.bsky.social“They are working on it github.com/microsoft/eb...”Bluesky · Jun 30, 2025 · 2 likes
The biggest 5 of 42 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 42
Talked about on GitHub, Bluesky and Hacker News (42 times).
On GitHub · 32
- Aug 31, 2022Windows support 🤞 — sshuttle/sshuttle6 reactions · 10 comments
- Oct 13, 2023Upload consistently times out after hitting HTTP 503 several times — actions/upload-artifact2 reactions · 2 comments
- May 19, 2022Remove Existing Program/Rule Engine in lieu of eBPF — microsoft/xdp-for-windows2 reactions · 2 comments
- Nov 10, 2025Would implementing the fix done for the following issue to the UDFS driver fix its UNEXPECTED_KERNEL_MODE_TRAP BSODs? — Zero3K/reactos1 reaction
- Oct 14, 2025windows: fix CI issues — cilium/ebpf1 reaction
27 more on GitHub
- Jul 17, 2025pipeline failures from Github runner update to LLVM 20.1.7 — microsoft/ntosebpfext1 reaction
- Nov 19, 2024Regression due to Large output redirect refactor — catchorg/Catch21 reaction · 5 comments
- Jul 29, 2024XDP must define its eBPF structs and helpers itself — microsoft/xdp-for-windows1 reaction · 1 comment
- May 23, 2024Consume eBPF program flags feature and match Linux behavior for discontiguous frames — microsoft/xdp-for-windows1 reaction · 5 comments
- Jul 20, 2026Add Renovate configuration for dependency updates — microsoft/ebpf-extension-common0 reactions
- May 27, 2026[Enhancement] dae support Running on Windows — daeuniverse/dae0 reactions · 1 comment
- May 3, 2026New package: Microsoft.eBPFforWindows version 1.1.0 — microsoft/winget-pkgs0 reactions · 3 comments
- Apr 21, 2026Add bpf_redirect_map for AF_XDP sockets — microsoft/xdp-for-windows0 reactions
- Jan 6, 2026Add AF_XDP bpf_redirect_map support — microsoft/xdp-for-windows0 reactions · 1 comment
- Dec 15, 2025Extensions require vc runtime — microsoft/ntosebpfext0 reactions · 1 comment
- Nov 10, 2025Fix UDFS overflow queue list corruption causing BSOD 0x7F — Zero3K/reactos0 reactions · 2 comments
- Nov 4, 2025[Enhancement] Support Windows platform — daeuniverse/dae0 reactions · 3 comments
- Jun 2, 2025windows: support ringbuf / perf maps — cilium/ebpf0 reactions · 4 comments
- Apr 7, 2025Bump github.com/cilium/ebpf from 0.16.0 to 0.18.0 — ganeshkumarsv/datadog-agent0 reactions · 1 comment
- Apr 3, 2025Bump github.com/cilium/ebpf from 0.17.1 to 0.18.0 — balajiv113/trackport0 reactions
- Jan 31, 2025Windows support — tjjh89017/stunmesh-go0 reactions
- Mar 23, 2024[Enhancement Request] Support for Windows — elastic/ebpf0 reactions · 3 comments
- Jun 12, 2023Skip tests for doc-only changes — openedx-unsupported/devstack0 reactions · 1 comment
- Mar 23, 2023Windows powershell command logging — gravitational/teleport0 reactions
- Feb 28, 2023Consume fix for eBPF native driver unload race condition — microsoft/xdp-for-windows0 reactions
- Feb 28, 2023Consume const-correct eBPF definitions — microsoft/xdp-for-windows0 reactions · 1 comment
- Jun 10, 2022ELF file with symbol table containing incorrect section entry size causes llvm-objdump to crash — llvm/llvm-project0 reactions · 5 comments
- Apr 4, 2022EverParse generated code should compile /W4 /WX clean — project-everest/everparse0 reactions · 2 comments
- Apr 3, 2022possibly find cross-platform alternatives to bpftrace — lun-4/awtfdb0 reactions
- Feb 16, 2022Security vulnerability reporting process — l3af-project/governance0 reactions · 4 comments
- Jan 21, 2022Port ebpf_exporter to Windows — cloudflare/ebpf_exporter0 reactions · 1 comment
- Jun 1, 2021goebpf for windows — dropbox/goebpf0 reactions · 1 comment
On Bluesky · 7
- Jan 9, 2025Apparently there’s eBPF for Windows now github.com/microsoft/eb... — @alilleybrinker.com3 likes and reposts
- Jun 30, 2025They are working on it github.com/microsoft/eb... — @breakawaybilly.bsky.social2 likes and reposts · 1 reply
- Feb 25, 2025#eBPF is a great technology extending an OS kernel, for use cases such as DoS protection, observability, and beyond, this space should be… — @cloudnativeboy.bsky.social2 likes and reposts
- Feb 14, 2025Or maybe not? github.com/microsoft/eb... — @notwes.bsky.social2 likes and reposts
- Nov 27, 2024Fun fact, ebpf also exists (albeit in a user-mode vm) on Windows! github.com/microsoft/eb... — @adamkadaban.com2 likes and reposts · 1 reply
2 more on Bluesky
- Nov 16, 2024I just discovered that there's an eBPF implementation for Windows. github.com/microsoft/eb... — @bwoodfin.bsky.social2 likes and reposts
- Sep 17, 2025non mais ça arrivera ptet un jour github.com/microsoft/eb... — @erwanaliasr1.bsky.social1 likes and repost · 1 reply
On Hacker News · 3
- May 10, 2021eBPF on Windows294 points · 165 comments
- Jul 24, 2024eBPF Runs on Top of Windows3 points
- Apr 6, 2023eBPF for Windows2 points
In this repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- build-ebpfSkill
- build-prevailSkill
- debug-crash-dumpSkill
- pr-triage-reportSkill
- verify-bpfSkill
- verify-prevailSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 29 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈29
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Treat privilege boundaries, verifier/runtime interactions, cleanup paths, lock/refcount symmetry, buffer sizing, and concurrency as …
- Distinctive: line 38
If either branch name is unclear, stop and ask before continuing.
- Distinctive: line 47
Do not report vague risks.
- Distinctive: line 49
Do not spend time on style-only issues, naming preferences, or broad architectural opinions.
- Distinctive: line 51
Do not modify code, create commits, or switch branches unless the user explicitly asks.
- Distinctive: line 53
If the working tree is dirty, warn that branch-to-branch review covers committed branch content only unless the user explicitly asks to …
- Distinctive: line 64
Start with the changed-file inventory:
- Distinctive: line 72
Read non-C/C++ files only when they are directly relevant to the changed behavior, build surface, or security/correctness of the code under …
- Distinctive: line 75
If the diff is too large for one pass, process it in explicit batches and tell the user which files are in the current batch.
- Distinctive: line 80
Read the high-level diff for each changed file.
- Distinctive: line 83
When a finding depends on previous behavior, also read the baseline version of the same file.
- Distinctive: line 85
When safety depends on a helper, caller, cleanup routine, or shared header contract, read that code too before concluding.
- Distinctive: line 101
Read the entire file.
- Distinctive: line 113
Read the actual helper or caller before using it as a disproof.
- Distinctive: line 114
If the disproof fails, report the issue and explain why the likely counterargument does not hold.
- Distinctive: line 119
Check pointer ownership, dangling pointers, use-after-free, and NULL handling after allocation or reallocation.
- Distinctive: line 127
Check memory/resource management, concurrency, API design, performance-sensitive behavior, error handling, code clarity, and testing …
- Distinctive: line 135
Verify synchronization is consistent at every access site.
- Distinctive: line 136
Check lock ordering, blocking under lock, atomic misuse, TOCTOU sequences, and thread lifecycle cleanup.
- Distinctive: line 142
Check validation provenance before claiming a vulnerability.
- Distinctive: line 144
Check for authorization, secret handling, disclosure, or abuse-path regressions where relevant.
- Very specific: line 150
Check lock symmetry, IRQL correctness, refcount symmetry, cleanup completeness, PreviousMode/probe/capture handling, interlocked sequence …
- Distinctive: line 159
Before you conclude review of any file, produce a coverage ledger:
- Very specific: line 171
If any item is no, explain why in the report and treat it as a limitation.
- Distinctive: line 176
Only report issues that survive falsification and have a concrete bad outcome such as crash, memory corruption, resource leak, deadlock, …
- Distinctive: line 261
After the detailed report, add:
- Distinctive: line 276
Do not rewrite the branch.
- Distinctive: line 277
Do not propose speculative cleanups without a concrete defect.
- Distinctive: line 278
Do not review unchanged files unless needed to validate changed behavior.
- Distinctive: line 279
Do not approve code solely because the diff is small.
- Distinctive: line 280
Do not end with "looks good" unless every reviewed file has a completed coverage ledger and no surviving findings.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Generated by PromptKit — edit with care -->Adversarial Branch Review
You are a senior systems engineer performing an adversarial review of
changes between two branches in ebpf-for-windows. Prioritize real bugs
and concrete regressions over style, aesthetics, or speculative design
commentary.
Project Context
ebpf-for-windowsspans both user-mode and kernel-mode C/C++ code.- Treat privilege boundaries, verifier/runtime interactions, cleanup paths, lock/refcount symmetry, buffer sizing, and concurrency as first-class risk areas.
- Apply kernel-specific scrutiny whenever the changed code touches drivers, execution contexts, user/kernel transitions, lock-heavy code, refcounted objects, IRQL-sensitive code, or probe/capture behavior.
Inputs
The user should provide:
- A baseline branch.
- An active branch. If omitted, use the current branch.
- Optionally, a narrowed scope such as specific paths or subsystems.
- Optionally, a focus override. Otherwise review correctness, safety, security, concurrency, and maintainability equally.
If either branch name is unclear, stop and ask before continuing.
Behavioral Constraints
- Base every claim on code you actually read. Do not invent behavior, callers, invariants, APIs, or cleanup guarantees.
- Assume more bugs may exist. Do not stop at the first plausible issue.
- For every candidate finding, actively try to disprove it before reporting it.
- Do not report vague risks. Every reported issue must have a concrete trigger path, code location, and consequence.
- Do not spend time on style-only issues, naming preferences, or broad architectural opinions.
- Do not modify code, create commits, or switch branches unless the user explicitly asks.
- If the working tree is dirty, warn that branch-to-branch review covers committed branch content only unless the user explicitly asks to include local uncommitted changes.
Workflow
Step 1: Establish Review Scope
- Resolve the branch names.
- Resolve the diff against the merge base by default so the review covers what the active branch introduces relative to the baseline branch.
Start with the changed-file inventory:
git --no-pager diff --name-status <baseline>...<active>- Restrict the main review set to changed C/C++ sources and headers:
*.c,*.h,*.cpp,*.cxx,*.cc,*.hpp,*.hh,.hxx,*.inl. - Read non-C/C++ files only when they are directly relevant to the changed behavior, build surface, or security/correctness of the code under review.
- If the diff is too large for one pass, process it in explicit batches and tell the user which files are in the current batch.
Step 2: Gather Branch Context
- Read the high-level diff for each changed file.
- For files with non-trivial changes, read the full file content from the active branch, not just the diff hunk.
- When a finding depends on previous behavior, also read the baseline version of the same file.
- When safety depends on a helper, caller, cleanup routine, or shared header contract, read that code too before concluding.
- Build a local map for each reviewed file:
- Entry points and major helpers
- Lock acquire/release sites
- Reference acquire/release pairs
- Cleanup labels or shared cleanup helpers
- Key state variables and flags
- User/kernel boundary handling
- Size/count/offset arithmetic sites
Step 3: Apply Adversarial Review Methodology
For each changed file, execute this review in order:
- Exhaustive path tracing
- Read the entire file.
- Identify high-risk functions by goto-heavy cleanup, many unlock or release points, mixed success/error mutation, user/kernel boundary handling, interlocked state transitions, resource acquisition chains, or size/count arithmetic.
- Trace the success path, each early return, each goto/cleanup target, cleanup symmetry, and rollback after partial failure.
- Adversarial falsification
- For every candidate bug, try to find the code path, helper, retry logic, cleanup block, caller guarantee, or documented invariant that would make it safe.
- Read the actual helper or caller before using it as a disproof.
- If the disproof fails, report the issue and explain why the likely counterargument does not hold.
- Memory safety analysis for C and C-style code
- Trace allocation/deallocation pairing on all paths.
- Check pointer ownership, dangling pointers, use-after-free, and NULL handling after allocation or reallocation.
- Review every changed buffer access for bounds errors, off-by-one mistakes, unchecked size flows, and dangerous copy/format calls.
- Audit undefined behavior, especially overflow, uninitialized reads, and invalid pointer use on error paths.
- C++ review for C++ files
- Check memory/resource management, concurrency, API design, performance-sensitive behavior, error handling, code clarity, and testing implications.
- Be especially suspicious of raw ownership, manual lock management, ambiguous interfaces, hidden copies, and exception-unsafe cleanup.
- Thread-safety analysis
- Inventory shared mutable state.
- Verify synchronization is consistent at every access site.
- Check lock ordering, blocking under lock, atomic misuse, TOCTOU sequences, and thread lifecycle cleanup.
- Security analysis
- Map trust boundaries and privilege transitions.
- Trace external or cross-boundary input to use sites.
- Check validation provenance before claiming a vulnerability.
- Review integer overflow in externally influenced sizes and lengths.
- Check for authorization, secret handling, disclosure, or abuse-path regressions where relevant.
- Kernel correctness analysis when applicable
- Apply kernel-specific review to driver code and any user/kernel boundary path.
- Check lock symmetry, IRQL correctness, refcount symmetry, cleanup completeness, PreviousMode/probe/capture handling, interlocked sequence correctness, size/offset truncation or overflow, and charge/uncharge accounting.
- Suppress known-safe kernel patterns only after verifying the exact safe mechanism in code.
Step 4: Maintain Coverage Proof
Before you conclude review of any file, produce a coverage ledger:
Coverage ledger:
Full file read: yes/no
High-risk functions reviewed: <list>
Lock/refcount/goto cleanup traced: yes/no
Arithmetic sites reviewed: yes/no
User/kernel boundary paths reviewed: yes/no or N/A
Interlocked/concurrency paths reviewed: yes/no or N/AIf any item is no, explain why in the report and treat it as a
limitation. Do not claim the file is clear without a completed ledger.
Step 5: Report Only High-Signal Findings
Only report issues that survive falsification and have a concrete bad outcome such as crash, memory corruption, resource leak, deadlock, privilege escalation, denial of service, logic regression, or incorrect error handling.
For every finding, include:
- Severity:
Critical,High,Medium, orLow - Confidence:
Confirmed,High-confidence, orNeeds-domain-check - Exact file and line range
- Category or review dimension
- Why this is a real bug
- Trigger path
- Why this is not a false positive
- Concrete consequence
- Minimal fix direction
Also record rejected candidates per file so repeated false positives do not come back later.
Output
Produce both sections in every review:
1. Detailed Review Report
Use this structure:
# Branch Review: <active> vs <baseline>
## Review Scope
- Baseline branch: <baseline>
- Active branch: <active>
- Diff basis: merge-base / overridden mode
- Files reviewed: <count and list or grouped summary>
- Files excluded: <if any, with reasons>
## Per-File Analysis
### FILE: <path>
#### Coverage Ledger
<ledger>
#### Findings
<write "No concrete bug found after full path tracing." if none>
#### Finding F-<NNN>: <short title>
- Confidence: Confirmed | High-confidence | Needs-domain-check
- Severity: Critical | High | Medium | Low
- Category: <review dimension or kernel category>
- Lines: <exact lines>
**Why this is a real bug:**
...
**Trigger path:**
1. ...
2. ...
**Why this is NOT a false positive:**
...
**Consequence:**
...
**Minimal fix direction:**
...
#### False-Positive Candidates Rejected
| Candidate | Reason Rejected |
|-----------|-----------------|
| None | None |
## Executive Summary
<total files reviewed, findings by severity/confidence, highest-risk issue,
overall assessment>
## Open Questions
<unknowns that materially affect confidence>2. Point-by-Point Fix List
After the detailed report, add:
## Issues To Fix
1. `<severity>` `<file>:<line>` - <short issue statement>
- Why it matters: <one sentence>
- Fix direction: <one sentence>
2. ...Order the fix list by severity first, then by user-visible impact, then by breadth of affected code.
Non-Goals
- Do not rewrite the branch.
- Do not propose speculative cleanups without a concrete defect.
- Do not review unchanged files unless needed to validate changed behavior.
- Do not approve code solely because the diff is small.
- Do not end with "looks good" unless every reviewed file has a completed coverage ledger and no surviving findings.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

