huawei-cloud-devbox-sandbox

Fail

Audited by Snyk on Nov 27, 2026

Risk Level: CRITICAL
Full Analysis

CRITICAL E004: Prompt injection detected in skill instructions.

  • Potential prompt injection detected (medium risk: 0.30). The skill's install and setup flow silently downloads and executes remote install scripts and builds code while instructing the agent to suppress confirmation and surface output only on failure, which hides its own activity from the user, though the channels appear to be the documented official ones and nothing shows intent to attack the user.

HIGH W007: Insecure credential handling detected in skill instructions.

  • Insecure credential handling detected (low risk: 0.10). The main path reads the API Key only through environment variables and auth login --api-key "$HW_DEVBOX_API_KEY", which keep the value out of context, but the IAM reference documents per-call api_key="devbox_xxx" and new DevBox({ apiKey: "devbox_xxx" }) overrides that place a literal key into code the model writes.

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (low risk: 0.10). The required workflow in SKILL.md (CLI fast path, JS/Python SDK paths) only runs agent-issued commands in the agent's own sandbox and reads back its own output, but the bundled Git example clones an external public repository (octocat/Hello-World by default, or a user-supplied URL) into the sandbox, which the agent must actively fetch.

MEDIUM W013: Attempt to modify system services in skill instructions.

  • Attempt to modify system services in skill instructions detected (high risk: 0.70). The skill can delete remote DevBox sandboxes in bulk (devbox sbx kl --all, SDK kill()), which changes the account's operational environment. The references state that "a deleted sandbox is unrecoverable" and "Deleted sandboxes cannot be recovered", and --all hits every matching sandbox in the shared account, so irreversible loss and shared scope combine in the same operation.

Issues (4)

E004
CRITICAL

Prompt injection detected in skill instructions.

W007
HIGH

Insecure credential handling detected in skill instructions.

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

W013
MEDIUM

Attempt to modify system services in skill instructions.

Audit Metadata
Risk Level
CRITICAL
Analyzed
Nov 27, 2026, 02:06 AM
Issues
4