huawei-cloud-migration-windows-ecs
Audited by Socket on Nov 4, 2026
12 alerts found:
Anomalyx10Securityx2This is an interactive configurator that launches an SMS agent, supplies AK/SK credentials and configuration values, and checks its logs for successful registration. No direct network exfiltration or clear malware behavior is shown, but the unescaped executable path can enable command injection, and broad taskkill operations can terminate unrelated cmd.exe and conhost.exe processes. Credential exposure is conditional on the agent echoing input into the captured console and resulting logs. Overall severity is a security warning; no destination domain or hardcoded credential is present.
This fragment is intended to configure a remote Windows SMS agent, stage or compile its configuration executable, and establish a recurring SYSTEM-level watchdog task. It performs potentially disruptive broad process termination and exposes agent credentials through command-line arguments; interpolated configuration values also pose injection risk if attacker-controlled. No explicit external exfiltration destination or malicious payload is shown, and the missing watchdog script and incomplete assignment prevent full assessment; severity is elevated operational/security risk, but malicious intent is not established.
This installer downloads and runs gost, then establishes persistent TCP port forwarding from all-interface listeners to YAML-configured targets, including the default WinRM port 5985. No credential harvesting, unrelated data exfiltration, or destructive behavior is present in the fragment. The main risks are unverified executable installation, privileged persistent service creation, broad listener binding, and unsafe handling of configuration-derived values and the config path. Severity is moderate and depends on the trustworthiness of the configuration and network exposure.
This is deployment automation that downloads and uploads packages, configures remote HTTP and Squid services, and may install a persistent gost tunnel forwarding to the configured WinRM endpoint. No credential theft, exfiltration destination, or other clearly malicious payload is visible in the supplied fragment. Security concerns include accepting unverified SSH host keys, unauthenticated serving of /data/downloads on port 8080, and unvalidated configuration values used in remote shell commands; severity is moderate and deployment artifacts are not included for review.
This module provides remote command execution and file transfer over WinRM, and can add the remote destination directory to Microsoft Defender exclusions. That exclusion is a defense-evasion indicator and should be reviewed; unescaped paths and commands also create remote command-injection risk, and SSL certificate verification is disabled when SSL is selected. No third-party exfiltration destination or credential-stealing behavior is visible in this fragment. Overall severity is moderate to high due to the Defender exclusion capability and shell injection exposure; no specific external domains, IP addresses, or environment variables are present.
This code implements a threaded HTTP file server that serves files from a configured directory, but its authentication check is unconditionally bypassed, making the service publicly accessible to any client that can reach its listening address. This can expose all files under the serving directory; the code also logs their paths and sizes and has an edge case where a negative range start can cause request-processing errors. No malware, data exfiltration, or obfuscation is evident; the primary concern is unauthorized file disclosure (high severity if the server is network-accessible).
This utility reads migration settings from YAML, authenticates to a configured Windows host over WinRM/HTTP, and executes commands to remove SMS-Agent and related files, processes, registry entries, services, and scheduled tasks. The behavior is destructive but aligned with the stated remote-cleanup purpose; no credential theft, exfiltration, or unrelated payload behavior is present. Unvalidated configuration values are embedded in shell commands, and HTTP WinRM exposes a transport-security risk. Severity is moderate due to remote destructive effects and command-injection potential when configuration is untrusted.
This is an intended WinRM utility for preparing a remote Windows data disk and optionally restarting an SMS Agent, not evident malware. As written, multiple implementation errors prevent normal execution; if repaired, disk initialization and formatting can cause data loss, and unescaped --letter input can enable PowerShell injection. The YAML-supplied host and credentials are used for the configured WinRM connection; no external exfiltration destination is present. Overall severity is moderate due to destructive remote disk operations and the input-injection risk.
This is an SSH/SFTP executor, with no evident standalone malware or hardcoded exfiltration behavior. Its primary risks are remote shell injection through untrusted command or run_script arguments and SSH man-in-the-middle exposure because unknown host keys are automatically accepted. It also logs command fragments and paths, which may expose secrets if callers include them there. Severity is moderate and depends on how callers supply inputs and configure SSH credentials.
This code returns commands that enable WinRM and configure Basic authentication, unencrypted traffic, and wildcard TrustedHosts ("*"). Those settings create a significant security warning if executed, but the fragment itself only returns the commands and contains no evidence of malware or data theft. Severity is moderate to high for systems where these commands are applied.
This code returns hard-coded commands that, if executed, weaken Windows WinRM security by enabling Basic authentication, permitting unencrypted traffic, and trusting all hosts. It contains no evident malware or data-exfiltration behavior; the primary concern is insecure remote-management configuration. Severity is moderate to high if these settings are applied.
This fragment supplies commands to enable WinRM with Basic authentication, unencrypted connections, and TrustedHosts set to "*". These settings can expose remote-management traffic and broaden which hosts are trusted if the commands are executed, so the configuration presents a security risk. The fragment itself does not execute commands or show malicious data collection or exfiltration.