Detect Gladys Assistant Backup Gateway Command Injection (CVE-2026-133500) in Google Chronicle
Detects exploitation attempts against CVE-2026-133500, a command injection / OS command injection weakness (CWE-77, CWE-78) in Gladys Assistant up to and including version 4.71.0. The flaw resides in an unknown function within gateway.downloadBackup.js of the Backup component, where attacker-controllable input used to construct a backup download/restore operation is passed to a shell without adequate sanitization. Because Gladys Assistant typically runs as a privileged service on home-automation gateways (often in Docker or on Raspberry Pi hosts) and backup handling can be reached by an authenticated or network-adjacent actor, successful exploitation yields arbitrary OS command execution in the context of the Gladys process. CVSS 8.5 (high). A proof-of-concept exploit is publicly available; the fix shipped in v4.72.0. These rules look for anomalous child processes spawned by the Node.js Gladys runtime, shell metacharacters in backup-related HTTP requests, and unexpected outbound connections or file writes originating from the backup code path.
MITRE ATT&CK
- Tactic
- Initial Access Execution
YARA-L Detection Query
// df00tech DF00-4d24740b2c · https://df00tech.com/detections/CVE-2026-133500 · licence: https://df00tech.com/detections/licence
rule gladys_backup_cmd_injection_CVE_2026_133500 {
meta:
author = "Argus Detection Platform"
description = "Gladys Assistant backup gateway command injection (CVE-2026-133500)"
severity = "HIGH"
events:
$e.metadata.event_type = "PROCESS_LAUNCH"
$e.principal.process.parent_process.file.full_path = /node|nodejs|npm|gladys/ nocase
$e.target.process.file.full_path = /\/(sh|bash|dash|zsh|tar|gzip|curl|wget|nc|ncat|python3?|perl)$/ nocase
$e.target.process.command_line = /-c|\||;|&&|\$\(|`|\/dev\/tcp|downloadBackup|backup/ nocase
condition:
$e
} Chronicle YARA-L rule matching Gladys node runtime launching shell/network utilities with injection metacharacters or backup keywords.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate Gladys backup tar/gzip operations
- Container init/healthcheck shells
- Administrative maintenance commands
Other platforms for CVE-2026-133500
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 Simulated command injection via shell metacharacters under node
Expected signal: Process event: node -> sh -c with 'tar ...; id' showing a semicolon-separated injected command.
- Test 2 Reverse-shell style network tooling spawned from node
Expected signal: Process event: node -> curl with an outbound HTTP request to localhost test endpoint.
- Test 3 Command substitution injection in backup context
Expected signal: Process event: node -> sh -c containing '$(id -un)' command substitution with 'backup' keyword.
Response Playbook
Triage
- Confirm the Gladys Assistant version on the affected host, versions up to 4.71.0 are vulnerable; 4.72.0+ contains the fix. Check the running image tag or package version.
- Examine the flagged child process command line for shell metacharacters (;, |, &&, $(), backticks) or network tooling (curl/wget/nc) indicating injected commands rather than legitimate backup archiving.
- Correlate the process event with inbound HTTP requests to backup/download endpoints around the same timestamp to identify the originating client IP and whether the request was authenticated.
- Review whether the Gladys service is exposed to untrusted networks (directly or via reverse proxy) and whether backup functionality is reachable.
Containment
- Isolate or network-segment the affected gateway host to prevent further command execution and lateral movement.
- Upgrade Gladys Assistant to v4.72.0 or later immediately; if upgrade is not possible, restrict access to the backup endpoint via reverse-proxy ACLs and disable backup download functionality.
- Rotate any credentials, API tokens or home-automation integration secrets that were accessible to the Gladys process.
Evidence Collection
- Capture the full process tree (parent node process, injected shell, and any descendants) with command lines, PIDs and start times.
- Preserve Gladys application logs, reverse-proxy/access logs and any backup files in the backup directory for forensic analysis.
- Snapshot the container filesystem or host disk, and collect outbound connection records (curl/wget/nc destinations) to identify exfiltration or second-stage download.
Escalation Criteria
- !Escalate to incident response if injected commands show evidence of reverse-shell establishment, credential access, or outbound connections to unknown infrastructure.
- !Escalate if the host shows signs of persistence (new cron jobs, modified startup scripts, added SSH keys) or lateral movement to other devices on the home/OT network.
Investigation Guide
Forensic Artifacts
- >
Gladys application logs referencing gateway.downloadBackup operations - >
Shell history and process audit records (auditd/execve) showing node-spawned shells - >
Reverse-proxy and web-server access logs with backup endpoint requests containing shell metacharacters - >
Contents and timestamps of the Gladys backup directory
Tuning Guidance
Establish a baseline of legitimate child processes spawned by the Gladys node runtime during normal backup/restore (commonly tar and gzip without shell metacharacters). Allowlist those exact invocation patterns, then alert on any shell interpreter (sh/bash) with -c, pipes, command substitution, or network tooling (curl/wget/nc) as children of node. Tighten by restricting to hosts running Gladys <= 4.71.0 and to events correlated with backup endpoint HTTP traffic to reduce noise.
Hunting Queries
Baselines which shell/network child processes the Gladys node runtime spawns, so anomalous injected commands stand out from routine tar/gzip backup activity.
// df00tech DF00-4d24740b2c · https://df00tech.com/detections/CVE-2026-133500 · licence: https://df00tech.com/detections/licence
DeviceProcessEvents | where InitiatingProcessFileName in~ ("node","nodejs") | summarize count() by FileName, ProcessCommandLine, DeviceName | where FileName in~ ("sh","bash","curl","wget","nc") | order by count_ desc ``` df00tech DF00-4d24740b2c · https://df00tech.com/detections/CVE-2026-133500 · licence: https://df00tech.com/detections/licence ```
index=* (parent_process_name=node OR parent_process_name=nodejs) process_name IN (sh,bash,curl,wget,nc) | stats count by host process_name process | sort - count Atomic Red Team Tests
Emulates the injection signature by having a node process spawn a shell that executes an injected command, mirroring gateway.downloadBackup.js behavior.
Command
node -e "require('child_process').execSync('tar -czf /tmp/backup.tgz /etc/hostname; id > /tmp/atomic_injection.txt', {stdio:'inherit'})" Cleanup
rm -f /tmp/backup.tgz /tmp/atomic_injection.txt Expected Telemetry
Process event: node -> sh -c with 'tar ...; id' showing a semicolon-separated injected command.
Expected Detection
KQL/SPL/EDR rules fire on node parent spawning sh with injection metacharacters and backup keyword.
Emulates post-exploitation where the injected command launches a networking utility to simulate exfiltration or callback from the Gladys process.
Command
node -e "require('child_process').execSync('curl -s http://127.0.0.1:9999/backup || true', {stdio:'inherit'})" Cleanup
echo 'no cleanup required' Expected Telemetry
Process event: node -> curl with an outbound HTTP request to localhost test endpoint.
Expected Detection
Rules fire on node parent spawning curl/wget/nc with network indicators.
Emulates command substitution ($()) being injected into a backup filename/path argument processed by a shell under node.
Command
node -e "require('child_process').execSync('echo backup_$(id -un).tgz', {stdio:'inherit'})" Cleanup
echo 'no cleanup required' Expected Telemetry
Process event: node -> sh -c containing '$(id -un)' command substitution with 'backup' keyword.
Expected Detection
Rules fire on node parent spawning sh with $() command substitution and backup keyword.