Alibabacloud Pai Rec Diagnosis

AdvisoryAudited by Static analysis on May 8, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

The agent can query resources in the active Alibaba Cloud account within whatever permissions that profile has.

Why it was flagged

The skill requires an existing Alibaba Cloud credential profile to run diagnostic commands, but it also explicitly forbids reading, echoing, or asking for AK/SK values.

Skill content
**Pre-check: Alibaba Cloud Credentials Required** ... **ONLY** use `aliyun configure list` to check credential status
Recommendation

Use a temporary or RAM role/profile limited to the specific EAS service and PAI-Rec instance; avoid root or broad admin credentials.

What this means

Installing or updating CLI components may affect future Aliyun CLI behavior outside this skill.

Why it was flagged

The setup path can execute a downloaded installer and update/install Aliyun CLI plugins. This is disclosed and relevant to the skill, but it changes local tooling and depends on provider-hosted code.

Skill content
run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` ... `aliyun configure set --auto-plugin-install true` ... `aliyun plugin update`
Recommendation

Run setup steps manually, verify the source, prefer package-manager installation when available, and consider disabling auto-plugin-install after use if you do not want persistent automatic plugin installation.

What this means

AI-mode could remain enabled in the local Aliyun CLI after an abnormal stop.

Why it was flagged

The skill intentionally changes a local Aliyun CLI mode and includes a cleanup requirement. The behavior is disclosed, but the state could remain enabled if execution is interrupted.

Skill content
`aliyun configure ai-mode enable` ... **[MUST] Disable AI-Mode at EVERY exit point** ... `aliyun configure ai-mode disable`
Recommendation

After using the skill, run or verify `aliyun configure ai-mode disable`, especially if the workflow errors or is cancelled.

What this means

Logs or configs may reveal service names, endpoints, environment variables, request traces, or business logic.

Why it was flagged

The diagnostic workflow brings service logs and engine configuration content into the agent context. That is expected for diagnosis, but these materials can contain sensitive operational details.

Skill content
`describe-service-log` ... Trace request processing by `request_id` ... `ConfigValue`: The actual configuration content (JSON/YAML)
Recommendation

Limit log queries to the needed request or time window, redact secrets or customer data before sharing outputs, and avoid pasting broad logs into unrelated sessions.

What this means

Running these commands with sufficient privileges can grant a user or role new read access to EAS and PAI-Rec resources.

Why it was flagged

The reference documentation includes IAM policy creation and attachment commands. They are user-directed permission setup examples, but they mutate cloud account permissions.

Skill content
`aliyun ram create-policy` ... `--policy-name PAIRecDiagnosisReadOnly` ... `aliyun ram attach-policy-to-user`
Recommendation

Prefer the resource-specific policy shown in the document, have an administrator review any RAM changes, and do not let the agent apply IAM changes without explicit approval.