T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:23- Finding
Unverified Remote Installer Is Executed Directly by Bash
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent Alibaba Cloud ContextStore operator, but its install and permission guidance gives broad, persistent, and under-verified authority that users should review before installing.
Review this skill carefully before installing. Use a pinned, verified Aliyun CLI and CMS plugin instead of pipe-to-shell or latest downloads, avoid global automatic plugin updates, never paste real access keys or tokens into command lines or chats, and grant only the exact CMS actions and resource scope needed for the current task. Treat delete and API-key operations as high impact and confirm targets before execution.
SKILL.md:23Unverified Remote Installer Is Executed Directly by Bash
references/cli-installation-guide.md:39Mutable “Latest” CLI Binaries Are Installed Without Integrity Verification
SKILL.md:29Mandatory Automatic and Unpinned Plugin Updates Expand Supply-Chain Risk
references/cli-installation-guide.md:102Credential Guide Passes Cloud Secrets Through Command-Line Arguments
references/ram-policies.md:25Wildcard RAM Policy Grants Unnecessary Destructive and API-Key Permissions
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
---
name: alibabacloud-agentloop-contextstore
description: |
Operate Alibaba Cloud CloudMonitor Service (CMS) AgentLoop ContextStore by using aliyun CLI with api version 2024-03-30. Use when users mention CloudMonitor, CMS, AgentLoop, agent loop, context, memory, experience, ContextStore, context store, 上下文库, 记忆库, 经验库, or ask to create/query/update/delete stores, write/search/update/delete context records, manage store API keys, or debug aliyun cms ContextStore commands.
---
# AgentLoop ContextStore Skill
The skill instructs users to execute a remote installer via curl ... | bash, which downloads and immediately runs code without prior integrity verification or pinning to a trusted artifact. If the hosting endpoint, network path, or served script is compromised, this becomes arbitrary code execution on the operator's machine.
Pre-check: Aliyun CLI >= 3.3.3 required
Run
aliyun versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto install/update, or seereferences/cli-installation-guide.mdfor installation instructions.
aliyun version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
tar -xzf aliyun-cli-macosx-latest-amd64.tgz
# Move to PATH
sudo mv aliyun /usr/local/bin/
# Verify
aliyun version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
tar -xzf aliyun-cli-macosx-latest-amd64.tgz
# Move to PATH
sudo mv aliyun /usr/local/bin/
# Verify
aliyun version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
tar -xzf aliyun-cli-macosx-latest-amd64.tgz
# Move to PATH
sudo mv aliyun /usr/local/bin/
# Verify
aliyun version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
tar -xzf aliyun-cli-linux-latest-arm64.tgz sudo mv aliyun /usr/local/bin/
### Windows
The guide shows secrets passed directly on the command line without warning that shell history, process listings, CI logs, and terminal recording can expose credentials. Because this skill concerns cloud administration, users may copy real access keys into these commands, leading to credential theft and full account misuse depending on permissions.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
1. Log in to Aliyun Console: https://ram.console.aliyun.com/
2. Navigate to: AccessKey Management
3. Create a new AccessKey pair
4. Save the secret immediately — it's only shown once
### Configuration Modes
The debug guidance recommends verbose logging without warning that debug output may include sensitive configuration, request metadata, tokens, or credential-provider details. In agent-driven troubleshooting, such output is likely to be pasted into chats, tickets, or logs, creating secondary credential leakage risk.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Restrict permissions
chmod 600 ~/.aliyun/config.json
The guide expands into generic Alibaba Cloud plugin installation and cross-service command discovery far beyond the declared CMS ContextStore scope. In an agent skill, this scope creep increases the chance the agent will assist with unrelated cloud operations, potentially broadening reachable capabilities and enabling misuse outside intended boundaries.
The document provides bulk deletion examples using delete-contexts --filter and comma-separated IDs without an adjacent explicit warning that these operations are destructive and can remove many records at once. In an agent skill context, users or downstream agents may copy commands directly, so the lack of a clear caution increases the chance of accidental mass deletion of memory or experience data.
This reference file prominently lists destructive commands such as delete-context-store, delete-context, delete-contexts, and delete-context-store-api-key without any adjacent warning about irreversible data loss, scope, or confirmation expectations. In a skill intended to help agents operate a live ContextStore and its records, that omission increases the chance that an agent or user will invoke destructive operations casually or without understanding the consequences.
Verification and troubleshooting rely on ECS commands unrelated to CMS ContextStore, which trains users or agents to validate credentials using a different service. In a scoped operational skill, unrelated service examples can normalize cross-service access and encourage permission grants or actions beyond what the skill should need.