Back to skill

Security audit

Alibaba Cloud Network DNS Cli

Security checks for vulnerabilities and agentic risk

Overview

The skill is purpose-aligned for Alibaba Cloud DNS work, but it asks users to install an unverified latest CLI and configure powerful cloud credentials in a way that can expose secrets.

Review before installing. Use a verified, pinned aliyun-cli release where possible, avoid entering access-key secrets directly in command-line arguments, prefer least-privilege and short-lived credentials, and confirm DNS target, record type, TTL, propagation impact, and rollback steps before any add or update operation.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:21
Finding

Unpinned Alibaba Cloud CLI Download Without Integrity Verification

Content
View full analysis
Remediation
View remediation
' /tmp/aliyun-cli.tgz | sha256sum --check - ``` 4. Prefer vendor-supported digital-signature verification when signatures are available. 5. Download into a private temporary directory created with `mktemp -d`, and remove it after installation. 6. Record the installed version and verified digest in validation evidence so installations are reproducible. 7. Avoid silently replacing an existing CLI binary; require explicit confirmation or validate the existing installation first. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:31
Finding

Alibaba Cloud Access-Key Secret Exposed Through Command-Line Arguments

Content
View full analysis
\ --access-key-secret \ --region cn-hangzhou ``` ### Technical Analysis The primary credential configuration example instructs users to place an Alibaba Cloud access-key ID and secret directly in command-line arguments. After substituting real values, the secret may be exposed through shell history, process inspection utilities, terminal recording, debugging output, automation logs, or command auditing systems. Although the document later recommends environment variables, that recommendation does not eliminate the risk created by the earlier command-line example. Environment variables can also be exposed through process environments or logging if handled incorrectly, so a masked interactive prompt, protected credential provider, or secret manager is preferable. ### Attack Path 1. A user replaces `` and `` with active Alibaba Cloud credentials. 2. The user executes the documented command in an interactive shell or automated environment. 3. The command, including the secret, is retained in shell history, captured in logs, or temporarily exposed to process-inspection mechanisms. 4. A local user, administrator, support operator, monitoring system, or log reader obtains the secret. 5. The exposed credential is used to authenticate to Alibaba Cloud APIs. 6. The attacker performs actions permitted by the associated identity, potentially including DNS record discovery or modification. ### Impact Assessment The obtainable cloud privileges are limited by the policies attached to the exposed access key. With DNS-management permissions, an attacker could enumerate records, add or alter DNS entries, redirect application traffic, facilitate phishing, disrupt services, or interfere ...[truncated 258 chars]
Remediation
View remediation
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

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.

Content

Scanner excerpt · SKILL.md (reported line 25)May include surrounding context.

bash
curl -fsSL https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz -o /tmp/aliyun-cli.tgz
mkdir -p ~/.local/bin
 tar -xzf /tmp/aliyun-cli.tgz -C /tmp
mv /tmp/aliyun ~/.local/bin/aliyun
chmod +x ~/.local/bin/aliyun

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill includes DNS record creation guidance but does not explicitly warn that modifying DNS can redirect traffic, break service resolution, or cause outages during propagation. Because DNS is a control plane for service routing, operators may underestimate the blast radius of even a single record change, especially when following concise CLI examples.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The heading "官方文档来源(用于后续更新)" is Chinese-language text, and the file provides no indication that users may choose another language or locale. Under the stated policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.