Detect React Native Community CLI OS Command Injection (CVE-2025-11953) in Google Chronicle
Detects exploitation of CVE-2025-11953, an OS command injection vulnerability (CWE-78) in the React Native Community CLI. An attacker who can influence arguments or configuration consumed by the React Native CLI can inject arbitrary OS commands that execute with the privileges of the developer or CI/CD process invoking the CLI. This vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog.
MITRE ATT&CK
- Tactic
- Execution Persistence Lateral Movement
YARA-L Detection Query
rule cve_2025_11953_react_native_cli_cmdinject {
meta:
author = "df00tech"
description = "Detects OS command injection exploitation of CVE-2025-11953 via React Native Community CLI"
severity = "HIGH"
priority = "HIGH"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-11953"
events:
$e.metadata.event_type = "PROCESS_LAUNCH"
(
re.regex($e.target.process.command_line, `(?i)(react-native|@react-native-community|rn-cli)`)
or re.regex($e.principal.process.command_line, `(?i)(react-native|@react-native-community|rn-cli)`)
)
re.regex($e.target.process.command_line, `[;&|\x60$()]`)
re.regex($e.target.process.command_line, `(?i)(curl\s|wget\s|bash\s+-[ic]|sh\s+-c|powershell|cmd\s+/c|/dev/tcp|\bnc\s|ncat\s|Invoke-Expression)`)
condition:
$e
} Chronicle YARA-L 2.0 rule detecting process launch events where the React Native Community CLI command line contains both shell metacharacters and secondary shell execution or remote download utilities consistent with CVE-2025-11953 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Developers running react-native CLI with legitimate shell-wrapped build scripts in enterprise environments.
- CI/CD build agents (e.g., Jenkins, CircleCI) running on monitored hosts with complex react-native build pipelines.
- Mobile DevOps platforms that invoke react-native CLI with environment-setup shell commands.
- Automated testing frameworks that chain CLI commands with shell utilities for device management.
Other platforms for CVE-2025-11953
Testing Methodology
Validate this detection against 4 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 available with Pro.
- Test 1Command Injection via React Native CLI project name argument
Expected signal: Process create event showing node spawning sh or bash with a command line containing the injected semicolon-delimited id command; file creation event for /tmp/cve_2025_11953_poc.txt.
- Test 2Reverse shell injection via React Native CLI on Linux
Expected signal: Process create events for node → sh → id; file write to /tmp/rn_inject_test.txt containing the output of id.
- Test 3Remote payload download via injected curl in React Native CLI build context
Expected signal: Process create event for node spawning sh, which spawns curl with an external URL argument; network connection event for curl to destination host.
- Test 4Windows PowerShell injection via React Native CLI on Windows
Expected signal: Sysmon Event ID 1 showing node.exe spawning cmd.exe which spawns powershell.exe; file creation event in %TEMP% for rn_inject_test.txt.
Unlock Pro Content
Get the full detection package for CVE-2025-11953 including response playbook, investigation guide, and atomic red team tests.