Repository navigation
NGINX2Root protection: exposure, crash, RCE, SCTP & HTTP/2 spray detection - #36
Merged
Merged
Conversation
House style: em dashes out of marketing copy, replaced by commas, colons and sentence breaks. Titles use a pipe separator.
…ay detection Detect the five NGINX2Root nginx bugs (CVE-2026-123007 and four more) plus the kernel step of the chain, on the host and in running containers: - vuln.nginx2root: flag nginx builds older than 1.30.7/1.31.9 whose config reaches a specific CVE (HTTP/2, HTTP/3, mail proxy, proxy_pass + SSI/mirror), naming the CVE and its mitigation. Reads NGINX_VERSION from official images and the package databases, following nginx's two version tracks. - nginx.worker-crash: alert on a run of nginx workers dying on memory faults. - web.worker-exec: alert when a web-server worker executes a program (RCE). - kernel.sctp-socket / kernel.sctp-exposed: alert on SCTP socket creation and a loaded SCTP module -- the unpatched root-escalation step. - nginx.http2-spray: workload heuristic for the heap-spray footprint (inbound bytes up while logged requests stay flat), from Docker stats + log counts. The eBPF collector now traces socket() so SCTP creation is captured alongside execve/connect/openat/ptrace. None of these name a client address, so none ban.
Document the NGINX2Root detectors (exposure, crash, RCE, SCTP, HTTP/2 spray) and their honest limits, add the STACKDOG_NGINX2ROOT_ENABLED and STACKDOG_KERNEL_SCTP_ENABLED toggles to .env.sample, and add a ready-to-send announcement telling users to update the trydirect/nginx image (restart, not reload) and install Stackdog for PHP2Shell and wider CVE coverage.
Add a long-form article, "CVE-2026-123007: NGINX2Root and How to Protect Your Servers and Containers", covering the five CVEs and the kernel bug, the fixed releases, why a reload is not enough, the IOCs, the interim mitigations, and how Stackdog detects each step. Wired into the sitemap and the footer Explore list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds detection for NGINX2Root — the five nginx memory-corruption bugs (CVE-2026-123007 and four more) plus the unpatched Linux kernel SCTP escalation to root, disclosed 2026-11-18 — and ships the stackdog.app blog post and a user announcement about it.
Stackdog detects and responds, it does not patch; upgrading nginx to 1.30.7 / 1.31.9 and restarting (a reload is not enough) is the fix.
What's included
Detection (host + running containers):
vuln.nginx2rootproxy_pass+ SSI/mirror) — names the CVE + the exact mitigationnginx.worker-crashweb.worker-execkernel.sctp-socketkernel.sctp-exposedsctpmodule is loaded — the unpatched kernel step is reachablenginx.http2-sprayeBPF: now traces
socket()so SCTP creation is captured alongside execve/connect/openat/ptrace (userspace parse +SyscallDetails::Socket).Website: long-form post
/nginx2root("CVE-2026-123007: NGINX2Root and How to Protect Your Servers and Containers"), wired into the sitemap + footer.Docs: README + CHANGELOG coverage,
.env.sampletoggles (STACKDOG_NGINX2ROOT_ENABLED,STACKDOG_KERNEL_SCTP_ENABLED), anddocs/nginx2root-user-announcement.md(trydirect/nginx update + Stackdog install for PHP2Shell & wider CVE coverage).Test plan
cargo fmt --checkclean,cargo clippy --all-targetsclean (in touched code)cargo test— 657 pass (494 lib incl. new detector/parsing tests, 8 main, 155 integration)Notes / caveats
trace_socket) mirrorstrace_connectline-for-line but can't be compiled on macOS (nobpf-linker); it builds on Linux/CI. The userspace parsing + detector are tested here.web.worker-exec/kernel.sctp-socketconsume eBPF syscall events, which theserveruntime does not yet start (a pre-existing gap affecting all syscall detection).nginx.http2-sprayis a workload-level heuristic (Docker byte counters + log counts), not per-connection telemetry.