qwencloud-deploy

Warn

Audited by Socket on Sep 14, 2026

9 alerts found:

Securityx3Anomalyx6
SecurityMEDIUM
scripts/update_app.sh

The fragment appears to be a legitimate privileged hot-update/deployment script, not malware. However, it has significant supply-chain and command-execution risk: attacker-controlled artifact URLs can deliver code that runs on the ECS host, archive traversal can escape staging directories, and several interpolated values can inject commands into the generated remote script. Use only with strictly trusted and validated inputs, archive safety checks, pinned and verified dependencies, and cryptographic artifact verification.

Confidence: 98%Severity: 78%
AnomalyLOW
scripts/generate_template.py

This is an infrastructure/UserData generator that reads local templates and user-supplied deployment parameters, then writes CloudFormation-like templates and bootstrap shell scripts. No direct malware behavior, credential exfiltration, persistence, reverse shell, cryptomining, or network activity is present in the fragment. The principal security concern is unsafe interpolation of user-controlled values into generated shell scripts, especially start commands and artifact URLs; this can become command injection when untrusted arguments are accepted or when generated UserData is deployed. The behavior is consistent with the stated deployment purpose, but external templates and the exact handling of injected values should be reviewed before treating inputs as untrusted.

Confidence: 97%Severity: 55%
AnomalyLOW
templates/ros_single_rds.yaml

The supplied YAML is an infrastructure deployment template with legitimate provisioning and bootstrap behavior. It does not contain evident malware or intentional exfiltration. The primary security concerns are secret material embedded in UserData and `/etc/qwencloud/db.env`, potentially exposed stack outputs, publicly open web ports, and the unknown injected `__USERDATA_BODY__` content. A complete supply-chain assessment requires reviewing generate_template.py and the generated replacement for `__USERDATA_BODY__`.

Confidence: 98%Severity: 55%
AnomalyLOW
scripts/delete_stack.sh

This is a plainly written, intentionally destructive deployment teardown script rather than apparent malware. Its cloud, OSS, DNS, and local-file deletion behavior matches its documented purpose. The main security concerns are reliance on a potentially tampered local state file, unnecessary eval usage, insufficient ownership/value checks before deleting the DNS record, and weak handling of malformed domain input. Review and restrict access to the state file and consider replacing eval with direct JSON handling and validating the DNS record against the expected public IP.

Confidence: 97%Severity: 62%
SecurityMEDIUM
reference/hotfix/update_recipe.md

No direct malware is demonstrated in this documentation, and there is no visible payload performing data theft or unauthorized network communication beyond intended artifact downloads. However, the update process has a significant supply-chain security weakness: remote artifacts and their Docker, application, static, and dependency contents are executed or installed without shown cryptographic authenticity verification. Archive path handling and privileged Docker/systemd execution also create material security and availability risks. Treat artifact URLs, signing, access control, and extraction behavior as critical controls before production use.

Confidence: 96%Severity: 78%
AnomalyLOW
templates/userdata/systemd.sh

This appears to be a privileged deployment/bootstrap script for installing and persistently running a qwencloud application. The visible behavior is consistent with legitimate service setup, and there is no direct evidence of malware, data theft, or sabotage in the shown fragment. However, unvalidated interpolation of ARGV0, $*, and PORT into a systemd unit creates command/configuration injection and service-definition integrity risks if those values are attacker-controlled. The persistence and root-level system modifications warrant review of the surrounding argument parsing and invocation context.

Confidence: 94%Severity: 63%
SecurityMEDIUM
templates/userdata/docker.sh

The script is a legitimate-looking Docker bootstrapper, but it creates a high-trust execution path from an unsigned remote artifact and an unverified mutable Compose binary to root-managed Docker and systemd. No explicit credential exfiltration, reverse shell, cryptomining, or destructive behavior is present in this fragment. The primary security concern is supply-chain integrity: compromise or substitution of APP_URL content, the GitHub latest release, or archive paths can result in arbitrary code execution and potentially host compromise. The code is not substantially obfuscated, but it should not be used without authenticated artifact verification, pinned and verified dependencies, archive extraction hardening, and strict validation of template values.

Confidence: 97%Severity: 86%
AnomalyLOW
templates/userdata/nginx_static_proxy.sh

The script appears to implement legitimate ECS bootstrap functionality for Nginx static hosting and API reverse proxying. No reverse shell, credential harvesting, persistence beyond enabling the intended service, suspicious external domain, or intentionally malicious payload is present. The main security concerns are leakage of the signed URL through xtrace logs and unsafe extraction of an externally downloaded tar archive as root. Archive contents should be validated or extracted into a controlled directory with traversal protections, and shell tracing should be disabled around the download or sensitive URL should be redacted. Template values should also be strictly validated and safely escaped.

Confidence: 97%Severity: 65%
AnomalyLOW
templates/userdata/nginx_static.sh

The code is a conventional ECS bootstrap script for installing Nginx and serving a downloaded static site. No reverse shell, credential harvesting, persistence beyond enabling Nginx, suspicious network destination, dynamic code execution, or overt malware is present. The main security concerns are leakage of signed URL material through shell tracing, lack of artifact integrity verification, and insufficient validation of archive paths and contents. Risk is moderate if the URL and execution environment are trusted, but a compromised URL or archive could affect served content and potentially write unintended files.

Confidence: 97%Severity: 55%
Audit Metadata
Analyzed At
Sep 14, 2026, 09:26 PM
Package URL
pkg:socket/skills-sh/qwencloud%2Fqwencloud-deploy%2Fqwencloud-deploy%2F@be15753df6140b58e5e69e1fbebd6ea6b05a641693600e802228e2616b1e56fc