Alibabacloud Data Agent Skill

WarnAudited by ClawScan on May 18, 2026.

Overview

This appears to be a real Alibaba Cloud data-analysis skill, but it needs review because it requests broad cloud/database authority and includes background monitoring plus unsafe-looking report download path handling.

Before installing, review the code and requirements, use a dedicated least-privilege Alibaba Cloud account, avoid auto-confirming SQL, disable heartbeat/background notifications unless explicitly needed, and periodically delete or secure local session/report files.

Findings (5)

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

Installing and using the skill may let the agent enumerate DMS resources, create/update Data Agent sessions, import tables, and analyze enterprise database contents under the user's Alibaba Cloud identity.

Why it was flagged

The skill relies on local/cloud credential sources and recommends broad Alibaba Cloud DMS/Data Agent permissions, while the registry metadata declares no primary credential. This is high-impact access to enterprise database resources.

Skill content
The Skill uses Alibaba Cloud SDK's default credential chain ... supporting environment variables, configuration files, instance roles, etc. ... RAM users need `AliyunDMSFullAccess` or `AliyunDMSDataAgentFullAccess` permissions.
Recommendation

Use a dedicated least-privilege RAM user, avoid full DMS access where possible, restrict region/resources, prefer read-only database access, and verify every requested action before running analysis.

What this means

If a report filename is malicious or malformed, a downloaded report could be written outside the intended `sessions/<id>/reports` folder.

Why it was flagged

Report filenames returned by the provider are joined directly into a local output path. The shown call site does not sanitize absolute paths or `..` path segments before writing the downloaded file.

Skill content
save_path = report_dir / (rf.filename or f"{rf.file_id}.bin") ... file_manager.download_from_url(rf.download_url, str(save_path))
Recommendation

Sanitize report filenames with a basename-only allowlist, reject absolute or parent-directory paths, and verify the resolved output path stays under the report directory before writing.

What this means

The agent could continue monitoring analysis sessions and send database-analysis progress or report content after the initial request, possibly in channels the user did not explicitly approve for that session.

Why it was flagged

The heartbeat asset tells an agent to autonomously scan all session directories, read progress/reports/errors, and push updates through messaging channels, which is broader and less user-visible than the main SKILL.md workflow.

Skill content
当 HEARTBEAT 触发时 ... 扫描目录:`dms-data-agent/sessions/*` ... 使用 send_message tool 或当前 channel(如 Telegram/WhatsApp)推送 ... 优先使用 isolated agentTurn 执行检查
Recommendation

Require explicit opt-in for heartbeat monitoring, bind it to a specific session and approved channel, and disable or remove the heartbeat behavior if continuous notifications are not needed.

What this means

If the user chooses this option, later SQL generated during the session may run without individual review.

Why it was flagged

The CLI presents an optional user-directed path to skip future per-SQL confirmations in a session. It is disclosed, but it is risky for enterprise databases.

Skill content
To agree to execute all subsequent SQL automatically: ... attach --session-id {session_id} -q '同意后续所有SQL执行'
Recommendation

Keep the default confirmation flow for production data, use read-only/test database accounts, and avoid automatic SQL approval unless the analysis scope is well understood.

What this means

Sensitive business questions, database-derived summaries, SQL plans, and generated reports may remain on disk and be reused in later session attachments.

Why it was flagged

The skill intentionally stores progress logs, reports, and reusable session context under local session directories.

Skill content
cat sessions/abc123xyz/progress.log ... Download generated reports ... Benefits of Reuse: ... Preserve context history
Recommendation

Store the skill directory securely, avoid mixing unrelated users or datasets in reused sessions, and delete `sessions/` content and downloaded reports when no longer needed.