Skip to content
CVE-2026-63496 IBM QRadar · QRadar

Detect CVE-2026-63496: Command Injection in @augment-vir/node grep() via Unsanitized searchPattern in IBM QRadar

Detects exploitation of CVE-2026-63496, a command injection vulnerability (CWE-78) in the @augment-vir/node npm package prior to version 31.73.5. The library's grep() helper passes the caller-supplied `searchPattern` into a shell command without sanitization, allowing an attacker who controls that pattern to inject arbitrary OS commands via shell metacharacters (e.g. `;`, `|`, `$()`, backticks). Because the package wraps shell execution (virShell), the injected payload runs with the privileges of the Node.js process. Detection focuses on Node.js processes spawning unexpected shell children containing injection metacharacters and on anomalous child processes of application services that embed grep invocations with suspicious patterns.

MITRE ATT&CK

Tactic
Execution

QRadar Detection Query

IBM QRadar (QRadar)
sql
-- df00tech DF00-a8cdcb90e1 · https://df00tech.com/detections/CVE-2026-63496 · licence: https://df00tech.com/detections/licence
SELECT QIDNAME(qid) AS event, "Process Name" AS process, "Parent Process Name" AS parent, "Process CommandLine" AS cmd, username, sourceip, starttime
FROM events
WHERE LOWER("Parent Process Name") IN ('node','node.exe','nodejs')
  AND LOWER("Process Name") IN ('sh','bash','dash','zsh','grep','cmd.exe')
  AND (LOWER("Process CommandLine") ILIKE '%grep%' OR LOWER("Parent Process CommandLine") ILIKE '%grep%')
  AND ("Process CommandLine" ILIKE '%;%' OR "Process CommandLine" ILIKE '%|%' OR "Process CommandLine" ILIKE '%$(%' OR "Process CommandLine" ILIKE '%`%' OR "Process CommandLine" ILIKE '%&&%')
  AND starttime > NOW() - 7 DAYS
ORDER BY starttime DESC
high severity medium confidence

QRadar AQL detecting Node.js parent processes launching shell/grep children with injection metacharacters per CVE-2026-63496.

Data Sources

SysmonLinux DSMEDR

Required Tables

events

False Positives & Tuning

  • Legitimate Node build/CI processes piping grep output.
  • Developer interactive usage of the package.
  • Node ETL services chaining grep with other commands.

Other platforms for CVE-2026-63496


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 grep() command injection via semicolon in searchPattern

    Expected signal: Process creation: node -> /bin/sh -> grep and node -> /bin/sh -> id, with command line containing 'grep foo; id'.

  2. Test 2 Simulate command substitution injection in searchPattern

    Expected signal: Process creation of node -> /bin/sh -> grep/whoami with command line containing '$(' substitution.

  3. Test 3 Simulate pipe-based injection in searchPattern on Windows

    Expected signal: Process creation: node.exe -> cmd.exe -> grep/whoami with command line containing 'grep foo | whoami'.


Response Playbook

Triage

  1. Confirm the originating host runs a Node.js application that depends on @augment-vir/node, and determine the installed version via `npm ls @augment-vir/node` or the lockfile, versions below 31.73.5 are vulnerable.
  2. Inspect the full command line of the shell/grep child process and the initiating Node process to identify the injected payload (content after `;`, `|`, `$()`, or backticks).
  3. Trace how the `searchPattern` argument reached grep(), review application logs/HTTP requests for attacker-controlled input that fed the search feature.
  4. Check whether the injected command spawned further processes, opened network connections, or wrote files.

Containment

  1. Isolate the affected host from the network if active command execution is confirmed.
  2. Stop or restart the vulnerable Node.js service and block the exploited input vector (e.g. disable the search endpoint) until patched.
  3. Upgrade @augment-vir/node to >= 31.73.5 across all affected deployments.

Evidence Collection

  1. Capture the full process tree (Node parent -> shell/grep child -> any descendants) with command lines and timestamps.
  2. Preserve application and web server logs containing the malicious searchPattern input and correlate request source IPs.
  3. Collect any files created or modified by the injected command and relevant shell history.

Escalation Criteria

  • !Escalate to incident response if the injected command achieved execution beyond grep (reverse shell, credential access, lateral movement).
  • !Escalate if the Node process runs as root/privileged service or the host holds sensitive data.
  • !Escalate if multiple hosts or internet-facing services show the same injection pattern, indicating active exploitation campaign.

Investigation Guide

Forensic Artifacts

  • >Process creation events (Sysmon EID 1 / auditd execve) showing node -> sh/grep with metacharacters.
  • >Application/web logs recording the malicious search input.
  • >Shell history and any dropped files from the injected command.

Tuning Guidance

Baseline legitimate Node.js tooling on build/CI hosts that intentionally pipe grep output, and exclude those specific parent command lines or hosts. Tighten by requiring the shell child to also spawn network tools (curl, wget, nc) or by alerting only on internet-facing service accounts to reduce developer-workstation noise.


Hunting Queries

Hunt for Node-spawned shell/grep processes containing grep plus shell injection metacharacters across the fleet.

Hunting — KQL
kql
// df00tech DF00-a8cdcb90e1 · https://df00tech.com/detections/CVE-2026-63496 · licence: https://df00tech.com/detections/licence
DeviceProcessEvents | where InitiatingProcessFileName in~ ("node","node.exe") | where ProcessCommandLine has "grep" and ProcessCommandLine has_any ("$(","`",";","|") | project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessCommandLine
Hunting — SPL
spl
``` df00tech DF00-a8cdcb90e1 · https://df00tech.com/detections/CVE-2026-63496 · licence: https://df00tech.com/detections/licence ```
index=edr parent_process_name=node process_name IN (sh,bash,grep) | regex process="grep.*([;|`]|\$\()" | table _time host user process parent_process

Atomic Red Team Tests

Test 1 Simulate grep() command injection via semicolon in searchPattern
linux

Emulates the vulnerable grep() wrapper passing an unsanitized searchPattern into a shell, injecting a command after a semicolon.

Command

bash
node -e "const{execSync}=require('child_process');const searchPattern='foo; id';execSync('grep '+searchPattern+' /etc/hostname',{stdio:'inherit',shell:'/bin/sh'})"

Cleanup

bash
echo 'no cleanup required'

Expected Telemetry

Process creation: node -> /bin/sh -> grep and node -> /bin/sh -> id, with command line containing 'grep foo; id'.

Expected Detection

Rule fires on the Node-spawned shell/grep child whose command line contains grep plus the ';' metacharacter.

Test 2 Simulate command substitution injection in searchPattern
linux

Emulates injection using $() command substitution inside the searchPattern argument.

Command

bash
node -e "const{execSync}=require('child_process');const searchPattern='$(whoami)';execSync('grep '+searchPattern+' /etc/hostname',{stdio:'inherit',shell:'/bin/sh'})"

Cleanup

bash
echo 'no cleanup required'

Expected Telemetry

Process creation of node -> /bin/sh -> grep/whoami with command line containing '$(' substitution.

Expected Detection

Rule matches on grep invocation containing the '$(' metacharacter from a Node parent.

Test 3 Simulate pipe-based injection in searchPattern on Windows
windows

Emulates injection using a pipe to chain an attacker command after grep on a Windows Node host.

Command

powershell
node -e "const{execSync}=require('child_process');const searchPattern='foo | whoami';execSync('grep '+searchPattern+' C:\\Windows\\win.ini',{stdio:'inherit',shell:true})"

Cleanup

powershell
echo no cleanup required

Expected Telemetry

Process creation: node.exe -> cmd.exe -> grep/whoami with command line containing 'grep foo | whoami'.

Expected Detection

Rule fires on the Node-spawned shell child containing grep plus the '|' metacharacter.

Related Detections