Back to skill

Security audit

huawei-cloud-dws-io-diag

Security checks for vulnerabilities and agentic risk

Overview

This skill performs read-only Huawei Cloud diagnostics and saves local reports that may contain sensitive SQL and usernames.

Use a dedicated read-only cloud identity and a private workspace. Reports can retain SQL literals and usernames, so redact before sharing and delete when no longer needed. Keep keys out of chat and command lines. Prefer [Huawei's current installation instructions](https://support.huaweicloud.com/intl/en-us/qs-hcli/hcli_02_003_02.html) and verify external dependencies separately. The bundled review does not establish their runtime safety. Treat audit-disabling and index-dropping suggestions as requiring separate operational review.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (12)

Recommends disabling or reducing database audit logging without warning about the loss of audit coverage.

High
Category
Output Handling
Confidence
97% confidence
Finding

The reference recommends disabling DN audit logging or reducing audit types as an I/O mitigation without explaining the resulting monitoring and forensic blind spots. Although this is advice rather than executable automation, an operator following it could remove evidence of unauthorized database activity or violate audit requirements.

Content

No source excerpt is available for this finding.

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 108)May include surrounding context.

md
- Valid Huawei Cloud credentials (AK/SK mode or IAM Token)
- **Security Rules**:
  - Never expose AK/SK values in conversations or commands
  - Never ask users to input AK/SK directly in conversation
  - Only use `hcloud configure list` to check credential status

### 4. IAM Permission Requirements

Sensitive SQL and database-user information is collected and persisted without a privacy warning.

Medium
Category
Output Handling
Confidence
89% confidence
Finding

The workflow collects SQL text and database usernames and requires including them in reports saved to the workspace, without specifying redaction, restrictive permissions, or retention controls. SQL literals can contain personal information or secrets, so diagnostic access can create additional sensitive-data copies accessible through shared workspaces or report distribution; collection itself is legitimate for this diagnostic context.

Content

No source excerpt is available for this finding.

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 533)May include surrounding context.

md
## Notes

- **Security**: Never expose AK/SK values in conversations or commands; never ask users to input AK/SK directly in conversation
- **Time Protocol**: from_ts/to_ts must use millisecond timestamps; report displays Beijing time; when converting Beijing time to timestamp, must append +08:00 timezone suffix; do not mentally calculate timestamp values; do not convert existing millisecond timestamps to time strings and then back
- **Output Constraints**: Strictly output the diagnosis report following the Output Format section template; do not modify template structure, do not omit any part, do not add remediation suggestions, do not output SQL optimization statements, do not use emoji, do not use custom format tags
- **Data Authenticity**: All diagnosis conclusions must come from actual tool return results; when tool returns empty or call fails, mark as "无法获取"; fabricating values is prohibited

Recommends dropping indexes before imports without warning about integrity and availability consequences.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The blanket recommendation to drop indexes before imports does not distinguish optional performance indexes from indexes supporting uniqueness or other constraints. If followed without dependency checks, it can cause query-performance outages, fail because of dependencies, or compromise integrity if supporting constraints are also removed; the advisory context limits direct exploitability.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 27)May include surrounding context.

curl -O https://obs-community-tool.obs.cn-north-1.myhuaweicloud.com/hcloudcli/latest/hcloudcli-macos-amd64.tar.gz tar -xzf hcloudcli-macos-amd64.tar.gz chmod +x hcloud sudo mv hcloud /usr/local/bin/

text

### Linux (x86_64)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 36)May include surrounding context.

curl -O https://obs-community-tool.obs.cn-north-1.myhuaweicloud.com/hcloudcli/latest/hcloudcli-linux-amd64.tar.gz tar -xzf hcloudcli-linux-amd64.tar.gz chmod +x hcloud sudo mv hcloud /usr/local/bin/

text

### Linux (ARM64)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 45)May include surrounding context.

curl -O https://obs-community-tool.obs.cn-north-1.myhuaweicloud.com/hcloudcli/latest/hcloudcli-linux-arm64.tar.gz tar -xzf hcloudcli-linux-arm64.tar.gz chmod +x hcloud sudo mv hcloud /usr/local/bin/

text

### Windows

Required diagnostic output uses fixed Chinese text without offering a language choice.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The no-anomaly rules require Chinese section headings, annotations, and advice text, rather than merely showing an optional translated example. Together with the strict-format instruction on line 3, these rules impose Chinese-language output without user opt-in or a documented locale-specific justification.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% 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 · references/dws-mcp-installation-guide.md (reported line 102)May include surrounding context.

Other Commands

bash
# Manually trigger encryption (auto-executed on MCP Server startup as well)
python -m dws_autopilot_mcp.config_cli encrypt

# Show config status (secrets are masked as ******)

L253 mandates Beijing time for all output without user locale choice or a documented justification.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The instruction 'All times must be in Beijing time' unconditionally fixes the report's time locale. The file provides neither user opt-in nor a region-specific justification for overriding the user's preferred time zone.

Content

No source excerpt is available for this finding.

Report timestamps are forced to Beijing time without user choice or a justified locale requirement.

Low
Category
Output Handling
Confidence
98% confidence
Finding

The skill mandates converting all report timestamps to Beijing time (UTC+8), reinforced at L512 and L534. Although documented, this locale constraint has no stated operational justification and provides no user opt-in or timezone choice.

Content

No source excerpt is available for this finding.