Back to skill

Security audit

huawei-cloud-devbox-sandbox

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report broad no-confirmation instructions, installation and download trust risks, and a step that uploads the host’s hostname; some files were only partially inspected.

Consider the suspicious verdict and the incomplete inspection before installing. The reported concerns include automatic host setup, unpinned or unverified install steps, and uploading the host’s hostname; review the relevant guidance and use only if those actions fit your needs and you are comfortable with them.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (43)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
3. Read [references/iam-policies.md](references/iam-policies.md) for guidance.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [API Key & Access](references/iam-policies.md) — CLI and SDK authentication, env vars, failure handling.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
runnable as written once `devbox` is on `PATH` (see [sdk-installation-guide.md](references/sdk-installation-guide.md)); `<id>` is a sandbox ID printed by `sbx c

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [CLI & SDK Installation Guide](references/sdk-installation-guide.md) — installing the CLI (script/source) and both SDKs, in that order.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- [Troubleshooting](references/troubleshooting.md) — CLI and SDK common issues.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · evals/run_evals.py (reported line 152)May include surrounding context.

python
print(f"mock up: manager=127.0.0.1:{mock_devbox.MGR_PORT} gateway=127.0.0.1:{mock_devbox.GW_PORT}",
          flush=True)

    env = dict(os.environ)
    env.update({
        "DEVBOX_API_URL": f"<redacted-url>}",
        "DEVBOX_API_KEY": mock_devbox.API_KEY,

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
# CLI (STATE_BASE form keeps the removal scoped to this install)
# the second removal also drops stored credentials/config
STATE_BASE="$HOME"
rm -f "${STATE_BASE}/.huawei/bin/devbox"
rm -rf "${STATE_BASE}/.huawei/devbox"

# Python SDK

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
# the second removal also drops stored credentials/config
STATE_BASE="$HOME"
rm -f "${STATE_BASE}/.huawei/bin/devbox"
rm -rf "${STATE_BASE}/.huawei/devbox"

# Python SDK
python3 -m pip uninstall devbox-sdk

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

remove the cloned source (adjust SRC_BASE if you cloned elsewhere)

SRC_BASE=/tmp rm -rf "${SRC_BASE}/devspace-devbox"

text

## Troubleshooting Installation

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/devbox_check.py (reported line 181)May include surrounding context.

python
devbox = devbox_on_path()
        if devbox is None:
            fail("devbox CLI still not found after install")
    env = dict(os.environ, PATH=f"{os.path.dirname(devbox)}{os.pathsep}{os.environ.get('PATH', '')}")
    version = subprocess.run([devbox, "--version"], capture_output=True, text=True, timeout=15, env=env)
    if version.returncode != 0:
        fail(f"devbox --version failed: {(version.stderr or version.stdout).strip()}")

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/devbox_check.py (reported line 205)May include surrounding context.

python
def cli_smoke() -> None:
    devbox = devbox_on_path()
    env = dict(os.environ, PATH=f"{os.path.dirname(devbox)}{os.pathsep}{os.environ.get('PATH', '')}")

    def run(*args: str, timeout: int = 120) -> subprocess.CompletedProcess:
        return subprocess.run([devbox, *args], capture_output=True, text=True, timeout=timeout, env=env)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Generic sandbox terms can activate a Huawei Cloud–specific skill without a DevBox request.

Medium
Category
Trigger Abuse
Confidence
97% confidence
Finding

Generic triggers such as sandbox and 沙箱 can select this provider-specific skill for unrelated local or third-party sandbox requests. Combined with its automatic installation and production-cloud workflow, that can cause unintended host changes, cloud resource creation, or transfer of task data to the wrong provider.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

Although this is a package-runner command rather than an MCP server, unversioned npx skills can download and execute a changing registry release on the local host. A compromised future release could execute with the agent's filesystem and credential access; sandbox isolation does not protect this local installation step.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

Using a local skill checkout does not make the unversioned npx skills executable local or immutable. The runner can still fetch a compromised registry release and execute it on the host before installing the local skill.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx cannot'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

This instruction mandates silent installation of a host executable even when the user may only have requested sandbox guidance or an SDK task. Installation executes outside the cloud sandbox and can modify the local environment with the agent's privileges, making unconditional approval suppression materially risky.

Content

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

Prerequisites

CRITICAL — Do NOT ask the user for confirmation during environment setup. Silently and automatically, in order: (1) verify/install the CLI, (2) verify auth (devbox auth status; API Key via HW_DEVBOX_API_KEY for CLI, DEVBOX_API_KEY for SDKs), (3) only then set up the SDK path the user asked for (default: none needed for CLI-only tasks). Only surface output if a check fails.

bash
# 1) Environment check — CLI-first (installs the CLI when missing, verifies version + auth)

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

The instruction applies zero-confirmation execution to the entire workflow, including setup and cleanup, rather than only routine operations already authorized by the user. Because the skill exposes destructive deletion and bulk operations, this can amplify a mistaken target selection into loss of unrelated sandbox state.

Content

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

md
## Workflow

> **CRITICAL — Zero confirmation.** Execute the whole flow (check env → run task → verify → clean up) fully automatically. Do NOT ask the user to confirm default parameters.

### Default Parameters

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

Documented parameter defaults do not establish authorization for every cloud operation. This blanket no-confirmation instruction removes a checkpoint for consequential choices such as paid provisioning, lifetime changes, or deletion of existing sandboxes.

Content

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

md
## Parameter Confirmation

`task.json`-style confirmation is not needed for DevBox calls: every parameter has a documented default and the workflow runs **without asking the user** (see the CRITICAL note under Workflow). Confirm a value only when the user supplied it.

| Parameter | Required | CLI | SDKs | Default / range |
|-----------|----------|-----|------|-----------------|

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · evals/run_evals.py (reported line 78)May include surrounding context.

python
print("[WARN] node/npm not found; skipping JS cases")
        return 0, 0
    try:
        subprocess.run([npm, "init", "-y"], cwd=workdir, capture_output=True, timeout=60)
        pkg = pathlib.Path(workdir) / "package.json"
        data = json.loads(pkg.read_text())
        data["type"] = "module"

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · evals/run_evals.py (reported line 83)May include surrounding context.

python
data = json.loads(pkg.read_text())
        data["type"] = "module"
        pkg.write_text(json.dumps(data))
        proc = subprocess.run([npm, "install", js_sdk_path, "--no-save"],
                              cwd=workdir, capture_output=True, text=True, timeout=300)
        if proc.returncode != 0:
            print(f"[WARN] npm install of the JS SDK failed: {proc.stderr[-200:]}")

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · evals/run_evals.py (reported line 104)May include surrounding context.

python
passed = failed = 0
        for name, want in expects.items():
            try:
                proc = subprocess.run([node, str(pathlib.Path(workdir) / name)],
                                      capture_output=True, text=True, env=env, timeout=120)
            except subprocess.TimeoutExpired:
                print(f"[FAIL] {name}: TIMEOUT")

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · evals/run_evals.py (reported line 166)May include surrounding context.

python
continue
        t0 = time.time()
        try:
            proc = subprocess.run(cmd, capture_output=True, text=True, env=env, timeout=90)
        except subprocess.TimeoutExpired:
            print(f"[FAIL] {name}: TIMEOUT >90s")
            failed += 1

Unbounded Resource Access

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Content

Scanner excerpt · references/python-sdk-reference.md (reported line 58)May include surrounding context.

md
build_id=None,              # pin a template build
    lifecycle=None,             # SandboxLifecycle(on_timeout="pause", auto_resume=True)
    api_key=None, api_url=None, gateway_url=None,
    request_timeout=None, headers=None,
) -> Sandbox

Sandbox.connect(sandbox_id, *, timeout=300, ...) -> Sandbox

Unbounded Resource Access

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Content

Scanner excerpt · references/python-sdk-reference.md (reported line 191)May include surrounding context.

python
with DevBox(api_key=None, api_url=None, gateway_url=None,
            request_timeout=None, headers=None, http_transport=None) as client:
    client.templates.list() -> list[TemplateInfo]
    client.sandboxes.create(template="default", *, timeout=300, envs=None,
                            metadata=None, build_id=None, lifecycle=None) -> Sandbox