huawei-cloud-flexus-l-deploy-jiuwenswarm
Audited by Socket on Nov 18, 2026
5 alerts found:
Anomalyx4SecurityThis module manages Huawei Cloud resources and submits scripts for execution on specified instances, including a helper that runs them as root. Its main security concern is automatically disabling hcloud credential encryption and loading plaintext cloud credentials into process environments; it also logs partial access-key identifiers. No independent exfiltration destination or concealed malicious payload is evident. Security risk is moderate because these credential and remote-execution operations have significant impact when invoked.
This code is intended to configure messaging channels remotely and does not show credential exfiltration or other clear malware behavior. However, unescaped credential interpolation can permit Python code injection in a script executed as root on the target instance, and mode 644 can expose secrets in /root/.jiuwenswarm/config/config.yaml. The pasted source also appears malformed and may fail before running. Severity: high if attacker-controlled configuration values are accepted; no suspicious domains or URLs are present.
As pasted, the file has syntax errors and cannot run; if those are corrected, `generate_config_script()` still raises a `TypeError` before remote execution. Its intended behavior is to submit a shell script for execution as root on a Huawei Cloud instance, and it would save the model API key in plaintext to `model_config_result.json` if that path were reached. No external exfiltration domain, URL, or IP is present in the code; the Huawei Cloud helper behavior is outside the provided fragment. Severity is limited by the execution-blocking errors, but the intended privileged remote execution and plaintext credential storage warrant review.
This deployment script installs JiuwenSwarm and runs it persistently as root, using packages from apt/PPA repositories and mirrors.aliyun[.]com. Its notable security risks are unpinned software installation, all-interface service bindings, wildcard CORS, and placeholder API/session credentials; these warrant review and secure configuration before deployment. The script contains no direct evidence of malware or credential theft, and the configured api[.]openai[.]com endpoint is not contacted by the script itself.
The configuration contains no apparent malicious code. It does include deployment security weaknesses: binding to all interfaces, allowing all CORS origins, and configuring unrestricted DingTalk senders if that channel is enabled. Restrict network binding, specify trusted origins, and replace the wildcard sender policy with an explicit allowlist before production use.