Back to skill

Security audit

Alibabacloud Cadt Arch Draw

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it says, but its setup and permission guidance could lead users to run unverified installer code and grant overly broad Alibaba Cloud access.

Review this skill before installing. Prefer a trusted package-manager or verified installer path for aliyun CLI, do not run the documented curl-to-bash command blindly, and avoid enabling automatic plugin installation unless you understand the source. Use a dedicated Alibaba Cloud RAM identity with bpstudio:ExecuteOperationSync plus only the read-only product policies needed for the architecture being drawn; avoid PowerUserAccess for routine use.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
references/related-commands.md:10
Finding

Remote installation script is downloaded and executed without verification

Content
View full analysis
Remediation
View remediation
//setup.sh' echo ' aliyun-cli-installer.sh' | sha256sum -c - less aliyun-cli-installer.sh bash aliyun-cli-installer.sh ``` The checksum must be obtained from an authenticated vendor release channel rather than from the same untrusted response path. ]]>

T05 · Unauthorized Access and Privilege Escalation

Error
Location
references/ram-policies.md:13
Finding

PowerUserAccess recommendation violates least privilege for architecture drawing

Content
View full analysis
**Why not just `bpstudio:ExecuteOperationSync`?** > The AI Agent backend queries product catalogs, instance specs, AZ availability, and runs resource validation using the caller's identity. A gateway-only policy will result in `NoPermission` errors during spec lookup and validation phases. ``` Additional recommendation: ```markdown > Since architecture drawing may involve any Alibaba Cloud product, **`PowerUserAccess` is the pragmatic choice** to avoid per-product policy chasing. ``` Permission-error handling: ```markdown 1. If `aliyun bpstudio execute-operation-sync` returns `Unauthorized` / `Forbidden` / `NoPermission`: - Check the `Message` field for the denied action/product name - **Quick fix**: Attach `PowerUserAccess` to the current RAM identity - **Minimal fix**: Attach the corresponding per-product ReadOnly policy from §2 ``` ### Technical Analysis The declared Skill functionality is limited to creating architecture diagrams through the BPStudio/CADT backend. `SKILL.md` explicitly states that the Skill does not provision or deploy resources. Product catalog queries, specification lookup, availability checks, and validation are read-oriented operations. Despite this scope, the policy guidance makes `PowerUserAccess` t ...[truncated 2812 chars]
Remediation
View remediation
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

External Script Fetching

High
Category
Supply Chain
Confidence
98% confidence
Finding

The documentation instructs users to download a remote shell script and immediately execute it via a pipe to bash. This bypasses integrity verification and review, so a compromised CDN, DNS path, or upstream script could result in arbitrary code execution on the user's machine. In the context of an agent skill reference, this is more dangerous because operators may copy-paste setup commands directly to enable the skill quickly.

Content

Scanner excerpt · references/related-commands.md (reported line 10)May include surrounding context.

md
brew install aliyun-cli

# Universal
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash

# Post-install
aliyun configure set --auto-plugin-install true

Chaining Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

Piping network-fetched content directly into bash is a classic command-chaining anti-pattern that turns any compromise of the fetched content into immediate shell execution. The risk is amplified by the installation context because users are likely to run the command with their own credentials and environment, potentially exposing local files, cloud credentials, or enabling persistence.

Content

Scanner excerpt · references/related-commands.md (reported line 10)May include surrounding context.

md
brew install aliyun-cli

# Universal
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash

# Post-install
aliyun configure set --auto-plugin-install true

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
If not met, see [`references/related-commands.md`](references/related-commands.md) § Installation.

> **Security**: NEVER read/echo AK/SK values, NEVER ask user to input credentials in conversation.

---

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document explicitly recommends attaching PowerUserAccess for a skill whose stated purpose is only architecture drawing. That grants broad cross-service privileges far beyond what is needed for a diagramming workflow and can normalize unnecessary overprivilege, increasing blast radius if the agent, user environment, or downstream backend is compromised.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The recommendation to attach PowerUserAccess is paired with only a terse 'Medium' label and language framing it as the recommended path, without a clear warning that it provides extensive non-IAM access across the account. That presentation understates the security consequences and makes unsafe privilege escalation more likely in routine use.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The guidance states that because drawing may involve any Alibaba Cloud product, PowerUserAccess is the pragmatic choice, which normalizes broad cross-product access unrelated to a narrow user task. In a documentation-driven workflow, this can pressure operators to overgrant permissions permanently rather than constrain access to the actual resources being modeled.

Content

No source excerpt is available for this finding.