Back to skill

Security audit

Devicebase

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Devicebase CLI guide, but it asks users to run unverified remote installer scripts and gives broad remote-device automation guidance that can expose sensitive screen and input data.

Review before installing. Prefer obtaining Devicebase CLI from a signed or checksum-verified release instead of piping installers into a shell, configure credentials only after installation, and use the skill only with devices you own or are authorized to control. Avoid screenshots, hierarchy dumps, and text input on login, messaging, payment, or other sensitive screens unless explicitly needed and handled carefully.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Error
Location
SKILL.md:57
Finding

Unverified Remote Installation Scripts Are Executed Directly

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 57–59
Vulnerability Type: Unverified remote payload retrieval and execution
Risk Level: High

Vulnerable Code

bash
# Install Devicebase CLI on Linux/MacOS (if not already installed)
which devicebase || curl -fsSL https://downloads.devicebase.cn/cli/install.sh | bash
# Install Devicebase CLI on Windows (if not already installed)
powershell -c "irm https://downloads.devicebase.cn/cli/install.ps1 | iex"

Technical Analysis

Both installation commands retrieve mutable content from an external server and pass it directly to a command interpreter. The Linux/macOS command pipes the HTTP response into bash, while the Windows command evaluates it through PowerShell's iex.

Neither path pins an immutable release version, verifies a cryptographic signature or checksum, nor gives the user an opportunity to inspect the downloaded script before execution. HTTPS protects the connection in transit but does not protect against compromise of the download server, DNS or TLS infrastructure, publishing credentials, or the vendor's release pipeline. The effective installation payload can also change after the Skill has been reviewed.

Installing the CLI is relevant to the declared remote-device-control functionality, but immediate execution of an unverified script is not the minimum privilege or minimum-risk method necessary to perform that installation.

Attack Path

  1. An agent or user follows the environment setup instructions.
  2. The system requests install.sh or install.ps1 from the external download host.
  3. An attacker who has compromised the host, release pipeline, publishing credentials, or relevant network infrastructure supplies a modified script.
  4. The response is sent directly to bash or PowerShell iex without integrity verification or inspection.
  5. The malicious payload executes with all privileges available to the invoking user.
  6. The payload may access local data ...[truncated 1001 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace pipe-to-shell and iex installation with a download-then-verify workflow.
  2. Publish versioned release artifacts at immutable URLs and pin a specific reviewed version in the instructions.
  3. Publish SHA-256 checksums through a separately protected release channel and require verification before execution.
  4. Prefer cryptographic release signatures and document verification against a pinned, trusted public key.
  5. Download the installer or binary to a local file without executing it, verify its integrity, and permit inspection before installation.
  6. Prefer a signed standalone binary or a trusted platform package manager over a mutable remote installation script.
  7. Do not instruct users to run the installer as root or administrator unless a specific operation demonstrably requires elevation.
  8. Document the files, directories, and permissions the installer modifies so users can assess its privilege requirements.
  9. Avoid exposing DEVICEBASE_API_KEY or other sensitive environment variables to the installation process; configure credentials only after the verified CLI has been installed.
  10. For Windows, replace irm ... | iex with a signed package or script downloaded to disk and validated with Authenticode and a published checksum.

A safer conceptual workflow is:

bash
curl -fL -o devicebase.tar.gz \
  "https://downloads.devicebase.cn/cli/releases/<PINNED_VERSION>/devicebase-linux-amd64.tar.gz"

echo "<PUBLISHED_SHA256>  devicebase.tar.gz" | sha256sum --check
# Verify the vendor's cryptographic signature as an additional control.
# Extract and install as an unprivileged user after successful verification.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (6)

External Script Fetching

High
Category
Supply Chain
Confidence
99% confidence
Finding

The skill instructs users to fetch and immediately execute a remote script via curl/IRM piped into a shell. This creates a direct supply-chain and remote code execution risk: if the host, CDN, transport, or script is compromised, arbitrary code runs on the operator's machine with the user's privileges.

Content

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

bash
# Install Devicebase CLI on Linux/MacOS (if not already installed)
which devicebase || curl -fsSL https://downloads.devicebase.cn/cli/install.sh | bash
# Install Devicebase CLI on Windows (if not already installed)
powershell -c "irm https://downloads.devicebase.cn/cli/install.ps1 | iex"

Chaining Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The explicit use of a shell pipe into bash is a classic command-chaining abuse pattern because it converts downloaded network content directly into executable commands. In this skill's context, that risk is amplified because installation happens as a prerequisite step before any device operations, so compromise would affect the host system before the tool is even used.

Content

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

bash
# Install Devicebase CLI on Linux/MacOS (if not already installed)
which devicebase || curl -fsSL https://downloads.devicebase.cn/cli/install.sh | bash
# Install Devicebase CLI on Windows (if not already installed)
powershell -c "irm https://downloads.devicebase.cn/cli/install.ps1 | iex"

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The activation guidance is very broad for a skill that can remotely control devices, launch apps, enter text, and capture screenshots/UI hierarchies. Over-broad invocation criteria increase the chance an agent will use the tool in inappropriate contexts, causing unintended actions on real devices or collection of sensitive on-screen data.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The examples include entering credentials and capturing screen/UI state without privacy safeguards, normalizing workflows that may expose live usernames, passwords, session data, or personal information. In an agent setting, these examples can directly encourage unsafe handling of secrets and sensitive artifacts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill exposes capabilities to capture screenshots and dump accessibility hierarchies, which can reveal credentials, personal data, tokens, messages, and other sensitive UI content. Omitting explicit warnings and handling guidance makes accidental collection, storage, or downstream sharing of sensitive data more likely.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The setup text at L053 says 'Both environment variables are required', but the table that follows documents only DEVICEBASE_API_KEY and omits DEVICEBASE_BASE_URL. Later sections at L438-L450 explicitly state that DEVICEBASE_BASE_URL is also required, so the documentation is internally contradictory about the CLI's requirements.

Content

No source excerpt is available for this finding.