HuntIQ Tradecraft: Hunting HTTP2Shell with Tanium
HuntIQ Tradecraft: Hunting HTTP2Shell with Tanium
HTTP2Shell, CVE-2026-111497, is an out-of-bounds write in Google's Brotli decoder. Any application that decompresses attacker-supplied Brotli data with an unpatched copy can be crashed, can leak memory, and in at least some configurations can be driven to run code. The trigger is a compressed request body or response inside an HTTP session, which no endpoint sensor records, so this walkthrough hunts what an endpoint does show: where the vulnerable runtimes run, how they are supervised, and the specific shape an exploitation attempt leaves in Threat Response Recorder history. It is written for hunters who build questions in Interact, and every step carries TQL to paste or adapt.
Finding every vulnerable copy is covered in depth by the Guardian Research Team's HTTP2Shell: Find and Fix Vulnerable Brotli Copies with Tanium, including a tested Tanium Atlas prompt. Start there for inventory. This post picks up where inventory ends.
Key takeaways
-
An exploitation attempt against a vulnerable Node.js service is loud before it succeeds: each failed attempt crashes the process, and the public x86-64 exploit depends on something restarting it, so a burst of runtime starts on one host is the first thing to hunt (T1190 Exploit Public-Facing Application).
-
When the exploit succeeds, the attacker's command can replace the Node.js process rather than run as its child. The new process inherits Node's parent, typically a supervisor shell,
containerd-shimorsystemd, so a hunt keyed on "parent is node" misses it. -
Inside a container, the runtime's user is a numeric ID. Threat Response records the host account that owns that ID, so filtering on the container's
nodeuser name returns nothing. -
Package inventory misses runtimes inside containers and unpackaged copies; process ancestry from
Running Processes With Parentfinds both, along with the supervisor loop or published port that makes them reachable. -
Tanium SBOM reads inside applications and container image layers. It finds the Express 5 and body-parser 2 apps that decode Brotli request bodies by default, and Brotli libraries baked into an image that can be older than the host's own copy.
-
A clean behavior hunt is weak evidence on its own: an attacker who only reads memory leaves no process trace at all.
Before you start
|
Requirement |
Detail |
|
Modules |
Tanium Threat Response with the Recorder collecting process and network events on Linux servers; Tanium SBOM for the package questions in Step 1; Tanium Interact for live questions. |
|
Content sets |
Threat Response (the |
|
Endpoints |
Linux servers and container hosts are the focus. The live exposure question in Step 1 runs on every platform, and the child-process check in Step 4 covers Linux and macOS. |
|
RBAC |
Every question needs the platform |
Not covered: the request or response body, web server logs, and runtimes on hosts without the Tanium Client.
How HTTP2Shell reaches code
Brotli is a compression format, and its decoder is compiled into Node.js, Bun, Python's Brotli and brotlicffi packages, Envoy and many other products. When the vulnerable decoder (Brotli 1.0.3 through 1.2.0) hits a block switch it cannot complete, it treats a malformed stream as "send more input" and keeps appending bytes to an eight-byte internal buffer, writing past it (Node.js). Node.js fixed it in 22.23.4, 24.22.1 and 26.12.1; end-of-life lines get no fix.
No login is needed, but the application has to decode the attacker's data. Inbound, Express 5 decompresses a Content-Encoding: br request body through express.json() by default. Outbound, Node's fetch() decodes a Brotli response from any server the application talks to (Imperva). Imperva demonstrated code execution on the official Node.js 24.22.0 image for Linux arm64 through both paths, noting the exploit took multiple attempts.
What the public x86-64 exploit needs
A public proof of concept published on October 22 and 23 reports code execution over the network against a specific Express 5.3.0 lab on the official Node.js 24.22.0 x86-64 image. Its own documentation calls the result profile-specific and probabilistic: it depends on the exact binary, one libuv worker, a restart supervisor, and a guess at the memory layout, and it tries up to 16 fresh processes before giving up. On every other profile it lists, the same stream only crashes Node.js. As of October 24 no exploitation had been confirmed in the wild (Strobes).
Two parts of that list are what make this hunt work. The restart supervisor matters because every wrong guess kills the process, and the attacker needs it to come back. And the command the exploit runs takes over the crashed process instead of starting a new one. HuntIQ reproduced both in an isolated lab; the companion analysis, HTTP2Shell: Same Exploit, Same Node.js, Different Outcome, has the detail.
Choosing which identifiers to hunt
There are no published indicators of compromise for HTTP2Shell, so every question below keys on behavior. Two process facts shape them.
Parent paths. In a container, node usually runs under a shell loop or an init process (sh, dash, tini, dumb-init) whose own parent is containerd-shim-runc-v2 or runc. On a host, a service runs under systemd or a process manager. When the exploit's command replaces node, its parent is whichever of these launched node.
User names. Threat Response resolves a process's user ID against the host's account list. A container's node user (ID 1000 in the official image) appears as whatever host account owns ID 1000, so filter on IDs and parents, not on the in-container name.
Three Trace settings decide whether these questions return anything useful. MakeStackable stays at "0" so each event keeps its endpoint and timestamp, which the timing comparisons in Steps 2 and 3 depend on; "1" gives a prevalence view without them. MaxResultsPerHost is raised to "100", because a crash loop produces many rows and the default keeps one. TreatInputAsRegEx is "1" so the path filters are read as regular expressions. The "1 week" lookback reaches October 21 only until October 28; after that, set TimeRange to "absolute time range" and pass a window starting October 21 in AbsoluteTimeRange.
Step 1: Find runtimes that inventory misses
Start with the Guardian post's Atlas prompt or its Interact questions for installed and bundled copies. Then find what package inventory cannot see: runtimes running inside containers, unpackaged copies, and the supervisors that keep them alive.
Get "Computer Name" and "Running Processes With Parent" from all machines with "Running Processes With Parent" matches ".*(node|envoy|docker-proxy|[^a-z]bun[^a-z]).*"
Returns Process and Parent for every running process on each matching host, because the condition matches the host on any one line; filter the returned rows down to the runtimes. This is live state, cached for 10 minutes, and Process holds the full command line. Read it as a map:
-
A
nodeorbunwhose parent chain runs throughcontainerd-shimorruncis running in a container, at a version inventory will not report. -
A runtime started from a path such as
/opt/node-v24.22.0/bin/nodeis an unpackaged install; the directory name is the only version signal. -
docker-proxy -host-ip ... -host-port ...shows a port published from a container; a host IP other than127.0.0.1is reachable from the network. -
A command line like
sh -c while true; do node server.js; ...; doneis a restart loop. It is a common pattern for keeping a service up, and it is exactly the supervisor the public exploit relies on. Restart policies in Docker,systemd(Restart=always) and process managers such as PM2 do the same job.
The match is a substring, so it also hits paths and arguments that contain node; expect a few unrelated rows.
Look inside applications and images with SBOM
Process ancestry tells you what is running. Tanium SBOM tells you what is inside it: the packages and libraries an application ships, including the files in container image layers on the host. Two questions matter for HTTP2Shell.
First, every Brotli library SBOM can see:
Get "SBOM Package Information Filtered By"["*brotli*","","","","10000"] from all machines
The parameters are name, vendor, version, ecosystem and row limit, and the name is a wildcard match. Returns Name, Version, Type, Vendor, CPE, Parent and package hash. How to read it:
-
Drop encoder-only rows (
brotlienc,libbrotlienc); the flaw is in the decoder (brotlidec,libbrotlidec) and its sharedbrotlicommoncode. -
A
Parentunder/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/<n>/fs/is a library inside a container image layer, not on the host. An image built on an older base can carry an olderlibbrotlidecthan the host it runs on, and patching the host does nothing for it; rebuild the image. -
Windows applications that ship their own
brotlidec.dllusually report no version, so theParentpath names the product and its vendor decides the fix. -
A Linux library version comes from its file name, which distributions keep when they backport a fix. Confirm a host library against the package release from the Guardian post's inventory questions, and an image library against the image's package manager.
-
Node.js and Bun compile Brotli into the runtime, so neither appears here as a Brotli row. Use Step 1's process questions and the Guardian post's runtime checks for those.
Second, the applications that decode Brotli request bodies by default. Express 5 does it through body-parser 2.x, so look for both:
Get "Computer Name" and "SBOM Package Information Filtered By"["*express*","","","","10000"] from all machines
Get "Computer Name" and "SBOM Package Information Filtered By"["*body?parser*","","","","10000"] from all machines
The name wildcard also matches packages such as spdx-expression-parse, so keep rows whose Name is exactly express with a 5. version, or body-parser with a 2. version. The Parent path to each package.json names the application: a service directory such as /app, a path inside a container image layer, or a globally installed command-line tool under a user's npm directory on a workstation. Developer tools that run a local HTTP server, such as MCP servers, can bundle Express 5 too. Pair each hit with Step 1's process view to see whether that application is running and listening, and with its Node.js version to see whether it is vulnerable.
Read two placeholder rows as gaps, not clean results. No Results Found means SBOM has data for the endpoint and nothing matched. [results currently unavailable] means the endpoint has not finished an SBOM scan, so its packages are unknown. Image layers on disk also include images that are not currently running; treat those as a rebuild list rather than live exposure.
Step 2: Hunt crash-and-restart bursts
This is the earliest and loudest signal. Every failed exploitation attempt kills the runtime, and the supervisor starts it again within a second or two.
Get "Trace Executed Processes"["1 week","","1","0","100","0",".*/(node|nodejs|bun)","","","","",""] from all machines with "Is Linux" equals "True"
Returns Endpoint Name, start and end time, parent and process path, command line, MD5 and user for each runtime start in the lookback. Group the rows by host and parent, then sort by start time. A healthy service starts rarely: at boot, on deploy, or after a config change. Dozens of starts of the same command line from the same parent inside a few minutes is a crash loop. Under exploitation in the HuntIQ lab, the containerized runtime restarted over and over within a few minutes, each instance living only a second or two.
A crash loop has ordinary causes too: a bad deploy, a missing dependency, an out-of-memory kill. Separate them by timing and by what surrounds the burst. Bursts that start and stop abruptly on an internet-facing service, with no deploy around them, are the candidates.
Step 3: Hunt the process that replaced the runtime
When the exploit succeeds, its command takes over the crashed node process. Threat Response records it as a new execution whose parent is the runtime's own parent: the loop shell, the init process, or systemd. Search for discovery and download tools launched by those parents:
Get Computer Name and Trace Executed Processes["1 week","","1","0","100","0","(?i).*/(id|whoami|uname|curl|wget|nc|ncat|socat|busybox)$","(?i).*/(sh|dash|bash|node|bun|tini|dumb-init)$","","","",""] from all machines with Is Linux equals True
Same columns. This question is deliberately wide and it is noisy: shell scripts run uname and id constantly, so expect many rows from login scripts, package hooks and monitoring. Two traits separate the exploit row from the noise:
-
Timing. The replacement row starts within milliseconds of a runtime from Step 2 ending, on the same host, under the same parent. Pull the Step 2 rows for any host with a burst and line them up.
-
Command line. A process started by a normal shell or script records its command line. The exploit's command, started from inside the crashed runtime, recorded none in the HuntIQ lab; Threat Response showed it as
Missing.
A discovery tool with no command line, starting the instant a crash-looping runtime ends, under that runtime's parent, is the lead. Read the parent's own command line from Step 1 or Step 2 to confirm it is the supervisor of the service you care about.
Step 4: Check for the classic child process
Some exploits will spawn a child instead of replacing the runtime, and post-exploitation tooling usually spawns more processes once an attacker has a foothold. Keep the conventional check running alongside Step 3:
Get Computer Name and Trace Executed Processes["1 week","","1","0","100","0","","(?i).*/(node|nodejs|bun)(\.exe)?$","","","",""] from all machines
Returns every process whose parent is a Node.js or Bun runtime. Build tools, npm scripts and developer workstations produce plenty of legitimate children, so scope it to server groups, and look for shells, download tools, and binaries run from temporary directories. Treat a quiet result as expected rather than reassuring: in the replacement case above, this question returns nothing at all. The parent pattern matches /-separated paths, so as written it covers Linux and macOS.
Step 5: Line up inbound connections with the burst
Threat Response records the connections each runtime accepts. On a host with a Step 2 burst, a run of accepted connections that each land just before a restart ties the crashes to traffic and names the source.
Get "Computer Name" and "Trace Network Connections"["1 week","","1","0","100","0","0","","","","",".*/(node|nodejs|bun)","",""] from all machines with "Is Linux" equals "True"
Returns time, Process ImagePath, user, operation, and local and remote address and port. The process filter is the twelfth parameter in this sensor, not the seventh. IncludeLocalhost at "0" excludes IPv4 127.0.0.1. For a containerized service, the local address is the container's bridge address and the remote address is often the bridge gateway or docker-proxy, because published ports are proxied; the real client is in the reverse proxy or load balancer log. Health checks also arrive at a steady interval, so look for the irregular cluster around the crashes, not the metronome.
Reading the results
Rank what comes back by how much of the sequence it shows. A Step 3 row with both the timing and the missing command line is as close to proof as endpoint data gets here; check that the same host shows the Step 2 burst and Step 5 connections in the same minutes. A Step 2 burst on an internet-facing service with no deployment around it stands on its own as an attempt worth investigating, even without a success. A Step 4 shell or downloader under a server's runtime is a lead regardless of how it got there.
Expect, and set aside, the following: scripts running uname and id with full command lines; package and MOTD hooks under /etc/update-motd.d and /var/lib/dpkg; npm and build tooling as children of node; health checks arriving on a fixed interval; and a single restart after a deploy.
What this hunt does and does not establish
The exploit itself travels as compressed data inside an HTTP session, and no endpoint sensor sees that. Everything above hunts the side effects: crashes, restarts, a replaced process, accepted connections. An empty result across Steps 2 through 5 says those side effects were not recorded in the lookback, and the Recorder's retention bounds how far back that reaches. Three cases leave fewer side effects than you might expect:
-
An attacker who uses the memory disclosure and never runs a command leaves no process trace; only the crash, if there was one, remains.
-
A service with no restart supervisor crashes once and stays down. That is an outage to investigate, not a burst.
-
The outbound path, a vulnerable client fetching a malicious server's Brotli response, crashes the client, not a listening service. The burst and replacement shapes still apply to long-running clients under a supervisor; one-shot clients such as build steps and scrapers simply fail.
Step 1 tells you where the risk sits until patching is done. Steps 2 through 5 look for a host where someone tried to use it. Treat a hit as the start of an investigation.
Next steps
-
Patch to Node.js 22.23.4, 24.22.1 or 26.12.1, Python Brotli 1.2.1 or brotlicffi 1.2.1.0, or Bun 1.4.4, rebuild container images on a patched base, and restart every runtime afterward, because a running process keeps the old decoder. The Guardian post's version tables cover the rest.
-
Keep Step 2 as a standing question on internet-facing Linux servers; a crash loop is worth knowing about whatever its cause.
-
Turn Step 3, scoped to your server groups, into a saved question that runs on a schedule, so a replacement row reaches an analyst without anyone remembering to look.
-
Read the companion analysis, HTTP2Shell: Same Exploit, Same Node.js, Different Outcome, to see why a container and a host install of the same Node.js version behaved so differently under the same exploit.
About HuntIQ
HuntIQ is Tanium's threat hunting practice. Our hunters go hands-on-keyboard in customer environments, running hunt campaigns against live telemetry, triaging what surfaces, pivoting from one endpoint to the whole estate, and escalating with the evidence already attached. Alongside that we build the durable content behind it, the Signals, hunt packages, and recurring hunts your own analysts can run without us.