huawei-cloud-ecs-alert
Warn
Audited by Socket on Aug 29, 2026
1 alert found:
AnomalyAnomalyscripts/batch_query_metrics.sh
LOWAnomalyLOW
scripts/batch_query_metrics.sh
No clear evidence of intentional malware (no exfiltration, credential theft, persistence, or obfuscated payloads) is present in this fragment. However, there are two notable security risks: (1) the script `source`s a local dependency file at runtime, creating an execution trust boundary; and (2) in CSV output mode, user-controlled `--ecs-ids` values are interpolated directly into the inline `python3 -c` program text, creating a potential code-injection vector if crafted ECS IDs break quoting. This warrants review and hardening (e.g., avoid embedding user input into `python -c`, pass values via stdin/env, or robustly escape/validate).
Confidence: 66%Severity: 56%
Audit Metadata