T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:276- Finding
Unverified NodeSource Script Is Downloaded and Executed with Administrative Privileges
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent Alibaba Cloud deployment guide, but it asks for broad cloud control, public exposure, and unverified remote installers that handle secrets.
Review this before installing in any real Alibaba Cloud account. Use a dedicated temporary RAM role or isolated account, restrict inbound rules especially SSH, avoid handing secrets to unverified remote scripts, rotate Bailian and DingTalk credentials after testing, and monitor billing and ActionTrail logs.
SKILL.md:276Unverified NodeSource Script Is Downloaded and Executed with Administrative Privileges
SKILL.md:309Mutable OpenClaw Installer Is Executed Without Integrity Verification and Receives Deployment Secrets
SKILL.md:304Base64-Encoded Secrets Are Embedded in Cloud Assistant Command History and Process Arguments
SKILL.md:124Security Group Exposes Administrative and Web Ports to the Entire Internet
references/dingtalk-setup-guide.md:54Unpinned npm Sources and DingTalk Connector Create Supply-Chain Exposure
references/ram-policies.md:36Recommended RAM Policy Grants Account-Wide Remote Command and Destructive Resource Permissions
This command chains package installation, external script retrieval, and execution in a single privileged shell command. The chaining reduces reviewability and rollback safety, and when combined with curl | bash, it creates a high-risk one-shot path to arbitrary code execution on the target instance if any upstream step is tampered with.
aliyun ecs RunCommand \
--RegionId ${region} \
--Type RunShellScript \
--CommandContent "apt-get update -y && apt-get install -y git curl wget && curl -fsSL --connect-timeout 30 --max-time 300 https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs && npm config set registry https://registry.npmmirror.com && node -v && npm -v" \
--InstanceId.1 ${instance_id} \
--Timeout 600 \
--user-agent AlibabaCloud-Agent-Skills
The skill initiates creation of billable ECS, EIP, networking, and publicly reachable services, but the opening description does not prominently warn users about cost exposure and internet exposure. This increases the risk of users authorizing impactful actions without informed consent, especially when the trigger phrases are broad and the workflow is automated.
This markdown file defines activation triggers, so SQP-1 applies. While some triggers are specific, phrases such as "AI agent platform", "DingTalk integration", "DingTalk AI", and "DingTalk smart assistant" are broad enough to match ordinary discussion or help requests rather than an intentional invocation of this specific ECS deployment skill.
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
- **Sensitive information masking**: Mask middle portion of passwords, keys, tokens, IPs, instance IDs (e.g., `ak****3d`, `i-bp1****7f2z`)
- **Input validation**: Reject shell special characters (`;`, `|`, `&`, `$`, backticks, etc.). Use parameterized API calls
- **Command injection prevention**: Encode sensitive values for Cloud Assistant RunCommand using base64
- **Network timeout**: All curl/wget operations must include `--connect-timeout` and `--max-time` parameters
- Execute steps in order; verify success after each step; inform user of current step
- If any step fails, ask user for confirmation before continuing
- Cloud Assistant `RunCommand` results: poll `DescribeInvocations` every 15+ seconds
The skill downloads and executes a remote script from NodeSource via a shell pipeline (curl ... | bash) inside Cloud Assistant. If the remote source, transport path, DNS resolution, or hosted script is compromised, arbitrary code will run as root on the new ECS instance, leading to full system compromise.
aliyun ecs RunCommand \
--RegionId ${region} \
--Type RunShellScript \
--CommandContent "apt-get update -y && apt-get install -y git curl wget && curl -fsSL --connect-timeout 30 --max-time 300 https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs && npm config set registry https://registry.npmmirror.com && node -v && npm -v" \
--InstanceId.1 ${instance_id} \
--Timeout 600 \
--user-agent AlibabaCloud-Agent-Skills
Detected: suspicious.generated_source_template_injection