huawei-cloud-mgc-migration-ecs-gcp-to-hw

Warn

Audited by Socket on Nov 22, 2026

3 alerts found:

Securityx3
SecurityMEDIUM
scripts/aws_to_huawei_direct.py

This is an AWS-to-Huawei Cloud migration script that provisions cloud resources and transfers a server filesystem using SSH and rsync. It sends signed requests to iam.myhuaweicloud.com and vpc.<region>.myhuaweicloud.com, opens SSH ingress to 0.0.0.0/0, disables SSH host-key verification, passes passwords in process arguments, stops source sshd during cutover, and reboots the target. These are significant operational and security risks, but the shown behavior is consistent with migration rather than covert data theft or a backdoor. The supplied fragment appears incomplete or internally inconsistent because migration variables and run_rsync_migration are not defined in the shown code.

Confidence: 97%Severity: 75%
SecurityMEDIUM
scripts/mgc_migrate.py

This is readable cloud-server migration automation, not clearly malware; it uses Huawei Cloud endpoints (myhuaweicloud[.]com, including vpc, ecs, iam, and sms service hosts) and optionally AWS APIs with operator-supplied credentials. Its high-impact actions include root/password SSH enablement, SSH host-key verification bypass, rsync --delete (default source path /), remote commands, cloud resource and network changes, and writes under /etc/openvpn/server, /etc/openvpn/client, /root/.ssh, and RESULT_PATH. It handles HC_AK/HC_SK, TARGET_ADMIN_PASSWORD, optional AWS access key/secret/session token, and source/target SSH passwords; these are used for intended API, VM, and migration operations, with no unrelated exfiltration destination identified. Severity is high operational risk if misconfigured or run without authorization, but the observed behaviors align with its stated migration purpose.

Confidence: 98%Severity: 82%
SecurityMEDIUM
scripts/aws_to_huawei_rsync.py

This code appears intended to provision a Huawei Cloud VM and migrate a source filesystem to it using rsync, rather than to steal credentials or perform covert exfiltration. It sends signed requests to iam.myhuaweicloud[.]com and vpc.<region>.myhuaweicloud[.]com, and transfers files to the explicitly configured target host. Its main risks are broadly exposed SSH access, disabled host-key verification, command-line password exposure, and stopping source sshd; the shown structural errors also make the migration path unreliable. Severity: medium to high for deployment security, with no clear evidence of malware.

Confidence: 98%Severity: 72%
Audit Metadata
Analyzed At
Nov 22, 2026, 02:04 AM
Package URL
pkg:socket/skills-sh/huaweicloud%2Fhuaweicloud-skills%2Fhuawei-cloud-mgc-migration-ecs-gcp-to-hw%2F@c06eb49345bd195aba2f350ca2900e609cd2a5e7bb795883cd3949c2d7a5e2b0