huawei-cloud-iac-reverse
Audited by Socket on Sep 30, 2026
2 alerts found:
SecurityAnomalyThe script has a command-line argument injection vulnerability: specially crafted file paths can break out of the Python string literals and execute injected Python code. There is no evidence of intentional malware in the shown code. Use safe argument passing, such as environment variables or positional arguments supplied to a fixed Python script, and guard against an empty RMS inventory.
The script has a command-injection risk when OUTPUT_FILE is attacker-controlled because it is inserted into Python code passed to python3 -c. It also allows caller-selected file writes. No credential exfiltration or other intentional malicious behavior is evident in the fragment; the principal concern is unsafe handling of the output-path argument.