r/blueteamsec • u/AdditionUnlucky3475 • 2h ago
low level tools|techniques|knowledge (work aids) brscan: Fast C scanner for CVE-2026-111497 (Google Brotli) using epoll, memfd & sendfile
Hi everyone,
I wrote brscan — a lightweight network scanner in C for detecting CVE-2026-111497 (the critical out-of-bounds write in Google's Brotli decoder affecting Node.js, .NET, Istio, brotlicffi, etc.).
How it works:
- Sends a 23 MB Brotli payload via zero-copy sendfile (backed by memfd) to keep memory and CPU overhead minimal.
- Uses an async epoll + timerfd event loop for fast concurrent scanning.
- Identifies vulnerable targets by checking the response body length.
GitHub: https://github.com/Tenrion618/brscan
Note: Please read README and SECURITY before running. Built strictly for defensive auditing and authorized testing.
Feedback on the C code, edge cases, or performance optimizations is very welcome.