Detect CVE-2026-63496: Command Injection in @augment-vir/node grep() via Unsanitized searchPattern in CrowdStrike LogScale
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
LogScale Detection Query
// df00tech DF00-a8cdcb90e1 · https://df00tech.com/detections/CVE-2026-63496 · licence: https://df00tech.com/detections/licence
#event_simpleName=ProcessRollup2
| ParentBaseFileName=/^(node|node\.exe|nodejs)$/i
| ImageFileName=/\/(sh|bash|dash|zsh|grep)$|cmd\.exe$/i
| CommandLine=/grep/i
| CommandLine=/[;|`]|\$\(|&&|\|\|/
| table([@timestamp, aid, ComputerName, UserName, ParentBaseFileName, ImageFileName, CommandLine]) CrowdStrike CQL (LogScale) rule detecting Node.js spawning shell/grep children with injection metacharacters per CVE-2026-63496.
Data Sources
Required Tables
False Positives & Tuning
- Node build pipelines piping grep output.
- Developer shells spawned by Node CLIs.
- Node services legitimately 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.
- 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'.
- Test 2 Simulate command substitution injection in searchPattern
Expected signal: Process creation of node -> /bin/sh -> grep/whoami with command line containing '$(' substitution.
- 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'.
References (5)
- https://github.com/electrovir/augment-vir/security/advisories/GHSA-xvcc-vqjv-phqh
- https://nvd.nist.gov/vuln/detail/CVE-2026-63496
- https://github.com/electrovir/augment-vir/commit/9e1a3592903a56e500959be72276ede1708c3437
- https://github.com/electrovir/augment-vir/releases/tag/v31.73.5
- https://github.com/advisories/GHSA-xvcc-vqjv-phqh
Response Playbook
Triage
- 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.
- 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).
- Trace how the `searchPattern` argument reached grep(), review application logs/HTTP requests for attacker-controlled input that fed the search feature.
- Check whether the injected command spawned further processes, opened network connections, or wrote files.
Containment
- Isolate the affected host from the network if active command execution is confirmed.
- Stop or restart the vulnerable Node.js service and block the exploited input vector (e.g. disable the search endpoint) until patched.
- Upgrade @augment-vir/node to >= 31.73.5 across all affected deployments.
Evidence Collection
- Capture the full process tree (Node parent -> shell/grep child -> any descendants) with command lines and timestamps.
- Preserve application and web server logs containing the malicious searchPattern input and correlate request source IPs.
- 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.
// 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 ``` 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
Emulates the vulnerable grep() wrapper passing an unsanitized searchPattern into a shell, injecting a command after a semicolon.
Command
node -e "const{execSync}=require('child_process');const searchPattern='foo; id';execSync('grep '+searchPattern+' /etc/hostname',{stdio:'inherit',shell:'/bin/sh'})" Cleanup
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.
Emulates injection using $() command substitution inside the searchPattern argument.
Command
node -e "const{execSync}=require('child_process');const searchPattern='$(whoami)';execSync('grep '+searchPattern+' /etc/hostname',{stdio:'inherit',shell:'/bin/sh'})" Cleanup
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.
Emulates injection using a pipe to chain an attacker command after grep on a Windows Node host.
Command
node -e "const{execSync}=require('child_process');const searchPattern='foo | whoami';execSync('grep '+searchPattern+' C:\\Windows\\win.ini',{stdio:'inherit',shell:true})" Cleanup
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.