CVE-2025-11953 Microsoft Sentinel · KQL

Detect React Native Community CLI OS Command Injection (CVE-2025-11953) in Microsoft Sentinel

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

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
let RNCliIndicators = dynamic(['react-native', 'react_native_cli', '@react-native-community/cli', 'rn-cli']);
union DeviceProcessEvents, SecurityEvent
| where TimeGenerated > ago(7d)
| where (ProcessCommandLine has_any (RNCliIndicators) or ParentProcessName has_any (RNCliIndicators))
| where ProcessCommandLine matches regex @'[;&|`$()].*[;&|`$()\/\\]'
   or ProcessCommandLine has_any ('curl ', 'wget ', 'bash -', 'sh -c', 'powershell', 'cmd /c', 'nc ', 'ncat ', '/dev/tcp')
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, ParentProcessName, ParentCommandLine, InitiatingProcessAccountName, FileName
| extend SuspiciousIndicator = case(
    ProcessCommandLine has 'curl ' or ProcessCommandLine has 'wget ', 'RemoteDownload',
    ProcessCommandLine has 'bash -' or ProcessCommandLine has 'sh -c', 'ShellEscape',
    ProcessCommandLine has 'powershell', 'PowerShellExec',
    ProcessCommandLine has '/dev/tcp' or ProcessCommandLine has 'nc ', 'NetworkConnectivity',
    'CommandInjectionPattern'
  )
| order by TimeGenerated desc
high severity medium confidence

Detects processes spawned by or alongside the React Native Community CLI that exhibit OS command injection patterns, including shell escapes, remote download utilities, and reverse-shell indicators.

Data Sources

Microsoft Defender for EndpointMicrosoft Sentinel DeviceProcessEventsWindows Security Event Log

Required Tables

DeviceProcessEventsSecurityEvent

False Positives & Tuning

  • Legitimate React Native developers running shell scripts as part of standard build pipelines (e.g., fastlane, custom build hooks).
  • CI/CD agents (GitHub Actions, Azure Pipelines) executing react-native CLI commands with complex argument strings that incidentally match injection patterns.
  • Developer workstations running npm lifecycle scripts that invoke shell commands alongside react-native CLI.
  • Monorepo tooling (nx, turborepo) invoking react-native CLI with chained commands.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections