Back to skill

Security audit

alibabacloud-ecs-windows-os-troubleshooting

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly aligned with Alibaba Cloud Windows troubleshooting, but it gives an agent powerful remote repair authority and includes several under-scoped or under-disclosed risky actions.

Review this skill before installing in production. Use it only for Alibaba Cloud ECS Windows instances you explicitly identify, expect Cloud Assistant commands to run as SYSTEM, and require a fresh confirmation before any fix. Do not run optional external tools or unsigned driver installs unless you independently trust the source, and redact user-data, hosts, DNS cache, and other sensitive output before sharing logs.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (28)

Description-Behavior Mismatch

Medium
Confidence
94% confidence
Finding
The guide initially asserts that offline diagnostics are strictly limited to the mounted target disk, but later defines a 'Fast Verification Path' that modifies the currently running helper system's BCD store and reboots it. This contradiction is dangerous because operators may rely on the earlier safety boundary and not realize the workflow can alter the live rescue/helper environment, causing unintended outage or boot disruption on the wrong machine.

Intent-Code Divergence

Medium
Confidence
95% confidence
Finding
The document states that modification of the currently running system is prohibited, yet later authorizes exactly that by changing the helper environment's boot configuration as a deliberate exception. Security-sensitive runbooks must have consistent invariants; otherwise an agent may perform live-system changes under the false assumption that the procedure is non-invasive, increasing the chance of accidental reboot, service interruption, or corruption of the recovery environment.

Intent-Code Divergence

Low
Confidence
88% confidence
Finding
The file states that assigning a drive letter and enabling automount carry no risk, but both actions make persistent system-wide changes that can affect future disk-mount behavior and application expectations. In a troubleshooting skill that may be used remotely and on production Windows instances, understated risk can lead an operator to make changes without adequately checking for letter conflicts, mount-policy implications, or software dependencies.

Intent-Code Divergence

Low
Confidence
91% confidence
Finding
The cleanup section claims no impact on existing business processes while it stops the Windows Update service and deletes SoftwareDistribution download cache contents, which are operationally meaningful changes. In this ECS repair context, misleadingly minimizing impact can cause administrators to approve actions without understanding that update workflows may be interrupted and pending downloads discarded.

Context-Inappropriate Capability

Medium
Confidence
95% confidence
Finding
The skill instructs downloading and running an external diagnostic executable from a third-party URL (`CheckTimeBeginPeriod.zip`) inside a privileged Windows troubleshooting workflow. Even if the tool is legitimate, pulling and executing unsigned or unpinned external code creates a supply-chain execution risk: the URL contents could change, be replaced, or be tampered with, leading the operator to run untrusted code on the target instance.

Vague Triggers

High
Confidence
91% confidence
Finding
The trigger text is extremely broad, including vague prompts like "check this machine" and effectively any Windows symptom. That can cause the skill to activate for routine or underspecified requests and steer the agent into privileged diagnostic workflows, increasing the chance of unnecessary remote command execution or collecting sensitive system data from the wrong target.

Missing User Warnings

Medium
Confidence
94% confidence
Finding
The document instructs operators to install the Alibaba Cloud CLI on Linux by piping a remotely fetched script directly into bash, but it does not place a clear adjacent warning that this executes unreviewed code from the network with the operator's privileges. In this skill's context, that risk is amplified because the same document governs a remote-command channel used to troubleshoot cloud instances, so compromise of the operator environment could expose cloud credentials or enable unauthorized command execution.

Missing User Warnings

Medium
Confidence
90% confidence
Finding
The workflow advertises a command-channel-only verification method near the overview but does not surface an immediate safety warning that it will export/import BCD, add a boot entry, set a one-shot boot target, and reboot the current instance. That omission can mislead users or downstream agents into treating it as a low-risk diagnostic step when it is actually a state-changing boot-path operation with outage potential.

Missing User Warnings

Medium
Confidence
92% confidence
Finding
The skill instructs operators to modify the target system's BCD (`bcdedit /set {default} bootlog Yes`) during diagnosis, which changes boot configuration on disk and can affect subsequent boot behavior if not reverted. Although the text later mentions waiting for explicit user confirmation, the warning is buried in Step 6 rather than being surfaced prominently before any remediation guidance, increasing the chance of an operator making a state-changing modification without fully understanding the risk.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The file documents `Remove-WindowsPackage` for uninstalling offline Windows update packages but does not require any confirmation, eligibility checks, backup/snapshot prerequisite, or warning about boot instability and servicing corruption. In this skill context, operators may run commands remotely against production ECS instances, so omission of guardrails materially increases the chance of destructive misuse or accidental system damage.

Missing User Warnings

Medium
Confidence
98% confidence
Finding
The documented driver installation command uses `Add-WindowsDriver ... -ForceUnsigned`, which permits offline installation of unsigned drivers without any warning about trust, source validation, Secure Boot/driver-signing implications, or risk of malware and kernel compromise. In a Windows troubleshooting skill, this is especially dangerous because the skill is meant to be applied to broken systems under time pressure, making unsafe operator acceptance more likely.

Missing User Warnings

Medium
Confidence
91% confidence
Finding
This section instructs the agent to bring a disk online and clear the read-only flag, which are state-changing operations on an offline-mounted system disk. In a troubleshooting skill, such actions can be legitimate, but without an explicit user-facing warning, confirmation gate, and target-disk identity safeguards immediately before execution, the agent could modify the wrong disk or alter forensic/recovery state unexpectedly.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
Automatically assigning drive letters modifies partition configuration on the target disk and can create unintended changes if the wrong disk or partition is selected. In this skill context the step is operationally useful, but the absence of a clear warning and confirmation makes accidental modification of attached disks more likely, especially in multi-disk offline repair scenarios.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
The skill explicitly reads and prints the full system PATH value, which can disclose sensitive internal details such as installed software locations, custom tool directories, network-mounted paths, or embedded secrets if administrators have improperly stored credentials or tokens in environment variables. In this troubleshooting context, the danger is elevated because the output is intended to be surfaced to an agent/operator, but it is somewhat limited because this step targets PATH rather than dumping all environment variables.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
The diagnostic step writes package inventory data to a local disk cache under %SystemRoot%\Temp without any explicit warning, consent, or cleanup guidance. In an offline repair workflow, even small undocumented writes can violate operator expectations, contaminate forensic state, or fail on constrained/read-only environments; however, the cached content is diagnostic metadata rather than credentials or arbitrary code, so impact is limited.

Missing User Warnings

Medium
Confidence
87% confidence
Finding
Step 4 repeats the same undocumented cache-write behavior, again persisting Windows package data to disk if the cache is missing. Repeated hidden filesystem modification increases the chance of unintended side effects in troubleshooting, especially for offline-mounted systems or evidence-sensitive environments, though the action is still limited to local diagnostic data persistence.

Natural-Language Policy Violations

Medium
Confidence
90% confidence
Finding
The fix hard-codes Alibaba Cloud VPC DNS servers without checking whether the instance is actually in a compatible Alibaba Cloud VPC or whether the user has approved changing resolver settings. On a non-matching environment, this can break name resolution, redirect traffic through an unintended resolver, or override enterprise DNS policy, causing availability and policy-compliance issues.

Natural-Language Policy Violations

Low
Confidence
84% confidence
Finding
The verification and suffix examples are coupled to Alibaba Cloud domains and search suffixes without clearly establishing that the host belongs to that namespace. Applying these settings in the wrong environment can leak internal query attempts to external domains, alter short-name resolution behavior, and interfere with corporate DNS/NRPT policy.

Natural-Language Policy Violations

Medium
Confidence
91% confidence
Finding
The fix guide instructs use of broad, English-language principals such as "Everyone" and validates success by checking for those names, which can fail or behave unpredictably on localized Windows systems. More importantly, granting wide permissions on sensitive paths like MachineKeys can overexpose private key material or alter system crypto behavior, causing security weakening or service instability when applied remotely at scale.

Natural-Language Policy Violations

Medium
Confidence
88% confidence
Finding
The fix writes a hard-coded WSUS endpoint into Windows Update policy keys, permanently redirecting the instance to a specific Alibaba Cloud update server without validating whether that server is appropriate for the tenant, region, network design, or enterprise policy. In this skill context, the command is especially sensitive because it is presented as a remediation step for live Windows instances, so applying it blindly can misroute update traffic, override existing managed WSUS settings, and create trust/compliance issues if the endpoint is unavailable or unintended.

Missing User Warnings

Medium
Confidence
92% confidence
Finding
The remediation instructs changing the system-wide LmCompatibilityLevel registry value without warning about its security and compatibility consequences. Because this lowers or alters inbound/outbound NTLM behavior for the whole host, an operator may weaken authentication policy or disrupt domain/application access beyond the original issue being diagnosed.

Missing User Warnings

Low
Confidence
81% confidence
Finding
The skill instructs collection of hosts file contents and DNS cache records, which can reveal sensitive internal hostnames, private network mappings, and recent resolution activity. In a troubleshooting context this is operationally relevant, but the lack of any warning, minimization guidance, or redaction requirement creates an avoidable privacy and information-exposure risk if results are logged, shared, or sent to remote operators.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The script fetches cloud instance user-data from the metadata service and prints its contents directly to output. User-data commonly contains bootstrap secrets, API tokens, passwords, or embedded configuration, so echoing even the first 500 characters can leak sensitive material into consoles, logs, or remote command transcripts.

Missing User Warnings

Medium
Confidence
89% confidence
Finding
The script performs live DNS lookups to external domains (www.aliyun.com, www.baidu.com) and a specific DNS server without notifying the operator that query names and timing metadata will be disclosed to upstream DNS infrastructure. In a troubleshooting skill that may run automatically against customer systems, this can create avoidable privacy, compliance, and environment-leakage concerns, especially in restricted or regulated networks.

Missing User Warnings

Medium
Confidence
91% confidence
Finding
The script performs an external DNS query to www.aliyun.com as part of a health check without any user confirmation or scoping controls. While this is likely intended as a connectivity test, it causes outbound network activity to a third party and may leak that the host is active, which can violate privacy, change-control, or restricted-network expectations.

Static analysis

Detected: suspicious.exposed_resource_identifier, suspicious.exposed_secret_literal

Plaintext HTTP endpoint targets a CGNAT/Tailscale-range address.

Critical
Code
suspicious.exposed_resource_identifier
Location
references/online/fixes/cloud-metaserver.md:63

Plaintext HTTP endpoint targets a CGNAT/Tailscale-range address.

Critical
Code
suspicious.exposed_resource_identifier
Location
references/online/scripts/cloud-metaserver.ps1:38

Plaintext HTTP endpoint targets a CGNAT/Tailscale-range address.

Critical
Code
suspicious.exposed_resource_identifier
Location
references/online/scripts/cloud-vminit.ps1:53

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/online/scripts/security-certificates.ps1:81