T08 · Insecure Dependencies
- Location
SKILL.md:44- Finding
Unpinned CLI and Plugin Downloads Permit Supply-Chain Code Execution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mainly a read-only Alibaba Cloud live-recording diagnostic, but its install and credential guidance can change local CLI state and expose cloud credentials if followed literally.
Review this skill before installing. Use a least-privileged Alibaba Cloud RAM role or short-lived credentials, do not paste access keys into command-line flags, avoid automatic plugin updates unless you trust the source, and manually disable or restore Aliyun CLI AI-mode/user-agent settings after use. Treat diagnostic output such as callback URLs, OSS paths, stream names, and bucket names as sensitive.
SKILL.md:44Unpinned CLI and Plugin Downloads Permit Supply-Chain Code Execution
references/cli-installation-guide.md:107Credential Setup Instructions Expose Secrets Through Command-Line Arguments
references/verification-method.md:150Unvalidated Callback and Recording URLs Enable SSRF-Style Internal Network Probing
SKILL.md:118Persistent AI-Mode Mutation and Tracking Metadata Contradict Read-Only Guarantees
This reference file materially exceeds the stated scope of a live recording diagnostic skill by teaching full Alibaba Cloud CLI installation, authentication, profile management, plugin installation, and cross-service usage. In an agent skill context, that broad operational enablement can unnecessarily equip the agent or user to access unrelated cloud resources, expanding privileges and attack surface far beyond troubleshooting recording issues.
The document includes detailed credential setup for multiple authentication modes, including long-lived Access Keys, role assumption, ECS role usage, and profile management, none of which are justified as necessary within a narrowly scoped diagnostic skill. In this context, embedding broad privileged-auth guidance increases the likelihood of over-privileged configurations, credential exposure, and use of the skill as a stepping stone to wider Alibaba Cloud access.
The trigger list includes phrases like "record not working" and "record file missing," which are generic troubleshooting expressions and could overlap with many non-Alibaba Cloud or non-live-streaming contexts. Although the description narrows the domain somewhat, the manifest does not provide negative examples or stricter activation constraints to prevent unintended invocation.
The skill instructs the agent to run aliyun configure ai-mode enable and set a global user agent before any diagnostic command, which modifies persistent CLI client state rather than performing a purely read-only diagnosis. Changing global configuration can affect later commands, other sessions, or other skills, and if execution exits unexpectedly the modified state may remain in place despite the later disable step.
The document claims the skill is read-only and does not modify configurations, but earlier steps direct modification of CLI configuration via AI-mode enable/disable and user-agent changes. This mismatch can mislead users and automated systems into granting more trust than warranted, reducing scrutiny around commands that alter local client state.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Extract
tar -xzf aliyun-cli-macosx-latest-amd64.tgz
# Install to user-local bin (no sudo required)
mkdir -p ~/.local/bin
mv aliyun ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"
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.
tar -xzf aliyun-cli-macosx-latest-amd64.tgz
# Install to user-local bin (no sudo required)
mkdir -p ~/.local/bin
mv aliyun ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"
The examples pass access keys and secrets directly on the command line, which can expose credentials through shell history, process listings, audit logs, terminal recording, or agent telemetry. In an automation or agent setting, this risk is amplified because command invocations may be captured centrally or echoed into logs.
The guide promotes unrelated ECS operations, profile switching, and plugin installation/listing for multiple products, which are outside the remit of a live recording diagnostic skill. That makes the skill more dangerous because it encourages broader cloud exploration and capability expansion instead of limiting users or agents to recording-specific diagnostics.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Restrict permissions
chmod 600 ~/.aliyun/config.json
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -I --connect-timeout 10 --max-time 30 https://callback.example.com/live/record
The workflow begins issuing account-scoped diagnostic commands and changing CLI mode without a clear upfront disclosure that cloud account metadata, stream history, and recording details will be queried. Lack of transparent notice can lead users to authorize execution without understanding the scope of data access, increasing privacy and trust risks even when commands are read-oriented.
This markdown file documents callback endpoints and live stream URLs that could reveal internal integration points or publishing infrastructure. Under the markdown-file warning criterion, the document does not mention any caution about treating these values as sensitive or avoiding use of real production endpoints in shared outputs.
The sample config sets "language": "en", which can be interpreted as forcing a specific language/locale in natural-language guidance. The document does not indicate that language is optional, user-selectable, or required for a region-specific compliance reason.
This markdown file documents read-only diagnostic commands, but it includes examples and sample output exposing potentially sensitive infrastructure details such as callback URLs and OSS recording locations without any user-facing caution. For markdown files, SQP-2 applies when the skill description omits warnings about behavior that could affect user data, privacy, or system integrity, and these commands can disclose internal service endpoints and stored recording metadata.
This markdown file includes an automated script block and instructs the user to save it as verify-recording.sh, make it executable, and run it. While the script's purpose is verification, the document does not explicitly warn that following these steps will create a local file and execute shell commands on the user's system.