huawei-cloud-kunpeng-source-code-migrate

Warn

Audited by Socket on Oct 29, 2026

6 alerts found:

Anomalyx6
AnomalyLOW
scripts/ssh_client.py

This is an SSH/SFTP client that reads MIGRATE_SSH_PASS and connection settings locally, then executes user-requested remote commands and transfers files to or from the configured host. It contains no evident third-party exfiltration or destructive behavior, but accepting unverified SSH host keys and trusting remote directory-entry names can enable interception or local path traversal; save-env also has shell-injection and symlink risks when its inputs or temporary path are attacker-controlled. No external domains, URLs, or hardcoded credentials appear. Severity is moderate for use with an untrusted SSH server or hostile local environment; the exact supplied fragment also has syntax errors.

Confidence: 98%Severity: 58%
AnomalyLOW
references/task-prepare-server.md

The supplied fragment is a DevKit installation and cloud/SSH migration-assessment workflow, not a self-contained malicious payload. It contains significant operational security risks: billable cloud-resource creation, password persistence in /tmp, external IP disclosure, remote arbitrary command execution, and file transfer. The fragment alone does not establish malware or intentional sabotage. The referenced scripts must be audited before execution, especially ssh_client.py, provision_kunpeng_server.sh, and install_devkit.sh.

Confidence: 94%Severity: 68%
AnomalyLOW
references/scripts-guide.md

The supplied fragment is operational documentation with benign stated migration and provisioning purposes, not evidence of malware. It contains security-sensitive behavior: password-based root SSH access, automatic acceptance of unknown host keys, remote command execution, privileged software installation, cloud-resource creation, and storage of credentials in a temporary environment file. The most concrete issue is AutoAddPolicy(), which permits host-key spoofing. The actual scripts and installer download mechanisms are not included, so their security and supply-chain properties remain unverified.

Confidence: 94%Severity: 58%
AnomalyLOW
references/prerequisites.md

No clear malware or intentional data theft is present in this fragment. It is documentation for provisioning and SSH access, but it recommends insecure plaintext storage and persistence of SSH passwords, use of root, and potentially exposed cloud credentials. The referenced scripts must be reviewed separately to validate the claimed credential handling and provisioning behavior.

Confidence: 98%Severity: 67%
AnomalyLOW
references/verification-method.md

The fragment is documentation for DevKit and SSH-based source scanning, with no clear evidence of malware or intentional data theft. It contains security weaknesses: untrusted temporary shell-file sourcing, unsafe interpolation of SOURCE_PATH into remote shell commands, and reliance on an unreviewed SSH client and predictable /tmp paths. These issues should be remediated with validated environment-file handling, shell-safe argument passing or robust escaping, secure temporary directories, and verification of SSH host keys and credential handling.

Confidence: 97%Severity: 57%
AnomalyLOW
references/task-connect-server.md

The supplied fragment is documentation for an authorized-looking remote migration workflow, not malware or an npm package payload. It contains no direct malicious behavior or obfuscation. Its main security concern is the high-impact design: password-based SSH, a possible root account, arbitrary remote command execution, and arbitrary file uploads. Review ssh_client.py and enforce host-key verification, least-privilege accounts, restricted commands, and validated paths before use.

Confidence: 97%Severity: 67%
Audit Metadata
Analyzed At
Oct 29, 2026, 09:29 AM
Package URL
pkg:socket/skills-sh/huaweicloud%2Fhuaweicloud-skills%2Fhuawei-cloud-kunpeng-source-code-migrate%2F@0b1b128850522ea631173f397e6c6920dcbdfb36873acfed88ce0c1849677635