huawei-cloud-migration-ecs-across-region

Warn

Audited by Socket on Nov 18, 2026

3 alerts found:

Securityx3
SecurityMEDIUM
scripts/mgc_migrate.py

This is a readable Huawei Cloud migration utility that provisions target infrastructure, adjusts networking, and migrates files using SMS or rsync; its broad administrative actions are consistent with that purpose. Security risk is elevated because SMS_ENDPOINT can redirect requests signed with HC_AK/HC_SK, VPN_CLIENT_COMMON_NAME is used in filesystem paths without traversal validation, SSH host-key verification is disabled, and rsync --delete can remove target data. It contacts Huawei Cloud API domains such as vpc[.]<region>[.]myhuaweicloud[.]com, ecs[.]<region>[.]myhuaweicloud[.]com, iam[.]myhuaweicloud[.]com, and the configurable SMS_ENDPOINT; no covert exfiltration behavior is evident. Severity is high if these settings are attacker-controlled, otherwise the observed high-impact operations are migration-related.

Confidence: 97%Severity: 78%
SecurityMEDIUM
scripts/aws_to_huawei_direct.py

This is an AWS-to-Huawei Cloud migration utility that uses environment-provided cloud and SSH credentials, provisions cloud resources, copies a source root filesystem to a target, and reboots the target. Its high-impact behavior is consistent with that purpose, with no clear evidence of covert malware or unauthorized exfiltration in the fragment. Security concerns include disabled SSH host verification, a world-open inbound SSH rule, broad root-level filesystem copying, and command-line password handling. It contacts iam.myhuaweicloud[.]com and region-specific vpc and ecs subdomains of myhuaweicloud[.]com; severity is high if run with unintended settings or against untrusted hosts.

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

This is a server migration utility that authenticates to Huawei Cloud endpoints at iam.myhuaweicloud[.]com and {region}.myhuaweicloud[.]com, creates a public ECS, and copies a source root filesystem over SSH. It does not show evidence of malware or unrelated data exfiltration. Security severity is elevated because it opens TCP/22 to 0.0.0.0/0, disables SSH host-key verification, and passes the source password as a process argument; cloud and SSH credentials are sourced from HC_AK, HC_SK, TARGET_ADMIN_PASSWORD, RSYNC_SOURCE_PASSWORD, and TARGET_RSYNC_SSH_KEY. Use is appropriate only with authorized credentials and carefully controlled network exposure.

Confidence: 98%Severity: 70%
Audit Metadata
Analyzed At
Nov 18, 2026, 04:04 AM
Package URL
pkg:socket/skills-sh/huaweicloud%2Fhuaweicloud-skills%2Fhuawei-cloud-migration-ecs-across-region%2F@4a5941c257af2b4681001cecd33e4701624e8c697751cb019bada7ac2dc525aa