Sigma high experimental sigma

Linux Suspicious Child Process from Node.js - React2Shell

Detects suspicious child processes spawned from Node.js server processes on Linux systems, potentially indicating remote code execution exploitation such as CVE-2025-55182 (React2Shell). This rule particularly looks for exploitation of vulnerability on Node.js Servers where attackers abuse Node.js child_process module to execute arbitrary system commands. When execSync() or exec() is used, the command line often includes a shell invocation followed by suspicious commands or scripts (e.g., /bin/sh -c <malicious-command>). For other methods, the Image field will show the spawned process directly.

View Source

Detection Logic

{
  "selection_parent": {
    "ParentImage
| endswith": "/node",
    "ParentCommandLine
| contains": [
      "--experimental-https",
      "--experimental-next-config-strip-types",
      "/node_modules/next",
      "next dev",
      "next start",
      "node_modules/.bin",
      "react-scripts start",
      "start-server.js"
    ]
  },
  "selection_generic_child_img": [
    {
      "Image
| endswith": [
        "/busybox",
        "/cat",
        "/curl",
        "/dash",
        "/dig",
        "/head",
        "/id",
        "/ifconfig",
        "/ip",
        "/java",
        "/less",
        "/lua",
        "/more",
        "/nc",
        "/ncat",
        "/netcat",
        "/netstat",
        "/nslookup",
        "/perl",
        "/ping",
        "/python",
        "/python2",
        "/ruby",
        "/socat",
        "/tail",
        "/wget",
        "/whoami"
      ]
    },
    {
      "Image
| contains": "/python"
    }
  ],
  "selection_generic_child_cli": {
    "CommandLine
| contains": [
      "/dev/tcp/",
      "/dev/udp/",
      "/etc/hosts",
      "/etc/passwd",
      "/etc/shadow",
      "base64",
      "cat ",
      "curl",
      "dig",
      "ifconfig",
      "IO::Socket::INET",
      "java",
      "less ",
      "lua",
      "mkfifo ",
      "more",
      "nc ",
      "ncat",
      "netcat",
      "netstat",
      "nslookup",
      "perl",
      "php",
      "ping",
      "ps -ef",
      "ps aux",
      "python",
      "rcat",
      "ruby",
      "sh -i 2>&1",
      "-c id",
      "socat",
      "uname",
      "wget",
      "whoami"
    ]
  },
  "selection_specific_sh": {
    "Image
| endswith": "/sh"
  },
  "selection_specific_cli": {
    "Image
| endswith": "-c"
  },
  "filter_main_default_shell_flag": {
    "Image
| endswith": "-c"
  },
  "condition": "selection_parent and ( 1 of selection_generic_* or (selection_specific_sh and not filter_main_default_shell_flag) or (all of selection_specific_* and selection_generic_child_cli) )"
}

False Positives

  • ⚠ Unknown

Field Validations

Loading…

Comments (0)

Loading comments...